:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111c33;
    --card: #1e293b;
    --card-hover: #263449;
    --border: #1e293b;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --muted-dark: #64748b;
    --white: #ffffff;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #ea580c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 18px 45px rgba(245, 158, 11, 0.14);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 28rem),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.08), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.brand-name {
    font-size: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.4);
}

.header-search input {
    width: 160px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 6px 8px;
}

.header-search button,
.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.primary-button {
    border: 0;
    color: var(--white);
    background: var(--amber);
}

.header-search button {
    padding: 6px 12px;
}

.primary-button {
    min-height: 46px;
    padding: 0 22px;
    box-shadow: var(--soft-shadow);
}

.header-search button:hover,
.primary-button:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
}

.ghost-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
}

.ghost-button:hover {
    border-color: rgba(245, 158, 11, 0.65);
    color: #fbbf24;
}

.text-link {
    color: #fbbf24;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--white);
    background: var(--panel);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.98);
    padding: 12px 24px 20px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-nav.is-open {
    display: block;
}

.page-main {
    min-height: 60vh;
}

.home-container,
.page-container {
    padding: 36px 0 0;
}

.home-container > * + *,
.page-container > * + * {
    margin-top: 56px;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: clamp(24px, 7vw, 90px);
    z-index: 2;
    width: min(640px, calc(100% - 48px));
    transform: translateY(-50%);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span,
.category-count,
.eyebrow,
.poster-meta,
.rank-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.category-count,
.eyebrow,
.rank-badge {
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
}

.hero-tags span {
    padding: 5px 10px;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    margin: 18px 0 18px;
    color: var(--white);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #dbe4ef;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 36px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.ranking-block h2 {
    margin: 0;
    color: var(--white);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-heading p,
.page-hero p,
.ranking-block p,
.category-card p,
.category-large-body p,
.site-footer p {
    margin: 8px 0 0;
    color: var(--muted);
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}

.featured-main,
.featured-side-item,
.movie-card,
.category-card,
.category-large-card,
.detail-info-card,
.sidebar-card,
.ranking-table-block,
.filter-panel,
.page-hero,
.ranking-block {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.featured-main {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.featured-main img,
.featured-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transition: transform 0.5s ease;
}

.featured-main:hover img,
.featured-side-item:hover img,
.movie-card:hover img,
.side-related-item:hover img {
    transform: scale(1.08);
}

.featured-main-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 48px 30px 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

.featured-main-overlay span {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber);
    font-size: 13px;
    font-weight: 700;
}

.featured-main-overlay h3 {
    margin: 14px 0 8px;
    color: var(--white);
    font-size: clamp(26px, 4vw, 38px);
}

.featured-main-overlay p {
    max-width: 760px;
    margin: 0;
    color: #dbe4ef;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.featured-side-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 108px;
    overflow: hidden;
    background: var(--card);
}

.featured-side-item div {
    padding: 14px;
}

.featured-side-item strong,
.side-related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--white);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-side-item span,
.side-related-item span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.movie-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.movie-rail .movie-card {
    flex: 0 0 246px;
}

.rail-controls {
    display: flex;
    gap: 8px;
}

.rail-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    font-size: 28px;
}

.movie-card {
    overflow: hidden;
    background: var(--card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    background: var(--card-hover);
    box-shadow: var(--soft-shadow);
    transform: translateY(-4px);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent),
        linear-gradient(135deg, #1e293b, #0f172a);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 52%);
    opacity: 0.82;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.25);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 8px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--white);
    font-size: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
    color: #fbbf24;
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted-dark);
    font-size: 12px;
}

.category-overview-strip,
.content-section,
.featured-section,
.detail-more-section {
    position: relative;
}

.category-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 55%),
        rgba(15, 23, 42, 0.9);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-large-card:hover {
    border-color: rgba(245, 158, 11, 0.48);
    transform: translateY(-3px);
}

.category-card h3 {
    margin: 14px 0 4px;
    color: var(--white);
    font-size: 20px;
}

.category-count {
    padding: 5px 10px;
}

.ranking-block {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.4fr);
    gap: 32px;
    padding: clamp(28px, 5vw, 52px);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 40%);
}

.eyebrow {
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-block h2 {
    margin-top: 16px;
    font-size: clamp(30px, 5vw, 48px);
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-row,
.ranking-table-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.45);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ranking-row {
    grid-template-columns: 56px 1fr auto;
    padding: 13px 16px;
}

.ranking-row:hover,
.ranking-table-row:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.08);
}

.ranking-number {
    color: #fbbf24;
    font-weight: 900;
}

.ranking-row strong {
    color: var(--white);
}

.ranking-row em,
.ranking-table-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.page-hero {
    padding: clamp(30px, 6vw, 64px);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 48%),
        rgba(15, 23, 42, 0.88);
}

.compact-hero h1 {
    margin-top: 14px;
    font-size: clamp(34px, 5vw, 58px);
}

.centered-hero {
    text-align: center;
}

.centered-hero .inline-actions {
    justify-content: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.category-large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-large-card {
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-large-card a {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 220px;
}

.category-image-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background: #0f172a;
}

.category-image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.category-large-body {
    padding: 24px;
}

.category-large-body span {
    color: #fbbf24;
    font-weight: 800;
}

.category-large-body h2 {
    margin: 12px 0 8px;
    color: var(--white);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.3fr));
    gap: 12px;
    padding: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    outline: 0;
    color: var(--white);
    background: rgba(2, 6, 23, 0.45);
    padding: 12px 14px;
}

.search-count {
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    padding: 32px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.ranking-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ranking-table-block {
    padding: 24px;
}

.ranking-table-block h2 {
    margin: 0 0 18px;
    color: var(--white);
}

.ranking-table {
    display: grid;
    gap: 8px;
}

.ranking-table-row {
    grid-template-columns: 56px minmax(0, 1fr) 120px 90px minmax(120px, 0.7fr);
    padding: 10px 14px;
}

.ranking-table-row span {
    color: #fbbf24;
    font-weight: 900;
}

.ranking-table-row strong {
    overflow: hidden;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
}

.detail-main > * + * {
    margin-top: 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.28);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 18px;
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.detail-info-card {
    padding: clamp(22px, 4vw, 34px);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-info-card h1 {
    margin-top: 14px;
    font-size: clamp(30px, 4.6vw, 48px);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 10px 12px;
    border-radius: 12px;
    color: #dbe4ef;
    background: rgba(30, 41, 59, 0.72);
    font-size: 14px;
}

.one-line {
    margin: 0 0 24px;
    color: #fbbf24;
    font-size: 18px;
}

.text-block {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 22px;
    margin-top: 22px;
}

.text-block h2,
.tag-block h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: #cbd5e1;
}

.tag-block {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    margin-top: 22px;
    padding-top: 22px;
}

.tag-list span {
    padding: 7px 11px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.9);
}

.sticky-card {
    position: sticky;
    top: 92px;
}

.sidebar-card {
    padding: 20px;
}

.side-related-list {
    display: grid;
    gap: 14px;
}

.side-related-item {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.side-related-item:hover {
    background: rgba(30, 41, 59, 0.72);
}

.side-related-item img {
    width: 116px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transition: transform 0.5s ease;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) 1fr 1fr;
    gap: 36px;
    padding: 42px 0;
}

.footer-brand {
    font-size: 20px;
}

.footer-brand-block p {
    max-width: 560px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--muted);
    font-size: 14px;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 16px;
    color: var(--muted-dark);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.compact-card .card-body p {
    min-height: 0;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
    }

    .header-search input {
        width: 126px;
    }

    .movie-grid,
    .category-strip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: 2;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 960px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .featured-grid,
    .ranking-block,
    .category-large-card a,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-image-stack {
        min-height: 220px;
    }

    .movie-grid,
    .category-strip-grid,
    .ranking-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-table-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .ranking-table-row em {
        display: none;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .home-container,
    .page-container {
        padding-top: 24px;
    }

    .hero-carousel {
        min-height: 560px;
        height: 72vh;
        border-radius: 18px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
    }

    .hero-content {
        top: auto;
        right: 18px;
        bottom: 68px;
        left: 18px;
        width: auto;
        transform: none;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .category-strip-grid,
    .category-large-grid,
    .ranking-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-rail .movie-card {
        flex-basis: 220px;
    }

    .featured-side-item {
        grid-template-columns: 118px 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .side-related-item {
        grid-template-columns: 104px 1fr;
    }
}

@media (max-width: 480px) {
    .brand-name {
        display: none;
    }

    .movie-grid,
    .category-strip-grid,
    .ranking-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 14px;
        min-height: 42px;
    }

    .card-body p {
        display: none;
    }

    .card-meta {
        flex-direction: column;
        gap: 2px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 24px;
    }
}


.sitemap-list {
    columns: 4 220px;
    margin: 0;
    padding-left: 20px;
}

.sitemap-list li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.sitemap-list a {
    color: var(--muted);
}

.sitemap-list a:hover {
    color: #fbbf24;
}
