:root {
    --color-bg: #ffffff;
    --color-soft: #fff7ed;
    --color-soft-strong: #ffedd5;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #f3d2a7;
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-dark: #111827;
    --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 10px 30px rgba(245, 158, 11, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -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;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.20);
    backdrop-filter: blur(18px);
}

.nav-shell,
.section-shell,
.footer-shell {
    width: min(var(--shell), calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), #fb923c);
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 21px;
    font-weight: 800;
    color: #1f2937;
}

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

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

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

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    width: 330px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.dropdown-panel a:hover {
    color: var(--color-primary-dark);
    background: var(--color-soft);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(300px, 28vw);
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #fff;
    border-radius: 999px;
    background: var(--color-primary);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border: 0;
    background: transparent;
}

.mobile-menu-button span {
    width: 24px;
    height: 2px;
    background: #374151;
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
    background: #fff;
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.mobile-menu a {
    padding: 8px 0;
    color: #374151;
    font-weight: 700;
}

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

.hero-carousel {
    position: relative;
    height: 600px;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 1.1s ease;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.18)),
        var(--hero-image),
        radial-gradient(circle at 75% 28%, rgba(245, 158, 11, 0.35), transparent 30%);
    background-size: cover;
    background-position: center;
}

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

.hero-background-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 48%, rgba(17, 24, 39, 0.45));
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    width: min(var(--shell), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    padding: 72px 0 112px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-one-line {
    margin: 20px 0 8px;
    color: #f9fafb;
    font-size: clamp(18px, 2.3vw, 24px);
    font-weight: 700;
}

.hero-summary {
    display: -webkit-box;
    max-width: 680px;
    margin: 0 0 24px;
    overflow: hidden;
    color: #d1d5db;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 11px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.primary-button {
    padding: 13px 26px;
    color: #fff;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

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

.primary-button.small {
    padding: 10px 18px;
    font-size: 14px;
}

.ghost-button {
    padding: 12px 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(17, 24, 39, 0.40));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 13px;
    color: #fff;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

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

.hero-arrow-left {
    left: 24px;
}

.hero-arrow-right {
    right: 24px;
}

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

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

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

.hero-thumbs {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100vw - var(--shell)) / 2));
    bottom: 28px;
    display: flex;
    gap: 10px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 42px 100px;
    align-items: center;
    gap: 10px;
    width: 160px;
    padding: 8px;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(14px);
    opacity: 0.78;
}

.hero-thumb.is-active {
    opacity: 1;
    border-color: rgba(245, 158, 11, 0.75);
}

.hero-thumb img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(245, 158, 11, 0.25);
}

.hero-thumb span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.warm-section {
    background: linear-gradient(90deg, var(--color-soft), #fff7ed);
}

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

.section-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 15px;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

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

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 282px;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 24px;
    scroll-snap-type: x proximity;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    background:
        radial-gradient(circle at 40% 30%, rgba(245, 158, 11, 0.34), transparent 38%),
        linear-gradient(135deg, #1f2937, #111827);
}

.poster-wrap::after,
.rank-poster::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.72));
    pointer-events: none;
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    color: #fff;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.92);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

.movie-card h3,
.movie-card h2,
.rank-card h2 {
    margin: 0 0 8px;
    line-height: 1.25;
}

.movie-card h3 {
    font-size: 19px;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
    color: var(--color-primary-dark);
}

.movie-card p,
.rank-card p {
    margin: 0 0 14px;
    color: var(--color-muted);
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-tags span,
.mini-tags span {
    padding: 4px 8px;
    color: var(--color-primary-dark);
    background: var(--color-soft);
}

.text-link {
    color: var(--color-primary-dark);
    font-size: 14px;
}

.text-link:hover {
    transform: translateX(3px);
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
}

.movie-card-horizontal .poster-wrap {
    min-height: 100%;
}

.movie-card-horizontal .poster-wrap img {
    height: 100%;
    min-height: 180px;
}

.movie-list {
    display: grid;
    gap: 18px;
}

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

.rank-panel,
.info-card,
.prose-card {
    border: 1px solid rgba(245, 158, 11, 0.20);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rank-panel-head h2 {
    margin: 0;
}

.rank-panel-head a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

.rank-panel li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f1d7b5;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), #fb923c);
    font-weight: 900;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 24px;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    transition: 0.25s ease;
}

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

.category-card-covers,
.category-overview-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    min-height: 116px;
    padding: 8px;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.category-card-covers img,
.category-overview-covers img {
    width: 100%;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(245, 158, 11, 0.18);
}

.category-card-body,
.category-overview-body {
    padding: 18px;
}

.category-card-body h3,
.category-overview-body h2 {
    margin: 0 0 8px;
}

.category-card-body p,
.category-overview-body p {
    margin: 0 0 12px;
    color: var(--color-muted);
}

.category-card-body span,
.category-stats span,
.hero-count {
    display: inline-flex;
    padding: 6px 10px;
    color: var(--color-primary-dark);
    border-radius: 999px;
    background: var(--color-soft);
    font-size: 13px;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
}

.category-overview-covers {
    grid-template-columns: repeat(3, 1fr);
    min-height: 100%;
}

.category-overview-covers img {
    height: 96px;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.36), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #e5e7eb;
}

.compact-hero {
    padding: 70px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.filter-search label,
.filter-selects label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    padding: 12px 14px;
    border-radius: 14px;
}

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

.filter-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-muted);
}

.filter-result-line button {
    border: 0;
    color: var(--color-primary-dark);
    background: transparent;
    font-weight: 800;
}

.empty-state {
    padding: 60px 24px;
    text-align: center;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-lg);
    background: var(--color-soft);
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--color-muted);
}

.rank-list-page {
    display: grid;
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.rank-poster {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.rank-poster img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 14px;
    background: var(--color-primary);
    font-weight: 900;
}

.rank-card-body {
    padding: 6px 8px 6px 0;
}

.score-bar {
    height: 8px;
    overflow: hidden;
    margin: 14px 0;
    border-radius: 999px;
    background: #f3f4f6;
}

.score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), #fb923c);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.28)),
        var(--detail-image),
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.35), transparent 30%);
    background-size: cover;
    background-position: center;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 65%);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 58px 0 72px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 24px;
    background: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
    color: #fff;
    border-radius: 999px;
    background: var(--color-primary);
    font-weight: 800;
}

.detail-one-line {
    max-width: 780px;
    margin: 18px 0;
    color: #f3f4f6;
    font-size: 21px;
    font-weight: 700;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow-card);
}

.player-title-bar,
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    color: #fff;
    background: #111827;
}

.player-title-bar span:last-child {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.big-play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.88);
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.34);
    font-size: 30px;
    transition: 0.2s ease;
}

.player-card.is-playing .big-play-button {
    opacity: 0;
    pointer-events: none;
}

.big-play-button:hover {
    transform: scale(1.08);
}

.player-loading,
.player-error {
    position: absolute;
    left: 50%;
    bottom: 24px;
    max-width: calc(100% - 40px);
    padding: 10px 14px;
    color: #fff;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    transform: translateX(-50%);
}

.player-error {
    background: rgba(185, 28, 28, 0.88);
}

.player-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.player-controls button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 12px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.player-controls button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.detail-article,
.info-card {
    padding: 24px;
}

.detail-article {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: #fff;
}

.detail-article h2,
.info-card h2 {
    margin: 0 0 12px;
}

.detail-article p,
.info-card p {
    margin: 0 0 20px;
    color: #4b5563;
}

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

.detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

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

.info-card dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f1d7b5;
}

.info-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
}

.notice-card {
    background: var(--color-soft);
}

.narrow-shell {
    max-width: 860px;
}

.prose-card {
    padding: 30px;
}

.prose-card p {
    margin: 0 0 18px;
    color: #4b5563;
}

.site-footer {
    padding: 48px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
    gap: 40px;
}

.brand-in-footer .brand-title {
    color: #fff;
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: #9ca3af;
}

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

.footer-columns h3 {
    margin: 0 0 14px;
    color: #fff;
}

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

.footer-columns a {
    color: #9ca3af;
}

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

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .hero-thumbs {
        display: none;
    }

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

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

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-carousel {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 62px 0 90px;
    }

    .hero-poster {
        display: none;
    }

    .hero-arrow {
        top: auto;
        bottom: 26px;
        transform: none;
    }

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

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

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

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

    .detail-hero-grid {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .detail-poster,
    .detail-poster img {
        min-height: 240px;
        height: 240px;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .section-shell,
    .footer-shell {
        width: min(100% - 24px, var(--shell));
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero-carousel {
        min-height: 590px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-summary {
        -webkit-line-clamp: 4;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow-left {
        left: 16px;
    }

    .hero-arrow-right {
        right: 16px;
    }

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

    .horizontal-scroll {
        grid-auto-columns: 78%;
    }

    .movie-grid.three-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid,
    .filter-selects,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .rank-card,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-poster img,
    .rank-poster {
        height: 230px;
    }

    .player-title-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .info-card dl div {
        grid-template-columns: 1fr;
    }
}
