:root {
    color-scheme: light;
    --bg: #f7fbff;
    --surface: #ffffff;
    --surface-soft: #eff7ff;
    --surface-strong: #e5f2ff;
    --text: #132033;
    --muted: #66758a;
    --line: #dce9f7;
    --primary: #2563eb;
    --primary-2: #06b6d4;
    --primary-3: #14b8a6;
    --danger: #ef4444;
    --shadow: 0 18px 48px rgba(37, 99, 235, 0.14);
    --radius: 24px;
    --radius-sm: 16px;
    --max: 1800px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
    color: var(--text);
    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 {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 233, 247, 0.92);
    box-shadow: 0 14px 35px rgba(15, 70, 140, 0.08);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 80px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.logo-text {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a {
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 750;
    color: #34445b;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #334155;
    background: #eef6ff;
    cursor: pointer;
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px 72px;
}

.hero {
    position: relative;
    margin: 28px auto 64px;
    min-height: 640px;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #102044 0%, #1d4ed8 48%, #06b6d4 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 34, 0.92) 0%, rgba(16, 32, 68, 0.82) 42%, rgba(16, 32, 68, 0.24) 100%),
        radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.20), transparent 22rem);
}

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.hero-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
    align-items: center;
    gap: 42px;
    padding: 72px;
    color: #fff;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #e0f7ff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-kicker,
.page-kicker {
    color: var(--primary);
    background: #eaf5ff;
    border-color: #d1ebff;
}

.hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: #0f3f71;
    background: #e6f7ff;
    font-size: 13px;
    font-weight: 760;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.button,
.section-link,
.pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 850;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.button:hover,
.section-link:hover,
.pill-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.button.secondary,
.pill-link.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-panel {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-feature-card {
    width: 100%;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
}

.hero-feature-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.hero-feature-card h2 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.hero-feature-card p {
    margin: 0;
    color: #dbeafe;
    font-size: 15px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 72px;
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
    transition: width 0.22s ease, opacity 0.22s ease;
}

.hero-dot.active {
    width: 34px;
    opacity: 1;
    background: #fff;
}

.section {
    margin: 58px 0;
}

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

.section-header h2,
.page-head h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-header p,
.page-head p {
    margin: 0;
    max-width: 850px;
    color: var(--muted);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    min-height: 190px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 70, 140, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.16));
}

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

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

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: var(--muted);
}

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

.movie-card,
.rank-card,
.info-panel,
.content-panel,
.related-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(15, 70, 140, 0.08);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #b8defb;
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #d9edff;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(3, 10, 34, 0.72));
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 850;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf5ff;
}

.card-body h3,
.rank-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.card-body p,
.rank-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.filter-panel {
    margin: 18px 0 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 70, 140, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid #cfe2f5;
    border-radius: 16px;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

.empty-state.show {
    display: block;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    align-items: center;
}

.rank-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: #d9edff;
}

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

.rank-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 780;
}

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

.player-section,
.content-panel,
.info-panel,
.related-panel {
    overflow: hidden;
}

.player-section {
    border-radius: 30px;
    background: #061327;
    box-shadow: 0 24px 62px rgba(3, 10, 34, 0.28);
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020817;
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020817;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(3, 10, 34, 0.18);
}

.player-overlay.is-hidden {
    display: none;
}

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

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.20), transparent 20rem),
        linear-gradient(180deg, rgba(2, 8, 23, 0.10), rgba(2, 8, 23, 0.68));
}

.play-button-core {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 24px 52px rgba(6, 182, 212, 0.30);
    font-size: 34px;
    transform: translateZ(0);
}

.player-title-bar {
    padding: 22px 26px;
    color: #fff;
    background: linear-gradient(135deg, #0f234a, #0b4a70);
}

.player-title-bar h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
}

.player-title-bar p {
    margin: 0;
    color: #dbeafe;
}

.info-panel,
.content-panel,
.related-panel {
    padding: 26px;
}

.info-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: #d9edff;
    margin-bottom: 18px;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.meta-list span:first-child {
    color: var(--muted);
}

.meta-list span:last-child {
    text-align: right;
    font-weight: 820;
}

.content-panel {
    margin-top: 28px;
}

.content-panel h2,
.related-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

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

.related-panel {
    margin-top: 28px;
}

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

.site-footer {
    margin-top: 40px;
    color: #e0f2fe;
    background: linear-gradient(135deg, #0f234a, #0b4a70 54%, #0f766e);
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 54px 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
    font-size: 28px;
}

.site-footer p {
    max-width: 560px;
    color: #cfefff;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

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

.footer-links a {
    color: #d5f3ff;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 28px;
    text-align: center;
    color: #d5f3ff;
}

.hidden-by-filter {
    display: none !important;
}

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

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

@media (max-width: 1024px) {
    .main-nav {
        position: absolute;
        top: 80px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 48px;
    }

    .hero-panel {
        align-self: auto;
        max-width: 420px;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        padding: 0 16px;
    }

    main {
        padding: 0 16px 46px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .logo-text {
        font-size: 23px;
    }

    .hero {
        margin-top: 18px;
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-content {
        padding: 30px;
        gap: 22px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-controls {
        left: 30px;
        bottom: 28px;
    }

    .section-header,
    .page-head {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

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

    .rank-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .card-body {
        padding: 14px;
    }

    .card-body h3,
    .rank-card h3 {
        font-size: 16px;
    }

    .content-panel,
    .info-panel,
    .related-panel {
        padding: 20px;
    }
}

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

    .hero-feature-card {
        display: none;
    }

    .hero {
        min-height: 610px;
    }
}
