:root {
    --page-bg: #f7fbff;
    --ink: #152235;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.09);
    --card: rgba(255, 255, 255, 0.88);
    --card-solid: #ffffff;
    --teal: #0fbaa9;
    --cyan: #0694d9;
    --blue: #2563eb;
    --orange: #fb923c;
    --rose: #f43f5e;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(13, 186, 169, 0.20), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 36rem),
        linear-gradient(180deg, #ffffff 0%, var(--page-bg) 42%, #eef8ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #0d9488, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 16px 28px rgba(6, 148, 217, 0.25);
}

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

.primary-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: 0.22s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: rgba(15, 23, 42, 0.06);
}

.mobile-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

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

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 28px auto 48px;
    overflow: hidden;
    border-radius: 40px;
    background: linear-gradient(135deg, #06131f, #0d2537 45%, #0f766e 100%);
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    inset: -18% -10% auto auto;
    width: 58%;
    height: 75%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.42), transparent 62%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
    gap: 40px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    transform: translateX(36px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 800;
}

.hero-title {
    margin: 22px 0 16px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-desc {
    max-width: 650px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    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(--teal), var(--cyan));
    box-shadow: 0 16px 30px rgba(6, 148, 217, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}

.btn-light {
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.hero-poster-wrap {
    position: relative;
    z-index: 2;
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.44), rgba(37, 99, 235, 0.18)),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 34%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster img,
.cover img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.hero-poster img.is-missing,
.cover img.is-missing,
.detail-cover img.is-missing {
    opacity: 0;
}

.hero-stats {
    position: absolute;
    right: -18px;
    bottom: 28px;
    width: 190px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-stats strong {
    display: block;
    font-size: 28px;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.30);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dots button.is-active {
    width: 64px;
    background: #ffffff;
}

.quick-search {
    margin: -18px auto 44px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.search-form,
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 130px;
    gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    color: var(--ink);
    background: #ffffff;
    padding: 0 16px;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.section {
    margin: 54px auto;
}

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

.kicker {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section h2,
.page-title h1 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-head p,
.page-title p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 16px 40px 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.38);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.14)),
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 34%);
}

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

.badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.45;
}

.card-summary {
    min-height: 68px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.10);
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #0891b2 58%, #2563eb);
    box-shadow: 0 18px 45px rgba(6, 148, 217, 0.18);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #ec4899);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #0f766e, #14b8a6 58%, #f97316);
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card .arrow {
    position: absolute;
    right: 20px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: #ffffff;
    font-weight: 900;
}

.page-title {
    margin: 34px auto 26px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #0f766e;
    font-weight: 800;
}

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

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.14)),
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 34%);
    box-shadow: var(--shadow);
}

.detail-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-lead {
    color: #334155;
    font-size: 18px;
    line-height: 1.8;
}

.player-section {
    margin-top: 30px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.play-button {
    position: absolute;
    inset: auto auto 24px 24px;
    z-index: 3;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 35px rgba(244, 63, 94, 0.32);
    font-weight: 900;
    cursor: pointer;
}

.video-player.is-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

.content-block {
    margin-top: 26px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.content-block h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.content-block p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.rank-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(37, 99, 235, 0.12));
}

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

.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.no-results {
    display: none;
    padding: 30px;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}

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

.footer-links a {
    color: #0f766e;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .hero-slide,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-poster-wrap {
        max-width: 420px;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 66px;
    }

    .mobile-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow);
    }

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

    .hero-slider {
        min-height: 780px;
        border-radius: 28px;
    }

    .hero-slide {
        padding: 30px;
        gap: 24px;
    }

    .hero-dots {
        left: 30px;
        bottom: 24px;
    }

    .hero-stats {
        right: 12px;
        bottom: 18px;
    }

    .search-form,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .card-summary {
        min-height: auto;
    }

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

    .rank-row .btn {
        grid-column: 1 / -1;
    }
}

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

    .logo {
        font-size: 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .detail-card,
    .content-block,
    .page-title {
        padding: 22px;
        border-radius: 24px;
    }
}
