* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: #020617;
    color: #e5e7eb;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
    font-size: 14px;
}

.brand-name {
    font-size: 25px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-nav-link {
    color: #d1d5db;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-toggle {
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 4s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(6, 182, 212, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.28));
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 32px;
}

.hero-tags,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tags span,
.detail-meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: #dbeafe;
    font-size: 14px;
    backdrop-filter: blur(12px);
}

.hero-tags span:first-child,
.detail-meta span:first-child {
    background: rgba(6, 182, 212, 0.92);
    color: #ffffff;
    font-weight: 800;
}

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

.hero p {
    max-width: 680px;
    color: #d1d5db;
    font-size: 19px;
    line-height: 1.8;
}

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

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

.primary-button {
    min-height: 48px;
    padding: 0 28px;
    background: #06b6d4;
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(6, 182, 212, 0.28);
}

.primary-button:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    border-color: #22d3ee;
    color: #22d3ee;
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 42px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

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

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

.no-padding-top {
    padding-top: 0;
}

.section-dark {
    background: linear-gradient(180deg, #020617, #0f172a);
}

.section-deep {
    background: #0f172a;
}

.section-panel {
    background: linear-gradient(180deg, #0f172a, #1e293b);
}

.section-gradient {
    background: linear-gradient(180deg, #111827, #0f172a);
}

.section-heading {
    margin-bottom: 34px;
}

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

.eyebrow {
    display: inline-block;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.045em;
}

.section-more {
    color: #22d3ee;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(34, 211, 238, 0.24);
}

.section-more:hover {
    border-color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

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

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

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 256px;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scrollbar-width: thin;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    background: #263449;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

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

.movie-card:hover .poster-gradient {
    opacity: 0.96;
}

.hover-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.9);
    color: #ffffff;
    font-size: 28px;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .hover-play {
    opacity: 1;
    transform: scale(1);
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(6, 182, 212, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    display: block;
    padding: 16px;
}

.card-body strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
    color: #22d3ee;
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 9px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.62;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 12px;
}

.card-meta span {
    min-width: 0;
    padding: 5px 8px;
    border-radius: 7px;
    background: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta span:first-child {
    color: #22d3ee;
    background: transparent;
    padding-left: 0;
    flex: 1;
}

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

.large-category-grid {
    padding-bottom: 72px;
}

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.18), transparent 38%),
        linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
}

.category-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 54px;
    font-weight: 900;
}

.category-tile strong {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
}

.category-tile span:last-child {
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 14px;
}

.page-shell {
    background: linear-gradient(180deg, #020617, #0f172a 42%, #020617);
    min-height: 70vh;
    padding-bottom: 74px;
}

.page-hero {
    padding: 78px 0 46px;
}

.simple-hero,
.category-hero,
.ranking-hero {
    position: relative;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

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

.breadcrumb a:hover {
    color: #22d3ee;
}

.search-panel {
    margin-top: 28px;
    max-width: 680px;
}

.search-panel input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    outline: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.search-panel input:focus {
    border-color: #22d3ee;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 72px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 104px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(6px);
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(51, 65, 85, 0.9);
}

.rank-number {
    color: #22d3ee;
    font-size: 28px;
    font-weight: 900;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-info strong {
    color: #ffffff;
    font-size: 19px;
}

.rank-info span {
    color: #94a3b8;
}

.rank-action {
    color: #ffffff;
    background: #06b6d4;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 800;
}

.detail-shell {
    padding-top: 32px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
    gap: 34px;
}

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

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

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

.cover-play {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.34);
    font-size: 32px;
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-card:hover .player-controls,
.player-card:focus-within .player-controls,
.player-card.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    min-width: 44px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-weight: 800;
}

.player-controls button:first-child {
    background: #06b6d4;
}

.detail-copy {
    padding-top: 30px;
}

.detail-copy h1 {
    margin-bottom: 18px;
}

.info-box,
.side-card {
    margin-top: 24px;
    border-radius: 20px;
    padding: 24px;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

.large-box {
    margin-top: 0;
}

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

.info-box p {
    margin: 0 0 12px;
    color: #d1d5db;
    line-height: 1.9;
    font-size: 17px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.detail-side {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 104px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 22px;
}

.side-card dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.side-card dt {
    color: #94a3b8;
}

.side-card dd {
    margin: 0;
    color: #ffffff;
    text-align: right;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.tag-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: #334155;
    color: #cbd5e1;
    font-size: 12px;
}

.tag-pill:hover {
    color: #22d3ee;
}

.related-section {
    padding-top: 66px;
}

.about-grid,
.legal-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 56px;
}

.legal-stack {
    grid-template-columns: 1fr;
    max-width: 920px;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #94a3b8;
    padding: 66px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 16px;
}

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

.site-footer p {
    margin: 0;
    line-height: 1.75;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.site-footer a:hover {
    color: #22d3ee;
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #64748b;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero-shade {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.96));
    }

    .hero-copy {
        padding: 0 14px;
    }

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

    .hero-arrow {
        display: none;
    }

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

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

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

    .sticky-card {
        position: static;
    }

    .rank-row {
        grid-template-columns: 44px 58px 1fr;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .rank-action {
        display: none;
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body strong {
        font-size: 15px;
    }

    .card-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .card-meta span:first-child {
        grid-column: 1 / -1;
    }

    .player-controls {
        opacity: 1;
    }
}
