:root {
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img,
video {
    display: block;
    max-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: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--cyan-dark);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--white);
    font-weight: 700;
}

.nav-links a {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--white);
    font-weight: 700;
}

.hero-slider {
    position: relative;
    height: 66vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease;
}

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

.hero-layer,
.page-hero-layer,
.detail-hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18));
}

.hero-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(660px, 100%);
    color: var(--white);
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    margin: 16px 0;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
    margin: 0;
    max-width: 760px;
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

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

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 145, 178, 0.88);
    font-size: 0.88rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: var(--cyan);
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.32);
}

.btn.primary:hover {
    background: var(--cyan-dark);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--white);
}

.hero-strip {
    position: absolute;
    right: 0;
    bottom: 54px;
    left: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    pointer-events: none;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 82px 120px;
    gap: 10px;
    align-items: center;
    width: 224px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.hero-thumb img {
    width: 82px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-thumb span {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(180deg, var(--white), var(--slate-100));
}

.section-head {
    margin-bottom: 28px;
}

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head h2,
.content-card h2,
.side-card h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(1.55rem, 3.4vw, 2.25rem);
    letter-spacing: -0.03em;
}

.text-link {
    color: var(--cyan);
    font-weight: 900;
}

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

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-200);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.7));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.badge-left {
    left: 10px;
}

.badge-right {
    right: 10px;
    background: var(--cyan);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: var(--white);
    background: var(--cyan);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.card-body strong {
    overflow: hidden;
    color: var(--slate-800);
    font-size: 1.06rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
    color: var(--cyan);
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--cyan-dark);
    background: #cffafe;
    font-size: 0.76rem;
    font-weight: 800;
}

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

.category-card,
.overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 156px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--shadow-soft);
}

.category-card img,
.overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.45s ease;
}

.category-card:hover img,
.overview-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.86));
}

.category-card strong,
.category-card small {
    position: absolute;
    left: 18px;
    right: 18px;
    color: var(--white);
}

.category-card strong {
    bottom: 44px;
    font-size: 1.15rem;
}

.category-card small {
    bottom: 22px;
    color: #cffafe;
    font-weight: 700;
}

.overview-card {
    min-height: 240px;
}

.overview-copy {
    position: absolute;
    inset: auto 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--white);
}

.overview-copy strong {
    font-size: 1.35rem;
}

.overview-copy em {
    width: max-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(15, 23, 42, 0.42);
    font-style: normal;
    font-weight: 800;
}

.overview-copy span {
    color: #e2e8f0;
    line-height: 1.6;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
}

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

.rank-list.compact {
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 112px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

.rank-item img {
    width: 112px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy strong {
    color: var(--slate-800);
    margin-bottom: 6px;
}

.rank-copy span,
.rank-meta {
    color: var(--slate-600);
    font-size: 0.9rem;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rank-meta span {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--slate-100);
    font-weight: 800;
}

.page-shell {
    min-height: 70vh;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--cyan-dark));
    background-position: center;
    background-size: cover;
}

.page-hero.small {
    padding: 88px 0;
}

.page-hero.category-hero {
    padding: 116px 0;
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 800;
}

.search-box input,
.select-row select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--slate-300);
    border-radius: 13px;
    padding: 0 14px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.select-row select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

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

.filter-result {
    margin: 0;
    color: var(--slate-600);
    font-weight: 700;
}

.detail-hero {
    padding: 88px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: #cffafe;
    font-weight: 800;
}

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

.player-panel,
.content-card,
.side-card,
.prev-next {
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-panel {
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: var(--slate-900);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-900);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: var(--cyan);
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.35);
}

.player-overlay strong {
    font-size: 1.1rem;
}

.player-panel.is-playing .player-overlay,
.player-panel.is-ready .player-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-note {
    margin: 0;
    padding: 12px 16px 16px;
    color: var(--slate-600);
    font-weight: 800;
}

.content-card {
    margin-top: 24px;
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.content-card p {
    margin: 0 0 24px;
    color: var(--slate-700);
    line-height: 1.9;
}

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

.content-card .lead {
    color: var(--slate-800);
    font-weight: 800;
}

.side-card {
    padding: 18px;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 18px;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.side-card dl div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
}

.side-card dt {
    color: var(--slate-500);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--slate-800);
    font-weight: 800;
    word-break: break-word;
}

.side-card dd a {
    color: var(--cyan);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-cloud span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--cyan-dark);
    background: #cffafe;
    font-size: 0.8rem;
    font-weight: 800;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding: 18px;
}

.prev-next a {
    overflow: hidden;
    color: var(--cyan-dark);
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: auto;
    padding: 54px 0 36px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 1.05rem;
}

.site-footer p {
    max-width: 420px;
    line-height: 1.75;
}

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

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

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

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1120px) {
    .card-grid.six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-strip {
        display: none;
    }

    .rank-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero-slider {
        height: 72vh;
        min-height: 560px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .section-head.split,
    .prev-next {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 42px 86px minmax(0, 1fr);
    }

    .rank-item img {
        width: 86px;
        height: 58px;
    }

    .rank-meta {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .select-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-copy h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions {
        display: grid;
    }

    .card-grid.four,
    .card-grid.six,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .content-card,
    .side-card {
        padding: 18px;
    }
}
