:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-50: #fefce8;
    --yellow-500: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 18px 55px rgba(120, 53, 15, 0.14);
    --shadow-card: 0 12px 34px rgba(120, 53, 15, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 52%, var(--yellow-50));
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 252, 232, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 10px 18px rgba(234, 88, 12, 0.24));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    color: var(--amber-800);
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--amber-600);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--amber-700);
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a,
.nav-group-trigger {
    position: relative;
    padding: 8px 0;
    color: var(--amber-700);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.desktop-nav a:hover,
.nav-group-trigger:hover {
    color: var(--orange-600);
}

.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 36px;
    left: 50%;
    min-width: 150px;
    padding: 10px;
    display: grid;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: 0.22s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown a {
    padding: 8px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: var(--orange-50);
}

.header-search {
    position: relative;
    width: min(280px, 24vw);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-800);
    outline: none;
    transition: 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 54px 0 17px;
    border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--orange-600);
    transform: translateY(-50%);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--orange-100);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-800);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 14px auto;
    max-width: 720px;
}

.mobile-search input {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.mobile-search button {
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--orange-600);
}

.mobile-panel nav {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-panel nav a {
    padding: 11px 14px;
    color: var(--amber-800);
    background: #fff;
    border-radius: 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    height: min(620px, 72vh);
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 54%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 74px;
    width: min(1180px, calc(100% - 40px));
    color: #fff;
    transform: translateX(-50%);
}

.hero-content h1 {
    max-width: 740px;
    margin: 16px 0 14px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 690px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.hero-kicker,
.category-pill,
.tag,
.duration,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.hero-kicker {
    padding: 8px 16px;
    color: #fff;
    background: var(--orange-500);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
    font-size: 14px;
    font-weight: 800;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.light-button,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--orange-600);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.3);
}

.primary-button:hover {
    background: var(--orange-700);
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    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.52);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #fff;
}

.content-section,
.rank-band-inner,
.detail-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.content-section {
    padding: 58px 0;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
    font-size: 22px;
}

.section-more {
    color: var(--orange-600);
    font-weight: 800;
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 290px;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.rail-button {
    position: absolute;
    top: 44%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    font-size: 30px;
}

.rail-left {
    left: -14px;
}

.rail-right {
    right: -14px;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(120, 53, 15, 0.18);
}

.card-link,
.card-body,
.card-poster {
    display: block;
}

.card-poster {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

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

.movie-card:hover .card-poster img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    font-size: 42px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-style: normal;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 32px;
    height: 32px;
    color: #fff;
    background: var(--orange-600);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body strong {
    display: block;
    min-height: 27px;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-body em {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 6px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.score-line,
.meta-line {
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.movie-card-horizontal .card-link {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 16px;
    padding: 14px;
}

.movie-card-horizontal .card-poster {
    height: 128px;
    border-radius: 14px;
}

.movie-card-horizontal .card-body {
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.large-poster {
    height: 360px;
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 62%);
}

.category-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    color: #fff;
    background: var(--orange-500);
    font-size: 13px;
    font-weight: 800;
}

.large-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
}

.large-copy strong,
.large-copy em {
    display: block;
}

.large-copy strong {
    font-size: 26px;
    font-weight: 900;
}

.large-copy em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.6;
}

.compact-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-600);
    font-weight: 700;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff, var(--orange-50));
    box-shadow: var(--shadow-card);
    transition: 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-tile strong {
    color: var(--gray-900);
    font-size: 22px;
}

.category-tile em {
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.tile-preview {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    color: var(--amber-700);
    font-size: 13px;
}

.tile-preview span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-band {
    background: linear-gradient(135deg, var(--orange-100), var(--amber-100));
}

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

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

.small-top {
    margin-top: 28px;
}

.cta-band {
    padding: 76px 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
}

.cta-band h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.cta-band p {
    margin: 0 auto 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.light-button {
    color: var(--orange-600);
    background: #fff;
}

.page-hero {
    padding: 78px 20px;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.page-hero h1 {
    margin: 0 auto 16px;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

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

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

.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: 0.24s ease;
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 250px;
}

.overview-covers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    background: var(--amber-100);
}

.overview-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-covers img:first-child {
    grid-row: span 2;
}

.overview-copy {
    padding: 28px;
}

.overview-copy h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 28px;
}

.overview-copy p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.75;
}

.overview-names {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 160px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    height: 46px;
    padding: 0 14px;
    border-radius: 999px;
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    padding: 28px;
    color: var(--gray-600);
    text-align: center;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.empty-state.is-visible {
    display: block;
}

.rank-page-section {
    padding-top: 46px;
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
}

.rank-item a {
    display: grid;
    grid-template-columns: 64px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 20px 12px 12px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 14px;
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--amber-100);
}

.rank-copy strong,
.rank-copy em,
.rank-copy span {
    display: block;
}

.rank-copy strong {
    color: var(--gray-900);
    font-size: 18px;
}

.rank-copy em {
    margin: 4px 0;
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.45;
}

.rank-copy span {
    color: var(--gray-500);
    font-size: 13px;
}

.rank-score {
    color: var(--amber-700);
    font-size: 20px;
    font-weight: 900;
}

.detail-wrap {
    padding: 36px 0 0;
}

.detail-breadcrumb {
    justify-content: flex-start;
    margin: 0 0 22px;
    color: var(--amber-700);
}

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

.detail-main,
.detail-side .side-card,
.player-card {
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.player-card {
    padding: 14px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #050505;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #050505;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #fff;
    background: var(--orange-600);
    box-shadow: 0 18px 46px rgba(234, 88, 12, 0.36);
    font-size: 34px;
}

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

.detail-copy {
    padding: 28px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 14px;
    font-weight: 800;
}

.lead-text {
    margin: 22px 0;
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1.85;
}

.tag-row {
    margin-bottom: 28px;
}

.tag {
    padding: 6px 12px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-size: 13px;
    font-weight: 800;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-copy p {
    color: var(--gray-700);
    line-height: 1.95;
}

.detail-side {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--amber-100);
    box-shadow: var(--shadow-card);
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.side-card dt {
    color: var(--gray-500);
}

.side-card dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 700;
}

.side-link {
    color: #fff;
    background: var(--orange-600);
}

.related-section {
    padding-top: 44px;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 36px;
}

.footer-logo .brand-text strong,
.footer-logo .brand-text small {
    color: var(--amber-50);
}

.footer-inner h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-inner p {
    margin: 14px 0 0;
    color: var(--amber-200);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--amber-200);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: var(--amber-200);
    font-size: 14px;
}

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

    .header-search {
        width: 220px;
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 240px 1fr;
    }

    .side-link {
        grid-column: 1 / -1;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        bottom: 76px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .category-movie-grid,
    .category-grid,
    .horizontal-grid,
    .feature-grid,
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .category-overview-card a {
        grid-template-columns: 1fr;
    }

    .overview-covers {
        height: 210px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .header-inner {
        height: 64px;
        padding: 0 14px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        width: calc(100% - 28px);
    }

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .content-section,
    .rank-band-inner,
    .detail-wrap {
        width: calc(100% - 28px);
    }

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

    .movie-grid,
    .category-movie-grid,
    .category-grid,
    .horizontal-grid,
    .feature-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .movie-rail {
        grid-auto-columns: 82%;
    }

    .rail-button {
        display: none;
    }

    .movie-card-horizontal .card-link {
        grid-template-columns: 1fr;
    }

    .rank-item a {
        grid-template-columns: 44px 74px 1fr;
        gap: 12px;
        padding-right: 12px;
    }

    .rank-score {
        grid-column: 3;
        font-size: 16px;
    }

    .detail-copy {
        padding: 22px;
    }

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

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

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