:root {
    --color-blue: #2563eb;
    --color-cyan: #06b6d4;
    --color-teal: #14b8a6;
    --color-sky: #eff6ff;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 20px 45px rgba(37, 99, 235, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.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);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.logo-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

.menu-button {
    display: none;
    color: #111827;
    border: 0;
    background: transparent;
    font-size: 28px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    padding: 14px 16px 18px;
}

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

.mobile-link {
    display: block;
    padding: 10px 4px;
    color: #374151;
    font-weight: 650;
}

.mobile-link.is-active {
    color: var(--color-blue);
}

.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.category-pill,
.hero-chip,
.tag-row span,
.rank-meta span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

.category-pill {
    color: #075985;
    background: #e0f2fe;
    padding: 7px 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.03));
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: 70px 0;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.5vw, 24px);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button-primary,
.button-secondary,
.button-light,
.video-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    padding: 12px 22px;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
}

.button-secondary {
    color: #075985;
    background: #e0f2fe;
    padding: 12px 22px;
}

.button-light {
    color: #0f172a;
    background: #ffffff;
    padding: 13px 24px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover,
.video-start:hover {
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    max-width: 680px;
    margin: 28px 0 20px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 18px;
}

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

.hero-search button {
    color: #075985;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    padding: 11px 20px;
    font-weight: 800;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 9px 15px;
    backdrop-filter: blur(10px);
}

.hero-stage {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    display: none;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(18px);
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.42s ease;
}

.hero-poster {
    position: relative;
    min-height: 360px;
    background: rgba(15, 23, 42, 0.18);
}

.hero-poster img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.86));
}

.hero-caption {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 26px;
}

.hero-caption h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero-caption p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

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

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

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
    padding: 70px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.section {
    padding: 62px 0;
}

.section-white {
    background: #ffffff;
}

.section-warm {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-head h2,
.content-panel h2,
.detail-main h2,
.sidebar-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(25px, 3.4vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    color: #ffffff;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.movie-body {
    padding: 14px;
}

.movie-body h2 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-body h2 a:hover,
.rank-main h2 a:hover,
.detail-related a:hover {
    color: var(--color-blue);
}

.movie-meta {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags span {
    color: #075985;
    background: #e0f2fe;
    padding: 4px 8px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 24px;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -52px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.20));
}

.category-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: var(--color-muted);
}

.category-preview {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-preview span {
    color: #1d4ed8;
    border-radius: 999px;
    background: #dbeafe;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 750;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    align-items: end;
    margin-bottom: 28px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: grid;
    gap: 6px;
}

.search-box span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

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

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 94px 54px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.rank-number {
    color: transparent;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.rank-main p {
    margin: 0 0 10px;
    color: var(--color-muted);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-meta span {
    color: #075985;
    background: #e0f2fe;
    padding: 5px 10px;
}

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

.detail-main,
.sidebar-card,
.content-panel,
.player-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.video-shell.is-playing::after {
    opacity: 0;
}

.video-start {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    color: #0f172a;
    background: #ffffff;
    padding: 14px 22px;
    transform: translateX(-50%);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.video-shell.is-playing .video-start {
    display: none;
}

.play-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
}

.detail-main {
    padding: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
}

.detail-subtitle {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
}

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

.detail-meta span {
    color: #075985;
    border-radius: 999px;
    background: #e0f2fe;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 750;
}

.detail-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

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

.detail-section p {
    margin: 0;
    color: #374151;
    white-space: pre-line;
}

.sidebar-card {
    overflow: hidden;
    padding: 18px;
}

.sidebar-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.sidebar-card h2 {
    margin-top: 18px;
    font-size: 24px;
}

.sidebar-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: #f8fafc;
    padding: 11px 12px;
    color: #1f2937;
    font-weight: 700;
}

.sidebar-list a:hover {
    color: var(--color-blue);
    background: #eff6ff;
}

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

.compact-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.compact-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.compact-card span,
.compact-card small {
    display: block;
    padding: 0 12px;
}

.compact-card span {
    margin-top: 10px;
    color: #111827;
    font-weight: 800;
}

.compact-card small {
    margin: 4px 0 12px;
    color: #64748b;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    margin-top: 60px;
}

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

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

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

.site-footer p,
.site-footer ul {
    margin: 0;
    padding: 0;
    color: #9ca3af;
    list-style: none;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 54px 0;
    }

    .hero-stage {
        min-height: auto;
    }

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

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

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

    .logo-text {
        font-size: 18px;
    }

    .hero-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search input {
        padding: 12px 14px;
    }

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

    .movie-body {
        padding: 12px;
    }

    .rank-item {
        grid-template-columns: 72px 42px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-main h2 {
        font-size: 18px;
    }

    .rank-main p {
        display: none;
    }

    .detail-main {
        padding: 20px;
    }

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

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

    .video-start {
        bottom: 18px;
        padding: 12px 18px;
        white-space: nowrap;
    }
}
