* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #f8fafc;
    background: linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 12%, rgba(14, 165, 233, 0.15), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.13), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.08), transparent 34%);
    z-index: -1;
}

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: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.site-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #bae6fd;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.9));
    box-shadow: 0 0 26px rgba(37, 99, 235, 0.45);
    font-size: 14px;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #ffffff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.mobile-link {
    display: block;
    padding: 12px 6px;
}

main {
    padding-top: 76px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    margin-top: -76px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.86) 44%, rgba(2, 6, 23, 0.12) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0) 35%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 720px;
    padding-top: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    color: #93c5fd;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero p {
    max-width: 640px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
    color: #cbd5e1;
    font-size: 13px;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 13px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.btn-ghost {
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(30, 41, 59, 0.36);
}

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

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

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

.section {
    padding: 70px 0;
}

.section-muted {
    background: rgba(15, 23, 42, 0.42);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.section-desc {
    margin: 8px 0 0;
    color: #94a3b8;
    max-width: 700px;
    line-height: 1.7;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.48);
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.015);
    background: rgba(30, 41, 59, 0.88);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-weight: 800;
}

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

.movie-card h2,
.landscape-card h3,
.ranking-item h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.movie-card p,
.landscape-card p,
.ranking-item p {
    margin: 8px 0 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}

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

.landscape-card a {
    display: flex;
    min-height: 160px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.52);
    transition: background 0.2s ease, transform 0.2s ease;
}

.landscape-card a:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.9);
}

.landscape-card img {
    width: 126px;
    object-fit: cover;
    flex: 0 0 auto;
}

.landscape-card div {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.landscape-card span,
.ranking-item span {
    color: #64748b;
    font-size: 13px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.category-blocks {
    display: grid;
    gap: 34px;
}

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

.category-strip h3 {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}

.category-strip h3::before,
.page-title::before {
    content: "";
    width: 4px;
    height: 26px;
    border-radius: 999px;
    background: #3b82f6;
}

.side-panel {
    border-radius: 24px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.11);
}

.side-panel h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

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

.ranking-mini a {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 15px;
    background: rgba(30, 41, 59, 0.45);
    transition: background 0.2s ease;
}

.ranking-mini a:hover {
    background: rgba(30, 41, 59, 0.86);
}

.ranking-mini strong {
    color: #60a5fa;
    font-size: 18px;
}

.ranking-mini span {
    color: #ffffff;
    font-weight: 650;
}

.ranking-mini em {
    display: block;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(14, 165, 233, 0.05)),
        rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(96, 165, 250, 0.14);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -45px;
    top: -40px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
}

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

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

.category-card p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.65;
}

.category-card span {
    color: #93c5fd;
    font-weight: 700;
    margin-top: 18px;
}

.page-hero {
    padding: 76px 0 46px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.04)),
        rgba(15, 23, 42, 0.28);
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.page-hero p {
    margin: 18px 0 0;
    color: #94a3b8;
    max-width: 760px;
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(96, 165, 250, 0.68);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

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

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

.detail-hero {
    padding: 48px 0 34px;
}

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

.detail-main,
.detail-side,
.player-section {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.player-section {
    padding: 18px;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.22));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 0 36px rgba(37, 99, 235, 0.48);
    font-size: 32px;
}

.detail-copy {
    padding: 26px;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.82);
    color: #cbd5e1;
    font-size: 13px;
}

.detail-copy h2,
.detail-side h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-copy p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0 0 14px;
}

.detail-side {
    padding: 18px;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.72);
}

.side-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-list a {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.44);
}

.side-list a:hover {
    background: rgba(30, 41, 59, 0.84);
}

.side-list img {
    width: 58px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
}

.side-list strong {
    display: block;
    color: #ffffff;
    line-height: 1.35;
}

.side-list span {
    color: #64748b;
    font-size: 13px;
}

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

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border-radius: 18px;
    padding: 14px;
    background: rgba(30, 41, 59, 0.48);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item a:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.86);
}

.ranking-item strong {
    color: #60a5fa;
    font-size: 26px;
    text-align: center;
}

.ranking-item img {
    width: 96px;
    height: 128px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.72);
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.74);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

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

.site-footer p,
.footer-links a,
.footer-copy {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 14px;
}

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

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

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

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

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

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

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

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

    .menu-button {
        display: block;
    }

    .site-logo {
        font-size: 22px;
    }

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

    .hero-content {
        align-items: flex-end;
        padding-bottom: 86px;
    }

    .hero-gradient {
        background:
            linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 58%, rgba(2, 6, 23, 0.18) 100%);
    }

    .section {
        padding: 50px 0;
    }

    .section-head,
    .footer-grid {
        display: grid;
    }

    .movie-grid,
    .movie-grid-wide,
    .category-strip,
    .landscape-grid,
    .category-cards,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .ranking-item a {
        grid-template-columns: 42px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-item img {
        width: 78px;
        height: 104px;
    }
}

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

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

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

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

    .landscape-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card p {
        display: none;
    }

    .detail-copy,
    .player-section {
        padding: 14px;
    }

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
