/* =========================================
   25thframe.co.uk - Modern Light Editorial Theme
   ========================================= */

:root {
    --bg-page: #f4f6f9;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent-color: #2563eb;
    --border-color: #e5e7eb;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* =========================================
   MAIN PAGE WRAPPER & 3-COLUMN GRID
   ========================================= */
.modern-page-wrapper {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    background-color: var(--bg-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
     padding-bottom: 48px;
}

.modern-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.grid-col-left,
.grid-col-center,
.grid-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================
   SIDEBAR NAVIGATION POLISH
   ========================================= */
.logo-accent {
    color: var(--accent-color);
}

.brand-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 16px;
    width: 150px;
    text-decoration: none;
    gap: 5px;
}

.brand-logo-link img {
    width: 100%;
    height: auto;
    display: block;
}

.anniversary-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.sidebar .nav-link {
    border-radius: 8px;
    margin: 2px 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--accent-color);
}

.sidebar .nav-link.active {
    background-color: #eff6ff;
    color: var(--accent-color);
    font-weight: 700;
}

/* =========================================
   FILM OF THE DAY TOP STRIP & SECTION HERO
   ========================================= */
.fotd-top-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.fotd-strip-tag {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.fotd-strip-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.fotd-strip-link:hover {
    color: var(--accent-color);
}

.fotd-strip-arrow {
    color: #64748b;
    transition: transform 0.15s ease, color 0.15s ease;
}

.fotd-strip-link:hover .fotd-strip-arrow {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Sky-to-Indigo Page Section Hero */
.modern-section-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f8fafc 100%);
    color: #0f172a;
    text-align: center;
    padding: 26px 20px;
    border-bottom: 2px solid #bfdbfe;
}

.modern-section-hero h1 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #1e3a8a;
}

.section-subtitle {
    margin: 5px 0 0;
    font-size: 0.92rem;
    color: #475569;
    font-weight: 500;
}

/* =========================================
   MODERN CARD CONTAINER & HEADERS
   ========================================= */
.modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 20px;
}

/* Keep full-bleed headers, hero images, and footer CTAs flush with card edges */
.modern-card > .trending-header,
.modern-card > .modern-card-header,
.modern-card > .bo-panel-hero,
.modern-card > .hero-image-link,
.modern-card > .fc-hero-link {
    margin: -20px -20px 20px -20px;
}

.modern-card > .bo-footer-cta {
    margin: 20px -20px -20px -20px;
}

.modern-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #f8fafc;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.modern-card-header a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: -18px -24px;
    padding: 18px 24px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.modern-card-header a:hover {
    background: #f8fafc;
}

.modern-card-header h2,
.modern-card-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.modern-card-header small {
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #f8fafc;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.header-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 99px;
}

.header-action-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.header-action-link:hover {
    text-decoration: underline;
}

/* =========================================
   RANKED LISTS & BADGES
   ========================================= */
.ranked-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.ranked-list li {
    border-bottom: 1px solid var(--border-color);
}

.ranked-list li:last-child {
    border-bottom: none;
}

.ranked-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.15s ease;
}

.ranked-item:hover {
    background-color: #f8fafc;
    color: var(--accent-color);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-badge.rank-1 {
    background: #fef3c7;
    color: #b45309;
}

/* =========================================
   REALTIME POPULAR MOVIES WIDGET
   ========================================= */
.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background-color: #f8fafc;
}

.trending-item.is-fod {
    background-color: #fffbeb;
}

.trending-item.is-fod:hover {
    background-color: #fef3c7;
}

.fod-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fde68a;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.hero-image-link {
    position: relative;
    display: block;
    width: 100%;
    max-height: 190px;
    overflow: hidden;
}

.hero-image-link img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.trending-item.is-hero:hover .hero-image-link img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 16px;
}

.hero-overlay .rank-badge.rank-1 {
    width: auto;
    padding: 3px 10px;
    font-size: 0.75rem;
}

.trending-item-body {
    padding: 12px 16px;
}

.trending-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.trending-title-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.trending-movie-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.35;
}

.trending-movie-title:hover {
    color: var(--accent-color);
}

.movie-year {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 2px;
}

.visit-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.visit-pill.hero-pill {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.trending-credits {
    margin-top: 6px;
    padding-left: 34px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.trending-item.is-hero .trending-credits {
    padding-left: 0;
}

.credit-label {
    font-weight: 600;
    color: #475569;
}

.trending-credits a {
    color: var(--text-secondary);
    text-decoration: none;
}

.trending-credits a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   WEEKLY BOX OFFICE CARDS (UK, US, WORLD)
   ========================================= */
.bo-panel-hero {
    display: block;
    background-color: #f8fafc;
    background-size: cover;
    background-position: center 20%;
    text-decoration: none;
    position: relative;
}

.bo-hero-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(2px);
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.bo-hero-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.bo-hero-date {
    font-size: 0.8rem;
    color: #64748b;
}

.bo-hero-arrow {
    font-size: 1.1rem;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.bo-panel-hero:hover .bo-hero-arrow {
    transform: translateX(3px);
}

.bo-chart-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.bo-chart-list li {
    border-bottom: 1px solid var(--border-color);
}

.bo-chart-list li:last-child {
    border-bottom: none;
}

.bo-chart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.bo-chart-row:hover {
    background-color: #f8fafc;
    color: var(--accent-color);
}

.bo-movie-name {
    flex: 1;
    line-height: 1.3;
}

.move-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.move-new { background-color: #dbeafe; color: #1d4ed8; }
.move-re { background-color: #fef3c7; color: #b45309; }
.move-up { background-color: #dcfce7; color: #15803d; }
.move-down { background-color: #fee2e2; color: #b91c1c; }
.move-same { background-color: #f1f5f9; color: #64748b; }

.bo-footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.bo-footer-cta:hover {
    background-color: #eff6ff;
}

/* =========================================
   CENTER COLUMN: TRAILER & NEWS GRID
   ========================================= */
.trailer-badge {
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 5px;
}

.news-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 18px;
}

.news-story-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.news-story-card.is-featured {
    grid-column: 1 / -1;
}

.news-story-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.news-story-card.is-featured .news-thumb-wrap {
    aspect-ratio: 21 / 9;
}

.news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.3s ease;
}

.news-story-card:hover .news-thumb-wrap img {
    transform: scale(1.03);
}

.news-category-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 5px;
}

.news-story-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px;
}

.news-meta-line {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.news-story-headline {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.news-story-card.is-featured .news-story-headline {
    font-size: 1.25rem;
}

.news-story-card:hover .news-story-headline {
    color: var(--accent-color);
}

.news-read-cta {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.news-filter-box {
    padding: 16px 18px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.news-filter-title {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.news-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tag-pill {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.movie-tag-pill:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

/* =========================================
   RIGHT SIDEBAR: CALENDARS & NEW RELEASES
   ========================================= */
.calendar-links-list {
    display: flex;
    flex-direction: column;
}

.calendar-row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.calendar-row-link:last-child {
    border-bottom: none;
}

.calendar-row-link:hover {
    background-color: #eff6ff;
    color: var(--accent-color);
}

.calendar-label {
    flex: 1;
}

.calendar-arrow {
    color: #94a3b8;
    transition: transform 0.15s ease, color 0.15s ease;
}

.calendar-row-link:hover .calendar-arrow {
    color: var(--accent-color);
    transform: translateX(3px);
}

.new-releases-list {
    display: flex;
    flex-direction: column;
}

.release-item-card {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.release-item-card:last-child {
    border-bottom: none;
}

.release-item-card:hover {
    background-color: #f8fafc;
}

.release-poster-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.release-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.3s ease;
}

.release-item-card:hover .release-poster-wrap img {
    transform: scale(1.03);
}

.release-date-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
}

.release-item-body {
    padding: 14px 16px;
}

.release-movie-title {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.release-movie-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.release-movie-title a:hover {
    color: var(--accent-color);
}

.release-in-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* 2-Column Grid-Aligned Country Tokens */
.country-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.country-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 5px 10px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    flex-shrink: 0;
}

/* =========================================
   FOOTER TRENDING CHARTS (EQUAL HEIGHT)
   ========================================= */
.footer-charts-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

.footer-charts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.footer-charts-grid .modern-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-charts-grid .ranked-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.footer-charts-grid .ranked-list li {
    flex: 1;
    display: flex;
}

.footer-charts-grid .ranked-item {
    width: 100%;
    align-items: center;
}

.footer-charts-grid .movie-title,
.footer-charts-grid .fc-hero-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fc-hero-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
    text-decoration: none;
}

.fc-hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.3s ease;
}

.fc-hero-link:hover img {
    transform: scale(1.04);
}

.fc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.1) 65%);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
}

.fc-hero-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.fc-hero-link:hover .fc-hero-title {
    color: #fbbf24;
}

/* =========================================
   MODERN FOOTER & FLOATING BACK-TO-TOP
   ========================================= */
.modern-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 28px 80px 28px 24px;
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.modern-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.footer-copyright {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav-links a:hover {
    color: var(--accent-color);
}

.modern-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.modern-back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1100px) {
    .footer-charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .modern-grid-layout {
        grid-template-columns: 1fr 1.5fr;
    }
    .grid-col-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .modern-page-wrapper {
        padding: 16px;
    }
    .modern-grid-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-charts-wrapper {
        padding: 0 16px 16px;
    }
    .modern-footer {
        padding: 28px 24px 76px 24px;
    }
    .modern-footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav-links {
        justify-content: center;
        gap: 14px;
    }
    .news-item-full {
        display: none;
    }
}

@media (min-width: 769px) {
    .news-item-mobile {
        display: none;
    }
}

@media (max-width: 640px) {
    .news-editorial-grid {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 14px;
    }
    .news-story-card.is-featured .news-thumb-wrap {
        aspect-ratio: 16 / 9;
    }
    .news-story-card.is-featured .news-story-headline {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .footer-charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================================
   FILM OF THE DAY TOP STRIP (LIGHT THEME)
   ========================================= */
.fotd-top-strip,
.fotd-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.fotd-strip-tag,
.fotd-badge {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.fotd-strip-link,
.fotd-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.fotd-strip-link:hover,
.fotd-link:hover {
    color: #2563eb;
}

.fotd-strip-arrow {
    color: #64748b;
    transition: transform 0.15s ease, color 0.15s ease;
}

.fotd-strip-link:hover .fotd-strip-arrow {
    color: #2563eb;
    transform: translateX(3px);
}

/* =========================================
   STAR PROFILE STATS & PORTRAIT GRID
   ========================================= */
.star-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.star-kpi-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.star-milestones-list {
    display: flex;
    flex-direction: column;
}

.milestone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.milestone-row:last-child {
    border-bottom: none;
}

.milestone-row.is-upcoming {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.milestone-label {
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.milestone-value {
    font-weight: 700;
    text-align: right;
}

.milestone-value a {
    color: var(--text-primary);
    text-decoration: none;
}

.milestone-value a:hover {
    color: var(--accent-color);
}

.upcoming-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Top Box Office Stars Grid */
.stars-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 18px;
}

.star-portrait-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.star-portrait-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.star-avatar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.star-avatar-link img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #e2e8f0;
}

.star-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
}

.star-avatar-link:hover .star-card-name {
    color: var(--accent-color);
}

.star-card-movie {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.star-card-movie:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   INDIVIDUAL STAR PROFILE & FILMOGRAPHY
   ========================================= */
.star-profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.star-profile-hero {
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.star-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.star-profile-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.star-profile-name {
    margin: 6px 0 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* Sort Pill Tabs */
.star-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.star-sort-pill {
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.star-sort-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #f8fafc;
}

.star-sort-pill.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Filmography List Rows */
.filmography-list {
    display: flex;
    flex-direction: column;
}

.filmography-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.filmography-row:last-child {
    border-bottom: none;
}

.filmography-row:hover {
    background-color: #f8fafc;
}

.filmography-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.filmography-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.25s ease;
}

.filmography-row:hover .filmography-thumb img {
    transform: scale(1.04);
}

.filmography-info {
    flex: 1;
    min-width: 0;
}

.filmography-title {
    margin: 0 0 5px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.filmography-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.filmography-title a:hover {
    color: var(--accent-color);
}

.filmography-credits {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.filmography-credits a {
    color: var(--text-secondary);
    text-decoration: none;
}

.filmography-credits a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.filmography-stat {
    flex-shrink: 0;
    text-align: right;
}

.year-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 6px;
}

.gross-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 6px;
}

.star-empty-state {
    padding: 28px 20px;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .filmography-row {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .filmography-thumb {
        width: 96px;
    }
    .filmography-stat {
        width: 100%;
        text-align: left;
        padding-left: 112px;
    }
}

/* =========================================
   4-BOX CHARTS LAYOUT (ALL 3 CHARTS VISIBLE)
   ========================================= */
.charts-four-box-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.charts-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.chart-quad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 3 Equal Columns Inside Box 1 & Box 2 */
.quad-three-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1;
}

/* Clean vertical hairlines instead of bulky gaps */
.quad-three-split > * {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-right: 1px solid var(--border-color) !important;
    display: flex;
    flex-direction: column;
}

.quad-three-split > *:last-child {
    border-right: none !important;
}

/* Compact row typography so 3 columns fit cleanly without wrapping badly */
.quad-three-split .bo-chart-row,
.quad-three-split .ranked-item {
    padding: 9px 10px;
    font-size: 0.82rem;
    gap: 7px;
}

.quad-three-split .rank-badge {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
}

.quad-three-split .bo-hero-overlay,
.quad-three-split .modern-card-header a {
    padding: 12px 12px;
}

.quad-three-split .bo-hero-title,
.quad-three-split .modern-card-header h3 {
    font-size: 0.92rem;
}

/* Bottom 2 Boxes Body */
.chart-quad-body {
    padding: 20px 24px;
    flex: 1;
}

.modern-card > .chart-quad-body {
    padding: 0;
}

.chart-quad-body > .content-box,
.chart-quad-body > .padding,
.chart-quad-body > div {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Ad Banner Wrapper */
.modern-ad-slot {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
    .charts-two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .quad-three-split {
        grid-template-columns: 1fr;
    }
    .quad-three-split > * {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .quad-three-split > *:last-child {
        border-bottom: none !important;
    }
}

.bo-region-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.bo-region-col .bo-chart-list {
    flex: 1;
}

.bo-region-col .bo-footer-cta {
    margin-top: auto;
}

/* Yearly Box Office Year Pill */
.yearly-year-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 5px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.yearly-year-pill.is-latest {
    background-color: #fef3c7;
    color: #b45309;
}

/* =========================================
   SPACIOUS BOX OFFICE CHARTS LAYOUT
   ========================================= */
.charts-spacious-wrapper {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px; /* Generous breathing room between major sections */
}

.charts-band {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.charts-band-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.charts-band-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* 3 Wide Independent Cards (UK / US / World) */
.charts-three-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.charts-three-card-grid .modern-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Comfortable Row Breathing Room */
.charts-three-card-grid .bo-chart-row {
    padding: 12px 18px;
    font-size: 0.92rem;
    gap: 12px;
}

.charts-three-card-grid .bo-hero-overlay {
    padding: 18px 20px;
}

/* Bottom 2-Column Editorial Row */
.charts-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.chart-quad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-quad-body {
    padding: 20px 24px;
    flex: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .charts-three-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .charts-spacious-wrapper {
        gap: 24px;
    }
    .charts-three-card-grid,
    .charts-two-col-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* =========================================
   STACKED NUMBER 1 MOVIES LIST
   ========================================= */
.num1-stacked-list {
    display: flex;
    flex-direction: column;
}

.num1-stacked-group {
    border-bottom: 1px solid var(--border-color);
}

.num1-stacked-group:last-child {
    border-bottom: none;
}

.num1-stacked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: #0f172a;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.num1-stacked-header:hover {
    background-color: #eff6ff;
    color: var(--accent-color);
}

.num1-region-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

.num1-flag-icon {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.num1-view-all {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Week Count Pill */
.weeks-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}

.weeks-pill.is-multi {
    background: #fef3c7;
    color: #b45309;
}

/* Number 1 Movie Title + Date Sub-line */
.num1-movie-row {
    align-items: center;
    padding: 10px 20px;
}

.num1-movie-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.num1-date-sub {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =========================================
   STYLISH NEWS HUB & PAGINATION (news.inc)
   ========================================= */
.news-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(290px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
}

.news-hub-main,
.news-hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Topic Filter Pills Bar */
.news-topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.movie-tag-pill.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

/* Pagination Bar */
.modern-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-btn:hover,
.page-num:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #eff6ff;
}

.page-num.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    background: #f8fafc;
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 4px;
    font-weight: 700;
}

.news-archive-strip {
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
}

@media (max-width: 1024px) {
    .news-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modern-pagination {
        justify-content: center;
    }
}

/* Color-Coded News Category Badges */
.news-category-pill.tag-box-office {
    background: rgba(21, 128, 61, 0.92); /* Green */
}

.news-category-pill.tag-new-trailers {
    background: rgba(109, 40, 217, 0.92); /* Purple */
}

.news-category-pill.tag-poster,
.news-category-pill.tag-posters,
.news-category-pill.tag-new-posters {
    background: rgba(37, 99, 235, 0.92); /* Blue */
}

.news-category-pill.tag-new-movie-preview {
    background: rgba(14, 116, 144, 0.92); /* Teal */
}

.news-category-pill.tag-age-ratings {
    background: rgba(180, 83, 9, 0.92); /* Amber */
}

/* =========================================
   MOVIE DETAIL PAGE (film.inc)
   ========================================= */
.movie-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.movie-hero-card {
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.movie-title-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movie-main-title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.movie-meta-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.movie-poster-col {
    position: sticky;
    top: 24px;
}

.movie-poster-card {
    padding: 12px;
    text-align: center;
}

.movie-poster-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.movie-content-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.movie-subnav-bar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.movie-section-card {
    padding: 20px 24px;
}

/* Smooth out legacy sub-include classes inside modern cards */
.movie-section-card .content-box,
.movie-section-card .content-box-header,
.movie-hero-card .film-detail-title {
    background: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.movie-section-card .content-box-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* =========================================
   MOVIE OVERVIEW SECTIONS (detail-page-release-info.inc)
   ========================================= */
.movie-overview-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.overview-section-heading {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.overview-kpi-grid {
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.kpi-value.kpi-sm {
    font-size: 1.02rem;
}

.kpi-value.kpi-sm a {
    color: var(--accent-color);
    text-decoration: none;
}

.kpi-value.kpi-sm a:hover {
    text-decoration: underline;
}

.flag-mini {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.milestone-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.upcoming-chips .movie-tag-pill a {
    color: inherit;
    text-decoration: none;
}

/* Box Office Quickview & Chart History Grid */
.bo-quickview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bo-quickview-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.bo-qv-title {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e3a8a;
}

.bo-qv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.bo-qv-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
    color: var(--text-secondary);
}

.bo-qv-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bo-qv-list strong {
    color: var(--text-primary);
    font-weight: 700;
}

.bo-qv-list a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Chart Position History Pills */
.chart-history-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.chart-week-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chart-week-pill.is-num1 {
    background: #fef3c7;
    border-color: #f59e0b;
}

.week-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.week-pos {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-week-pill.is-num1 .week-pos {
    color: #b45309;
}

/* Certificates Grid */
.cert-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cert-badge-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .movie-detail-grid {
        grid-template-columns: 1fr;
    }
    .movie-poster-col {
        position: static;
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .movie-section-card {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .movie-main-title {
        font-size: 1.65rem;
    }
}

/* =========================================
   CAST & CREW TAB (cast-and-crew.inc)
   ========================================= */
.cast-portrait-grid {
    padding: 0 0 18px 0;
}

.cast-credits-table {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.cast-credits-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.cast-credits-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
    transition: background-color 0.15s ease;
}

.cast-credits-row:last-child {
    border-bottom: none;
}

.cast-credits-row:nth-child(even) {
    background-color: #fafbfc;
}

.cast-credits-row:hover {
    background-color: #f1f5f9;
}

.cast-person-cell {
    font-weight: 700;
    color: var(--text-primary);
}

.cast-person-cell a {
    color: var(--text-primary);
    text-decoration: none;
}

.cast-person-cell a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.cast-role-cell {
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 600px) {
    .cast-credits-header {
        display: none;
    }
    .cast-credits-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 14px;
    }
    .cast-role-cell {
        font-size: 0.84rem;
    }
}

/* =========================================
   BOX OFFICE DATA TAB & GROSS FLOW CHART
   ========================================= */
.movie-box-office-tab {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bo-tab-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-subtext {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.bo-region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.bo-region-header .overview-section-heading {
    margin: 0;
    padding: 0;
    border: none;
}

.bo-summary-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chart History Table */
.bo-history-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
}

.bo-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.bo-history-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.bo-history-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
}

.bo-history-table tbody tr:last-child td {
    border-bottom: none;
}

.bo-history-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Subtle row highlights by chart rank */
.bo-history-table tbody tr.is-pos-1 {
    background-color: #fffbeb;
}

.bo-history-table tbody tr.is-pos-1:hover {
    background-color: #fef3c7;
}

.bo-history-table tbody tr.is-top-5 {
    background-color: #f0fdf4;
}

.bo-history-table tbody tr.is-outside-15 td {
    color: var(--text-secondary);
}

.bo-history-table .col-center {
    text-align: center;
}

.bo-history-table .col-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bo-date-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.bo-date-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   UK BOX OFFICE GROSS FLOW BAR CHART
   ========================================= */
.bo-flow-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.bo-flow-chart-wrap {
    width: 100%;
    overflow-x: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 16px 14px;
    box-sizing: border-box;
}

.bo-flow-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-width: 480px;
}

.bo-flow-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 44px;
}

.bo-flow-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
}

.bo-flow-bar-track {
    width: 100%;
    max-width: 38px;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 2px solid #cbd5e1;
}

.bo-flow-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 6px 6px 0 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bo-flow-col:hover .bo-flow-bar-fill {
    opacity: 0.85;
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.bo-flow-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.25;
}

.bo-flow-date small {
    font-weight: 400;
    color: var(--text-secondary);
}

/* =========================================
   GLOBAL RELEASE DATES TAB (detail-page-release-dates.inc)
   ========================================= */
.release-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.release-breakdown-header .overview-section-heading {
    margin: 0;
    padding: 0;
    border: none;
}

.release-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.release-country-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.release-country-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.release-country-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.release-country-name {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.release-country-date {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* =========================================
   TOP GROSSING & GENRES TAB (detail-page-finer-details.inc)
   ========================================= */
.gross-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.gross-rank-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gross-rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.gross-rank-total {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.gross-rank-neighbors {
    padding: 0;
}

.gross-rank-neighbors .ranked-item {
    padding: 10px 16px;
    font-size: 0.86rem;
}

.gross-rank-neighbors li.is-current-film {
    background-color: #eff6ff;
}

.gross-rank-neighbors li.is-current-film .movie-title {
    color: var(--accent-color);
    font-weight: 800;
}

.gross-rank-neighbors li.is-current-film .rank-badge {
    width: auto;
    padding: 0 8px;
    background: var(--accent-color);
    color: #ffffff;
}

.gross-rank-empty {
    padding: 20px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Genre Cards */
.genre-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.genre-pill-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.genre-pill-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #eff6ff;
    transform: translateY(-1px);
}

.genre-pill-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* =========================================
   ALL-TIME STANDINGS & COLOR-CODED GENRES
   (detail-page-finer-details.inc)
   ========================================= */
.leaderboard-standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.lb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.lb-region {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lb-total-gross {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.lb-neighbor-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-neighbor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.lb-neighbor-row.is-current {
    background: #eff6ff;
    border-color: #93c5fd;
    font-weight: 700;
}

.lb-neighbor-row .rank-badge {
    width: auto;
    min-width: 34px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.lb-movie-link {
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}

.lb-movie-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.lb-movie-current {
    color: #1d4ed8;
    line-height: 1.3;
}

.lb-empty-note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Color-Coded Genre Pill System */
.genre-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.genre-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    filter: brightness(0.97);
}

.genre-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.genre-pill-icon svg {
    width: 16px;
    height: 16px;
}

/* Distinct Color Accents per Genre */
.genre-action, .genre-adventure {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.genre-comedy, .genre-family, .genre-animation {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.genre-drama, .genre-documentary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.genre-sci-fi, .genre-fantasy {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.genre-horror, .genre-thriller, .genre-crime {
    background: #1e293b;
    color: #f8fafc;
    border-color: #0f172a;
}

.genre-romance, .genre-musical {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

/* =========================================
   MOVIE NEWS TAB (detail-page-news.inc)
   ========================================= */
.web-news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.web-news-row {
    border-bottom: 1px solid var(--border-color);
}

.web-news-row:last-child {
    border-bottom: none;
}

.web-news-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.15s ease;
}

.web-news-link:hover {
    background-color: #f8fafc;
}

.web-news-headline {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.web-news-link:hover .web-news-headline {
    color: var(--accent-color);
}

.web-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.news-source-pill {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
}

.web-news-ext {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-color);
}

/* On-Site 25thframe Articles */
.site-news-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-news-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-news-title {
    margin: 4px 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}

.site-news-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.site-news-title a:hover {
    color: var(--accent-color);
}

.site-news-excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
}

.site-news-excerpt h3 {
    font-size: 1rem;
    margin: 12px 0 6px;
}

.site-news-excerpt h3 a {
    color: var(--accent-color);
    text-decoration: none;
}

.site-news-excerpt h3 a:hover {
    text-decoration: underline;
}

.news-film-highlight {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.site-news-footer {
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

/* =========================================
   WEEKEND BOX OFFICE CHARTS (UK / US / GLOBAL)
   ========================================= */
.weekend-chart-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weekend-chart-hero {
    padding: 22px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.weekend-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.weekend-chart-title {
    margin: 8px 0 4px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.weekend-chart-range {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-region-switcher {
    display: flex;
    gap: 8px;
}

.weekend-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.weekend-nav-current {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.weekend-table-wrap {
    overflow-x: auto;
}

.weekend-ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.weekend-ranking-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.weekend-ranking-table th.text-right,
.weekend-ranking-table td.text-right {
    text-align: right;
}

.weekend-ranking-table th.text-center,
.weekend-ranking-table td.text-center {
    text-align: center;
}

.weekend-ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.weekend-ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.weekend-ranking-table tbody tr:hover {
    background-color: #f8fafc;
}

.weekend-ranking-table tbody tr.is-new-entry {
    background-color: #f0f9ff;
}

.weekend-ranking-table tbody tr.is-new-entry:hover {
    background-color: #e0f2fe;
}

.col-rank {
    width: 48px;
}

.col-poster {
    width: 64px;
    padding-right: 4px !important;
}

.chart-row-poster {
    display: block;
    width: 54px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.chart-row-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chart-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.chart-title-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-film-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}

.chart-film-link:hover {
    color: var(--accent-color);
}

.chart-cert-icon {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

.chart-cert-icon.is-mpaa {
    height: 20px;
}

.col-gross {
    font-size: 0.98rem;
    color: #0f172a;
    white-space: nowrap;
}

.col-total {
    font-size: 0.92rem;
    color: #475569;
    white-space: nowrap;
}

.text-muted {
    color: #94a3b8;
}

.weekend-empty-card,
.weekend-footnote-card {
    padding: 24px;
}

.weekend-empty-card {
    text-align: center;
    color: var(--text-secondary);
}

.weekend-empty-card h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
}

.weekend-footnote-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.weekend-footnote-card a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 720px) {
    .weekend-chart-hero {
        padding: 16px;
    }
    .weekend-chart-title {
        font-size: 1.35rem;
    }
    .weekend-ranking-table th,
    .weekend-ranking-table td {
        padding: 10px 10px;
    }
    .chart-row-poster {
        width: 42px;
    }
    .chart-film-link {
        font-size: 0.95rem;
    }
}

/* Annual Box Office Gross Bar */
.yearly-gross-bar-track {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.yearly-gross-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #3b82f6 100%);
    border-radius: 999px;
}

/* =========================================
   DIRECTORS HUB PAGE (directors-home.inc)
   ========================================= */
.directors-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.directors-window-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.directors-window-grid > .modern-card {
    display: flex;
    flex-direction: column;
}

/* Feed List for Windows 1 & 3 */
.director-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.director-feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.director-feed-item:last-child {
    border-bottom: none;
}

.director-feed-item:hover {
    background-color: #f8fafc;
}

.feed-rank-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.director-feed-item:nth-child(1) .feed-rank-pill {
    background: #fef3c7;
    color: #b45309;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feed-director-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.feed-director-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.feed-director-name a:hover {
    color: var(--accent-color);
}

.feed-movie-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-movie-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Featured Director Body (Window 2) */
.featured-director-body {
    padding: 20px;
    flex: 1;
}

/* 3-Column Career Gross Leaderboard (Window 4) */
.director-gross-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 20px 20px;
    flex: 1;
}

.gross-region-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gross-region-heading {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e3a8a;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    text-align: center;
}

.gross-director-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.gross-director-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.gross-director-row:last-child {
    border-bottom: none;
}

.gross-rank-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    min-width: 18px;
    padding-top: 2px;
}

.gross-rank-num.is-top3 {
    color: #b45309;
}

.gross-director-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gross-director-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.25;
    word-break: break-word;
}

.gross-director-link:hover {
    color: var(--accent-color);
}

.gross-director-amount {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1px;
}

@media (max-width: 1024px) {
    .directors-window-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .director-gross-columns {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DIRECTORS HUB PAGE (directors-home.inc)
   ========================================= */
.director-row-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #f1f5f9;
}

.director-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.director-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.25;
}

a.director-row-name:hover {
    color: var(--accent-color);
}

.director-row-movie {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.25;
}

.director-row-movie:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.director-gross-tabs {
    margin-bottom: 16px;
}

.director-gross-panel {
    display: none;
}

.director-gross-panel.is-active {
    display: block;
}

.director-gross-row {
    justify-content: space-between;
}

.director-gross-row .movie-title {
    flex: 1;
    min-width: 0;
}

/* =========================================
   FEATURED DIRECTOR / ACTOR SPOTLIGHT CARD
   ========================================= */
.spotlight-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spotlight-person-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spotlight-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    background: #f1f5f9;
}

.spotlight-person-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.spotlight-person-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.spotlight-person-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.spotlight-person-name a:hover {
    color: var(--accent-color);
}

.spotlight-kpi-grid {
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.spotlight-card-inner .milestone-row {
    padding-left: 4px;
    padding-right: 4px;
}

.spotlight-profile-cta {
    display: block;
    text-align: center;
    padding: 11px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.spotlight-profile-cta:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

/* =========================================
   3-COLUMN CAREER GROSS LEADERBOARD (STARS & DIRECTORS HUB)
   ========================================= */
.director-gross-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.director-gross-col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e3a8a;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.director-gross-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.director-gross-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.director-gross-item:last-child {
    border-bottom: none;
}

.gross-amount-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Extra spacing above the middle advert area */
.charts-spacious-wrapper > #advert,
.directors-hub-container > #advert,
.modern-ad-slot {
    margin-top: 24px !important;
}