
:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #111827;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --red-500: #ef4444;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

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

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

.brand {
    font-size: 21px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: var(--orange-400);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
}

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

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

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--slate-900);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-nav.open {
    display: block;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 38%, rgba(249, 115, 22, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.46));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 42px;
    padding: 80px 0 70px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    color: var(--orange-400);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background: var(--orange-600);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

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

.hero-poster-meta {
    padding: 18px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(14px);
}

.hero-poster-meta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--orange-500);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 620px;
    padding: 8px;
    margin: 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

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

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
    min-height: 42px;
    padding: 0 22px;
}

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

.content-section.dark {
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

.content-section.soft {
    background: var(--slate-50);
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--orange-500);
    font-weight: 800;
}

.dark .section-kicker {
    color: var(--orange-400);
}

.section-head h1,
.section-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.dark .section-head h1,
.dark .section-head h2 {
    color: var(--white);
}

.section-head p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--slate-600);
}

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

.section-link {
    flex: 0 0 auto;
    color: var(--orange-500);
    font-weight: 800;
}

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

.movie-grid.featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.compact-card .poster-link img {
    aspect-ratio: 16 / 9;
}

.movie-card:hover img {
    transform: scale(1.06);
}

.poster-fade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.corner-badge,
.duration-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.corner-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: var(--orange-500);
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-mark {
    left: 12px;
    bottom: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 18px;
    line-height: 1.35;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 13px;
}

.tag-row span {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 12px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--slate-500);
    font-size: 13px;
}

.meta-row strong {
    color: var(--orange-500);
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--orange-500);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.78);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    font-weight: 900;
}

.rank-item img {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-info strong {
    display: block;
    color: var(--slate-800);
    font-size: 17px;
}

.rank-info em {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: var(--orange-500);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    color: var(--slate-800);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-400);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.20), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero .shell {
    padding: 70px 0;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

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

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

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

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.video-player {
    position: relative;
    overflow: hidden;
    background: #000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.60));
    cursor: pointer;
}

.video-player.is-playing .play-layer {
    display: none;
}

.play-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.42);
    font-size: 34px;
}

.detail-card {
    padding: 28px;
    margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--slate-800);
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: var(--slate-600);
}

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

.detail-meta span {
    padding: 12px;
    border-radius: 14px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 13px;
}

.detail-meta strong {
    display: block;
    margin-top: 2px;
    color: var(--slate-800);
    font-size: 15px;
}

.side-card {
    padding: 18px;
}

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

.side-card .tag-row {
    margin-top: 16px;
}

.side-card .btn-ghost {
    color: var(--slate-800);
    border-color: var(--slate-200);
    background: var(--slate-100);
}

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

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

.category-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-card h2 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
}

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

    .menu-button {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

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

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

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

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

    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        padding: 58px 0 80px;
    }

    .hero-actions,
    .card-actions,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search input {
        min-height: 42px;
    }

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

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

    .rank-score {
        grid-column: 3;
    }

    .rank-item img {
        width: 82px;
        height: 60px;
    }

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

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