* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.nav-shell {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

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

.nav-link,
.mobile-nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    background: rgba(29, 78, 216, 0.98);
}

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

.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #172554, #1d4ed8 55%, #06b6d4);
}

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

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

.hero-bg,
.sub-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) brightness(0.7);
}

.hero-bg::after,
.sub-hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.72), rgba(6, 182, 212, 0.34));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(125, 211, 252, 0.24), transparent 34%), rgba(2, 6, 23, 0.28);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 24px 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 64px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 40px rgba(2, 6, 23, 0.32);
}

.hero p,
.sub-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.small-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
}

.primary-btn:hover,
.small-play:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.24);
}

.ghost-btn {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
}

.ghost-btn:hover {
    color: #2563eb;
    background: #ffffff;
}

.hero-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    box-shadow: 0 34px 70px rgba(2, 6, 23, 0.34);
}

.hero-poster img,
.detail-poster img,
.card-poster img,
.wide-image img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.image-missing .poster-fallback {
    display: flex;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hero-controls button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 32px;
    line-height: 1;
    pointer-events: auto;
}

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

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

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

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.gray-section {
    background: #f1f5f9;
}

.dark-section {
    background: #020617;
}

.section-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow-shell {
    max-width: 1040px;
}

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-kicker {
    color: #2563eb;
}

.more-link {
    color: #2563eb;
    font-weight: 800;
}

.wide-scroll,
.feature-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x proximity;
}

.wide-card {
    flex: 0 0 320px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    scroll-snap-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.wide-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

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

.wide-image img {
    transition: transform 0.35s ease;
}

.hot-mark,
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 12px;
    font-weight: 900;
}

.wide-body {
    padding: 16px;
}

.wide-body h3,
.card-body h3,
.rank-info h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
}

.wide-body h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 19px;
}

.wide-body p,
.card-body p,
.rank-info p {
    margin: 8px 0 10px;
    color: #64748b;
}

.wide-body span,
.card-meta,
.rank-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

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

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

.landscape-grid {
    margin-top: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.card-poster img {
    transition: transform 0.3s ease;
}

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

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.86);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 15px;
    line-height: 1.45;
}

.card-body h3 a:hover,
.rank-info h2 a:hover {
    color: #2563eb;
}

.card-body p {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

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

.category-tile {
    min-height: 120px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.28);
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 13px;
    opacity: 0.86;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.sub-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    color: #ffffff;
    background: #172554;
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 24px 76px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.74));
}

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

.player-overlay span {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.88);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

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

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

.detail-article,
.detail-side {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 34px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
}

.detail-article p {
    margin: 0 0 26px;
    color: #334155;
    font-size: 17px;
}

.detail-side {
    padding: 26px;
}

.detail-side dl {
    margin: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 14px;
}

.detail-side dt {
    color: #64748b;
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: #0f172a;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
    color: #2563eb;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    position: relative;
    overflow: hidden;
    width: 86px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.rank-info h2 {
    font-size: 21px;
}

.small-play {
    color: #ffffff;
    background: #2563eb;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}

.brand-footer {
    color: #ffffff;
}

.footer-brand p {
    max-width: 420px;
    color: #94a3b8;
}

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

.footer-block h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.footer-block a,
.footer-block span {
    color: #94a3b8;
    font-size: 14px;
}

.footer-block a:hover {
    color: #60a5fa;
}

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px 24px;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-button {
        display: flex;
    }

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

    .hero-content {
        gap: 28px;
        padding-top: 56px;
    }

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

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

    .rank-row {
        grid-template-columns: 46px 70px minmax(0, 1fr);
    }

    .rank-row .small-play {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .section-shell,
    .sub-hero-content,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-controls {
        display: none;
    }

    .section {
        padding: 48px 0;
    }

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

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

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

    .wide-card {
        flex-basis: 280px;
    }

    .card-body {
        padding: 12px;
    }

    .detail-article,
    .detail-side {
        padding: 22px;
    }

    .player-overlay span {
        width: 64px;
        height: 64px;
    }
}
