:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-400: #38bdf8;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-50: #f0fdf4;
    --secondary-600: #16a34a;
    --accent-50: #fff7ed;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.18);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(18px);
}

.navbar {
    max-width: var(--container);
    margin: 0 auto;
    min-height: 4rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    white-space: nowrap;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-700);
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    min-width: 230px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--gray-50);
    overflow: hidden;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0.55rem 0.9rem;
    color: var(--gray-700);
}

.nav-search button {
    border: 0;
    color: var(--white);
    background: var(--primary-600);
    padding: 0.55rem 0.85rem;
}

.menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    padding: 1rem;
}

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

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 700;
    color: var(--gray-700);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    color: var(--white);
    background: var(--gray-900);
}

.hero-track {
    position: relative;
    height: min(680px, 72vh);
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 5rem 1rem 6rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 4.85rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-description {
    max-width: 680px;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.hero-panel-title {
    margin-top: 0.9rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.hero-panel-meta {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
}

.hero-controls {
    position: absolute;
    right: calc((100vw - min(var(--container), 100vw)) / 2 + 1rem);
    bottom: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: var(--primary-400);
}

.hero-search {
    max-width: 700px;
    margin-top: 1.25rem;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    color: var(--white);
    background: transparent;
    padding: 0.85rem 1.1rem;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    padding: 0.85rem 1.4rem;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.72rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

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

.btn-light {
    color: var(--gray-900);
    background: var(--white);
}

.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.section {
    padding: 3.5rem 0;
}

.section-tight {
    padding: 2.25rem 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    max-width: 780px;
    color: var(--gray-600);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

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

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

.card-badge,
.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-badge {
    top: 0.65rem;
    left: 0.65rem;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    padding: 0.28rem 0.58rem;
}

.score-badge {
    right: 0.65rem;
    bottom: 0.65rem;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.28rem 0.58rem;
}

.rank-badge {
    top: 0.65rem;
    right: 0.65rem;
    color: var(--white);
    background: var(--accent-600);
    padding: 0.28rem 0.6rem;
}

.movie-card-body {
    padding: 0.9rem;
}

.movie-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.32;
    font-weight: 900;
}

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

.movie-meta {
    margin: 0.42rem 0 0;
    color: var(--gray-500);
    font-size: 0.84rem;
}

.movie-line {
    display: -webkit-box;
    margin: 0.55rem 0 0;
    overflow: hidden;
    color: var(--gray-700);
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 0.76rem;
    font-weight: 700;
}

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

.category-card {
    display: block;
    min-height: 170px;
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--white), var(--primary-50));
    border: 1px solid rgba(2, 132, 199, 0.14);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-card span {
    color: var(--gray-600);
    font-size: 0.92rem;
}

.banner-block {
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border: 1px solid rgba(2, 132, 199, 0.12);
}

.page-hero {
    padding: 4rem 0 2.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--white), var(--secondary-50));
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    margin: 0;
    max-width: 930px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.page-hero p {
    max-width: 860px;
    margin: 1rem 0 0;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 0.8rem;
    margin-bottom: 1.35rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.8rem;
    padding: 0 0.85rem;
    color: var(--gray-700);
    background: var(--gray-50);
    outline: none;
}

.filter-empty {
    display: none;
    margin: 1.25rem 0;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border: 1px dashed var(--gray-200);
}

.filter-empty.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(3px);
    transform: scale(1.03);
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.38));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    padding: 3.5rem 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

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

.detail-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.detail-line {
    margin: 1rem 0 0;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.detail-meta span {
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 700;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    box-shadow: var(--shadow-lg);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.35), rgba(2, 6, 23, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 5rem;
    height: 5rem;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.95);
    box-shadow: 0 18px 38px rgba(2, 132, 199, 0.32);
    font-size: 2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    background: var(--primary-700);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

.article-card,
.side-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.article-card + .article-card {
    margin-top: 1rem;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    color: var(--gray-700);
}

.article-card p + p {
    margin-top: 0.8rem;
}

.side-list {
    display: grid;
    gap: 0.85rem;
}

.side-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.side-item img {
    width: 76px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.side-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-item span {
    color: var(--gray-500);
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 3rem;
    color: var(--gray-400);
    background: var(--gray-900);
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-grid h3 {
    margin: 0 0 0.9rem;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
    color: var(--gray-400);
    font-size: 0.92rem;
}

.footer-grid a {
    display: block;
    margin: 0.45rem 0;
}

.footer-grid a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .menu-button {
        display: inline-flex;
    }

    .hero-track {
        height: auto;
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .hero-panel {
        max-width: 260px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

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

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

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

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

@media (max-width: 640px) {
    .section {
        padding: 2.4rem 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card-body {
        padding: 0.75rem;
    }

    .hero-search {
        border-radius: 1rem;
        flex-direction: column;
    }

    .hero-search button {
        border-radius: 0;
    }

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