/* ═══════════════════════════════════════════════════
   TDN MAGAZINE — HOMEPAGE LAYOUT
═══════════════════════════════════════════════════ */

/* ─── Sticky / Editor's Picks bar ───────────────── */
.tdn-sticky-bar {
    background: var(--tdn-black);
    border-bottom: 3px solid var(--tdn-red);
    width: 100%;
}
.tdn-sticky-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: stretch;
}
.tdn-sticky-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 24px 14px 0;
    border-right: 1px solid rgba(255,255,255,.1);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    text-align: center;
}
.tdn-sticky-label-dot {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--tdn-red);
    animation: tdnPulse 2s ease-in-out infinite;
}
@keyframes tdnPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.3); }
}
.tdn-sticky-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
}
.tdn-sticky-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,.07);
    transition: background .2s;
}
.tdn-sticky-post:last-child { border-right: none; }
.tdn-sticky-post:hover { background: rgba(255,255,255,.04); }
.tdn-sticky-thumb {
    width: 70px; min-width: 70px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    background: #2a2a2a;
}
.tdn-sticky-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.tdn-sticky-post:hover .tdn-sticky-thumb img { transform: scale(1.05); }
.tdn-sticky-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tdn-sticky-cat {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tdn-red);
}
.tdn-sticky-title {
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tdn-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tdn-sticky-date {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
}

/* ─── Hero ───────────────────────────────────────── */
.tdn-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--tdn-black);
}
.tdn-hero-img-link { display: block; }
.tdn-hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    opacity: .75;
    transition: opacity .4s;
}
.tdn-hero:hover .tdn-hero-img { opacity: .7; }
.tdn-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 60%, transparent 100%);
    padding: 60px var(--gutter) 36px;
}
.tdn-hero-inner { max-width: var(--container); margin: 0 auto; }
.tdn-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.tdn-hero-date { font-size: .85rem; color: rgba(255,255,255,.65); font-weight: 500; }
.tdn-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tdn-white);
    margin-bottom: 14px;
    max-width: 760px;
}
.tdn-hero-title a { color: inherit; text-decoration: none; }
.tdn-hero-title a:hover { color: rgba(255,255,255,.85); }
.tdn-hero-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tdn-hero-byline { font-size: .85rem; color: rgba(255,255,255,.55); }
.tdn-hero-byline .tdn-author { color: rgba(255,255,255,.8); }

/* ─── Mag container ──────────────────────────────── */
.tdn-mag-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.tdn-mag-section { margin-bottom: 52px; }

/* ─── Spotlight (3-col featured) ─────────────────── */
.tdn-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.tdn-spotlight-card { display: flex; flex-direction: column; }
.tdn-spotlight-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    background: var(--tdn-bg-soft);
    margin-bottom: 14px;
}
.tdn-spotlight-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.tdn-spotlight-thumb:hover .tdn-spotlight-img { transform: scale(1.04); }
.tdn-spotlight-thumb .tdn-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 1;
}
.tdn-spotlight-body { display: flex; flex-direction: column; gap: 8px; }
.tdn-spotlight-headline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tdn-black);
}
.tdn-spotlight-headline a { color: inherit; text-decoration: none; }
.tdn-spotlight-headline a:hover { color: var(--tdn-red); }
.tdn-spotlight-excerpt {
    font-size: .875rem;
    color: var(--tdn-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── News River ──────────────────────────────────── */
.tdn-river-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
}
.tdn-river-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tdn-border-lt);
}
.tdn-river-thumb {
    display: block;
    width: 100px;
    min-width: 100px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--tdn-bg-soft);
    flex-shrink: 0;
}
.tdn-river-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.tdn-river-thumb:hover .tdn-river-img { transform: scale(1.06); }
.tdn-river-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tdn-river-top { display: flex; align-items: center; gap: 8px; }
.tdn-river-headline {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tdn-black);
    flex: 1;
}
.tdn-river-headline a { color: inherit; text-decoration: none; }
.tdn-river-headline a:hover { color: var(--tdn-red); }
.tdn-river-excerpt {
    font-size: .8rem;
    color: var(--tdn-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

/* ─── Trending ───────────────────────────────────── */
.tdn-section-title--trending {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tdn-trending-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--tdn-red);
    display: inline-block;
    animation: tdnPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.tdn-trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.tdn-trending-card { display: flex; gap: 20px; }
.tdn-trending-thumb {
    position: relative;
    display: block;
    width: 200px;
    min-width: 200px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tdn-bg-soft);
    flex-shrink: 0;
}
.tdn-trending-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.tdn-trending-thumb:hover .tdn-trending-img { transform: scale(1.05); }
.tdn-trending-rank {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--tdn-red);
    color: var(--tdn-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tdn-trending-body { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.tdn-cat-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tdn-red);
    text-decoration: none;
}
.tdn-cat-badge:hover { color: var(--tdn-red-dark); }
.tdn-trending-headline {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tdn-black);
}
.tdn-trending-headline a { color: inherit; text-decoration: none; }
.tdn-trending-headline a:hover { color: var(--tdn-red); }

/* ─── Category sections (TV / Film / Music) ──────── */
.tdn-cat-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Lead article */
.tdn-cat-lead-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    background: var(--tdn-bg-soft);
    margin-bottom: 14px;
}
.tdn-cat-lead-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.tdn-cat-lead-thumb:hover .tdn-cat-lead-img { transform: scale(1.04); }
.tdn-cat-lead-thumb .tdn-badge {
    position: absolute;
    top: 10px; left: 10px;
}
.tdn-cat-lead-body { display: flex; flex-direction: column; gap: 8px; }
.tdn-cat-lead-headline {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tdn-black);
}
.tdn-cat-lead-headline a { color: inherit; text-decoration: none; }
.tdn-cat-lead-headline a:hover { color: var(--tdn-red); }
.tdn-cat-lead-excerpt {
    font-size: .9rem;
    color: var(--tdn-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar sub-articles */
.tdn-cat-sidebar { display: flex; flex-direction: column; gap: 0; }
.tdn-cat-sub {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tdn-border-lt);
}
.tdn-cat-sub:first-child { padding-top: 0; }
.tdn-cat-sub:last-child { border-bottom: none; }
.tdn-cat-sub-thumb {
    display: block;
    width: 80px; min-width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--tdn-bg-soft);
    flex-shrink: 0;
}
.tdn-cat-sub-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.tdn-cat-sub-thumb:hover .tdn-cat-sub-img { transform: scale(1.06); }
.tdn-cat-sub-body { flex: 1; min-width: 0; }
.tdn-cat-sub-headline {
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tdn-black);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tdn-cat-sub-headline a { color: inherit; text-decoration: none; }
.tdn-cat-sub-headline a:hover { color: var(--tdn-red); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tdn-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
    .tdn-river-grid { grid-template-columns: repeat(2, 1fr); }
    .tdn-cat-layout { grid-template-columns: 1fr; }
    .tdn-cat-sidebar { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .tdn-cat-sub { flex-direction: column; padding: 0; }
    .tdn-cat-sub-thumb { width: 100%; height: 120px; }
}

@media (max-width: 768px) {
    .tdn-sticky-bar { display: none; }
    .tdn-hero-img { height: 360px; }
    .tdn-spotlight-grid { grid-template-columns: 1fr; }
    .tdn-river-grid { grid-template-columns: 1fr; }
    .tdn-trending-grid { grid-template-columns: 1fr; }
    .tdn-cat-sidebar { grid-template-columns: 1fr; }
    .tdn-cat-sub { flex-direction: row; padding: 14px 0; }
    .tdn-cat-sub-thumb { width: 80px; height: 60px; }
}

@media (max-width: 480px) {
    .tdn-hero-img { height: 280px; }
    .tdn-hero-title { font-size: 1.5rem; }
    .tdn-trending-card { flex-direction: column; }
    .tdn-trending-thumb { width: 100%; min-width: unset; }
}
