* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e5edf8;
    background:
        radial-gradient(circle at 20% 10%, rgba(8, 145, 178, 0.26), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.22), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(18px);
}

.header-inner,
.nav-chips,
.footer-inner,
main,
.page-main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ecfeff;
    font-weight: 900;
    font-size: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong,
.footer-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    position: relative;
    color: #cbd5e1;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #22d3ee;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-chips {
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
    overflow-x: auto;
}

.nav-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    color: #bae6fd;
    font-size: 13px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    gap: 5px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.76);
}

.menu-button span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-link.active,
.mobile-link:hover {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.14);
}

.hero {
    position: relative;
    width: 100vw;
    height: min(760px, 80vh);
    min-height: 560px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transform: scale(1.03);
}

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

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1200px) / 2));
    top: 50%;
    width: min(620px, calc(100vw - 64px));
    transform: translateY(-45%);
    z-index: 2;
}

.hero-label,
.section-kicker,
.detail-kicker,
.wide-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
}

.hero p,
.page-hero p,
.detail-info p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    color: #cffafe;
    font-size: 13px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
}

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

.primary-button,
.ghost-button,
.quick-search button,
.filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 900;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ghost-button {
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.34);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(34, 211, 238, 0.26);
}

.hero-card {
    position: absolute;
    right: max(32px, calc((100vw - 1200px) / 2));
    bottom: 96px;
    z-index: 3;
    width: min(290px, 28vw);
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.hero-card span {
    display: block;
    margin-top: 12px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
}

.hero-card strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #e0f2fe;
    font-size: 38px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.54);
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-strip,
.content-section,
.detail-content,
.player-section {
    margin-top: 64px;
}

.search-strip {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(18px);
}

.search-strip h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.search-strip p {
    margin: 0;
    color: #94a3b8;
}

.quick-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

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

.filter-bar {
    margin: 0 0 24px;
}

.filter-bar select {
    max-width: 180px;
}

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

.section-heading h2,
.panel-title h2,
.story-card h2 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-more,
.text-link {
    color: #22d3ee;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(15, 23, 42, 0.86);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.movie-card:hover .poster-link img {
    opacity: 0.82;
    transform: scale(1.04);
}

.play-dot,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 14px;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card p {
    display: -webkit-box;
    min-height: 54px;
    margin: 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
    gap: 28px;
    align-items: start;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.wide-poster {
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

.wide-poster img {
    width: 100%;
    height: 156px;
    object-fit: cover;
}

.wide-body {
    position: relative;
}

.wide-body .number {
    position: absolute;
    right: 0;
    top: 0;
    color: rgba(125, 211, 252, 0.24);
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}

.wide-card h3 {
    margin: 8px 0;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.2;
}

.wide-card p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #94a3b8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-panel,
.overview-card,
.story-card,
.player-shell,
.detail-hero,
.page-hero {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(18px);
}

.ranking-panel {
    position: sticky;
    top: 110px;
    padding: 22px;
    border-radius: 30px;
}

.panel-title span {
    display: inline-flex;
    padding: 4px 10px;
    color: #020617;
    font-weight: 900;
    border-radius: 999px;
    background: #22d3ee;
}

.compact-list .wide-card {
    grid-template-columns: 82px 1fr;
    padding: 10px;
}

.compact-list .wide-poster img {
    height: 106px;
}

.compact-list .wide-card p {
    display: none;
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

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

.category-tile,
.overview-card {
    overflow: hidden;
    border-radius: 26px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile {
    position: relative;
    min-height: 220px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.34), rgba(37, 99, 235, 0.18));
}

.category-tile:hover,
.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.34);
}

.category-tile span,
.overview-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #67e8f9;
    font-weight: 900;
}

.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 520px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.28;
}

.tile-covers {
    position: absolute;
    right: 16px;
    bottom: 14px;
    display: flex;
    gap: 8px;
    opacity: 0.9;
}

.tile-covers img {
    width: 58px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.page-main {
    padding: 42px 0 0;
}

.page-hero {
    overflow: hidden;
    padding: clamp(34px, 6vw, 70px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.66));
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1 {
    max-width: 780px;
}

.overview-card {
    padding: 24px;
    border-radius: 26px;
}

.overview-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.overview-card p {
    margin: 0 0 16px;
    color: #94a3b8;
}

.overview-links {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.overview-links a {
    color: #cbd5e1;
}

.ranking-list .wide-card {
    grid-template-columns: 150px 1fr;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: clamp(24px, 4vw, 46px);
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.18), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.74));
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: #ffffff;
    font-size: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.36);
}

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

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

.story-card {
    padding: 26px;
    border-radius: 28px;
}

.story-card p {
    margin: 16px 0 0;
    color: #cbd5e1;
}

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

.compact-card .card-body {
    padding: 14px;
}

.compact-card h3 {
    font-size: 16px;
}

.site-footer {
    margin-top: 76px;
    padding: 42px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.52);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 28px;
}

.footer-inner p {
    max-width: 440px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

.is-filtered-out {
    display: none;
}

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

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

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

    .ranking-panel {
        position: static;
    }

    .hero-card {
        display: none;
    }
}

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

    .menu-button {
        display: flex;
    }

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

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

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        left: 20px;
        width: calc(100vw - 40px);
    }

    .hero-arrow {
        display: none;
    }

    .search-strip,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: 42px;
        font-size: 13px;
    }

    .wide-card,
    .ranking-list .wide-card {
        grid-template-columns: 96px 1fr;
    }

    .wide-poster img {
        height: 132px;
    }

    .detail-info h1 {
        font-size: 42px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-hero,
    .story-card,
    .ranking-panel {
        border-radius: 24px;
    }
}
