:root {
    --primary: #0073e6;
    --primary-dark: #005bb3;
    --primary-soft: #e6f2ff;
    --accent: #e67300;
    --accent-soft: #fff3e6;
    --ink: #0d0f12;
    --muted: #6c757d;
    --line: #dee2e6;
    --panel: #ffffff;
    --bg: #f8f9fa;
    --dark: #0d0f12;
    --shadow: 0 12px 35px rgba(13, 15, 18, 0.10);
    --shadow-soft: 0 8px 22px rgba(13, 15, 18, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(222, 226, 230, 0.75);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(13, 15, 18, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    min-height: 76px;
    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: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px rgba(0, 115, 230, 0.25);
}

.logo-mark.small {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    color: #343a40;
}

.nav-link {
    position: relative;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-soft);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary);
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #343a40;
    background: #f8f9fa;
    font-weight: 600;
}

.mobile-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.page-main {
    padding-top: 76px;
}

.hero-slider {
    position: relative;
    height: clamp(480px, 70vh, 780px);
    overflow: hidden;
    background: var(--dark);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 20%, rgba(0, 115, 230, 0.35), transparent 30%), linear-gradient(180deg, rgba(13, 15, 18, 0.18), rgba(13, 15, 18, 0.48) 45%, rgba(13, 15, 18, 0.96));
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    padding-bottom: clamp(60px, 9vw, 112px);
    color: #ffffff;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(230, 115, 0, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.detail-tags a {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.hero-content h1,
.hero-content h2 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.8;
}

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

.btn-primary,
.btn-ghost,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
}

.btn-primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(0, 115, 230, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 115, 230, 0.30);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.44);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

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

.white-band {
    background: #ffffff;
}

.intro-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    align-items: center;
    gap: 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.section-desc {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.9;
}

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

.section-link {
    min-height: 40px;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.section-link:hover {
    color: #ffffff;
    background: var(--primary);
}

.quick-search,
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0 14px;
    color: var(--ink);
    background: #f8f9fa;
    outline: 0;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.10);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e9ecef;
}

.movie-card.large .poster-link {
    aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(13, 15, 18, 0.66), transparent);
}

.poster-type,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-type {
    left: 12px;
    bottom: 12px;
    min-height: 26px;
    padding: 4px 10px;
    background: rgba(230, 115, 0, 0.92);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px rgba(13, 15, 18, 0.22);
}

.movie-content {
    padding: 16px;
}

.movie-content h3,
.list-info h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}

.movie-content h3 a:hover,
.list-info h3 a:hover {
    color: var(--primary);
}

.movie-content p,
.list-info p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.large .movie-content p {
    -webkit-line-clamp: 3;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f3f5;
}

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

.category-tile,
.category-panel {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(0, 115, 230, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f3f8ff);
    box-shadow: var(--shadow-soft);
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-panel-head strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 22px;
}

.category-tile span,
.category-panel p {
    color: var(--muted);
    line-height: 1.75;
}

.category-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-panel-head span {
    color: var(--accent);
    font-weight: 800;
}

.category-panel ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.category-panel li + li {
    margin-top: 8px;
}

.category-panel li a {
    color: #495057;
}

.category-panel li a:hover {
    color: var(--primary);
}

.ranking-list,
.list-stack {
    display: grid;
    gap: 14px;
}

.list-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.list-cover {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: #e9ecef;
}

.list-info {
    min-width: 0;
    align-self: center;
}

.list-rank {
    position: absolute;
    left: -8px;
    top: -8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(13, 15, 18, 0.18);
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 78px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(230, 115, 0, 0.34), transparent 26%), linear-gradient(135deg, #07172a, #0d0f12 58%, #102a43);
}

.sub-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-bar {
    position: sticky;
    top: 88px;
    z-index: 10;
    margin-bottom: 26px;
}

.filter-bar select {
    max-width: 190px;
}

.empty-state {
    padding: 46px 20px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.detail-top {
    padding: 32px 0 0;
    background: linear-gradient(180deg, #0d0f12 0, #0d0f12 360px, var(--bg) 360px);
}

.detail-breadcrumb {
    margin: 0 0 24px;
}

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

.detail-main,
.detail-side,
.detail-article {
    min-width: 0;
}

.stream-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.stream-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.stream-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 115, 230, 0.36), rgba(13, 15, 18, 0.72));
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 30px;
    box-shadow: 0 16px 32px rgba(0, 115, 230, 0.30);
}

.stream-overlay strong {
    max-width: min(80%, 700px);
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.25;
}

.detail-article {
    margin-top: 28px;
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-article h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #495057;
    background: #f1f3f5;
    font-size: 13px;
    font-weight: 700;
}

.story-block {
    margin-top: 24px;
    padding: 22px;
    border-radius: 16px;
    background: #f8f9fa;
}

.story-block h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.story-block p {
    margin: 0;
    color: #495057;
    line-height: 1.95;
}

.detail-side {
    position: sticky;
    top: 98px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-side img {
    aspect-ratio: 3 / 4;
    background: #e9ecef;
}

.detail-side dl {
    margin: 0;
    padding: 20px;
}

.detail-side dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
}

.detail-side dl div:last-child {
    border-bottom: 0;
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    max-width: 180px;
    color: var(--ink);
    font-weight: 800;
    text-align: right;
}

.detail-side a {
    color: var(--primary);
}

.site-footer {
    margin-top: 76px;
    color: #ced4da;
    background: #0d0f12;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-logo {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #adb5bd;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid #212529;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #868e96;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 16px;
        font-size: 14px;
    }

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

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

    .menu-toggle {
        display: flex;
    }

    .intro-search,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        position: static;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .site-logo {
        font-size: 20px;
    }

    .page-main {
        padding-top: 66px;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 74px;
    }

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

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

    .quick-search,
    .filter-bar {
        flex-direction: column;
        position: static;
    }

    .filter-bar select {
        max-width: none;
    }

    .large-grid,
    .movie-grid,
    .full-grid,
    .category-grid,
    .category-panel-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-content {
        padding: 13px;
    }

    .movie-content h3 {
        font-size: 15px;
    }

    .movie-content p {
        font-size: 13px;
    }

    .sub-hero {
        padding: 62px 0;
    }

    .list-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .detail-top {
        background: linear-gradient(180deg, #0d0f12 0, #0d0f12 260px, var(--bg) 260px);
    }

    .detail-article {
        padding: 20px;
    }
}

@media (max-width: 430px) {
    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

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

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

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }
}
