:root {
    --color-primary: 14 165 233;
    --color-secondary: 249 115 22;
    --color-accent: 34 197 94;
    --color-ink: 23 23 23;
    --color-muted: 82 82 82;
    --color-border: 229 229 229;
    --color-soft: 248 250 252;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius-card: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: rgb(var(--color-ink));
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.13), transparent 34rem),
        radial-gradient(circle at 84% 12%, rgba(34, 197, 94, 0.13), transparent 28rem),
        rgb(var(--color-soft));
}

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(var(--color-border), 0.85);
    backdrop-filter: blur(16px);
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.logo-text {
    font-size: clamp(18px, 2vw, 25px);
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, rgb(2, 132, 199), rgb(5, 150, 105));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a,
.mobile-nav a {
    padding: 9px 12px;
    color: rgb(64, 64, 64);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.active,
.mobile-nav a.active {
    color: rgb(2, 132, 199);
    background: rgb(240, 249, 255);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-mini,
.search-large {
    position: relative;
}

.search-mini input,
.search-large input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    border-radius: 15px;
    color: rgb(38, 38, 38);
    background: rgb(245, 245, 245);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-mini input {
    width: min(260px, 22vw);
    padding: 11px 14px;
}

.search-large input {
    padding: 16px 18px;
    font-size: 16px;
}

.search-mini input:focus,
.search-large input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(14, 165, 233, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgb(240, 249, 255);
    color: rgb(2, 132, 199);
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 36px 0 42px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.94), rgba(6, 78, 59, 0.87)),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.35), transparent 25rem),
        radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.32), transparent 32rem);
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 34px;
    align-items: stretch;
    min-height: 520px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(2, 6, 23, 0.28);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.26);
    backdrop-filter: blur(14px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: rgb(186, 230, 253);
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    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, rgb(var(--color-primary)), rgb(var(--color-accent)));
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.26);
}

.btn-secondary {
    color: rgb(14, 116, 144);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

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

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.stat-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card strong {
    display: block;
    font-size: 24px;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 34px 86px rgba(2, 6, 23, 0.36);
    background: rgba(15, 23, 42, 0.32);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
    background-image:
        linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.74)),
        var(--hero-cover),
        linear-gradient(135deg, rgb(14, 165, 233), rgb(34, 197, 94));
    background-size: cover;
    background-position: center;
}

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

.hero-slide-card {
    width: 100%;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-slide-card h2 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.13;
}

.hero-slide-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.meta-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-pills span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    color: rgb(12, 74, 110);
    background: rgb(224, 242, 254);
}

.hero-slide .meta-pills span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

.section-spacing {
    padding: 56px 0;
}

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

.section-header h2,
.page-title {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-header p,
.page-subtitle {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgb(var(--color-muted));
    line-height: 1.75;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(var(--color-border), 0.9);
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: var(--shadow-card);
}

.poster-box {
    position: relative;
    min-height: 252px;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.0), rgba(15, 23, 42, 0.58)),
        var(--cover),
        linear-gradient(135deg, rgba(14, 165, 233, 0.86), rgba(34, 197, 94, 0.86));
    background-size: cover;
    background-position: center;
}

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

.score-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: rgb(120, 53, 15);
    background: rgb(254, 243, 199);
    font-size: 12px;
    font-weight: 900;
}

.movie-body {
    padding: 16px;
}

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

.movie-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: rgb(var(--color-muted));
    font-size: 13px;
    line-height: 1.72;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgb(82, 82, 82);
    font-size: 12px;
}

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

.category-card {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 9rem),
        linear-gradient(135deg, rgb(2, 132, 199), rgb(5, 150, 105));
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

.category-card strong {
    font-size: 32px;
}

.page-hero {
    padding: 42px 0;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.95), rgba(5, 150, 105, 0.88)),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.28), transparent 32rem);
}

.page-hero-inner {
    display: grid;
    gap: 18px;
}

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

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

.filter-panel {
    padding: 18px;
    margin: -24px auto 32px;
    border: 1px solid rgba(var(--color-border), 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 140px;
    gap: 12px;
}

.filter-bar input,
.filter-bar select {
    padding: 13px 14px;
}

.filter-result {
    margin-top: 12px;
    color: rgb(var(--color-muted));
    font-size: 14px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(var(--color-border), 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.ranking-cover {
    position: relative;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.62)),
        var(--cover),
        linear-gradient(135deg, rgba(14, 165, 233, 0.86), rgba(34, 197, 94, 0.86));
    background-size: cover;
    background-position: center;
}

.ranking-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-content p {
    margin: 0 0 10px;
    color: rgb(var(--color-muted));
    line-height: 1.7;
}

.heat-number {
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 16px;
    color: rgb(12, 74, 110);
    background: rgb(224, 242, 254);
    text-align: center;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: rgb(2, 6, 23);
    box-shadow: var(--shadow-soft);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.16), transparent 18rem),
        rgb(2, 6, 23);
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgb(2, 6, 23);
}

.play-overlay {
    position: absolute;
    inset: auto 24px 24px auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
    font-weight: 900;
}

.player-note {
    padding: 14px 18px;
    color: rgb(203, 213, 225);
    background: rgba(15, 23, 42, 0.96);
    font-size: 13px;
}

.content-card,
.info-card {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(var(--color-border), 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.content-card h2,
.info-card h2,
.info-card h3 {
    margin: 0 0 14px;
}

.content-card p {
    margin: 0 0 16px;
    color: rgb(64, 64, 64);
    line-height: 1.95;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(245, 245, 245);
}

.info-list dt {
    color: rgb(var(--color-muted));
}

.info-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

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

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

.site-footer {
    margin-top: 58px;
    color: rgb(212, 212, 212);
    background: rgb(23, 23, 23);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-inner p,
.footer-inner a {
    color: rgb(163, 163, 163);
    line-height: 1.75;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgb(115, 115, 115);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    color: rgb(var(--color-muted));
    text-align: center;
}

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

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

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

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

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

    .hero-shell,
    .hero-carousel {
        min-height: auto;
    }

    .hero-carousel {
        height: 520px;
    }

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

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

@media (max-width: 720px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

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

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

    .hero-section {
        padding-top: 18px;
    }

    .hero-copy {
        padding: 26px;
        border-radius: 24px;
    }

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

    .stat-row,
    .filter-bar,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        align-items: start;
    }

    .ranking-cover {
        width: 100%;
        max-width: 190px;
    }

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

    .poster-box {
        min-height: 214px;
    }

    .section-header {
        display: grid;
    }
}

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

    .poster-box {
        min-height: 320px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-carousel {
        height: 460px;
    }
}
