:root {
    color-scheme: dark;
    --bg-950: #020617;
    --bg-900: #0f172a;
    --bg-850: #111c31;
    --bg-800: #1e293b;
    --bg-700: #334155;
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.18);
    --blue: #2563eb;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --card-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.15), transparent 32rem), linear-gradient(180deg, var(--bg-950), var(--bg-900) 42%, var(--bg-950));
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.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.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.45);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #dbeafe;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: #22d3ee;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.78);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 99px;
}

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

.mobile-nav a {
    display: block;
    padding: 13px 0;
    color: #dbeafe;
    font-weight: 600;
}

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

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--bg-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.85s ease;
}

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 42%, rgba(2, 6, 23, 0.34) 100%), linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 24px;
}

.hero-meta span,
.hero-meta strong,
.hero-meta em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-style: normal;
    font-size: 14px;
}

.hero-meta span {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 800;
}

.hero-meta strong {
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.35);
    background: rgba(6, 182, 212, 0.12);
}

.hero-meta em {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
}

.hero h1,
.hero h2 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 650px;
    margin: 0 0 32px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

.hero-actions,
.action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.primary-btn {
    min-height: 48px;
    padding: 0 28px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.32);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(203, 213, 225, 0.24);
    backdrop-filter: blur(10px);
}

.small-btn {
    min-height: 38px;
    padding: 0 16px;
    color: #e0f2fe;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.24);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 34px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--cyan);
}

.content-section {
    padding: 72px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0));
}

.content-section:nth-of-type(even) {
    background: rgba(15, 23, 42, 0.58);
}

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

.section-heading h1,
.section-heading h2 {
    display: inline;
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    border-radius: 14px;
    color: #fef3c7;
    background: rgba(6, 182, 212, 0.18);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0b1220;
}

.poster-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
}

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: auto;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.88);
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(10px);
}

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

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.9);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 9px;
    color: white;
    font-size: 17px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.22s ease;
}

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

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

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #67e8f9;
    font-size: 12px;
}

.card-meta span {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.page-hero {
    padding: 72px 0 44px;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 32rem), linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.7));
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    margin: 28px 0 34px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #67e8f9;
    font-weight: 800;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    outline: none;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.62);
}

.select-row {
    display: flex;
    gap: 12px;
}

.empty-result {
    display: none;
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
}

.empty-result.is-visible {
    display: block;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 42px rgba(0, 0, 0, 0.3);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.9));
}

.category-card div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 72px 120px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.45);
}

.rank-num {
    color: #22d3ee;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

.rank-poster img {
    height: 100%;
    object-fit: cover;
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-copy p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    padding: 52px 0;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 36rem), linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
}

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

.player-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--card-shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-orb {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    padding-left: 7px;
    font-size: 40px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 46px rgba(6, 182, 212, 0.45);
}

.detail-card {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.detail-meta span,
.tag-row span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #dffafe;
    background: rgba(6, 182, 212, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 13px;
    font-weight: 700;
}

.detail-card p,
.article-block p {
    color: #cbd5e1;
    line-height: 1.86;
}

.article-block {
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.58);
}

.article-block h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.pagination-links a {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    color: #e0f2fe;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-footer {
    padding: 62px 0 26px;
    color: #94a3b8;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 15px;
    color: white;
    font-size: 18px;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0 0 11px;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 590px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .section-heading,
    .filter-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .select-row {
        flex-direction: column;
    }

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

    .ranking-item {
        grid-template-columns: 54px 86px 1fr;
    }

    .ranking-item .small-btn {
        grid-column: 2 / 4;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 76vh;
        min-height: 560px;
    }

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

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

    .card-body {
        padding: 12px;
    }

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

    .play-orb {
        width: 76px;
        height: 76px;
        font-size: 32px;
    }

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

    .pagination-links {
        flex-direction: column;
    }
}
