* {
    box-sizing: border-box;
}

:root {
    --bg: #f7f3ec;
    --ink: #1c1917;
    --muted: #78716c;
    --soft: #fffaf0;
    --line: rgba(120, 113, 108, 0.24);
    --dark: #14100d;
    --dark-2: #211915;
    --amber: #f59e0b;
    --amber-2: #fbbf24;
    --amber-soft: #fef3c7;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(28, 25, 23, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #fffbeb 0%, #f7f3ec 46%, #efe7db 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px);
    background: rgba(255, 251, 235, 0.82);
    border-bottom: 1px solid rgba(120, 113, 108, 0.18);
}

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

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

.nav-link,
.mobile-nav-link {
    color: #57534e;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
    color: #1c1917;
    background: rgba(245, 158, 11, 0.14);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #292524;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(120, 113, 108, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

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

.mobile-nav-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: min(720px, 74vh);
    min-height: 560px;
    overflow: hidden;
    color: #fffaf0;
    background: #1c1917;
}

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

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

.hero-bg,
.detail-bg,
.sub-hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.detail-bg img,
.sub-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-bg::after,
.detail-bg::after,
.sub-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 13, 0.5);
    backdrop-filter: blur(8px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 46%, rgba(245, 158, 11, 0.18), transparent 22rem),
        linear-gradient(90deg, rgba(20, 16, 13, 0.96) 0%, rgba(20, 16, 13, 0.76) 48%, rgba(20, 16, 13, 0.24) 100%),
        linear-gradient(0deg, #14100d 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: center;
    gap: 48px;
    padding-top: 56px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 999px;
    padding: 6px 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.13);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 250, 240, 0.82);
    font-size: clamp(17px, 1.7vw, 22px);
}

.hero-tags,
.detail-meta,
.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.card-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: rgba(255, 250, 240, 0.88);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-hero-copy .primary-button {
    margin-top: 30px;
}

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

.primary-button {
    color: #1c1917;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
}

.ghost-button {
    margin-left: 12px;
    color: #fffbeb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

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

.hero-tools {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(20, 16, 13, 0.54);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    font-size: 26px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
    width: 30px;
    background: #fbbf24;
}

.quick-search-section {
    padding: 28px 0 8px;
}

.quick-search-section.compact {
    padding-top: 0;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px 18px;
}

.category-strip.wide {
    padding-top: 22px;
}

.category-pill {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 999px;
    color: #57534e;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(120, 113, 108, 0.18);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(28, 25, 23, 0.06);
}

.category-pill:hover,
.category-pill.active {
    color: #1c1917;
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.3);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: var(--shadow);
}

.filter-search input,
.filter-controls select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(120, 113, 108, 0.2);
    border-radius: 18px;
    outline: none;
    color: #1c1917;
    background: #fffaf0;
}

.filter-search input {
    padding: 0 18px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    padding: 0 36px 0 14px;
}

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

.dark-section {
    color: #fff7ed;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.14), transparent 26rem),
        linear-gradient(180deg, #1c1917, #14100d);
}

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

.section-head h2 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.dark-section .section-head p {
    color: rgba(255, 250, 240, 0.68);
}

.section-link,
.text-button {
    color: #1c1917;
    background: #fef3c7;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: 0 18px 46px rgba(28, 25, 23, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dark-section .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 28px 70px rgba(28, 25, 23, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #292524;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade,
.tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.68));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    color: #1c1917;
    background: #fbbf24;
    font-weight: 900;
}

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

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

.movie-card-body p {
    min-height: 50px;
    margin: 0;
    color: #78716c;
    font-size: 14px;
}

.dark-section .movie-card-body p {
    color: rgba(255, 250, 240, 0.68);
}

.card-meta-row span {
    min-height: 24px;
    color: #7c2d12;
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.16);
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #57534e;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.dark-section .tag-row span {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
}

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

.category-tile {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    border-radius: 28px;
    padding: 20px;
    color: #fff7ed;
    background: #292524;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile strong,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.1;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 250, 240, 0.78);
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 56px;
    color: #fff7ed;
    background:
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.28), transparent 24rem),
        linear-gradient(135deg, #1c1917, #3f2613);
}

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

.sub-hero h1 {
    max-width: 820px;
    margin: 16px 0 12px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 250, 240, 0.76);
    font-size: 18px;
}

.channel-hero .sub-hero-bg {
    opacity: 0.36;
}

.channel-grid {
    display: grid;
    gap: 22px;
}

.channel-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: var(--shadow);
}

.channel-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow: hidden;
    min-height: 190px;
    border-radius: 22px;
    background: #292524;
}

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

.channel-card-body h2 {
    margin: 12px 0 8px;
    font-size: 32px;
}

.channel-card-body p {
    max-width: 720px;
    color: #78716c;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 74px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(120, 113, 108, 0.16);
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 74px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-number {
    color: #f59e0b;
    font-size: 28px;
    font-weight: 900;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 8px;
    color: #78716c;
}

.rank-score {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #1c1917;
    background: #fbbf24;
    font-size: 20px;
    font-weight: 900;
}

.movie-detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff7ed;
    background: #1c1917;
    padding: 80px 0 64px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 250, 240, 0.72);
    font-size: 14px;
}

.detail-hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.07em;
}

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

.detail-tags span {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
}

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

.player-card,
.detail-text-block,
.side-card {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff7ed;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
}

.play-trigger[hidden] {
    display: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #1c1917;
    background: #fbbf24;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
    font-size: 34px;
}

.detail-text-block {
    margin-top: 22px;
    padding: 26px;
}

.detail-text-block h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-text-block p {
    margin: 0 0 16px;
    color: #57534e;
    font-size: 17px;
}

.detail-text-block p:last-child {
    margin-bottom: 0;
}

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

.side-card {
    padding: 22px;
}

.side-card dl,
.side-card dd {
    margin: 0;
}

.side-card div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(120, 113, 108, 0.14);
}

.side-card div:last-child {
    border-bottom: 0;
}

.side-card dt {
    color: #78716c;
    font-weight: 800;
}

.side-card dd {
    color: #292524;
    font-weight: 700;
}

.compact-card {
    display: grid;
    gap: 10px;
}

.site-footer {
    padding: 46px 0;
    color: #d6d3d1;
    background: #14100d;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 250, 240, 0.6);
}

.footer-links {
    display: flex;
    gap: 14px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .movie-grid,
    .featured-grid,
    .library-grid,
    .rank-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
    }

    .hero-poster {
        display: none;
    }

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        padding-top: 26px;
    }

    .hero-actions {
        display: grid;
        gap: 12px;
    }

    .ghost-button {
        margin-left: 0;
    }

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

    .filter-controls {
        flex-direction: column;
    }

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

    .movie-grid,
    .featured-grid,
    .library-grid,
    .rank-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .channel-card,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 62px minmax(0, 1fr) auto;
    }

    .rank-number {
        display: none;
    }
}

@media (max-width: 520px) {
    .container,
    .nav-shell,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .hero h1,
    .sub-hero h1,
    .detail-hero-copy h1 {
        letter-spacing: -0.05em;
    }

    .movie-grid,
    .featured-grid,
    .library-grid,
    .rank-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card-body p {
        min-height: 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
