:root {
    --sky: #0ea5e9;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #e0f2fe;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(14, 165, 233, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
}

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

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

.nav-link {
    position: relative;
    color: #334155;
    font-weight: 700;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--sky), var(--cyan));
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-input {
    border: 1px solid #cbd5e1;
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    min-width: 220px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-input:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-clear,
.primary-action,
.secondary-action,
.card-button,
.more-link {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-action,
.card-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-action:hover,
.card-button:hover,
.more-link:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #334155;
    background: transparent;
    font-size: 28px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.home-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.hero-stage {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--sky), var(--cyan));
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.78) 0%, rgba(14, 116, 144, 0.52) 46%, rgba(14, 165, 233, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 7vw, 78px);
    bottom: clamp(34px, 8vw, 86px);
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading p,
.side-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--sky);
    background: rgba(14, 165, 233, 0.12);
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 900;
}

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

.hero-content h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-line {
    max-width: 660px;
    margin: 0 0 22px;
    color: #e0f2fe;
    font-size: clamp(18px, 2.3vw, 25px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

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

.secondary-action,
.more-link,
.filter-clear {
    color: var(--sky);
    background: #ffffff;
    border: 1px solid #bae6fd;
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 7vw, 78px);
    bottom: 26px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

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

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

.hero-side-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.12);
    backdrop-filter: blur(18px);
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e0f2fe;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.18);
}

.hero-mini-card img {
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-search {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
}

.hero-search input {
    min-width: 0;
}

.section-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 58px auto;
}

.intro-section {
    margin-top: 42px;
    margin-bottom: 24px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-heading span,
.page-hero span {
    color: var(--muted);
    font-size: 17px;
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(14, 165, 233, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.year-badge {
    right: 12px;
    padding: 6px 10px;
    background: rgba(14, 165, 233, 0.88);
}

.rank-badge {
    left: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #facc15);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.card-body h2 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h2 a:hover {
    color: var(--sky);
}

.card-body p {
    min-height: 64px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.card-button {
    display: inline-flex;
    margin-top: 14px;
    padding: 9px 14px;
    font-size: 14px;
}

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

.category-card,
.category-overview-card {
    padding: 22px;
    border: 1px solid #bae6fd;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.78));
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 56px rgba(14, 165, 233, 0.18);
}

.category-icon,
.category-overview-link span {
    font-size: 34px;
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    margin: 12px 0 8px;
    font-size: 22px;
}

.category-card em,
.category-overview-card p,
.category-samples a {
    color: var(--muted);
    font-style: normal;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e0f2fe;
    font-size: 13px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.compact-card .poster-link {
    aspect-ratio: auto;
    min-height: 178px;
}

.compact-card .card-body p {
    min-height: auto;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #06b6d4 55%, #22d3ee);
}

.page-hero {
    min-height: 330px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 68px 18px;
}

.page-hero p {
    margin: 0 auto;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: #e0f2fe;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid #bae6fd;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
}

.filter-search-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.filter-input {
    width: 100%;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 8px 12px;
    color: #0369a1;
    background: #ffffff;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
}

.movie-card.is-hidden {
    display: none;
}

.detail-hero {
    min-height: 620px;
}

.detail-backdrop,
.detail-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-backdrop {
    object-fit: cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.46;
}

.detail-mask {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(3, 105, 161, 0.72), rgba(14, 165, 233, 0.4));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #e0f2fe;
    font-weight: 800;
    margin-bottom: 34px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster img {
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
}

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 20px;
    color: #e0f2fe;
    font-size: 21px;
}

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

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #020617;
    object-fit: contain;
}

.player-cover {
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #020617;
    z-index: 3;
}

.player-cover img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.42);
    font-size: 34px;
}

.article-section {
    margin-top: 36px;
}

.movie-article {
    padding: 32px;
    border: 1px solid #e0f2fe;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.movie-article h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.movie-article p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
    line-height: 1.8;
}

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

.info-table div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: #f0f9ff;
}

.info-table strong {
    color: #0369a1;
}

.info-table span {
    color: #334155;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc, #e0f2fe);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-column a {
    color: #475569;
    font-weight: 700;
}

.footer-column a:hover {
    color: var(--sky);
}

.footer-bottom {
    padding: 20px 16px 26px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(186, 230, 253, 0.72);
}

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

    .mobile-toggle {
        display: block;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 560px;
    }

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

    .side-title,
    .hero-search {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1200px);
    }

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

    .home-hero,
    .section-wrap,
    .detail-inner {
        width: min(100% - 24px, 1200px);
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 24px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 70px;
    }

    .hero-side-panel,
    .hero-side-panel,
    .footer-inner,
    .detail-layout,
    .filter-search-line,
    .info-table {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-card .poster-link {
        min-height: 160px;
    }

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

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

    .detail-copy h1 {
        font-size: 38px;
    }

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

    .player-shell {
        border-radius: 20px;
    }
}
