* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #e5e7eb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(30, 41, 59, 0.82);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

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

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 250px;
}

.top-search input,
.mobile-nav input,
.big-search input {
    width: 100%;
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    outline: none;
}

.top-search input {
    padding: 10px 12px;
}

.top-search button,
.mobile-nav button,
.big-search button {
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button {
    padding: 10px 14px;
}

.top-search button:hover,
.mobile-nav button:hover,
.big-search button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 26px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
}

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

.mobile-nav form {
    display: flex;
    gap: 10px;
}

.mobile-nav input {
    padding: 12px;
}

.mobile-nav button {
    padding: 12px 18px;
}

main {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68) 46%, rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, transparent 40%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 60px 0;
}

.hero-text {
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-text h1,
.compact-hero h1,
.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    color: #ffffff;
    letter-spacing: -0.06em;
}

.hero-text p,
.compact-hero p,
.detail-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #bfdbfe;
}

.hero-tags span {
    padding: 8px 12px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    padding: 14px 22px;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    padding: 13px 20px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.64);
    color: #ffffff;
}

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

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.36), rgba(15, 23, 42, 0.92));
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

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

.hero-poster span,
.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
    font-size: 28px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

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

.hero-dots button {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
}

.hero-dots button.active {
    background: #60a5fa;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.muted-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: rgba(15, 23, 42, 0.48);
}

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

.section-heading p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.eyebrow {
    color: #ffffff;
    font-size: 28px;
}

.eyebrow span {
    color: #60a5fa;
}

.section-more {
    padding: 10px 14px;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.1);
}

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

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

.poster-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.88);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.poster-link:hover {
    border-color: rgba(96, 165, 250, 0.55);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.95));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.08) 58%);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-link:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.card-body strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}

.card-meta,
.card-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    min-height: 42px;
}

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

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.94));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    border-color: rgba(96, 165, 250, 0.55);
    transform: translateY(-5px);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.32));
}

.category-card strong,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card strong {
    color: #ffffff;
    font-size: 24px;
}

.category-card p {
    margin: 10px 0 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-row span {
    color: #60a5fa;
    font-weight: 900;
    font-size: 20px;
}

.rank-row strong {
    color: #ffffff;
}

.rank-row em {
    grid-column: 2;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.compact-hero {
    padding: 88px 0 58px;
}

.compact-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.compact-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 46px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.76);
}

.pagination a.active,
.pagination a:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 72px 86px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 120px;
    padding: 14px;
    border: 1px solid rgba(51, 65, 85, 0.88);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card a:hover {
    border-color: rgba(96, 165, 250, 0.55);
    transform: translateY(-3px);
}

.rank-num {
    color: #60a5fa;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.ranking-card img {
    width: 86px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.95));
}

.ranking-info {
    display: grid;
    gap: 8px;
}

.ranking-info strong {
    color: #ffffff;
    font-size: 20px;
}

.ranking-info em,
.ranking-info span {
    color: #94a3b8;
    font-style: normal;
    line-height: 1.6;
}

.search-section {
    min-height: 520px;
}

.big-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 24px;
}

.big-search input {
    padding: 16px 18px;
    font-size: 18px;
}

.big-search button {
    padding: 0 28px;
    font-weight: 800;
}

.search-meta {
    margin-bottom: 24px;
    color: #94a3b8;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.42)),
        linear-gradient(0deg, #020617, transparent 55%);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 36px;
    color: #94a3b8;
}

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

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

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(15, 23, 42, 0.95));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
    font-size: clamp(40px, 6vw, 72px);
}

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

.detail-main-col {
    min-width: 0;
}

.player-panel,
.story-card,
.info-card,
.side-list,
.prose-card {
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

.player-panel {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    background: #000000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), rgba(2, 6, 23, 0.68));
    color: #ffffff;
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    font-size: 34px;
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.36);
}

.player-start strong {
    font-size: 20px;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #cbd5e1;
    font-size: 13px;
    pointer-events: none;
}

.player-shell.is-playing .player-status {
    display: none;
}

.story-card,
.info-card,
.side-list,
.prose-card {
    padding: 26px;
}

.story-card {
    margin-top: 26px;
}

.story-card h2,
.info-card h2,
.side-list h2,
.prose-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 24px;
}

.story-card p,
.prose-card p {
    margin: 0 0 26px;
    color: #cbd5e1;
    line-height: 1.95;
    font-size: 16px;
}

.story-card p:last-child,
.prose-card p:last-child {
    margin-bottom: 0;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card dt {
    color: #64748b;
    font-size: 13px;
}

.info-card dd {
    margin: -8px 0 0;
    color: #e5e7eb;
    line-height: 1.6;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-list a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
}

.side-list img {
    width: 58px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.95));
}

.side-list strong {
    color: #ffffff;
    line-height: 1.4;
}

.side-list em {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: #020617;
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-grid p {
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 34px;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    color: #64748b;
}

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

    .menu-button {
        display: block;
    }

    .hero-content,
    .detail-top,
    .detail-layout,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 300px;
    }

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

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        padding: 42px 0 86px;
        align-content: center;
    }

    .hero-text h1,
    .compact-hero h1,
    .detail-copy h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .hero-poster,
    .detail-poster {
        display: none;
    }

    .content-section {
        padding: 48px 0;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

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

    .ranking-card a {
        grid-template-columns: 52px 70px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-card img {
        width: 70px;
        height: 98px;
    }

    .big-search {
        grid-template-columns: 1fr;
    }

    .big-search button {
        min-height: 48px;
    }

    .player-shell {
        min-height: 240px;
    }
}
