:root {
    --page-bg: #fff7ed;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --line: rgba(17, 24, 39, 0.1);
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #facc15;
    --green: #16a34a;
    --blue: #2563eb;
    --dark: #111827;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.1);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
    transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.06) rotate(-2deg);
}

.brand-mark span {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid white;
    margin-left: 3px;
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    position: relative;
    padding: 26px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 999px;
    padding: 6px;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: var(--text-main);
}

.header-search button,
.mobile-search button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: var(--text-main);
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 16px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
    font-weight: 800;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--orange);
    background: #fff7ed;
}

main {
    min-height: 80vh;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(250, 204, 21, 0.3), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(124, 45, 18, 0.76) 45%, rgba(17, 24, 39, 0.36) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, transparent 45%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    min-height: 720px;
    padding: 130px 0 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    color: white;
}

.hero-kicker,
.page-hero p,
.ranking-copy p,
.section-heading p,
.category-overview-card p {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6.5vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.08em;
    max-width: 860px;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.15;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-tags,
.tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    padding: 13px 26px;
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    backdrop-filter: blur(12px);
}

.btn-ghost.light {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    min-height: 540px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.44);
    transform: rotate(2deg);
    isolation: isolate;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 50%);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    z-index: 3;
    left: 24px;
    bottom: 24px;
    color: white;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

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

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

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

.quick-search-band,
.section-wrap,
.ranking-band,
.watch-layout {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-band {
    margin-top: -54px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
    align-items: center;
    gap: 28px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.quick-search-band p,
.quick-search-band h2 {
    margin: 0;
}

.quick-search-band p {
    color: var(--orange);
    font-weight: 900;
}

.quick-search-band h2 {
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.05em;
}

.quick-search-band form {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.14);
}

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

.quick-search-band button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 900;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.section-wrap {
    padding: 78px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.06em;
}

.section-heading a,
.text-link {
    color: var(--orange);
    font-weight: 900;
}

.section-heading a span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.section-heading a:hover span {
    transform: translateX(4px);
}

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

.category-tile {
    min-height: 210px;
    border-radius: var(--radius-lg);
    padding: 22px;
    background:
        radial-gradient(circle at 80% 0%, rgba(250, 204, 21, 0.24), transparent 35%),
        linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14);
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
    color: #c2410c;
}

.category-tile strong {
    display: block;
    color: #4b5563;
    font-weight: 700;
}

.category-tile em {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    color: var(--text-muted);
    font-style: normal;
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fee2e2);
}

.movie-card.compact .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 44%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.84);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: white;
    opacity: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

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

.card-meta {
    margin: 0 0 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.card-desc {
    min-height: 50px;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.ranking-band {
    margin-top: 84px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    background:
        radial-gradient(circle at 10% 10%, rgba(250, 204, 21, 0.36), transparent 34%),
        linear-gradient(135deg, #111827, #7c2d12 58%, #dc2626);
    color: white;
    box-shadow: var(--shadow);
}

.ranking-copy {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.ranking-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -0.07em;
    line-height: 1.04;
}

.ranking-copy span {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
}

.rank-list {
    display: grid;
    gap: 12px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 86px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

.rank-num {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
}

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

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    font-weight: 900;
}

.rank-info em {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-size: 13px;
}

.rank-action {
    color: white;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
    padding: 8px 14px;
    font-weight: 900;
    white-space: nowrap;
}

.page-main,
.detail-main {
    padding-top: 76px;
}

.page-hero {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    margin: 34px auto 0;
    min-height: 310px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 48px;
    color: white;
    background:
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.3), transparent 34%),
        linear-gradient(135deg, #111827, #9a3412 58%, #ef4444);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.07em;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: white;
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}

.filter-search input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    outline: 0;
    background: #f9fafb;
    padding: 13px 16px;
    color: var(--text-main);
}

.empty-state {
    display: none;
    margin: 32px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-weight: 800;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.category-overview-card span {
    color: var(--text-muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-samples a {
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: white;
    background: #111827;
}

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

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(124, 45, 18, 0.76), rgba(17, 24, 39, 0.55)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 42%);
}

.detail-inner {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 54px 0;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: white;
}

.breadcrumb em {
    color: white;
    font-style: normal;
}

.detail-kicker {
    color: var(--yellow);
    margin: 0 0 12px;
    font-weight: 900;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.08em;
}

.detail-line {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-tags {
    margin-top: 22px;
}

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

.watch-main,
.related-panel,
.content-panel {
    min-width: 0;
}

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

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.34), rgba(2, 6, 23, 0.78));
    text-align: center;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 24px 50px rgba(249, 115, 22, 0.35);
    font-size: 30px;
    padding-left: 4px;
}

.player-cover strong {
    font-size: clamp(24px, 3vw, 42px);
    letter-spacing: -0.05em;
}

.player-cover em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-weight: 800;
}

.content-panel,
.related-panel {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    padding: 28px;
    background: white;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.content-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.05em;
}

.content-panel p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.related-panel {
    position: sticky;
    top: 100px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    background: #f9fafb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
    transform: translateX(4px);
    background: #fff7ed;
}

.related-card img {
    width: 112px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.related-card strong,
.related-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-card strong {
    font-weight: 900;
}

.related-card em {
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 92px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-logo .brand-text {
    color: white;
    background: none;
}

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

.footer-links h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .menu-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 116px;
    }

    .hero-poster {
        max-width: 360px;
        min-height: 460px;
    }

    .hero-poster img {
        min-height: 460px;
    }

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

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

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

    .related-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-carousel,
    .hero-inner {
        min-height: 680px;
    }

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

    .hero-desc,
    .detail-line {
        font-size: 17px;
    }

    .hero-poster {
        display: none;
    }

    .quick-search-band,
    .ranking-band,
    .detail-inner,
    .footer-inner,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .quick-search-band form {
        border-radius: 22px;
        flex-direction: column;
    }

    .quick-search-band button {
        width: 100%;
    }

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

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

    .ranking-copy,
    .rank-list,
    .page-hero {
        padding: 28px;
    }

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

    .detail-inner {
        padding: 34px 0;
    }

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

@media (max-width: 540px) {
    .header-inner {
        height: 68px;
        width: min(100% - 22px, var(--max));
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        font-size: 16px;
    }

    .page-main,
    .detail-main {
        padding-top: 68px;
    }

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

    .hero-inner {
        width: min(100% - 24px, var(--max));
        padding: 108px 0 82px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy h2 {
        font-size: 25px;
    }

    .hero-controls {
        bottom: 22px;
    }

    .quick-search-band,
    .section-wrap,
    .ranking-band,
    .watch-layout,
    .page-hero,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, var(--max));
    }

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

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

    .rank-action {
        display: none;
    }

    .page-hero {
        min-height: 250px;
        margin-top: 22px;
    }

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

    .detail-copy h1 {
        font-size: 34px;
    }

    .watch-layout {
        padding-top: 40px;
    }

    .content-panel,
    .related-panel {
        padding: 20px;
    }
}
