/* ========================================
   CelebBuzz — Celebrity News & Gossip
   Mobile-first, engagement-optimized
   ======================================== */

:root {
    --red: #e50914;
    --red-dark: #b00710;
    --hot-pink: #ff2d78;
    --gold: #ffc107;
    --gold-bright: #FFD700;
    --gold-dark: #B8860B;
    --dark: #0a0a0a;
    --dark-2: #1a1a1a;
    --dark-3: #2a2a2a;
    --gray: #888;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --max-width: 1280px;
    --header-height: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ---- BREAKING TICKER ---- */
.breaking-ticker {
    background: var(--red);
    color: white;
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-label {
    background: var(--dark);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}
.ticker-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    border: 18px solid transparent;
    border-left: 12px solid var(--dark);
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    padding-left: 24px;
}

.ticker-content {
    display: flex;
    gap: 80px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-content span { flex-shrink: 0; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- HEADER ---- */
.site-header {
    background: var(--dark);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 24px;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: white;
    letter-spacing: 1px;
}
.logo span { color: var(--red); }

.main-nav {
    display: none;
    gap: 4px;
}
.main-nav a {
    color: #ccc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.main-nav a:hover { color: white; background: var(--dark-3); }
.main-nav .nav-hot { color: var(--red); }

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-btn, .push-btn {
    background: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
}
.push-btn {
    background: var(--red);
    border-radius: 20px;
    padding: 6px 14px;
}
.push-btn svg { width: 14px; height: 14px; }

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* ---- AD CONTAINERS ---- */
.ad-container {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: #f0f0f0;
}
.ad-placeholder {
    background: #e8e8e8;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
    border-radius: 4px;
    position: relative;
}
.ad-label {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 4px;
    left: 8px;
}
.ad-mock {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
}
.ad-leaderboard .ad-placeholder { min-height: 90px; }
.ad-in-feed .ad-placeholder { max-width: 100%; min-height: 250px; }
.ad-sidebar-sticky { position: sticky; top: calc(var(--header-height) + 16px); }
.ad-sidebar-sticky .ad-placeholder { min-height: 600px; max-width: 300px; }
.ad-sidebar .ad-placeholder { min-height: 250px; max-width: 300px; }

/* ---- HERO ---- */
.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px;
}

.hero-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    padding-bottom: 56%;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #1a1a2e;
}

.card-image {
    background-color: #1a1a2e;
}

.feed-thumb {
    background-color: #1a1a2e;
}

.article-featured-img {
    background-color: #1a1a2e;
}

.hero-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}
.badge-exclusive { background: var(--gold); color: var(--dark); }
.badge-breaking { background: var(--red); color: white; animation: pulse 1.5s infinite; }
.badge-hot { background: var(--hot-pink); color: white; }
.badge-new { background: #00c853; color: white; }
.badge-video { background: #6200ea; color: white; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}
.hero-category {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 8px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
}
.hero-excerpt {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
    line-height: 1.4;
}
.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #999;
    align-items: center;
}
.hero-meta svg { margin-right: 4px; }
.meta-time { color: var(--red); font-weight: 600; }

/* ---- TRENDING BAR ---- */
.trending-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.trending-bar::-webkit-scrollbar { display: none; }

.trending-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
}

.trending-tags { display: flex; gap: 8px; flex-shrink: 0; }
.trend-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #ddd;
    transition: all 0.2s;
}
.trend-tag:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ---- MAIN LAYOUT ---- */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ---- SUB-HERO GRID ---- */
.sub-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.sub-hero-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sub-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    padding-bottom: 56%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-image .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-body { padding: 14px 16px; }
.card-category {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--red);
    margin-bottom: 6px;
    display: block;
}
.card-body h2 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.card-tease {
    font-size: 0.82rem;
    color: var(--gray);
    font-style: italic;
}
.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 8px;
}

/* ---- FEED ITEMS ---- */
.feed-item {
    display: flex;
    gap: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.15s;
    padding: 12px;
}
.feed-item:hover { transform: translateX(4px); }

.feed-thumb {
    width: 120px;
    min-height: 90px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}
.feed-thumb .badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.55rem;
    padding: 2px 6px;
}

.feed-body { flex: 1; min-width: 0; }
.feed-body .card-category { font-size: 0.6rem; margin-bottom: 4px; }
.feed-body h3 {
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-body .card-tease {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-body .card-meta { margin-top: 6px; }

/* ---- SIDEBAR ---- */
.sidebar { display: none; }

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.widget-title {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.viral-list {
    list-style: none;
    counter-reset: viral;
}
.viral-list li { margin-bottom: 12px; }
.viral-list li a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: color 0.2s;
}
.viral-list li a:hover { color: var(--red); }

.viral-rank {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--red);
    min-width: 28px;
    line-height: 1;
}
.viral-text {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---- EMAIL SIGNUP ---- */
.widget-signup p {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 12px;
}
.signup-form {
    display: flex;
    gap: 0;
}
.signup-form input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.85rem;
    outline: none;
}
.signup-form input:focus { border-color: var(--red); }
.signup-form button {
    background: var(--red);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
    transition: background 0.2s;
}
.signup-form button:hover { background: var(--red-dark); }
.signup-count {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 8px;
    text-align: center;
}

/* ---- POLL ---- */
.poll-question {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
    background: var(--light-gray);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.poll-option:hover {
    border-color: var(--red);
    background: #fff0f0;
}
.poll-count {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 10px;
    text-align: center;
}

/* ---- FEED LOADER ---- */
.feed-loader {
    text-align: center;
    padding: 30px;
    color: var(--gray);
}
.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- POPUP ---- */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-overlay.active { display: flex; }

.popup-content {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    font-size: 1.8rem;
    color: #999;
    z-index: 2;
}
.popup-body {
    padding: 40px 30px 30px;
    text-align: center;
}
.popup-body h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.popup-body > p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popup-form input {
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}
.popup-form input:focus { border-color: var(--red); }
.popup-form button {
    background: var(--red);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.popup-form button:hover { background: var(--red-dark); }
.popup-dismiss {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    color: #bbb;
}

/* ---- PUSH PROMPT ---- */
.push-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 500;
    animation: slideUp 0.4s ease;
}
.push-prompt.active { display: block; }

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.push-content {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    max-width: 480px;
    margin: 0 auto;
}
.push-icon { font-size: 2rem; flex-shrink: 0; }
.push-text { flex: 1; }
.push-text strong { font-size: 0.85rem; }
.push-text p { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.push-actions { display: flex; gap: 8px; flex-shrink: 0; }
.push-allow {
    background: var(--red);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}
.push-deny {
    background: none;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 8px;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--dark);
    color: #999;
    margin-top: 40px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 8px;
}
.footer-logo span { color: var(--red); }
.footer-brand p { font-size: 0.82rem; line-height: 1.5; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.footer-col h4 {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    font-size: 0.82rem;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid var(--dark-3);
    text-align: center;
    padding: 16px 20px;
    font-size: 0.72rem;
}

/* ---- DESKTOP ---- */
@media (min-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .sub-hero-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: none; }
    .main-nav { display: flex; }
    .push-btn { display: flex; }
    .footer-inner { grid-template-columns: 1fr 2fr; }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 340px;
    }
    .sidebar { display: block; }
    .hero-title { font-size: 2.6rem; }
    .feed-thumb { width: 160px; min-height: 110px; }
}

/* ---- ARTICLE PAGE STYLES ---- */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.article-header {
    margin-bottom: 24px;
}
.article-breadcrumb {
    font-size: 0.72rem;
    color: var(--gray);
    margin-bottom: 12px;
}
.article-breadcrumb a { color: var(--red); }

.article-headline {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.15;
    margin-bottom: 12px;
}
.article-subhead {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 16px;
    font-style: italic;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--gray);
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.article-author { font-weight: 700; color: var(--dark); }

.article-share-bar {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-link { background: #555; }

.article-featured-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Article body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #222;
}
.article-body p {
    margin-bottom: 18px;
}
.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 28px 0 14px;
    color: var(--dark);
}
.article-body blockquote {
    border-left: 4px solid var(--red);
    padding: 14px 20px;
    margin: 20px 0;
    background: #fafafa;
    font-style: italic;
    color: #444;
    border-radius: 0 8px 8px 0;
}
.article-body .highlight-box {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 2px solid var(--red);
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Page navigation */
.page-nav {
    margin: 30px 0;
    text-align: center;
}
.page-indicator {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.page-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}
.page-dot.active { background: var(--red); }

.next-page-btn {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    padding: 16px 40px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    animation: btnPulse 2s infinite;
}
.next-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(229, 9, 20, 0.5); }
}

.page-cliffhanger {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 12px;
    line-height: 1.3;
}

/* Related articles */
.related-articles {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid #eee;
}
.related-articles h3 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.related-card {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.related-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.related-card-body {
    padding: 10px;
}
.related-card-body h4 {
    font-size: 0.8rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Share unlock feature */
.share-unlock {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 24px 0;
}
.share-unlock h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.share-unlock p {
    color: #aaa;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.share-unlock-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.share-unlock-btns .share-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}
.share-unlock .skip-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #666;
}

/* In-article ad */
.ad-in-article {
    margin: 24px 0;
}
.ad-in-article .ad-placeholder {
    max-width: 100%;
    min-height: 250px;
}

@media (min-width: 768px) {
    .article-headline { font-size: 2.4rem; }
    .article-page { padding: 24px; }
}


/* =============================================
   PREMIUM GOLD UPGRADE — Keyframe Animations
   ============================================= */

/* Gold shimmer sweep for logo and buttons */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Breaking badge sparkle */
@keyframes breakingSparkle {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 215, 0, 0.3); }
    25% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.7), 0 0 16px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.9), 0 0 24px rgba(255, 193, 7, 0.5); }
    75% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.7), 0 0 16px rgba(255, 193, 7, 0.4); }
}

/* Feed item fade-in */
@keyframes feedFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feed item slide-in */
@keyframes feedSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ken Burns slow zoom */
@keyframes kenBurns {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Pulsing gold dot */
@keyframes goldDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 215, 0, 0); }
}

/* Subtle bounce for trending tags */
@keyframes tagBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Gold gradient button shimmer sweep */
@keyframes goldBtnSweep {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Gold number pulse */
@keyframes goldNumberPulse {
    0%, 100% { color: var(--red); }
    50% { color: var(--gold-bright); text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
}

/* Card gold border glow */
@keyframes cardGoldGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
}


/* =============================================
   PREMIUM GOLD — Dark Gradient Background
   ============================================= */

body {
    background: #f0f0f0;
}


/* =============================================
   PREMIUM GOLD — Header Gold Bottom Border
   ============================================= */

.site-header {
    border-bottom: 2px solid var(--gold-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 3px 8px rgba(255, 215, 0, 0.08);
}


/* =============================================
   PREMIUM GOLD — Logo Shimmer Effect
   ============================================= */

.logo a {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        var(--gold-bright) 50%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s ease-in-out infinite;
}
.logo span {
    -webkit-text-fill-color: var(--red);
}


/* =============================================
   PREMIUM GOLD — Nav Link Gold Underline
   ============================================= */

.main-nav a {
    position: relative;
    overflow: hidden;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
    border-radius: 2px;
    transition: transform 0.3s ease;
    transform-origin: center;
}
.main-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}


/* =============================================
   PREMIUM GOLD — Ticker Redesign (Dark + Gold)
   ============================================= */

.breaking-ticker {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--gold-bright);
}

.ticker-label {
    background: var(--gold-bright);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ticker-label::after {
    border-left-color: var(--gold-bright);
}

/* Pulsing gold dot next to BREAKING */
.ticker-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: goldDotPulse 1.5s ease-in-out infinite;
}


/* =============================================
   PREMIUM GOLD — Badge Gold Glow
   ============================================= */

.badge-exclusive {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 16px rgba(255, 193, 7, 0.2);
}

.badge-breaking {
    animation: pulse 1.5s infinite, breakingSparkle 2s ease-in-out infinite;
}

.badge-hot {
    box-shadow: 0 0 8px rgba(255, 45, 120, 0.4);
}


/* =============================================
   PREMIUM GOLD — Hero Ken Burns Effect
   ============================================= */

.hero-card {
    overflow: hidden;
}

.hero-image {
    animation: kenBurns 20s ease-in-out infinite;
    transform-origin: center center;
}


/* =============================================
   PREMIUM GOLD — Card Hover Effects
   (Gold gradient border + glassmorphism + scale)
   ============================================= */

.sub-hero-card {
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sub-hero-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-image: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dark)) 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 20px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.feed-item {
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feed-item:hover {
    transform: translateX(4px) scale(1.01);
    border-image: linear-gradient(90deg, var(--gold-bright), var(--gold-dark)) 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 0 12px rgba(255, 215, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =============================================
   PREMIUM GOLD — Feed Item Animations
   (Fade-in + slide-in on appear)
   ============================================= */

.feed-item {
    animation: feedFadeIn 0.5s ease-out both;
}
.feed-item:nth-child(1) { animation-delay: 0s; }
.feed-item:nth-child(2) { animation-delay: 0.08s; }
.feed-item:nth-child(3) { animation-delay: 0.16s; }
.feed-item:nth-child(4) { animation-delay: 0.24s; }
.feed-item:nth-child(5) { animation-delay: 0.32s; }
.feed-item:nth-child(6) { animation-delay: 0.40s; }
.feed-item:nth-child(7) { animation-delay: 0.48s; }
.feed-item:nth-child(8) { animation-delay: 0.56s; }
.feed-item:nth-child(9) { animation-delay: 0.64s; }
.feed-item:nth-child(10) { animation-delay: 0.72s; }

.sub-hero-card {
    animation: feedSlideIn 0.6s ease-out both;
}
.sub-hero-card:nth-child(1) { animation-delay: 0.1s; }
.sub-hero-card:nth-child(2) { animation-delay: 0.2s; }
.sub-hero-card:nth-child(3) { animation-delay: 0.3s; }
.sub-hero-card:nth-child(4) { animation-delay: 0.4s; }


/* =============================================
   PREMIUM GOLD — Trending Tags Bounce on Hover
   ============================================= */

.trend-tag:hover {
    animation: tagBounce 0.4s ease;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--dark);
    border-color: var(--gold-dark);
}


/* =============================================
   PREMIUM GOLD — Next Page Button
   (Gold gradient + shimmer sweep)
   ============================================= */

.next-page-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright), var(--gold));
    color: var(--dark);
    font-weight: 800;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    animation: btnPulse 2s infinite;
    z-index: 1;
}
.next-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    z-index: 2;
    animation: goldBtnSweep 3s ease-in-out infinite;
}
.next-page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.45);
}


/* =============================================
   PREMIUM GOLD — Sidebar Viral Numbers Pulse
   ============================================= */

.viral-list li a:hover .viral-rank {
    animation: goldNumberPulse 0.6s ease-in-out;
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}


/* =============================================
   PREMIUM GOLD — Widget Title Gold Star
   ============================================= */

.widget-title::before {
    content: '\2605';
    color: var(--gold-bright);
    font-size: 1rem;
    margin-right: 2px;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}
.widget-title::after {
    content: '\2605';
    color: var(--gold-bright);
    font-size: 1rem;
    margin-left: auto;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}


/* =============================================
   PREMIUM GOLD — Footer Gold Accent Stripe
   ============================================= */

.site-footer {
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold), var(--gold-bright), var(--gold-dark));
}

.footer-col a:hover {
    color: var(--gold-bright);
}


/* =============================================
   THUMBNAIL TEXT OVERLAY STYLES
   (Headlines on images)
   ============================================= */

/* Container for thumbnail with overlay — apply to parent wrapper */
.thumb-overlay {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 8px;
}
.thumb-overlay img,
.thumb-overlay .card-image,
.thumb-overlay .feed-thumb {
    display: block;
    width: 100%;
}

/* Gradient overlay on thumbnail */
.thumb-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.65) 80%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

/* Vignette effect on thumbnails */
.thumb-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* Bold white headline text at bottom of thumbnail */
.thumb-headline {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
}

/* Gold highlighted celebrity name tag on thumbnail */
.thumb-celeb-name {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    position: absolute;
    bottom: 44px;
    left: 12px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 215, 0, 0.25);
    text-shadow: none;
}

/* Standalone vignette utility (for thumbnails without full overlay) */
.feed-thumb,
.card-image {
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}


/* =============================================
   RESPONSIVE — Thumbnail overlay adjustments
   ============================================= */

@media (min-width: 768px) {
    .thumb-headline {
        font-size: 1.3rem;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    .thumb-celeb-name {
        font-size: 0.72rem;
        padding: 4px 10px;
        bottom: 52px;
        left: 16px;
    }
}

@media (min-width: 1024px) {
    .thumb-headline {
        font-size: 1.5rem;
    }
}
