:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-50: #f0fdfa;
    --secondary-100: #ccfbf1;
    --secondary-500: #14b8a6;
    --secondary-600: #0d9488;
    --accent-50: #fff7ed;
    --accent-100: #ffedd5;
    --accent-600: #ea580c;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --shadow-soft: 0 16px 45px rgba(28, 25, 23, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--neutral-900);
    background: linear-gradient(180deg, var(--neutral-50), #ffffff);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.8);
}

.navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.22);
}

.logo-title {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--neutral-900);
}

.logo-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--neutral-500);
}

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

.nav-links a:hover {
    color: var(--primary-600);
}

.nav-search {
    position: relative;
    width: 260px;
}

.nav-search input {
    width: 100%;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    padding: 12px 44px 12px 18px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    padding: 8px 11px;
    color: #ffffff;
    background: var(--primary-600);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--neutral-800);
    background: var(--neutral-100);
    cursor: pointer;
}

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

.mobile-panel a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--neutral-700);
    font-weight: 650;
}

.mobile-panel a:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.28));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 76vh;
    display: flex;
    align-items: flex-end;
    padding: 110px 0 76px;
}

.hero-copy {
    max-width: 780px;
    color: #ffffff;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary-600);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.32);
}

.hero h1,
.hero h2 {
    margin: 18px 0 18px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 30px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.28);
}

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

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    border: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 28px;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.section {
    padding: 64px 0;
}

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

.eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--primary-600);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
}

.section-desc {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--neutral-600);
    line-height: 1.8;
}

.more-link {
    color: var(--primary-600);
    font-weight: 800;
}

.more-link:hover {
    color: var(--primary-700);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(28, 25, 23, 0.16);
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--neutral-200);
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0));
    transition: opacity 0.25s ease;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.badge-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(10px);
}

.badge-channel {
    color: var(--primary-700);
    background: var(--primary-100);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 12px 0 8px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-card:hover .card-title {
    color: var(--primary-600);
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--neutral-500);
    font-size: 13px;
}

.feature-panel {
    border-radius: 32px;
    padding: 34px;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(28, 25, 23, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(28, 25, 23, 0.16);
}

.horizontal-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.horizontal-content {
    padding: 24px;
}

.horizontal-content h3 {
    margin: 12px 0 10px;
    font-size: 24px;
}

.horizontal-content p {
    color: var(--neutral-600);
    line-height: 1.8;
}

.channel-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    padding: 24px;
    color: var(--neutral-900);
    background: linear-gradient(135deg, #ffffff, var(--primary-50));
    box-shadow: 0 10px 25px rgba(28, 25, 23, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.channel-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.channel-card p {
    margin: 0;
    color: var(--neutral-600);
    line-height: 1.7;
}

.channel-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.channel-samples span,
.channel-samples a {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    padding: 72px 0 36px;
    background: linear-gradient(135deg, var(--primary-50), #ffffff 48%, var(--secondary-50));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 820px;
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.85;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin: 28px 0;
}

.filter-bar input {
    min-height: 52px;
    border: 2px solid var(--neutral-200);
    border-radius: 18px;
    padding: 0 18px;
    outline: none;
    font-size: 16px;
    background: #ffffff;
}

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

.filter-bar button {
    min-height: 52px;
    border: 0;
    border-radius: 18px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--primary-600);
    font-weight: 800;
    cursor: pointer;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--neutral-500);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--primary-600);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 30px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary-600);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 20px 52px rgba(2, 132, 199, 0.34);
}

.player-meta {
    padding: 24px;
}

.player-meta h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.18;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-size: 13px;
    font-weight: 750;
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    color: var(--neutral-700);
    line-height: 1.9;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-list span {
    border-radius: 999px;
    padding: 8px 11px;
    color: var(--secondary-700);
    background: var(--secondary-100);
    font-size: 13px;
    font-weight: 750;
}

.side-card {
    padding: 22px;
}

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

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

.side-item img {
    width: 82px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: var(--neutral-500);
    font-size: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    font-weight: 900;
}

.rank-row img {
    width: 96px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-row p {
    margin: 0;
    color: var(--neutral-600);
    line-height: 1.55;
}

.heat {
    white-space: nowrap;
    color: var(--accent-600);
    font-weight: 900;
}

.site-footer {
    margin-top: 72px;
    padding: 52px 0;
    color: #d6d3d1;
    background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800), var(--neutral-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer p {
    color: #a8a29e;
    line-height: 1.8;
}

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

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

.footer-links a:hover {
    color: #38bdf8;
}

.empty-filter {
    display: none;
    border-radius: 20px;
    padding: 28px;
    color: var(--neutral-600);
    background: var(--neutral-100);
    text-align: center;
}

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

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

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

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

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

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

    .rank-row {
        grid-template-columns: 48px 82px 1fr;
    }

    .heat {
        grid-column: 3;
    }
}

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

    .logo-title {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 70vh;
    }

    .hero-content {
        padding: 92px 0 64px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .horizontal-card {
        grid-template-columns: 1fr;
    }

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

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

    .rank-row img {
        display: none;
    }

    .heat {
        grid-column: 2;
    }
}
