:root {
    --bg: #f5fbfc;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --text: #102028;
    --muted: #61737c;
    --line: rgba(15, 118, 110, 0.16);
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --teal: #0d9488;
    --green: #14b8a6;
    --shadow: 0 18px 48px rgba(8, 145, 178, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 15%, rgba(20, 184, 166, 0.14), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, 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;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
}

.brand-text,
.footer-brand {
    font-size: 1.45rem;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    -webkit-background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #31444d;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown > button:hover {
    color: var(--cyan-dark);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 210px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

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

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

.dropdown-panel a:hover {
    color: var(--cyan-dark);
    background: rgba(6, 182, 212, 0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.header-search input,
.big-search input,
.inline-filter input,
.inline-filter select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search button,
.big-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #23414d;
}

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

.mobile-nav a {
    display: block;
    padding: 12px;
    color: #31444d;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan-dark);
}

.mobile-nav.open {
    display: block;
}

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 26px auto 0;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(13, 148, 136, 0.88)),
        #0e7490;
    box-shadow: 0 32px 80px rgba(8, 145, 178, 0.22);
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.hero-glow-one {
    top: -120px;
    left: -90px;
    background: rgba(103, 232, 249, 0.28);
}

.hero-glow-two {
    right: -110px;
    bottom: 20px;
    background: rgba(45, 212, 191, 0.24);
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.1);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 59, 74, 0.8), rgba(3, 59, 74, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: calc(100% - 112px);
    display: grid;
    grid-template-columns: 1.05fr 0.62fr;
    align-items: center;
    gap: 54px;
    padding: 78px 78px 130px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.7rem, 6vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-desc {
    max-width: 680px;
    margin: 24px 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
    line-height: 1.8;
}

.hero-meta,
.detail-line {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    color: #ecfeff;
    font-weight: 900;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 8px 14px;
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    display: block;
    max-width: 360px;
    margin-left: auto;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
}

.hero-poster img,
.detail-poster img,
.poster img,
.category-tile img,
.hero-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bottom {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

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

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

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(620px, 58%);
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 10px;
    padding: 9px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.hero-mini-card img {
    height: 68px;
    border-radius: 13px;
}

.hero-mini-card span {
    overflow: hidden;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

.intro-panel,
.page-hero,
.feature-panel,
.text-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-panel {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    align-items: center;
    gap: 28px;
    padding: 34px;
}

.section-kicker {
    color: var(--cyan-dark);
    border-color: rgba(6, 182, 212, 0.22);
    background: rgba(6, 182, 212, 0.08);
}

.intro-copy h2,
.section-head h2,
.feature-panel h2,
.text-card h2 {
    margin: 0;
    color: #102028;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}

.intro-copy p,
.feature-panel p,
.text-card p,
.category-tile p {
    color: var(--muted);
    line-height: 1.8;
}

.big-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.big-search input {
    padding: 0 12px;
}

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

.section-more {
    color: var(--cyan-dark);
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 12px 18px;
}

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

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

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 59, 74, 0.05), rgba(3, 59, 74, 0.86));
}

.category-tile img {
    position: absolute;
    inset: 0;
    transition: transform 0.3s ease;
}

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

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

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

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.movie-card {
    overflow: hidden;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 22px 52px rgba(15, 118, 110, 0.16);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f7fa, #ccfbf1);
}

.poster img {
    transition: transform 0.3s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(3, 59, 74, 0.55));
}

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

.poster-play {
    right: 14px;
    bottom: 14px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.86);
    border-radius: 999px;
    padding: 8px 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.card-body {
    padding: 18px;
}

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

.card-meta a,
.breadcrumb a {
    color: var(--cyan-dark);
    font-weight: 800;
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    color: var(--cyan-dark);
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.08);
    padding: 6px 10px;
}

.split-area {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr;
    align-items: start;
    gap: 24px;
}

.rank-panel,
.feature-panel {
    min-width: 0;
}

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

.movie-card.compact {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.movie-card.compact .poster {
    aspect-ratio: auto;
    min-height: 150px;
}

.movie-card.compact .card-body p {
    min-height: auto;
}

.feature-panel {
    position: sticky;
    top: 96px;
    padding: 32px;
}

.feature-panel .primary-btn {
    margin-top: 20px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 34px;
    padding: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background:
        radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.2), transparent 24rem),
        linear-gradient(135deg, #0e7490, #0f766e);
}

.page-hero p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.inline-filter {
    width: min(520px, 100%);
    background: rgba(255, 255, 255, 0.95);
}

.inline-filter input,
.inline-filter select {
    padding: 8px 10px;
}

.inline-filter select {
    max-width: 160px;
    border-left: 1px solid var(--line);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    min-height: 560px;
    color: #ffffff;
    background: #073b4a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 59, 74, 0.92), rgba(3, 59, 74, 0.46));
}

.detail-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 46px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    border: 10px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.breadcrumb {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.68);
}

.breadcrumb a {
    color: #a5f3fc;
}

.detail-info h1 {
    max-width: 760px;
}

.detail-line {
    max-width: 760px;
    margin: 22px 0;
    font-size: 1.15rem;
}

.detail-meta span {
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
}

.detail-tags {
    margin: 20px 0 28px;
}

.detail-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #07181f;
    box-shadow: 0 28px 70px rgba(3, 59, 74, 0.24);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #07181f;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    background: linear-gradient(180deg, rgba(3, 59, 74, 0.1), rgba(3, 59, 74, 0.78));
}

.play-trigger span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.32);
}

.play-trigger strong {
    font-size: 1.15rem;
}

.player-shell.playing .play-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.text-card {
    padding: 30px;
}

.text-card p {
    margin-bottom: 0;
}

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

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

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    padding: 42px 0;
}

.footer-inner p {
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #40545d;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 10px 14px;
}

.footer-links a:hover {
    color: var(--cyan-dark);
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .hero-content,
    .detail-content,
    .intro-panel,
    .split-area,
    .detail-text,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        height: auto;
        padding: 54px 34px 180px;
    }

    .hero-poster {
        width: 260px;
        margin-left: 0;
    }

    .hero-mini-list {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .feature-panel {
        position: static;
    }

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 780px) {
    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        display: none;
    }

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

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

    .hero,
    .content-section,
    .page-hero,
    .detail-content,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        min-height: 820px;
        border-radius: 24px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: clamp(2.4rem, 13vw, 4.2rem);
    }

    .hero-content {
        padding: 40px 22px 238px;
        gap: 26px;
    }

    .hero-bottom {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hero-mini-list,
    .category-grid,
    .category-grid.large,
    .movie-grid,
    .related-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-panel,
    .page-hero,
    .feature-panel,
    .text-card {
        padding: 24px;
    }

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

    .inline-filter {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .inline-filter select {
        max-width: none;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .detail-content {
        padding: 44px 0;
    }

    .detail-poster {
        width: 250px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .movie-card.compact {
        grid-template-columns: 104px 1fr;
    }

    .hero-actions,
    .big-search {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .ghost-btn,
    .big-search button {
        width: 100%;
    }
}
