:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --purple-500: #8b5cf6;
    --blue-500: #3b82f6;
    --pink-500: #ec4899;
    --green-500: #22c55e;
    --cyan-500: #06b6d4;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-600: #57534e;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 20px 60px rgba(120, 53, 15, 0.14);
    --shadow-card: 0 14px 34px rgba(41, 37, 36, 0.12);
    --radius-xl: 24px;
    --radius-2xl: 32px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--stone-900);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 32%, var(--stone-50));
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 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: 1000;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-700), var(--amber-500));
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.24);
}

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

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

.brand-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.2);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(6deg);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.brand-copy em {
    font-style: normal;
    color: var(--amber-100);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}

.main-nav > a,
.nav-dropdown > button {
    color: var(--white);
    border: 0;
    background: transparent;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-dropdown > button:hover {
    color: var(--amber-100);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 180px;
    display: grid;
    gap: 2px;
    padding: 10px;
    color: var(--stone-800);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

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

.nav-dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-dropdown-panel a:hover {
    background: var(--amber-100);
    color: var(--amber-900);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(280px, 28vw);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    min-width: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 11px 82px 11px 16px;
}

.header-search input::placeholder {
    color: var(--amber-100);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    color: var(--amber-700);
    background: var(--white);
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
}

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

.mobile-nav a {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-50), #fed7aa);
}

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

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16;
    filter: blur(16px) saturate(1.1);
    transform: scale(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.75), transparent 28%),
        linear-gradient(90deg, rgba(254, 243, 199, 0.96), rgba(255, 247, 237, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--amber-900);
    font-size: 20px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    color: var(--amber-900);
    background: var(--amber-100);
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.category-more:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    background: var(--amber-700);
}

.ghost-button,
.category-more {
    color: var(--amber-700);
    background: var(--white);
    border: 2px solid var(--amber-600);
}

.hero-poster {
    justify-self: center;
    width: min(100%, 390px);
    max-height: 500px;
    border-radius: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 32px 80px rgba(120, 53, 15, 0.26);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-poster img {
    width: 100%;
    height: 476px;
    object-fit: cover;
    border-radius: 24px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel,
.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 30px;
    align-items: center;
    margin-top: 42px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.quick-search-panel h2,
.section-heading h2,
.intro-copy h2,
.ranking-layout h2,
.page-hero h1 {
    margin: 12px 0 10px;
    color: var(--amber-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.quick-search-panel p,
.section-heading p,
.intro-copy p,
.ranking-layout p,
.page-hero p {
    color: var(--amber-800);
    line-height: 1.8;
}

.quick-search-panel form,
.category-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.quick-search-panel input,
.category-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
}

.quick-search-panel button,
.category-search button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-600);
    padding: 12px 20px;
    font-weight: 900;
}

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

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 54px rgba(120, 53, 15, 0.2);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-50));
}

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

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

.card-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 14px;
    right: 14px;
    color: var(--white);
    background: var(--red-500);
    padding: 6px 10px;
}

.play-chip {
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.card-meta,
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--stone-600);
    font-size: 13px;
}

.card-body h3 {
    margin: 0;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--amber-700);
}

.card-body p {
    margin: 0;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.7;
}

.card-bottom {
    margin-top: auto;
    color: var(--amber-700);
    font-weight: 900;
}

.card-bottom a {
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    padding: 6px 12px;
}

.wide-band {
    padding: 72px 0;
    background: linear-gradient(90deg, var(--amber-100), #fff7ed);
}

.horizontal-section {
    position: relative;
}

.rail-actions {
    position: absolute;
    right: 0;
    top: 6px;
    display: flex;
    gap: 10px;
}

.rail-actions button {
    width: 44px;
    height: 44px;
    border: 0;
    color: var(--amber-900);
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    font-size: 26px;
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 286px;
    padding: 10px;
    color: var(--stone-900);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.mini-card img {
    width: 78px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.mini-card span {
    display: grid;
    gap: 6px;
    min-width: 0;
}

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

.mini-card em {
    color: var(--stone-600);
    font-style: normal;
    font-size: 13px;
}

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

.category-feature,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 22px;
    padding: 28px;
    color: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
}

.category-feature::before,
.category-overview-card::before,
.category-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background: radial-gradient(circle at 20% 20%, #ffffff, transparent 28%);
    pointer-events: none;
}

.category-feature > *,
.category-overview-card > *,
.category-page-hero > * {
    position: relative;
    z-index: 2;
}

.category-feature h3,
.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-feature p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.mini-card-grid {
    display: grid;
    gap: 12px;
}

.category-feature .mini-card,
.category-overview-card .mini-card {
    min-width: 0;
}

.category-orange,
.category-amber,
.category-gold,
.category-brown {
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
}

.category-red {
    background: linear-gradient(135deg, var(--red-500), var(--amber-600));
}

.category-purple {
    background: linear-gradient(135deg, var(--purple-500), #c084fc);
}

.category-blue {
    background: linear-gradient(135deg, var(--blue-500), #60a5fa);
}

.category-pink {
    background: linear-gradient(135deg, var(--pink-500), #fb7185);
}

.category-green {
    background: linear-gradient(135deg, var(--green-500), #84cc16);
}

.category-cyan {
    background: linear-gradient(135deg, var(--cyan-500), #2dd4bf);
}

.ranking-band {
    padding: 82px 0;
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-900), var(--amber-800));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 46px;
    align-items: start;
}

.ranking-layout h2,
.ranking-layout p {
    color: var(--white);
}

.ranking-layout .eyebrow {
    color: var(--amber-900);
}

.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a,
.ranking-row a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    color: var(--stone-900);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
}

.ranking-list strong,
.ranking-row strong {
    color: var(--amber-700);
    font-size: 20px;
}

.ranking-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.ranking-list em,
.ranking-row i {
    color: var(--red-500);
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.intro-copy {
    display: grid;
    gap: 10px;
}

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

.intro-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.intro-images img:nth-child(2) {
    transform: translateY(24px);
}

.intro-images img:nth-child(3) {
    transform: translateY(-18px);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

.simple-hero {
    color: var(--amber-900);
}

.simple-hero p {
    max-width: 740px;
}

.category-page-hero {
    color: var(--white);
}

.category-page-hero h1,
.category-page-hero p {
    color: var(--white);
}

.category-search {
    max-width: 680px;
    margin-top: 26px;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-top: 32px;
    padding: 24px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.filter-panel div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-panel strong {
    color: var(--amber-900);
    margin-right: 4px;
}

.filter-panel button {
    border: 0;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.filter-panel button.is-active {
    color: var(--white);
    background: var(--amber-600);
}

.filter-panel p {
    margin: 0;
    color: var(--stone-600);
}

.category-movie-grid {
    align-items: stretch;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: var(--white);
    background: var(--stone-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.05);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.58), rgba(146, 64, 14, 0.42));
}

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

.detail-cover {
    border-radius: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.detail-copy {
    display: grid;
    gap: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-100);
    font-size: 14px;
}

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

.breadcrumb em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.72);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.detail-meta-grid strong {
    color: var(--amber-100);
    font-size: 12px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.player-section {
    padding: 70px 0 36px;
}

.hls-player {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--black);
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hls-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--black);
}

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

.player-overlay span {
    display: inline-flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: var(--shadow-card);
}

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

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

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 70px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.46);
    border-radius: 14px;
    font-size: 14px;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #111111;
}

.player-control {
    border: 0;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.player-controls span {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.content-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 26px;
}

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

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

.ranking-page-panel {
    padding: 54px 0;
}

.ranking-row a {
    grid-template-columns: 78px 70px minmax(0, 1fr) 60px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-row img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-row span {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ranking-row b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row em {
    overflow: hidden;
    color: var(--stone-600);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-overview-grid {
    padding: 54px 0;
}

.site-footer {
    margin-top: 40px;
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-800), var(--amber-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 30px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 20px;
}

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

.site-footer p,
.site-footer a {
    color: var(--amber-100);
    line-height: 1.8;
}

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-content,
    .quick-search-panel,
    .intro-panel,
    .ranking-layout,
    .detail-hero-inner,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        padding: 72px 0 86px;
        gap: 32px;
        text-align: center;
    }

    .hero-copy {
        justify-items: center;
    }

    .hero-poster {
        width: min(360px, 86vw);
    }

    .detail-hero-inner {
        padding: 40px 0;
    }

    .detail-cover {
        width: min(320px, 80vw);
        justify-self: center;
    }

    .detail-copy {
        text-align: center;
        justify-items: center;
    }

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

@media (max-width: 820px) {
    .movie-grid,
    .category-feature-grid,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-search-panel form,
    .category-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .quick-search-panel input,
    .category-search input {
        padding: 14px 16px;
    }

    .rail-actions {
        position: static;
        margin-bottom: 18px;
    }

    .ranking-row a {
        grid-template-columns: 52px 56px minmax(0, 1fr);
    }

    .ranking-row i {
        display: none;
    }
}

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

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

    .brand-copy em {
        display: none;
    }

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

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

    .hero-control {
        display: none;
    }

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

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

    .player-status {
        position: static;
        border-radius: 0;
    }

    .player-controls span {
        width: 100%;
        margin-left: 0;
    }
}
