:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --cyan-light: #67e8f9;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
    --radius-lg: 22px;
    --radius-xl: 30px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100%);
}

body.locked {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.96));
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.36);
    font-weight: 900;
}

.logo-text strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.logo-text small {
    display: block;
    margin-top: 2px;
    color: #dbeafe;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #dbeafe;
}

.nav-search {
    position: relative;
    width: min(310px, 26vw);
}

.nav-search input,
.search-panel input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    padding: 12px 48px 12px 18px;
}

.nav-search input::placeholder,
.search-panel input::placeholder,
.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.nav-search button,
.search-panel button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--white);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

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

.hero-slide img.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide.active img.hero-image {
    animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(14, 165, 233, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.58) 44%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-copy {
    max-width: 680px;
    padding-top: 26px;
}

.hero-badge,
.card-badge,
.section-badge,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.hero-badge {
    padding: 9px 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e0f2fe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.meta-pill {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.btn-light {
    color: var(--blue-dark);
    background: var(--white);
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 54px;
    background: var(--white);
}

.wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 62px;
    pointer-events: none;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(110deg, var(--blue), var(--cyan));
    padding: 78px 0 88px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 76% 16%, rgba(125, 211, 252, 0.28), transparent 28%);
}

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

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e0f2fe;
    font-size: 19px;
    line-height: 1.8;
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 44px 0;
}

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

.section-title h2 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 0;
    max-width: 760px;
    color: var(--slate-600);
    line-height: 1.8;
}

.section-badge,
.card-badge {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.92));
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #e0f2fe;
    line-height: 1.7;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
    display: none;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--slate-800), var(--blue));
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 10px 0 9px;
    min-height: 56px;
    color: var(--slate-900);
    font-size: 19px;
    line-height: 1.45;
}

.card-body h3 a:hover {
    color: var(--blue);
}

.card-desc {
    min-height: 50px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta,
.breadcrumb,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-meta span,
.rank-meta span {
    border-radius: 999px;
    background: var(--slate-100);
    padding: 6px 10px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 128px 1fr;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
    font-size: 20px;
}

.rank-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: var(--slate-800);
}

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

.rank-info h3 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 19px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--slate-600);
    line-height: 1.65;
}

.filter-bar {
    display: grid;
    gap: 16px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(6, 182, 212, 0.92));
    box-shadow: var(--shadow);
    padding: 20px;
    margin: 0 0 30px;
}

.filter-input {
    color: var(--white);
}

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

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.filter-chip.active,
.filter-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.search-panel {
    position: relative;
    max-width: 760px;
    margin-top: 26px;
}

.search-results-note {
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 18px;
}

.empty-state {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 54px 24px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
}

.empty-state p {
    margin: 0;
    color: var(--slate-600);
}

.detail-shell {
    padding: 48px 0 78px;
}

.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-panel,
.content-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.player-block {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.player-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--slate-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-block.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.36);
    font-size: 32px;
    transform: translateX(3px);
}

.play-overlay strong {
    font-size: 20px;
}

.player-title {
    padding: 22px 24px 26px;
}

.player-title h1 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.22;
}

.player-title p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.85;
}

.detail-panel {
    padding: 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    background: var(--slate-800);
    margin-bottom: 18px;
}

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

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 12px;
}

.info-list dt {
    color: var(--slate-500);
}

.info-list dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
    text-align: right;
}

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

.content-card h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 26px;
}

.content-card p {
    margin: 0 0 18px;
    color: var(--slate-700);
    line-height: 1.95;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span,
.tag-cloud a {
    display: inline-flex;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #dbeafe;
    padding: 8px 12px;
    font-weight: 700;
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
    padding: 78px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 34px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #cbd5e1;
    line-height: 1.8;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

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

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

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

@media (max-width: 860px) {
    .desktop-nav,
    .nav-wrap > .nav-search {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel {
        height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.82));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 76px;
    }

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

    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 52px 106px 1fr;
    }

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

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: 44px 96px 1fr;
        gap: 12px;
    }

    .rank-no {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 17px;
    }

    .card-body h3 {
        min-height: 0;
    }

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

    .content-card,
    .detail-panel,
    .player-title {
        padding: 20px;
    }
}
