:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50), #edf2f7 44%, #ffffff);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

.nav-wrap {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, #fde68a, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 15px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #fcd34d;
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-search input,
.page-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    color: var(--white);
    background: rgba(51, 65, 85, 0.86);
    border-radius: 999px;
    padding: 11px 16px;
    min-width: 220px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-search input::placeholder,
.page-search input::placeholder,
.filter-bar input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.nav-search button,
.page-search button,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

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

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(245, 158, 11, 0.32), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.34)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 48%);
}

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

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

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    font-size: clamp(28px, 4.4vw, 54px);
    color: #fef3c7;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 11px;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    padding: 13px 22px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

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

.btn-ghost {
    color: var(--white);
    padding: 12px 21px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.btn-ghost.dark {
    color: var(--slate-800);
    background: var(--white);
}

.btn-text {
    color: #fcd34d;
    padding: 12px 8px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 56px auto 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--amber-500);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 55%);
    transition: opacity 0.25s ease;
}

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-year {
    right: 12px;
}

.rank-badge {
    left: 12px;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(245, 158, 11, 0.94);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    margin: 0;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.35;
}

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--slate-500);
    font-size: 12px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #92400e;
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px #fde68a;
}

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

.category-tile {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 28px;
    overflow: hidden;
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow);
}

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

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.18));
}

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

.category-tile strong {
    font-size: 26px;
    font-style: normal;
}

.category-tile em {
    margin-top: 7px;
    color: #fcd34d;
    font-style: normal;
    font-weight: 800;
}

.category-tile small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 70px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 12px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-item b {
    color: var(--amber-500);
    font-size: 22px;
}

.rank-item img {
    width: 70px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    color: var(--slate-900);
}

.rank-item em {
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    border-radius: 34px;
    padding: clamp(42px, 7vw, 82px);
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.42), transparent 28%),
        linear-gradient(135deg, var(--slate-800), var(--slate-900));
    box-shadow: var(--shadow);
}

.compact-hero {
    padding: clamp(34px, 5vw, 62px);
}

.page-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 20px;
    align-items: center;
    border-radius: 26px;
    padding: 18px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

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

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

.category-card h2 {
    margin: 0;
    font-size: 23px;
}

.category-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

.category-card span {
    display: block;
    color: var(--amber-500);
    font-weight: 900;
}

.mini-link {
    margin-top: 14px;
    color: var(--white);
    background: var(--slate-800);
    padding: 9px 14px;
}

.filter-bar,
.page-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-bar input,
.page-search input {
    color: var(--slate-900);
    background: var(--white);
    min-width: min(520px, 100%);
    box-shadow: inset 0 0 0 1px var(--slate-200);
}

.filter-bar input::placeholder,
.page-search input::placeholder {
    color: var(--slate-500);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.34;
}

.detail-bg-mask {
    background:
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.24), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.96));
}

.detail-wrap {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.42);
}

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

.player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--white);
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.22));
}

.play-ring {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 28px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.4);
}

.player-cover strong {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 26px;
    right: 28px;
    text-align: left;
    font-size: clamp(20px, 3vw, 34px);
}

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

.watch-info {
    border-radius: 28px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.watch-info h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.watch-info p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 17px;
}

.detail-meta {
    margin-top: 18px;
}

.large-tags span {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.detail-content article {
    border-radius: 28px;
    padding: clamp(26px, 5vw, 48px);
    background: var(--white);
    box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 28px;
}

.detail-content h2:not(:first-child) {
    margin-top: 34px;
}

.detail-content p {
    margin: 0;
    color: var(--slate-600);
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 78px;
    color: rgba(255, 255, 255, 0.74);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a:hover {
    color: #fcd34d;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

@media (max-width: 1180px) {
    .movie-grid,
    .rank-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-content,
    .watch-layout,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0 16px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-search {
        order: 4;
        display: none;
        width: 100%;
        margin-left: 0;
    }

    .nav-search.is-open {
        display: flex;
    }

    .nav-search input {
        flex: 1;
        min-width: 0;
    }

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

    .hero-content {
        padding: 72px 0 92px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .movie-grid,
    .rank-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

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

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

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

    .hero-copy h1,
    .hero-copy h2 {
        letter-spacing: -0.03em;
    }

    .content-section,
    .page-hero,
    .detail-wrap,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1280px);
    }

    .movie-grid,
    .rank-grid,
    .small-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .movie-card p,
    .tag-row {
        display: none;
    }

    .filter-bar,
    .page-search {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar input,
    .page-search input {
        min-width: 0;
        width: 100%;
    }

    .watch-info {
        padding: 22px;
    }

    .player,
    .page-hero,
    .detail-content article {
        border-radius: 22px;
    }
}
