:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --rose-500: #f43f5e;
    --blue-500: #3b82f6;
    --green-500: #22c55e;
    --purple-500: #a855f7;
    --cyan-500: #06b6d4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(146, 64, 14, 0.08);
    --shadow-md: 0 12px 34px rgba(146, 64, 14, 0.14);
    --shadow-lg: 0 24px 60px rgba(146, 64, 14, 0.2);
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 420px);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 235, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--amber-200);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    width: min(var(--container), calc(100% - 32px));
    height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.35);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber-800), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--amber-700);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--amber-800);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    background: var(--amber-100);
    color: var(--amber-900);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--amber-200);
    border-radius: 999px;
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 8px 8px 8px 14px;
    background: transparent;
}

.header-search button {
    border: 0;
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--amber-100);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--amber-800);
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    padding: 0 0 16px;
    border-top: 1px solid var(--amber-200);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-700), var(--orange-500), var(--amber-700));
}

.hero-pattern,
.sub-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.23;
    background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 58px 58px;
}

.hero-slider {
    position: relative;
    min-height: 580px;
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.78fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: -80px calc(45% - 80px) -80px -80px;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.08);
    opacity: 0.22;
    transform: scale(1.08);
}

.hero-backdrop::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(217, 119, 6, 0.72), rgba(234, 88, 12, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-intro h1 {
    margin: 14px 0 18px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p,
.sub-hero p,
.detail-intro p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.movie-tags,
.footer-badges,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 26px 0;
}

.hero-tags span,
.movie-tags span,
.movie-tags a,
.footer-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

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

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

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 28px rgba(234, 88, 12, 0.28);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.button-soft {
    color: var(--amber-900);
    background: var(--amber-100);
}

.hero-cover {
    position: relative;
    z-index: 3;
    justify-self: end;
    width: min(390px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-cover img,
.detail-poster,
.movie-poster img,
.featured-image img,
.ranking-cover img,
.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 30px;
    background: var(--white);
}

.hero-category-wrap {
    position: relative;
    z-index: 4;
    width: min(var(--container), calc(100% - 32px));
    margin: -56px auto 0;
    padding: 28px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: rgba(120, 53, 15, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    backdrop-filter: blur(16px);
}

.hero-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.hero-title-row h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
}

.hero-title-row p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
}

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

.category-tile,
.overview-tile {
    min-height: 124px;
    padding: 22px;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.overview-tile:hover {
    transform: translateY(-5px) rotate(-1deg) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.category-tile span,
.overview-icon {
    font-size: 34px;
}

.tile-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.tile-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.tile-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tile-green { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.tile-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.tile-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.tile-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tile-orange { background: linear-gradient(135deg, #fb923c, #f59e0b); }
.tile-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.tile-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.tile-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.tile-slate { background: linear-gradient(135deg, #64748b, #334155); }

.page-stack {
    display: grid;
    gap: 64px;
    padding-block: 54px 72px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.2);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 4px 0 0;
    color: var(--gray-500);
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    overflow: hidden;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.featured-image {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 24px;
}

.featured-image img,
.movie-poster img,
.horizontal-card img,
.ranking-cover img {
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img,
.movie-card:hover .movie-poster img,
.horizontal-card:hover img,
.ranking-item:hover .ranking-cover img {
    transform: scale(1.08);
}

.featured-image::after,
.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    opacity: 0.88;
}

.featured-play,
.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--amber-500);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.featured-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 30px;
}

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

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.featured-copy .eyebrow {
    color: var(--amber-700);
}

.featured-copy h3 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.featured-copy p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.85;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta.strong {
    color: var(--amber-800);
    font-weight: 800;
}

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

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

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 2px 22px;
    scroll-snap-type: x mandatory;
}

.rail .movie-card {
    scroll-snap-align: start;
}

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

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--amber-100);
}

.poster-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.poster-duration {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-tags {
    margin-bottom: 10px;
}

.movie-tags span,
.movie-tags a {
    color: var(--amber-800);
    background: var(--amber-100);
}

.movie-tags a:hover {
    background: var(--amber-200);
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.featured-copy h3 a:hover,
.ranking-copy h2 a:hover {
    color: var(--amber-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--gray-500);
    line-height: 1.65;
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact .movie-card-body {
    padding: 14px;
}

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

.horizontal-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.horizontal-card img {
    height: 76px;
    border-radius: 14px;
}

.horizontal-text {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.horizontal-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-text small {
    color: var(--gray-500);
}

.rank-list,
.ranking-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    background: #fff7ed;
}

.rank-number,
.ranking-rank {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    color: var(--gray-500);
    background: var(--gray-100);
}

.rank-number.hot,
.ranking-rank.gold {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-row img {
    width: 92px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small,
.rank-row em {
    color: var(--gray-500);
    font-style: normal;
}

.center-action {
    justify-content: center;
    margin-top: 26px;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-800), var(--orange-500), var(--amber-700));
    padding: 72px 0;
}

.sub-hero .container {
    position: relative;
    z-index: 2;
}

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

.stats-strip span {
    padding: 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.stats-strip strong {
    display: block;
    font-size: 34px;
    color: var(--amber-600);
}

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

.overview-tile {
    min-height: 150px;
}

.overview-tile small {
    color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--amber-900);
    font-weight: 900;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--amber-200);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    background: var(--amber-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.filter-count {
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
    text-align: center;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--gray-500);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 142px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ranking-rank {
    width: 46px;
    height: 46px;
}

.ranking-cover {
    height: 92px;
    overflow: hidden;
    border-radius: 16px;
}

.ranking-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-copy p {
    display: -webkit-box;
    margin: 0 0 10px;
    color: var(--gray-500);
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-score {
    text-align: right;
    color: var(--gray-500);
}

.ranking-score strong {
    display: block;
    color: var(--amber-600);
    font-size: 24px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--amber-900);
    padding: 72px 0;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.detail-tags {
    margin: 24px 0;
}

.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 26px;
}

.detail-metrics span {
    min-width: 118px;
    padding: 13px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.detail-metrics strong {
    display: block;
    color: var(--white);
    font-size: 24px;
}

.detail-stack {
    padding-top: 46px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(0, 0, 0, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.42);
    font-size: 30px;
}

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

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

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    margin: 0;
    color: var(--amber-100);
    text-align: center;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 22px;
}

.content-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
}

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

.info-card dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    color: var(--amber-100);
    background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-grid {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 52px 0 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 17px;
    color: var(--white);
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
    color: var(--amber-200);
    line-height: 1.75;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-badges {
    margin-top: 16px;
}

.footer-badges span {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: var(--amber-300);
}

.footer-bottom button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1160px) {
    .desktop-nav a:nth-last-child(-n + 4) {
        display: none;
    }

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

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-slide,
    .featured-card,
    .editor-layout,
    .detail-hero-inner,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        align-content: center;
        gap: 26px;
    }

    .hero-cover {
        justify-self: start;
        width: min(320px, 78vw);
    }

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

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

    .ranking-item {
        grid-template-columns: 46px 110px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
        text-align: left;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

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

    .brand-text small {
        display: none;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-title-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1,
    .sub-hero h1,
    .detail-intro h1 {
        font-size: 38px;
    }

    .hero p,
    .sub-hero p,
    .detail-intro p {
        font-size: 16px;
    }

    .hero-category-wrap {
        padding: 20px;
    }

    .category-tile-grid,
    .movie-grid,
    .large-grid,
    .overview-grid,
    .stats-strip,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 240px;
    }

    .rank-row {
        grid-template-columns: 34px 78px minmax(0, 1fr);
    }

    .rank-row em {
        grid-column: 3;
    }

    .ranking-item {
        grid-template-columns: 40px 88px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ranking-copy p {
        display: none;
    }

    .detail-hero {
        padding: 44px 0;
    }

    .detail-poster {
        width: min(260px, 75vw);
    }

    .detail-metrics span {
        min-width: 0;
        flex: 1 1 130px;
    }

    .content-card {
        padding: 20px;
    }
}
