* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #e5edf8;
    background: #020617;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.38);
}

.brand-text span,
.footer-logo {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, #e0f2fe, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
}

.brand-text small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 600;
    padding: 22px 0 18px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #7dd3fc;
    border-color: #7dd3fc;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

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

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

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

.mobile-link:hover,
.mobile-link.is-active {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
}

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

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

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.46);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 58%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    right: clamp(24px, 10vw, 160px);
    bottom: clamp(32px, 8vw, 86px);
    z-index: 3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn.primary,
.btn.wide {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
    background: rgba(15, 23, 42, 0.62);
}

.btn.wide {
    width: 100%;
    margin-top: 18px;
}

.hero-dots {
    position: absolute;
    left: 48px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

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

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

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 28px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
}

.hero-side h2,
.section-head h2,
.page-hero h1,
.player-section h2,
.copy-section h2 {
    color: #ffffff;
}

.thumb-list {
    display: grid;
    gap: 12px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.72);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-thumb:hover {
    background: rgba(51, 65, 85, 0.86);
    transform: translateX(3px);
}

.hero-thumb img {
    width: 88px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    color: #e2e8f0;
    font-weight: 700;
}

.hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hero-cats a {
    color: #cbd5e1;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    padding: 7px 12px;
    font-size: 13px;
}

.search-band,
.section-block,
.rank-panel,
.page-hero,
.filter-panel,
.copy-section,
.player-section {
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.28);
}

.search-band {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 30px;
    margin-bottom: 32px;
}

.search-band h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 42px);
}

.search-band p,
.section-head p,
.page-hero p,
.copy-section p,
.detail-one {
    color: #cbd5e1;
}

.search-box,
.filter-panel {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
    min-height: 48px;
    width: 100%;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(56, 189, 248, 0.76);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.search-box button {
    min-width: 90px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.section-block,
.rank-panel,
.copy-section,
.player-section {
    padding: 28px;
    margin-bottom: 32px;
}

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

.section-head.compact {
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.section-head p {
    margin: 0;
}

.section-more {
    color: #7dd3fc;
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card-link:hover {
    transform: translateY(-6px) scale(1.01);
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

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

img.is-missing {
    opacity: 0;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 30px;
    background: rgba(2, 6, 23, 0);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.card-link:hover .play-mark {
    opacity: 1;
    background: rgba(2, 6, 23, 0.35);
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.card-meta span,
.detail-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
}

.card-body strong {
    color: #ffffff;
    line-height: 1.36;
    min-height: 2.7em;
}

.card-desc {
    color: #94a3b8;
    font-size: 14px;
}

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

.category-card,
.category-overview-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(125, 211, 252, 0.18);
    min-height: 150px;
}

.category-card:hover,
.category-overview-card:hover {
    border-color: rgba(125, 211, 252, 0.42);
    transform: translateY(-2px);
}

.category-card span,
.category-overview-main h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.category-card em,
.category-overview-main p {
    color: #cbd5e1;
    font-style: normal;
    font-size: 14px;
    margin: 0;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mini-links a {
    color: #bae6fd;
    background: rgba(2, 6, 23, 0.32);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.rank-panel {
    position: sticky;
    top: 96px;
    height: fit-content;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 1fr 48px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.62);
}

.rank-item:hover {
    background: rgba(51, 65, 85, 0.9);
}

.rank-num,
.rank-large {
    color: #38bdf8;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: #e2e8f0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    color: #facc15;
    text-align: right;
}

.page-shell {
    padding: 32px 0 48px;
}

.page-hero {
    padding: clamp(28px, 7vw, 64px);
    margin-bottom: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.74));
}

.page-hero.small h1 {
    font-size: clamp(32px, 5vw, 56px);
}

.filter-panel {
    padding: 18px;
    margin-bottom: 24px;
}

.filter-panel.enhanced {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 22px 0;
}

.pagination a {
    min-width: 42px;
    text-align: center;
    padding: 9px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.pagination a:hover,
.pagination a.is-active {
    color: #ffffff;
    background: #0284c7;
}

.rank-grid {
    display: grid;
    gap: 14px;
}

.rank-card a {
    display: grid;
    grid-template-columns: 64px 160px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-card a:hover {
    background: rgba(51, 65, 85, 0.88);
}

.rank-card img {
    width: 160px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy {
    display: grid;
    gap: 6px;
}

.rank-copy strong {
    color: #ffffff;
    font-size: 20px;
}

.rank-copy em,
.rank-copy span {
    color: #94a3b8;
    font-style: normal;
}

.detail-shell {
    padding: 28px 0 54px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #7dd3fc;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    margin-bottom: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 22% 0%, rgba(14, 165, 233, 0.25), transparent 36%),
        rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.48);
}

.detail-info h1 {
    font-size: clamp(32px, 5vw, 60px);
}

.detail-one {
    font-size: 18px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-box video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.14), rgba(2, 6, 23, 0.46));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

.player-overlay.is-hidden {
    display: none;
}

.copy-section p {
    font-size: 17px;
}

.detail-related {
    margin-top: 30px;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
}

.site-footer p,
.site-footer a {
    color: #94a3b8;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .hero,
    .split-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: auto;
        margin-top: 16px;
    }

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

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

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-dots {
        left: 20px;
        bottom: 20px;
    }

    .search-band,
    .detail-hero,
    .footer-grid,
    .filter-panel.enhanced,
    .rank-card a {
        grid-template-columns: 1fr;
    }

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

    .section-block,
    .rank-panel,
    .copy-section,
    .player-section {
        padding: 18px;
        border-radius: 20px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body strong {
        font-size: 14px;
    }

    .card-desc,
    .card-meta,
    .tag-row .tag {
        font-size: 12px;
    }

    .rank-card img {
        width: 100%;
    }
}

@media (max-width: 460px) {
    main,
    .page-shell,
    .detail-shell,
    .hero,
    .nav-shell,
    .mobile-panel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 20px, 1180px);
    }

    .movie-grid,
    .movie-grid.wide {
        grid-template-columns: 1fr;
    }
}
