:root {
    --sky: #0284c7;
    --sky-dark: #0369a1;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --orange: #f97316;
    --slate: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--gray-50), #ffffff 35%, var(--gray-50));
    color: var(--gray-900);
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    background: var(--gray-200);
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.35);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 650;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-dark);
    background: #e0f2fe;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    cursor: pointer;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 22%, rgba(125, 211, 252, 0.32), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(103, 232, 249, 0.28), transparent 30%),
        linear-gradient(115deg, #075985 0%, #2563eb 48%, #0891b2 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.45;
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 105px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 52px;
    min-height: 470px;
}

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

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #dff8ff;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy h1 span {
    color: #a5f3fc;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: clamp(17px, 2.2vw, 23px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

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

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

.btn-primary {
    color: var(--sky-dark);
    background: var(--white);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

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

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

.hero-tags a,
.tag-row span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.hero-poster {
    position: relative;
    isolation: isolate;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 22px -20px -22px 20px;
    z-index: -1;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(255, 255, 255, 0.12));
    filter: blur(2px);
}

.hero-poster img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border: 7px solid rgba(255, 255, 255, 0.3);
    border-radius: 34px;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.42);
}

.hero-card-note {
    position: absolute;
    left: -24px;
    right: 28px;
    bottom: 22px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
}

.hero-card-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.hero-card-note span {
    color: #bfdbfe;
    font-size: 14px;
}

.hero-dots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -54px;
    padding-bottom: 34px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.stat-strip {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: -54px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    z-index: 5;
}

.stat-card {
    padding: 24px 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-900);
    font-size: 24px;
}

.stat-card span {
    color: var(--gray-500);
    font-weight: 650;
}

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

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

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

.section-head.center {
    display: block;
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
    margin: 0;
    color: var(--gray-500);
    font-size: 17px;
}

.view-more {
    color: var(--sky-dark);
    font-weight: 800;
}

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

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

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gray-200);
}

.card-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-badge,
.card-year {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 12px;
    right: 12px;
    color: #075985;
    background: #e0f2fe;
}

.card-year {
    left: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

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

.card-title {
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.32;
}

.card-desc {
    color: var(--gray-500);
    font-size: 14px;
}

.card-meta {
    margin-top: auto;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
}

.movie-card.compact {
    flex-direction: row;
}

.movie-card.compact .card-media {
    width: 148px;
    flex: 0 0 148px;
}

.movie-card.compact .card-media img {
    height: 154px;
}

.movie-card.compact .card-badge {
    display: none;
}

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

.category-card {
    display: block;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    display: block;
    margin-bottom: 18px;
    font-size: 44px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

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

.rank-num {
    color: var(--orange);
    font-size: 24px;
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
}

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

.rank-title {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 850;
}

.rank-meta {
    display: block;
    color: var(--gray-500);
    font-size: 13px;
}

.rank-heat {
    justify-self: end;
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 850;
}

.page-hero {
    padding: 78px 0 42px;
    background: linear-gradient(135deg, #f0f9ff, #ffffff 58%, #ecfeff);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) 220px 220px;
    gap: 16px;
    align-items: end;
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 800;
    font-size: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    color: var(--gray-900);
    background: var(--gray-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 78px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sky-dark);
}

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

.panel {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.panel.pad {
    padding: 26px;
}

.player-card {
    padding: 0;
}

.video-frame {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #020617;
}

.video-frame video {
    width: 100%;
    min-height: 420px;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.55));
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.play-overlay span::before {
    content: "";
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 27px solid var(--sky-dark);
}

.video-frame.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-title-row h1 {
    width: 100%;
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.14;
}

.pill {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 850;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-weight: 700;
}

.article-text h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.article-text p {
    margin: 0 0 15px;
    color: var(--gray-700);
    font-size: 16px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tag-row span {
    color: #075985;
    background: #e0f2fe;
}

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

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

.info-list div:last-child {
    border-bottom: 0;
}

.info-list span:first-child {
    color: var(--gray-500);
}

.info-list span:last-child {
    color: var(--gray-900);
    font-weight: 800;
    text-align: right;
}

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

.side-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    align-items: center;
}

.side-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
}

.side-card strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.side-card span {
    color: var(--gray-500);
    font-size: 13px;
}

.panel h2 {
    margin-top: 0;
}

@media (max-width: 980px) {
    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
    }

    .hero-inner {
        padding: 52px 0 96px;
    }

    .hero-poster img {
        height: 360px;
    }

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

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

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

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .site-nav {
        width: calc(100% - 24px);
    }

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

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-poster img {
        height: 300px;
        border-radius: 24px;
    }

    .hero-card-note {
        position: static;
        margin-top: 12px;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

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

    .movie-card.compact {
        flex-direction: column;
    }

    .movie-card.compact .card-media {
        width: auto;
        flex-basis: auto;
    }

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

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

    .rank-heat {
        grid-column: 3;
        justify-self: start;
    }

    .video-frame,
    .video-frame video {
        min-height: 240px;
    }
}
