:root {
    --site-bg: #f8fafc;
    --site-card: #ffffff;
    --site-card-soft: #f1f5f9;
    --site-text: #0f172a;
    --site-muted: #64748b;
    --site-line: #e2e8f0;
    --site-sky: #0284c7;
    --site-sky-dark: #0369a1;
    --site-sky-soft: #e0f2fe;
    --site-amber: #f59e0b;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --site-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem), var(--site-bg);
    color: var(--site-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    object-fit: cover;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.site-logo-text {
    font-size: 1.35rem;
}

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

.nav-link,
.mobile-nav-link {
    color: var(--site-muted);
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--site-sky-dark);
    background: var(--site-sky-soft);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--site-card-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--site-text);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    filter: saturate(1.06);
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.66fr);
    align-items: center;
    gap: 48px;
    padding-top: 28px;
    padding-bottom: 48px;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-sky-dark);
    background: var(--site-sky-soft);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(186, 230, 253, 0.26);
}

.hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.hero-copy p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
}

.hero-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.mini-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 11px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 20px;
    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(--site-sky), #38bdf8);
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.26);
}

.button-secondary {
    color: var(--site-sky-dark);
    background: var(--site-sky-soft);
}

.button-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster-stack {
    position: relative;
    display: grid;
    gap: 18px;
}

.hero-main-poster {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.36);
}

.hero-main-poster img {
    width: 100%;
    height: 430px;
}

.hero-poster-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
}

.hero-poster-caption strong {
    display: block;
    font-size: 1.1rem;
}

.hero-poster-caption span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-search-box input {
    flex: 1;
    min-width: 0;
    height: 42px;
    color: #ffffff;
    background: transparent;
    outline: none;
    padding: 0 12px;
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.main-content {
    padding: 58px 0 68px;
}

.section-block {
    margin-bottom: 58px;
}

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

.section-heading h2,
.page-heading h1 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-heading a {
    color: var(--site-sky-dark);
    font-weight: 800;
}

.page-heading {
    align-items: flex-start;
    padding: 44px 0 12px;
}

.page-heading p {
    max-width: 780px;
    margin-top: 14px;
    color: var(--site-muted);
    line-height: 1.9;
}

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--site-radius);
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow);
}

.category-tile strong {
    font-size: 1.35rem;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--site-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    display: block;
    background: #e2e8f0;
}

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

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

.poster-type,
.poster-year,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.poster-type {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.92);
}

.poster-year {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
}

.rank-mark {
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

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

.movie-card-body h3 {
    font-size: 1.05rem;
    line-height: 1.32;
    font-weight: 900;
    letter-spacing: -0.02em;
}

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

.movie-card-body p {
    margin-top: 8px;
    min-height: 48px;
    color: var(--site-muted);
    font-size: 0.9rem;
    line-height: 1.72;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #475569;
    font-size: 0.82rem;
}

.mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mini-tags span,
.detail-tags span {
    padding: 6px 10px;
    color: var(--site-sky-dark);
    background: var(--site-sky-soft);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

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

.filter-heading h2 {
    font-size: 1.35rem;
    font-weight: 900;
}

.filter-heading p {
    color: var(--site-muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
}

.filter-controls label {
    display: grid;
    gap: 7px;
    color: var(--site-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    color: var(--site-text);
    padding: 0 14px;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.no-results {
    display: none;
    margin-top: 18px;
    padding: 24px;
    text-align: center;
    color: var(--site-muted);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--site-line);
}

.no-results.show {
    display: block;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.rank-list-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.rank-list-panel h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 900;
}

.rank-list-item {
    display: grid;
    grid-template-columns: 36px 54px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--site-line);
}

.rank-list-item:last-child {
    border-bottom: 0;
}

.rank-list-item span {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--site-sky);
    font-weight: 900;
}

.rank-list-item img {
    grid-row: 1 / 3;
    width: 54px;
    height: 74px;
    border-radius: 12px;
}

.rank-list-item strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.rank-list-item em {
    color: var(--site-muted);
    font-style: normal;
    font-size: 0.82rem;
}

.detail-hero {
    padding: 46px 0;
    background: linear-gradient(135deg, #0f172a, #075985);
    color: #ffffff;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    margin-bottom: 18px;
}

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

.detail-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.detail-copy .lead {
    margin-top: 18px;
    max-width: 850px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
    line-height: 1.95;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.player-section {
    margin-top: 48px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-button {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-sky), #38bdf8);
    box-shadow: 0 22px 44px rgba(2, 132, 199, 0.36);
    font-size: 2.2rem;
    transform: translateZ(0);
}

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

.detail-article,
.detail-side {
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
    font-weight: 900;
}

.detail-article p {
    color: #334155;
    line-height: 2;
    margin-bottom: 18px;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.side-related {
    display: grid;
    gap: 12px;
}

.side-related a {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--site-line);
}

.side-related a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.side-related img {
    width: 68px;
    height: 92px;
    border-radius: 14px;
}

.side-related strong {
    display: block;
    font-weight: 900;
    line-height: 1.35;
}

.side-related span {
    display: block;
    margin-top: 5px;
    color: var(--site-muted);
    font-size: 0.86rem;
}

.site-footer {
    padding: 34px 0;
    background: #0f172a;
    color: #cbd5e1;
}

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

.footer-inner strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-inner p {
    margin-top: 6px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 800;
}

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

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

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

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

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

    .hero-content,
    .detail-hero-grid,
    .detail-layout,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding-top: 72px;
        padding-bottom: 82px;
    }

    .hero-poster-stack {
        display: none;
    }

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

    .detail-side,
    .rank-list-panel {
        position: static;
    }

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

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

    .site-logo-text {
        font-size: 1.1rem;
    }

    .hero-copy h1,
    .detail-copy h1 {
        letter-spacing: -0.05em;
    }

    .hero-actions,
    .section-heading,
    .page-heading,
    .filter-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-search-box input,
    .hero-search-box a {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .filter-controls {
        grid-template-columns: 1fr;
    }

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

    .player-play-button {
        width: 72px;
        height: 72px;
        font-size: 1.7rem;
    }
}
