:root {
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-500: #3b82f6;
    --blue-700: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--cyan-50), var(--white) 42%, var(--slate-50));
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 30px rgba(6, 182, 212, 0.30);
}

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

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--cyan-600);
    background: var(--cyan-50);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--cyan-50);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--cyan-600);
}

main {
    min-height: 64vh;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--cyan-500), var(--blue-500) 55%, var(--cyan-500));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65) 0 2px, transparent 3px), radial-gradient(circle at 72% 48%, rgba(255,255,255,0.55) 0 2px, transparent 3px);
    background-size: 72px 72px, 96px 96px;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 120px;
    background: linear-gradient(0deg, var(--cyan-50), rgba(236, 254, 255, 0));
}

.hero-slider {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 46px;
    padding: 72px 0 118px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: var(--cyan-50);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-content h1 {
    margin: 0;
    max-width: 820px;
    color: var(--white);
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.hero-content p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--cyan-600);
    background: var(--white);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.secondary-btn {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.ghost-btn {
    color: var(--cyan-600);
    background: var(--cyan-50);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.015);
}

.hero-poster-card {
    position: relative;
    width: min(380px, 100%);
    justify-self: end;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 80px rgba(8, 47, 73, 0.35);
    backdrop-filter: blur(20px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster-info {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    padding: 18px;
    color: var(--white);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.76));
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 78px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 42px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--white);
}

.search-band {
    position: relative;
    z-index: 5;
    width: min(980px, calc(100% - 32px));
    margin: -64px auto 0;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-form input,
.filter-control input,
.filter-control select {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    color: var(--slate-900);
    border: 2px solid var(--slate-200);
    border-radius: 999px;
    outline: none;
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-control input:focus,
.filter-control select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-form button,
.filter-control button,
.play-button {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.22);
}

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

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

.section-header h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-header p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-link {
    color: var(--cyan-600);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 172px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: var(--shadow-card);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -32px;
    bottom: -40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cyan-100), var(--slate-100));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.score-badge,
.rank-number {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 850;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(8px);
}

.score-badge {
    right: 12px;
}

.rank-number {
    left: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--cyan-600);
    font-size: 13px;
    font-weight: 760;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-size: 19px;
    line-height: 1.32;
}

.movie-card p {
    margin: 0;
    min-height: 66px;
    color: var(--slate-500);
    line-height: 1.6;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 12px;
    font-weight: 650;
}

.hot-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.hot-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.hot-list-item {
    display: grid;
    grid-template-columns: auto 72px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hot-list-item:hover {
    background: var(--cyan-50);
    transform: translateX(4px);
}

.hot-list-item img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.hot-list-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.hot-list-item em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
}

.hot-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-weight: 850;
}

.page-hero {
    padding: 72px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--cyan-500), var(--blue-500));
}

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

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

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

.catalog-toolbar {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr auto;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-empty {
    display: none;
    padding: 56px 20px;
    text-align: center;
    color: var(--slate-500);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, rgba(8, 145, 178, 0.95), rgba(29, 78, 216, 0.95));
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--detail-bg) center / cover no-repeat;
    opacity: 0.18;
    filter: blur(6px);
    transform: scale(1.05);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    padding: 54px 0 64px;
}

.detail-poster img {
    width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.34);
}

.detail-title h1 {
    color: var(--white);
}

.detail-title p {
    margin: 18px 0 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.player-section,
.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 56px;
}

.player-section h2,
.content-section h2 {
    margin: 0 0 22px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 999px;
    color: var(--cyan-600);
    background: var(--white);
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
}

.player-overlay strong {
    display: block;
    font-size: 22px;
}

.article-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.article-card p {
    margin: 0 0 18px;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.9;
}

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

.search-results {
    margin-top: 32px;
}

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

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow-soft);
    }

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

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

    .hero-slide {
        align-content: center;
        gap: 26px;
        padding-bottom: 122px;
    }

    .hero-poster-card {
        width: min(300px, 100%);
        justify-self: start;
    }

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

    .catalog-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .detail-poster img {
        width: 220px;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .hero-slider,
    .section,
    .page-hero-inner,
    .detail-hero-inner,
    .player-section,
    .content-section {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-actions,
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form,
    .catalog-toolbar,
    .category-strip,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-dots {
        bottom: 62px;
    }

    .movie-card p {
        min-height: auto;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .detail-poster img {
        width: 100%;
        max-width: 260px;
    }
}

.site-footer {
    margin-top: 90px;
    color: rgba(255, 255, 255, 0.82);
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 850;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
}

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

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.article-card .footer-links {
    margin: 18px 0;
}

.article-card .footer-links a {
    color: var(--cyan-600);
}

@media (max-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
