:root {
    --bg: #f8fdff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #d9f3f6;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --teal: #0d9488;
    --blue: #2563eb;
    --soft-cyan: #ecfeff;
    --soft-blue: #eff6ff;
    --shadow: 0 18px 48px rgba(8, 145, 178, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(8, 145, 178, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--cyan-dark);
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #ffffff 0 16%, #67e8f9 17% 40%, #06b6d4 41% 70%, #0f766e 71% 100%);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.42);
}

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

.nav-link,
.mobile-link {
    color: #334155;
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan-dark);
    background: #ecfeff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #155e75;
}

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

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

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 68px 0 72px;
    background: linear-gradient(135deg, #cffafe 0%, #eff6ff 48%, #ccfbf1 100%);
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.36;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero-orb-a {
    right: -120px;
    top: -120px;
    background: #22d3ee;
}

.hero-orb-b {
    left: -110px;
    bottom: -130px;
    background: #2dd4bf;
    animation-delay: 1.4s;
}

.hero-orb-c {
    left: 48%;
    top: 35%;
    background: #93c5fd;
    animation-delay: 2.8s;
}

@keyframes floatOrb {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(24px, -18px, 0) scale(1.08);
    }
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 34px;
}

.hero-intro,
.hero-carousel {
    position: relative;
    z-index: 2;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(8, 145, 178, 0.14);
    border-radius: 999px;
    color: var(--cyan-dark);
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
}

.hero-intro h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-intro p,
.page-hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(8, 145, 178, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 0;
    outline: none;
    border-radius: 12px;
    color: #0f172a;
    background: transparent;
}

.hero-search input,
.filter-bar input {
    flex: 1;
    padding: 12px 14px;
}

.filter-bar select {
    padding: 0 12px;
    background: #f8fdff;
}

.hero-search button {
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    font-weight: 750;
    cursor: pointer;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-quick-links a,
.ghost-btn,
.primary-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-quick-links a,
.ghost-btn {
    padding: 10px 15px;
    color: var(--cyan-dark);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(8, 145, 178, 0.15);
}

.primary-btn {
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.text-link {
    padding: 10px 15px;
    color: var(--cyan-dark);
    background: #ecfeff;
}

.hero-quick-links a:hover,
.ghost-btn:hover,
.primary-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-carousel {
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 28px 80px rgba(8, 145, 178, 0.18);
    backdrop-filter: blur(20px);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: stretch;
    gap: 22px;
    padding: 20px;
    opacity: 0;
    transform: translateX(22px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
    overflow: hidden;
    min-height: 390px;
    border-radius: 26px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.hero-poster img,
.movie-poster img,
.detail-cover,
.category-posters img,
.rank-item img {
    height: 100%;
    object-fit: cover;
}

.hero-movie-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 18px 18px 0;
}

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

.hero-tags span,
.detail-tags span,
.detail-tags a,
.tag-row span,
.detail-tag-list span,
.chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--cyan-dark);
    background: #ecfeff;
    font-size: 12px;
    font-weight: 750;
}

.hero-movie-copy h2 {
    margin: 18px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.hero-movie-copy p {
    margin: 0;
    color: #475569;
}

.hero-tag-row {
    margin-top: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-controls {
    position: absolute;
    right: 30px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-control,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-control {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--cyan-dark);
    background: rgba(255, 255, 255, 0.9);
    font-size: 26px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: #a5f3fc;
}

.hero-dot.is-active {
    width: 24px;
    background: var(--cyan);
}

.section {
    padding: 70px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section,
.rank-section {
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.section-head h2,
.detail-copy h1,
.detail-copy h2,
.side-card h2 {
    margin: 0;
    color: #0f172a;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.12;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #dff7fa;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(8, 145, 178, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #a5f3fc;
    box-shadow: 0 24px 54px rgba(8, 145, 178, 0.16);
}

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

.movie-poster img {
    transition: transform 0.32s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta-line,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #eefbfc;
}

.category-grid,
.category-card-grid {
    display: grid;
    gap: 20px;
}

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile {
    min-height: 178px;
    padding: 24px;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.3s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(13, 148, 136, 0.24);
}

.category-tile:hover::after {
    transform: scale(1.35);
}

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

.category-tile span {
    font-size: 20px;
    font-weight: 800;
}

.category-tile strong {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
}

.category-tile em {
    margin-top: 8px;
    color: #dcfffb;
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0;
    background: linear-gradient(135deg, #cffafe, #eff6ff 56%, #ccfbf1);
}

.compact-hero {
    padding: 54px 0;
}

.wide-filter {
    max-width: 880px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 220px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid #dff7fa;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 12px;
}

.category-posters img {
    min-height: 92px;
    border-radius: 14px;
    background: #ecfeff;
}

.category-card-body {
    padding: 28px;
}

.category-card-body h2 {
    margin: 0 0 12px;
    color: var(--cyan-dark);
}

.category-card-body p {
    margin: 0 0 18px;
    color: #64748b;
}

.category-card-body span {
    color: var(--teal);
    font-weight: 800;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #dff7fa;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.14);
}

.rank-no {
    color: var(--cyan-dark);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 92px;
    border-radius: 14px;
    background: #ecfeff;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    font-size: 17px;
}

.rank-copy em {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    font-weight: 900;
}

.detail-section {
    background: #ffffff;
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 700;
}

.detail-breadcrumb a:hover {
    color: var(--cyan-dark);
}

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

.detail-main,
.detail-side,
.detail-copy,
.side-card {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.24);
}

.player-shell video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.36), rgba(8, 145, 178, 0.22));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.88);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.34);
    font-size: 28px;
}

.detail-copy {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid #dff7fa;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.08);
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-copy .lead {
    color: #475569;
    font-size: 18px;
}

.detail-copy h2 {
    margin-top: 28px;
    margin-bottom: 8px;
    font-size: 23px;
}

.detail-copy p {
    margin: 0 0 12px;
    color: #475569;
}

.detail-tag-list {
    margin-top: 22px;
}

.detail-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    background: #ecfeff;
    box-shadow: var(--shadow);
}

.side-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dff7fa;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(8, 145, 178, 0.08);
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 18px 0 0;
}

.side-card dt {
    color: #64748b;
}

.side-card dd {
    margin: 0;
    font-weight: 750;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: #64748b;
    background: #f8fdff;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

.site-footer {
    padding: 34px 0;
    border-top: 1px solid #dff7fa;
    background: #ffffff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #64748b;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

@media (max-width: 1060px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .side-card {
        margin-top: 0;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero-section,
    .section,
    .page-hero {
        padding: 46px 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
    }

    .hero-slide.is-active {
        display: grid;
    }

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

    .hero-poster {
        min-height: 310px;
    }

    .hero-movie-copy {
        padding: 0 4px 62px;
    }

    .hero-controls {
        left: 22px;
        right: auto;
    }

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .category-card-grid,
    .rank-list-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .filter-bar,
    .hero-search {
        flex-direction: column;
    }

    .hero-search button,
    .filter-bar select {
        min-height: 46px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 20px;
    }

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .category-card-grid,
    .rank-list-home {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 42px 60px 1fr;
    }

    .rank-score {
        grid-column: 3;
        width: fit-content;
        height: auto;
        padding: 5px 12px;
        border-radius: 999px;
    }

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

    .detail-cover {
        max-width: 280px;
    }
}
