:root {
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --blue-soft: #dff7ff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
    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(--ink);
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 38%, #f8fafc 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(240, 253, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(103, 232, 249, 0.35);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: -3px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.24);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
}

.header-search input,
.mobile-search input,
.page-search input,
.list-tools input,
.list-tools select {
    width: 100%;
    border: 2px solid rgba(6, 182, 212, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    outline: none;
    padding: 11px 16px;
    transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.list-tools input:focus,
.list-tools select:focus {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(103, 232, 249, 0.25);
    background: #fff;
}

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

.mobile-panel-inner {
    padding: 14px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #06b6d4 0%, #2563eb 52%, #0891b2 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px), radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1px);
    background-size: 58px 58px, 42px 42px;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -26% -10%;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 68%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.hero-heading {
    width: min(780px, 100%);
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--cyan-dark);
    background: rgba(207, 250, 254, 0.82);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-heading .eyebrow,
.page-hero .eyebrow,
.detail-title-block .eyebrow {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-heading h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-heading p {
    max-width: 680px;
    margin: 0;
    color: #e0faff;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-slider {
    position: relative;
    min-height: 390px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 34px;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.985);
    transition: 0.55s ease;
}

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

.hero-copy {
    min-height: 390px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.38), rgba(8, 145, 178, 0.16));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-copy h2 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: #e0faff;
    font-size: 18px;
}

.hero-meta,
.meta-row,
.tag-row,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0faff;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    margin-top: 28px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-btn {
    color: var(--cyan-dark);
    background: #fff;
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.22);
}

.ghost-btn {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.68);
}

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

.hero-poster {
    position: relative;
    min-height: 390px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: 0.25s ease;
}

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

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

.soft-bg {
    background: linear-gradient(180deg, #f0fdff, #ffffff);
}

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

.section-head.centered {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p {
    color: var(--muted);
    margin: 8px 0 0;
}

.text-link {
    color: var(--cyan-dark);
    font-weight: 900;
    transition: 0.25s ease;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.compact-card .poster-wrap {
    height: 210px;
}

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

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

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    border-radius: 999px;
    padding: 6px 11px;
    color: #fff;
    background: rgba(8, 145, 178, 0.88);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.meta-row {
    justify-content: space-between;
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    min-height: 54px;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card p {
    margin: 0 0 14px;
    min-height: 72px;
    color: var(--muted);
    font-size: 14px;
}

.category-strip {
    padding: 72px 0;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.category-card,
.category-overview-card {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.1);
    transition: 0.28s ease;
}

.category-card {
    min-height: 172px;
    padding: 24px;
}

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

.category-card span,
.category-overview-main span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 12px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-top: 18px;
    font-size: 20px;
}

.category-card em,
.rank-info em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

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

.rank-item {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.rank-link {
    display: grid;
    grid-template-columns: 54px 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.rank-num {
    color: var(--cyan-dark);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-link img {
    width: 78px;
    height: 104px;
    border-radius: 16px;
    object-fit: cover;
    background: #cffafe;
}

.rank-info strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, var(--cyan), var(--blue));
}

.page-hero {
    padding: 92px 0;
}

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

.page-hero p {
    max-width: 760px;
    color: #e0faff;
    font-size: 19px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
}

.crumbs a:hover {
    color: #fff;
}

.list-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    margin-bottom: 26px;
}

.list-tools label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.page-search {
    display: flex;
    gap: 10px;
    width: min(720px, 100%);
    margin-top: 26px;
}

.category-overview-card {
    overflow: hidden;
}

.category-overview-main {
    display: block;
    padding: 24px;
}

.category-overview-main h2 {
    margin: 18px 0 8px;
    font-size: 24px;
}

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

.category-samples {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.category-samples a {
    padding: 13px 18px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.category-samples a:hover {
    color: var(--cyan-dark);
    background: #ecfeff;
}

.detail-hero {
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    background: #020617;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(2px) saturate(1.1);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(8, 145, 178, 0.6), rgba(37, 99, 235, 0.35));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.detail-title-block {
    max-width: 850px;
}

.detail-title-block p {
    margin: 18px 0 0;
    color: #e0faff;
    font-size: 20px;
}

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

.player-shell {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.48));
    text-align: center;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.play-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--cyan-dark);
    background: #fff;
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(255, 255, 255, 0.24);
}

.player-overlay strong {
    width: min(86%, 540px);
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.25;
}

.detail-content,
.detail-meta-card {
    margin-top: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-content {
    padding: clamp(24px, 4vw, 38px);
}

.detail-content h2,
.detail-meta-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

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

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #cffafe;
    box-shadow: var(--shadow);
}

.detail-meta-card {
    padding: 24px;
}

.detail-meta-card dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0 0 18px;
}

.detail-meta-card dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-meta-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.detail-tags span {
    background: #ecfeff;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 56px 0 34px;
}

.footer-grid p {
    max-width: 460px;
    color: #94a3b8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #67e8f9;
    font-size: 18px;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

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

@media (max-width: 1060px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-slide,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 760px;
    }

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

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

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

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding: 46px 0;
    }

    .hero-slider {
        min-height: 710px;
    }

    .hero-copy {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

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

    .section-block,
    .category-strip {
        padding: 48px 0;
    }

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

    .movie-grid,
    .featured-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .rank-list-page,
    .footer-grid,
    .list-tools {
        grid-template-columns: 1fr;
    }

    .poster-wrap {
        height: 240px;
    }

    .page-search,
    .mobile-search {
        flex-direction: column;
    }

    .page-hero {
        padding: 56px 0;
    }

    .detail-hero {
        min-height: 420px;
    }

    .detail-hero-inner {
        padding: 54px 0;
    }
}
