:root {
    --bg: #f8fbff;
    --panel: rgba(255, 255, 255, 0.92);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.24);
    --blue: #2563eb;
    --cyan: #06b6d4;
    --dark: #020617;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 34rem),
        var(--bg);
    line-height: 1.7;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(248, 251, 255, 0.86);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    color: #ffffff;
    background: #020617;
}

.hero-slides {
    position: relative;
    min-height: 720px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.24), transparent 30rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr;
    align-items: center;
    gap: 56px;
    padding: 80px 0;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 20px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 26px;
    z-index: 2;
    pointer-events: none;
}

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

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

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

.hero-dot.active {
    background: #ffffff;
}

.hero-orb {
    position: absolute;
    z-index: 1;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.28;
}

.hero-orb-one {
    left: 8%;
    top: 20%;
    background: var(--cyan);
}

.hero-orb-two {
    right: 10%;
    bottom: 14%;
    background: var(--blue);
}

.eyebrow {
    margin: 0;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #1e40af;
    background: rgba(37, 99, 235, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span,
.detail-tags span {
    color: #dffbff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.text-button {
    min-height: auto;
    padding: 0;
    color: var(--blue);
}

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

.section-wrap,
.filter-panel,
.quick-stats,
.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-wrap {
    padding: 46px 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -56px;
    position: relative;
    z-index: 5;
}

.quick-stats a {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-stats strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: var(--blue);
}

.quick-stats span {
    color: var(--muted);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 24px;
    align-items: center;
    margin-top: 46px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.filter-panel h2,
.section-heading h2,
.page-hero h1,
.watch-copy h2,
.detail-block h2 {
    margin: 4px 0 10px;
    line-height: 1.2;
}

.filter-panel p,
.page-hero p,
.watch-copy p,
.detail-block p {
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
}

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

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 22px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-heading a,
.section-heading span {
    color: var(--blue);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 18px;
    border-radius: 22px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-cover {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.35s ease;
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile strong {
    margin-top: 84px;
    font-size: 20px;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px 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(37, 99, 235, 0.28);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.18));
}

.poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 66px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card h3 {
    font-size: 17px;
}

.compact-card p {
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 72px;
    border-radius: 34px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.82)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 22rem);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-overview-cover {
    min-height: 230px;
    border-radius: 20px;
    background-position: center;
    background-size: cover;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-samples span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    font-size: 12px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--dark);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.9));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 74px rgba(0, 0, 0, 0.42);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-intro h1 {
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.watch-section {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 26px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.58));
    cursor: pointer;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.34);
    font-size: 38px;
    transform: translateX(3px);
}

.watch-copy,
.detail-block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.detail-block h2,
.watch-copy h2 {
    font-size: 28px;
}

.detail-block p,
.watch-copy p {
    white-space: pre-line;
}

.detail-meta-list dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
}

.detail-meta-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
}

.detail-meta-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta-list dd {
    margin: 2px 0 0;
    font-weight: 900;
}

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

.ranking-strip {
    padding-bottom: 76px;
}

.site-footer {
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.72);
    background: #020617;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding: 54px 0;
}

.footer-logo .brand-text {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.footer-columns h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-columns li + li {
    margin-top: 8px;
}

.footer-columns a:hover {
    color: #67e8f9;
}

@media (max-width: 1080px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-content,
    .watch-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-copy h1,
    .detail-intro h1 {
        font-size: 44px;
    }

    .quick-stats,
    .filter-panel,
    .detail-hero-inner,
    .category-overview-card,
    .footer-columns {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-hero {
        padding: 44px 24px;
    }

    .detail-hero-inner {
        min-height: auto;
        padding: 44px 0;
    }

    .detail-poster {
        max-width: 260px;
    }

    .player-shell,
    .movie-video {
        min-height: 260px;
    }
}

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

    .quick-stats a,
    .filter-panel,
    .watch-copy,
    .detail-block {
        padding: 20px;
    }
}
