:root {
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-dark: #111827;
    --site-gray: #4b5563;
    --site-soft: #f8fafc;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --site-radius: 18px;
    --site-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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;
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--site-blue);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(290px, 26vw);
}

.search-form input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
    height: 42px;
    padding: 0 46px 0 18px;
}

.search-form input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.search-form button {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--site-blue);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 14px 0 18px;
}

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

.mobile-nav .container {
    display: grid;
    gap: 14px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

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

.hero-badge,
.card-badge,
.detail-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 750;
}

.hero-badge {
    margin-bottom: 18px;
    padding: 10px 16px;
    background: #2563eb;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5.3vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.72;
}

.hero-actions,
.section-head,
.breadcrumb,
.meta-row,
.tag-row,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--site-blue);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-soft:hover {
    transform: translateY(-2px);
}

.btn-light {
    color: var(--site-blue);
    background: #ffffff;
}

.btn-dark {
    color: #ffffff;
    background: #111827;
}

.btn-soft {
    color: #1d4ed8;
    background: #dbeafe;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

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

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

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

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

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-white {
    background: #ffffff;
}

.section-head {
    margin-bottom: 24px;
    justify-content: space-between;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 760px;
    margin: 8px 0 0;
    color: #6b7280;
    line-height: 1.7;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--site-radius);
    background: var(--site-card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--site-shadow);
}

.cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.movie-card:hover .cover-link img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 11px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.90);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.card-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
    font-size: 12px;
    font-weight: 750;
}

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

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--site-blue);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row {
    color: #6b7280;
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 700;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
}

.horizontal-card .cover-link {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.horizontal-card .movie-card-body {
    padding: 0;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 0 18px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 22px;
    padding: 26px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.20);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.category-card span {
    font-weight: 800;
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.gradient-purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444, #ea580c);
}

.gradient-fuchsia {
    background: linear-gradient(135deg, #d946ef, #ec4899);
}

.gradient-slate {
    background: linear-gradient(135deg, #334155, #4b5563);
}

.gradient-violet {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.gradient-lime {
    background: linear-gradient(135deg, #16a34a, #84cc16);
}

.cta-band {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.cta-band .section-title,
.cta-band .section-subtitle {
    color: #ffffff;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #9ca3af;
    font-size: 22px;
    font-weight: 850;
}

.rank-item:nth-child(1) .rank-num {
    background: #f59e0b;
}

.rank-item:nth-child(2) .rank-num {
    background: #6b7280;
}

.rank-item:nth-child(3) .rank-num {
    background: #ea580c;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 54px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.36), transparent 30%), linear-gradient(135deg, #111827, #1d4ed8 56%, #06b6d4);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 190px 190px;
    gap: 14px;
    margin: 28px 0 26px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-input,
.filter-select {
    height: 46px;
    padding: 0 16px;
}

.empty-state {
    display: none;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 34px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
    gap: 28px;
    align-items: start;
}

.detail-card,
.side-card {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-card {
    overflow: hidden;
}

.detail-content {
    padding: 26px;
}

.detail-content h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-badge {
    padding: 8px 12px;
    color: #1d4ed8;
    background: #dbeafe;
}

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

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

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

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

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

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

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

.player-start {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
    cursor: pointer;
}

.player-start span {
    margin-left: 6px;
    font-size: 36px;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

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

.side-mini img {
    width: 76px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

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

.side-mini p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 34px 0;
    color: #4b5563;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    font-weight: 850;
    color: #111827;
}

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

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

    .hero-carousel {
        height: 540px;
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .logo {
        font-size: 18px;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

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

    .horizontal-card,
    .rank-item,
    .side-mini {
        grid-template-columns: 88px 1fr;
    }

    .section {
        padding: 42px 0;
    }

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