:root {
    --bg: #f0f9ff;
    --bg-soft: #e0f2fe;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(14, 165, 233, 0.18);
    --card: rgba(255, 255, 255, 0.92);
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --cyan: #06b6d4;
    --yellow: #facc15;
    --shadow: 0 18px 45px rgba(2, 132, 199, 0.16);
    --shadow-strong: 0 25px 80px rgba(8, 47, 73, 0.28);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 28rem),
        linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.96), rgba(6, 182, 212, 0.94));
    color: #ffffff;
    box-shadow: 0 14px 45px rgba(3, 105, 161, 0.28);
    backdrop-filter: blur(18px);
}

.header-shell {
    width: min(1280px, calc(100% - 28px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #075985;
    background: linear-gradient(135deg, #ffffff, #bae6fd 48%, #67e8f9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 10px 28px rgba(8, 47, 73, 0.25);
}

.brand-text {
    font-size: 1.18rem;
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 180px;
    display: grid;
    gap: 2px;
    padding: 10px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
}

.dropdown-panel a:hover {
    color: var(--primary-dark);
    background: #e0f2fe;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 310px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.86);
}

.header-search button,
.filter-box button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    color: #075985;
    background: #ffffff;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #08152d;
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 48px;
    align-items: center;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
}

.hero-copy {
    max-width: 760px;
    padding-top: 60px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #facc15;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.9;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

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

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

.btn-primary {
    color: #075985;
    background: linear-gradient(135deg, #ffffff, #bae6fd);
    box-shadow: 0 14px 35px rgba(14, 165, 233, 0.26);
}

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

.btn-ghost.light,
.btn-outline {
    color: var(--primary-dark);
    border: 1px solid rgba(2, 132, 199, 0.24);
    background: #ffffff;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 8, 23, 0.32));
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

.hero-side-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    bottom: 34px;
    width: min(280px, calc(100% - 32px));
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-side-panel strong,
.hero-side-panel span,
.hero-side-panel a {
    display: block;
}

.hero-side-panel span {
    margin: 6px 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.hero-side-panel a {
    color: #facc15;
    font-weight: 900;
}

.quick-filter {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: -36px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.filter-box {
    display: flex;
    gap: 10px;
}

.filter-box input,
.list-toolbar input,
.list-toolbar select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    padding: 13px 16px;
    color: var(--text);
    background: #ffffff;
}

.filter-box button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-links a {
    padding: 11px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #e0f2fe;
    font-weight: 800;
}

.content-section {
    padding: 72px 0 0;
}

.no-top-padding {
    padding-top: 22px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p,
.page-hero p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--primary-dark);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 26px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    background: #075985;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(8, 47, 73, 0.92));
}

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

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0369a1, #06b6d4);
}

.movie-card:not(.compact-card) .poster {
    aspect-ratio: 16 / 11;
}

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

.poster:hover img {
    transform: scale(1.08);
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.72));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    color: #075985;
    background: #ffffff;
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    color: #0f172a;
    background: #facc15;
}

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

.movie-meta-line,
.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

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

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

.movie-card h3 a:hover {
    color: var(--primary-dark);
}

.movie-card p {
    min-height: 50px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
}

.page-main {
    padding-top: 34px;
    padding-bottom: 80px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 58px);
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.24), transparent 28rem),
        linear-gradient(135deg, #ffffff, #e0f2fe 58%, #f8fafc);
    box-shadow: var(--shadow);
}

.ranking-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 12%, rgba(250, 204, 21, 0.28), transparent 22rem),
        linear-gradient(135deg, #082f49, #075985 52%, #0891b2);
}

.ranking-hero h1,
.ranking-hero p {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.list-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 190px) minmax(140px, 190px) auto;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sticky-toolbar {
    position: sticky;
    top: 88px;
    z-index: 8;
}

.filter-count {
    white-space: nowrap;
    color: var(--primary-dark);
    font-weight: 900;
}

.category-overview-card {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 2rem;
}

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0, rgba(34, 211, 238, 0.30), transparent 24rem),
        linear-gradient(135deg, #082f49, #075985 58%, #0e7490);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1,
.detail-info .eyebrow {
    color: #ffffff;
}

.detail-one-line {
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid strong {
    color: #bae6fd;
    font-size: 0.82rem;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section,
.detail-copy,
.related-section {
    margin-top: 32px;
}

.player-section,
.detail-copy article,
.single-copy,
.related-section {
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.compact-heading {
    margin-bottom: 16px;
}

.static-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.45));
    cursor: pointer;
}

.play-button span {
    width: 88px;
    height: 88px;
    display: grid;
    place-content: center;
    margin: 0 auto;
    border-radius: 999px;
    color: #075985;
    background: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.static-player.is-playing .play-button {
    display: none;
}

.player-tip {
    margin: 12px 0 0;
    color: var(--muted);
}

.detail-copy {
    display: grid;
    gap: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.detail-copy h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.55rem;
}

.detail-copy p {
    margin: 0;
    color: #475569;
    line-height: 1.92;
}

.detail-copy a {
    color: var(--primary-dark);
    font-weight: 900;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-shell p {
    max-width: 520px;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.footer-links a,
.footer-bottom a {
    color: #cbd5e1;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #94a3b8;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-search {
        min-width: 230px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 860px) {
    .header-shell {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

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

    .nav-link,
    .nav-dropdown > button {
        text-align: left;
        border-radius: 14px;
    }

    .nav-dropdown {
        display: none;
    }

    .header-search {
        width: 100%;
        min-width: 0;
        order: 4;
    }

    .hero-section,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding: 30px 0 90px;
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-side-panel {
        display: none;
    }

    .quick-filter,
    .list-toolbar,
    .detail-hero,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .section-heading,
    .category-overview-head,
    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 22px, 1200px);
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .filter-box {
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .movie-card p {
        min-height: 0;
    }

    .page-hero,
    .detail-hero,
    .player-section,
    .detail-copy article,
    .related-section,
    .category-overview-card {
        border-radius: 22px;
        padding: 20px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }
}
