:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-slate: #0f172a;
    --color-slate-soft: #1e293b;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-teal: #0d9488;
    --color-teal-bright: #14b8a6;
    --color-cyan: #22d3ee;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #f9fafb 48%, #f0fdfa 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal-bright), var(--color-cyan));
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

.logo-text {
    background: linear-gradient(90deg, #2dd4bf, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(13, 148, 136, 0.92);
    transform: translateY(-1px);
}

.site-search {
    width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(51, 65, 85, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.site-search input::placeholder {
    color: #94a3b8;
}

.site-search button,
.mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--color-teal);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    background: rgba(51, 65, 85, 0.86);
}

.hero-slider {
    position: relative;
    height: min(720px, 70vh);
    min-height: 520px;
    overflow: hidden;
    background: var(--color-slate);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.58) 46%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 82px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(20, 184, 166, 0.28);
}

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

.hero-copy p {
    margin: 0 0 28px;
    max-width: 680px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
    box-shadow: 0 18px 32px rgba(20, 184, 166, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(13, 148, 136, 0.9);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: max(18px, calc((100% - var(--container)) / 2 - 70px));
}

.hero-next {
    right: max(18px, calc((100% - var(--container)) / 2 - 70px));
}

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

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

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

main {
    min-height: 60vh;
}

.section {
    padding: 72px 0;
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-slate);
}

.section-desc {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--color-muted);
    font-size: 17px;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: var(--shadow-card);
}

.movie-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #134e4a);
}

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

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

.movie-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    color: var(--color-slate);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card:hover .movie-title {
    color: var(--color-teal);
}

.movie-line {
    margin: 0 0 14px;
    color: var(--color-muted);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #475569;
    font-size: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.38), transparent 28%),
        linear-gradient(135deg, #0f172a, #0f766e);
    box-shadow: var(--shadow-soft);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.1;
}

.category-card p {
    margin: 0 0 22px;
    color: #d1fae5;
}

.category-card .btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: var(--shadow-soft);
}

.feature-panel img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.feature-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.feature-copy p {
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 18px;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.filter-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--color-slate);
    background: #f8fafc;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--color-muted);
    background: #ffffff;
    border: 1px solid var(--color-line);
}

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

.page-hero {
    padding: 80px 0 44px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 20%, rgba(20, 184, 166, 0.36), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e293b 55%, #0f766e);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bae6fd;
    font-size: 14px;
    font-weight: 700;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--color-line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: #0f172a;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info h2,
.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--color-slate);
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72)),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.2) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: end;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-copy p {
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
    padding: 60px 0 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-mask::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.42));
}

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

.play-button-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
    box-shadow: 0 22px 45px rgba(20, 184, 166, 0.36);
}

.content-card {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--color-line);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 16px;
    color: var(--color-slate);
    font-size: 28px;
    line-height: 1.2;
}

.content-card p {
    margin: 0 0 20px;
    color: #334155;
    font-size: 17px;
}

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

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

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 850;
}

.footer-text {
    margin: 0;
    color: #cbd5e1;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .site-search {
        width: 200px;
    }
}

@media (max-width: 860px) {
    .mobile-toggle {
        display: grid;
    }

    .nav-wrap {
        gap: 8px;
    }

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.22);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    }

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

    .nav-link {
        justify-content: center;
    }

    .site-search {
        display: none;
    }

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

    .hero-content {
        padding-bottom: 76px;
    }

    .hero-control {
        display: none;
    }

    .section-header,
    .feature-panel,
    .detail-hero-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: grid;
        align-items: start;
    }

    .detail-hero-inner {
        gap: 26px;
        padding: 42px 0 54px;
    }

    .detail-poster {
        width: min(260px, 76vw);
    }

    .feature-panel img {
        min-height: 300px;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 58px 0 36px;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 16px;
    }

    .movie-line {
        font-size: 13px;
    }

    .category-card,
    .content-card,
    .feature-panel {
        padding: 22px;
        border-radius: 18px;
    }

    .ranking-item {
        grid-template-columns: 78px 1fr;
        gap: 12px;
    }

    .play-icon {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 420px) {
    .card-grid,
    .card-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
