*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #e5f2ff;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.12), transparent 30rem),
        #020617;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: rgba(2, 6, 23, 0.96);
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.42);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #001018;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.42);
}

.brand-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.22s ease, background 0.22s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.16);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #e2e8f0;
}

.hero-carousel {
    position: relative;
    min-height: 760px;
    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 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    filter: saturate(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-content {
    position: relative;
    min-height: 760px;
    padding-top: 130px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 54px;
}

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

.eyebrow,
.section-kicker {
    margin: 0;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-summary {
    max-width: 680px;
    margin: 0;
    color: #cbd5e1;
    font-size: 19px;
}

.hero-tags,
.detail-tags,
.mini-tags,
.quick-links,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.detail-tags span,
.mini-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(103, 232, 249, 0.25);
    background: rgba(8, 47, 73, 0.5);
    color: #cffafe;
    font-size: 12px;
    padding: 5px 10px;
}

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

.primary-btn,
.ghost-btn,
.search-box button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.search-box button {
    color: #001018;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.27);
}

.ghost-btn,
.text-link {
    color: #ecfeff;
    border: 1px solid rgba(103, 232, 249, 0.3);
    background: rgba(15, 23, 42, 0.6);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-box button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #001018;
    font-weight: 800;
    background: #67e8f9;
}

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

.hero-controls button {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
}

.hero-controls button.is-active {
    background: #22d3ee;
}

.search-section {
    margin-top: -44px;
    position: relative;
    z-index: 10;
}

.search-panel,
.story-card,
.category-card-large,
.rank-sidebar,
.info-page article {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(18px);
}

.search-panel {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
    align-items: center;
    gap: 20px;
}

.search-panel h2,
.section-heading h2,
.story-card h2,
.rank-sidebar h2,
.category-card-large h2,
.page-hero h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.search-box {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    outline: 0;
    padding: 0 18px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
}

.quick-links {
    grid-column: 1 / -1;
}

.quick-links a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.68);
}

.section-block {
    padding: 72px 0 0;
}

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

.section-heading > a {
    color: #67e8f9;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #0f172a;
    transform: translateZ(0);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.2));
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img,
.movie-card:hover img,
.category-cover:hover img {
    transform: scale(1.06);
}

.category-tile span,
.category-tile p {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 58px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
}

.category-tile p {
    bottom: 18px;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 28px 70px rgba(8, 47, 73, 0.4);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.quality-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
}

.quality-badge {
    right: 10px;
    color: #001018;
    background: #67e8f9;
}

.rank-badge {
    left: 10px;
    color: #fff7ed;
    background: rgba(234, 88, 12, 0.92);
}

.card-body {
    padding: 14px;
}

.card-meta {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 12px;
}

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

.card-body h3 a:hover {
    color: #67e8f9;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-tags span {
    padding: 3px 8px;
    font-size: 11px;
}

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

.page-hero {
    padding: 140px 0 28px;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
}

.page-hero .search-box {
    max-width: 760px;
    margin-top: 26px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.category-cover {
    overflow: hidden;
    border-radius: 20px;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card-large p {
    color: #cbd5e1;
}

.category-card-large ul {
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}

.category-card-large li + li {
    margin-top: 6px;
}

.category-card-large li a {
    color: #e2e8f0;
}

.category-card-large li a:hover {
    color: #67e8f9;
}

.rank-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding-bottom: 72px;
}

.rank-sidebar {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.rank-sidebar a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-sidebar span {
    color: #67e8f9;
    font-weight: 900;
}

.rank-sidebar strong {
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.detail-main {
    padding-bottom: 72px;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.62)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 58%);
}

.detail-head {
    position: relative;
    padding-top: 142px;
}

.breadcrumb {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    color: #001018;
    font-weight: 900;
    background: #67e8f9;
}

.detail-head h1 {
    max-width: 900px;
    margin: 20px 0 16px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 19px;
}

.player-section {
    margin-top: -120px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(103, 232, 249, 0.2);
    background: #000;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.38));
    cursor: pointer;
}

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

.play-bubble {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    color: #001018;
    font-size: 32px;
    background: #67e8f9;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.55);
}

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

.player-overlay em {
    color: #cbd5e1;
    font-style: normal;
}

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

.story-card {
    padding: 26px;
}

.story-card p:last-child {
    color: #dbeafe;
}

.info-page {
    padding: 26px 0 80px;
}

.info-page article {
    padding: 28px;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #94a3b8;
}

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

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

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

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

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    }

    .nav-menu.is-open {
        display: flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 116px;
        gap: 26px;
    }

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

    .search-panel,
    .category-card-large,
    .rank-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-sidebar {
        position: static;
    }

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

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

@media (max-width: 620px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 17px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-summary,
    .detail-line {
        font-size: 16px;
    }

    .search-box,
    .footer-inner,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input,
    .search-box button {
        min-height: 46px;
    }

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

    .card-body {
        padding: 11px;
    }

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

    .card-desc {
        font-size: 12px;
    }

    .page-hero {
        padding-top: 110px;
    }

    .detail-head {
        padding-top: 112px;
    }

    .player-section {
        margin-top: -80px;
    }
}
