* {
    box-sizing: border-box;
}

:root {
    --blue-950: #12214b;
    --blue-900: #163777;
    --blue-700: #1d62c6;
    --cyan-500: #09b6d4;
    --yellow-400: #facc15;
    --orange-500: #f97316;
    --green-500: #10b981;
    --text-900: #111827;
    --text-700: #374151;
    --text-500: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #1d4ed8 0%, #08a8d8 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #0f3b80;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.brand-text {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 650;
}

.nav-link {
    position: relative;
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fef08a;
    opacity: 1;
}

.nav-link.is-active::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 3px;
    content: "";
    background: #fef08a;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 12px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    padding: 6px 16px 16px;
    background: rgba(13, 67, 145, 0.95);
}

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

.mobile-link {
    padding: 10px 14px;
    color: #ffffff;
    border-radius: 12px;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.12);
}

.stage {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.35), transparent 32%),
        linear-gradient(115deg, #10245c 0%, #1c5ec2 48%, #05a9cf 100%);
}

.stage::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 78px;
    content: "";
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 100%);
}

.stage-track {
    position: relative;
    min-height: 560px;
}

.stage-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 118px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.stage-slide.is-current {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.stage-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.stage-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 750;
    color: #17316a;
    background: #facc15;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(250, 204, 21, 0.28);
}

.stage h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.stage p {
    max-width: 720px;
    margin: 0;
    font-size: 19px;
    line-height: 1.85;
    color: #dff6ff;
}

.stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.stage-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(12px);
}

.stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn {
    color: #14346e;
    background: #facc15;
    box-shadow: 0 16px 30px rgba(250, 204, 21, 0.25);
}

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

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

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

.stage-visual {
    position: relative;
    z-index: 2;
}

.stage-visual::before {
    position: absolute;
    inset: 12% -8% -8% 20%;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    transform: rotate(7deg);
    filter: blur(1px);
}

.stage-visual img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.stage-visual:hover img {
    transform: scale(1.03);
}

.stage-dots {
    position: absolute;
    z-index: 5;
    bottom: 54px;
    left: 0;
    display: flex;
    gap: 10px;
}

.stage-dot {
    width: 32px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
}

.stage-dot.is-current {
    width: 54px;
    background: #facc15;
}

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

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 0.12em;
}

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-more {
    flex: 0 0 auto;
    font-weight: 750;
    color: #1d4ed8;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.05);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 9px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-body p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-500);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.band {
    background: linear-gradient(90deg, #ecfdf5 0%, #eff6ff 100%);
}

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

.category-panel,
.category-card,
.info-panel {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.category-panel {
    padding: 24px;
}

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

.category-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 22px;
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 14px;
    font-weight: 900;
}

.page-visual {
    color: #ffffff;
    background: linear-gradient(110deg, #14265d 0%, #1d4ed8 58%, #06b6d4 100%);
}

.page-title {
    padding: 70px 0;
}

.page-title p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    min-height: 190px;
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
    margin: 16px 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--text-500);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 750;
    color: #1f2937;
}

.search-box input,
.filter-select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    outline: none;
}

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

.filter-selects {
    display: flex;
    gap: 12px;
}

.filter-select {
    min-width: 136px;
}

.empty-state {
    padding: 22px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
}

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

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

.breadcrumb a {
    color: #1d4ed8;
    font-weight: 700;
}

.player-card,
.detail-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    background: #020617;
}

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

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-mask.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-button {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    color: #12326b;
    background: #facc15;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.play-button span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid currentColor;
}

.player-title {
    padding: 22px 24px 26px;
}

.player-title h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.player-title p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.detail-card {
    padding: 24px;
}

.side-poster {
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 20px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.detail-list {
    display: grid;
    gap: 13px;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    color: #475569;
}

.detail-list dt {
    color: #0f172a;
    font-weight: 800;
}

.article-card {
    padding: 30px;
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.article-card p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tags .tag-pill {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #dbeafe;
}

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

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 430px;
    margin: 0;
    line-height: 1.8;
}

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

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 1100px) {
    .card-grid,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: flex;
    }

    .stage-track {
        min-height: 760px;
    }

    .stage-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 46px 0 112px;
    }

    .stage-visual {
        max-width: 420px;
    }

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

    .filter-selects {
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1 1 160px;
    }

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

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

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

    .stage h1 {
        font-size: 36px;
    }

    .stage p {
        font-size: 16px;
    }

    .card-grid,
    .card-grid.compact-grid,
    .related-grid,
    .category-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .main-block,
    .content-block {
        padding: 38px 0;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p {
        display: none;
    }

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

    .page-title {
        padding: 46px 0;
    }

    .article-card,
    .detail-card {
        padding: 20px;
    }
}
