
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #1e40af;
    --primary-700: #1e3a8a;
    --secondary-50: #f0fdf4;
    --secondary-600: #065f46;
    --accent-50: #fef3c7;
    --accent-500: #f59e0b;
    --accent-600: #92400e;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --page: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--page);
    color: var(--dark);
}

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

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

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(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-600);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    box-shadow: var(--soft-shadow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 12px;
}

.header-search button {
    border: 0;
    color: #fff;
    background: var(--primary-600);
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 10px 0;
    font-weight: 700;
    color: #374151;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.mobile-panel button {
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--primary-600);
    padding: 0 16px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: scale(1.02);
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(59, 130, 246, 0.45), transparent 35%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 46%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 110px;
    width: min(680px, calc(100% - 64px));
    color: #fff;
}

.hero-kicker,
.side-label,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.rank-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #fff;
    background: var(--primary-600);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.28);
}

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

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.hero-dots {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 48px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

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

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.hero-side-card {
    position: absolute;
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 92px;
    width: 270px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    z-index: 4;
}

.hero-side-card a {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: #fff;
    font-weight: 800;
}

.hero-side-card img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
}

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

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

.soft-section {
    background: linear-gradient(135deg, var(--secondary-50), var(--primary-50));
}

.accent-section {
    background: linear-gradient(135deg, var(--accent-50), var(--secondary-50));
}

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

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--primary-600);
    font-weight: 800;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 10px;
    color: #fff;
    background: var(--primary-600);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-body h3 {
    margin: 0 0 9px;
    min-height: 44px;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card-body p {
    margin: 9px 0 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.latest-grid,
.compact-list {
    display: grid;
    gap: 14px;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    position: relative;
}

.movie-card-compact img {
    width: 96px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
}

.movie-card-compact strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.movie-card-compact small {
    color: var(--muted);
}

.movie-card-compact p {
    margin: 7px 0 0;
    color: #4b5563;
    font-size: 13px;
}

.compact-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.78);
    font-size: 11px;
    font-weight: 800;
}

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

.home-category-box {
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.home-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.home-category-head h3 {
    margin: 0;
    font-size: 22px;
}

.home-category-head a {
    color: var(--primary-600);
    font-weight: 800;
}

.page-hero {
    color: #fff;
    padding: 86px 0;
}

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

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.gradient-blue {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
}

.gradient-green {
    background: linear-gradient(135deg, var(--secondary-600), var(--primary-600));
}

.gradient-orange {
    background: linear-gradient(135deg, var(--accent-600), var(--secondary-600));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

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

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

.category-tile {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.category-art {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
}

.category-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.07);
}

.category-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), transparent 60%);
}

.category-art span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.category-tile-body {
    padding: 22px;
}

.category-tile-body h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile-body p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.category-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.category-links a {
    color: var(--primary-600);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field label {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    outline: 0;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 74px 112px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.rank-num {
    color: var(--primary-600);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-cover img {
    width: 112px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
}

.rank-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-body p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.rank-tags {
    margin-top: 12px;
}

.rank-tags span {
    color: #374151;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: var(--primary-600);
    font-weight: 900;
}

.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.22), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e3a8a 52%, #111827);
    padding: 36px 0 68px;
}

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

.detail-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

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

.player-card,
.detail-info-card,
.text-panel {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    background: #020617;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
    cursor: pointer;
    z-index: 2;
}

.player-overlay[hidden] {
    display: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding-left: 5px;
    border-radius: 50%;
    color: var(--primary-600);
    background: #fff;
    font-size: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    font-size: 20px;
}

.detail-info-card {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 18px;
    padding: 18px;
    color: #111827;
}

.detail-info-card img {
    width: 136px;
    height: 204px;
    border-radius: 22px;
    object-fit: cover;
}

.detail-info-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.detail-info-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.detail-info-card .detail-kicker {
    color: var(--primary-600);
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.detail-tags span {
    color: #374151;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.detail-info-card .btn {
    margin-top: 22px;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.text-panel {
    padding: 30px;
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.meta-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.meta-panel div {
    padding: 15px;
    border-radius: 16px;
    background: #f9fafb;
}

.meta-panel dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.meta-panel dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 42px 0;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr auto auto;
    gap: 26px;
    align-items: center;
}

.footer-shell p {
    margin: 12px 0 0;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-shell nav {
    display: flex;
    gap: 18px;
}

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

.footer-copy {
    text-align: right;
}

@media (max-width: 1180px) {
    .six-grid,
    .five-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-side-card {
        display: none;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 590px;
    }

    .hero-content {
        bottom: 92px;
    }

    .home-category-grid,
    .latest-grid,
    .detail-layout,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .detail-info-card {
        grid-template-columns: 120px 1fr;
    }

    .ranking-row {
        grid-template-columns: 54px 90px 1fr;
    }

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

@media (max-width: 640px) {
    .nav-shell {
        min-height: 66px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero-content p {
        font-size: 15px;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn {
        min-height: 42px;
        padding: 0 16px;
    }

    .six-grid,
    .five-grid,
    .three-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .content-section {
        padding: 48px 0;
    }

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

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

    .movie-card-body h3 {
        min-height: 40px;
        font-size: 14px;
    }

    .movie-card-body p {
        display: none;
    }

    .movie-card-compact {
        grid-template-columns: 78px 1fr;
    }

    .movie-card-compact img {
        width: 78px;
        height: 58px;
    }

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

    .page-hero {
        padding: 58px 0;
    }

    .category-art {
        height: 140px;
    }

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

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

    .detail-info-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

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

    .ranking-row {
        grid-template-columns: 44px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-cover img {
        width: 72px;
        height: 58px;
        border-radius: 14px;
    }

    .rank-body h2 {
        font-size: 17px;
    }

    .rank-body p,
    .rank-tags {
        display: none;
    }

    .footer-shell nav {
        flex-wrap: wrap;
    }

    .footer-copy {
        text-align: left;
    }
}
