:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-900: #78350f;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --line: rgba(234, 88, 12, 0.18);
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-strong: 0 24px 70px rgba(120, 53, 15, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 42%, var(--orange-50));
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.12);
    backdrop-filter: blur(16px);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark,
.footer-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-400), var(--amber-600));
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.brand-title {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-600);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.hero-search input,
.filter-box input,
.mobile-panel input {
    min-width: 220px;
    padding: 11px 16px;
    border: 1px solid var(--orange-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.hero-search input:focus,
.filter-box input:focus,
.mobile-panel input:focus {
    border-color: var(--orange-400);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.top-search button,
.hero-search button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    padding: 11px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: var(--orange-600);
    background: #ffffff;
    border: 1px solid var(--orange-200);
    border-radius: 14px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 12px;
}

.mobile-panel.open {
    display: grid;
}

.mobile-panel a {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 800;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--orange-400), var(--amber-500));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 22%),
        linear-gradient(90deg, rgba(124, 45, 18, 0.88), rgba(234, 88, 12, 0.62) 45%, rgba(120, 53, 15, 0.38));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 740px;
    margin: 16px 0 18px;
    font-size: clamp(44px, 8vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 30px;
    color: var(--amber-50);
    font-size: clamp(18px, 2.2vw, 26px);
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    color: #7c2d12;
    background: rgba(255, 251, 235, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 8px 15px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    color: var(--orange-600);
    background: #ffffff;
}

.btn.full {
    width: 100%;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.feature-strip {
    margin-top: -46px;
    position: relative;
    z-index: 8;
}

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

.feature-grid article {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.feature-grid span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-400), var(--amber-500));
    border-radius: 999px;
    font-weight: 900;
}

.feature-grid h2 {
    margin: 16px 0 4px;
    font-size: 20px;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

.warm-section {
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

.orange-section {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
}

.orange-section .section-heading h2,
.orange-section .section-heading p,
.orange-section .section-link {
    color: #ffffff;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-600);
    font-weight: 900;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(234, 88, 12, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-100), var(--amber-200));
}

.poster-wrap img,
.movie-card-wide img,
.category-cover-stack img,
.rank-hero-card img,
.ranking-row img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-wrap img,
.movie-card-wide:hover img,
.rank-hero-card:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    color: #ffffff;
    background: linear-gradient(90deg, #ef4444, var(--orange-500));
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h2,
.movie-card-wide h2 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card p,
.movie-card-wide p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    color: var(--orange-600);
    background: var(--orange-50);
    border: 1px solid var(--orange-200);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 13px;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 38% 1fr;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-wide > img {
    aspect-ratio: 3 / 4;
}

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

.category-badge {
    display: grid;
    min-height: 150px;
    padding: 24px;
    color: #7c2d12;
    background: linear-gradient(135deg, #ffffff, var(--orange-50));
    border: 1px solid var(--orange-200);
    border-radius: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-badge strong {
    font-size: 22px;
    font-weight: 950;
}

.category-badge span {
    color: var(--muted);
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.rank-panel h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.rank-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

.rank-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: var(--orange-50);
    border-radius: 16px;
}

.rank-no {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.page-hero,
.category-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
}

.page-hero {
    padding: 82px 0 74px;
}

.small-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 20%),
        linear-gradient(135deg, var(--orange-500), var(--amber-600));
}

.page-hero h1,
.category-hero h1 {
    max-width: 840px;
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--amber-50);
    font-size: 18px;
}

.hero-search {
    display: flex;
    gap: 12px;
    width: min(720px, 100%);
    margin-top: 28px;
}

.hero-search input {
    flex: 1;
}

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

.category-panel {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 320px;
    overflow: hidden;
    background: var(--orange-100);
}

.category-panel-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
}

.category-panel h1 {
    margin: 12px 0 10px;
    color: var(--text);
    font-size: 30px;
    font-weight: 950;
}

.category-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.mini-links a {
    color: var(--orange-600);
    font-size: 14px;
    font-weight: 800;
}

.category-hero {
    min-height: 430px;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.category-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.88), rgba(217, 119, 6, 0.56), rgba(0, 0, 0, 0.24));
}

.category-hero-content {
    position: relative;
    z-index: 2;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 900;
}

.filter-box input {
    min-width: 260px;
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.rank-hero-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.rank-hero-card img {
    position: absolute;
    inset: 0;
}

.rank-hero-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.rank-hero-card span,
.rank-hero-card h2,
.rank-hero-card p {
    position: relative;
    z-index: 2;
}

.rank-hero-card span {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 14px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
    font-weight: 950;
}

.rank-hero-card h2 {
    margin: 132px 16px 8px;
    color: #ffffff;
    font-size: 18px;
}

.rank-hero-card p {
    display: -webkit-box;
    margin: 0 16px 16px;
    overflow: hidden;
    color: var(--amber-100);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-table {
    display: grid;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.ranking-row {
    display: grid;
    grid-template-columns: 76px 70px minmax(0, 1fr) 130px 80px;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(234, 88, 12, 0.1);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row:hover {
    background: var(--orange-50);
}

.ranking-number {
    color: var(--orange-600);
    font-size: 22px;
    font-weight: 950;
}

.ranking-row img {
    width: 70px;
    height: 94px;
    border-radius: 12px;
    background: var(--orange-100);
}

.ranking-name strong {
    display: block;
    font-size: 17px;
}

.ranking-name em {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-600);
    font-weight: 800;
}

.movie-detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #1f2937;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(1.1);
    transform: scale(1.08);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(124, 45, 18, 0.72)),
        radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.28), transparent 30%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 58px 0 70px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 6px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    background: var(--orange-100);
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 820px;
    margin: 0 0 18px;
    color: var(--amber-50);
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    color: #7c2d12;
    background: rgba(255, 251, 235, 0.92);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
}

.large-tags {
    margin-bottom: 24px;
}

.player-section {
    padding-top: 50px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
    border: 0;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-button {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.4);
    font-size: 30px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.detail-side {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-article {
    padding: 32px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 28px;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
}

.detail-article p:last-child {
    margin-bottom: 0;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
}

.detail-pager {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.detail-pager a {
    display: block;
    padding: 12px 14px;
    color: var(--orange-600);
    background: var(--orange-50);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-900), #7c2d12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand strong {
    display: block;
    font-size: 24px;
}

.footer-brand span:last-child {
    display: block;
    color: var(--amber-200);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
    color: var(--amber-100);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--amber-200);
}

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

.footer-bottom {
    padding: 18px 0;
    color: var(--amber-200);
    text-align: center;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .top-search {
        display: none;
    }

    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wide-grid,
    .category-grid,
    .rank-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand-title {
        font-size: 24px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .feature-grid,
    .movie-grid,
    .compact-grid,
    .wide-grid,
    .category-grid,
    .category-panel-grid,
    .rank-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        max-width: 280px;
    }

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

    .ranking-row > span:nth-last-child(-n + 2) {
        display: none;
    }

    .ranking-row img {
        width: 58px;
        height: 78px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .nav-bar {
        min-height: 68px;
        gap: 12px;
    }

    .brand-mark,
    .footer-mark {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 520px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-actions,
    .hero-search,
    .mobile-panel form {
        flex-direction: column;
    }

    .hero-search input,
    .mobile-panel input {
        min-width: 0;
        width: 100%;
    }

    .feature-grid,
    .movie-grid,
    .compact-grid,
    .wide-grid,
    .category-grid,
    .category-panel-grid,
    .rank-hero-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 120px 1fr;
    }

    .category-cover-stack {
        min-height: 260px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .filter-box {
        display: grid;
        width: 100%;
    }

    .filter-box input {
        min-width: 0;
        width: 100%;
    }

    .detail-layout {
        padding: 36px 0 46px;
    }

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

    .play-button {
        width: 68px;
        height: 68px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
