:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --ink: #162033;
    --muted: #637083;
    --soft: #e8eef8;
    --line: #e5eaf2;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep: #07111f;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.30);
}

.logo-text {
    font-size: 22px;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #0891b2;
    background: rgba(6, 182, 212, 0.10);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--deep);
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
    gap: 54px;
    align-items: center;
    padding: 74px max(32px, calc((100vw - 1180px) / 2)) 86px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

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

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(103, 232, 249, 0.26);
}

.hero-copy h1,
.page-hero h1,
.watch-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy p,
.page-hero p,
.watch-copy p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.ghost-button {
    padding: 0 22px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36));
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
    width: 58px;
    background: #67e8f9;
}

.section {
    padding: 82px max(20px, calc((100vw - 1180px) / 2));
}

.white-section {
    background: #fff;
}

.soft-section {
    background: #f7fafc;
}

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

.section-heading.centered {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.section-link {
    padding: 0 20px;
    color: #0891b2;
    background: #ecfeff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.featured-card,
.movie-card,
.aside-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.featured-card {
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.featured-card:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.featured-media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.featured-media img,
.movie-cover img,
.mini-card img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-media img,
.movie-cover img {
    transition: transform 0.5s ease;
}

.featured-card:hover img,
.movie-card:hover .movie-cover img {
    transform: scale(1.07);
}

.featured-copy {
    padding: 24px;
}

.featured-copy h2,
.movie-body h2 {
    margin: 12px 0 8px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.featured-copy p,
.movie-body p {
    margin: 0;
    color: var(--muted);
}

.featured-copy > span {
    display: inline-flex;
    margin-top: 18px;
    color: #0891b2;
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e2e8f0;
}

.movie-badge,
.movie-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.movie-play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-tags {
    margin-top: 14px;
}

.movie-tags span {
    color: #0891b2;
    background: #ecfeff;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 26px;
    border-radius: 28px;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tone-1,
.tone-5,
.tone-9 {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tone-2,
.tone-6,
.tone-10 {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.tone-3,
.tone-7,
.tone-11 {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.tone-4,
.tone-8,
.tone-12 {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.category-card-copy {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 900;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    max-width: 260px;
    color: rgba(255, 255, 255, 0.82);
}

.category-preview {
    position: absolute;
    right: -16px;
    bottom: -20px;
    display: grid;
    grid-template-columns: repeat(2, 72px);
    gap: 8px;
    transform: rotate(-8deg);
    opacity: 0.9;
}

.category-preview img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.24);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 390px) 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-wrap {
    position: relative;
}

.search-wrap span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 900;
}

.search-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    outline: none;
    color: #111827;
    background: #f8fafc;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap input:focus {
    border-color: #67e8f9;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    color: #475569;
    font-weight: 800;
    background: #f1f5f9;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip:hover,
.chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    transform: translateY(-1px);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 64px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    color: #0891b2;
    font-size: 20px;
    font-weight: 950;
}

.ranking-row img {
    width: 64px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-title {
    font-weight: 900;
}

.rank-meta {
    color: #64748b;
    font-size: 13px;
}

.page-hero,
.watch-hero {
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.32), transparent 34%),
        radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.35), transparent 35%),
        linear-gradient(135deg, #06111f, #0f172a 62%, #172554);
}

.page-hero {
    padding: 86px max(24px, calc((100vw - 1180px) / 2));
}

.small-hero {
    min-height: 310px;
    display: flex;
    align-items: center;
}

.category-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.watch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
    align-items: end;
    padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.watch-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
}

.mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.mini-card img {
    position: absolute;
    inset: 0;
}

.mini-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 38px max(24px, calc((100vw - 1180px) / 2)) 82px;
    background: #f7fafc;
}

.watch-main,
.watch-aside {
    min-width: 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

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

.play-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
}

.play-title {
    font-size: 18px;
    font-weight: 900;
}

.detail-panel {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
}

.detail-copy h2,
.article-section h2,
.aside-card h2 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 24px;
    font-weight: 950;
}

.detail-copy p,
.article-section p {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

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

.movie-info div {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.movie-info dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-info dd {
    margin: 3px 0 0;
    color: #0f172a;
    font-weight: 900;
}

.article-section {
    margin-top: 24px;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
}

.aside-card {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.aside-list {
    display: grid;
    gap: 12px;
}

.aside-list .mini-card {
    min-height: 108px;
}

.site-footer {
    color: #cbd5e1;
    background: #07111f;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
}

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

.footer-links h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-links div {
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
}

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

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

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

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding-top: 54px;
    }

    .hero-poster {
        display: none;
    }

    .featured-grid,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .all-movie-grid,
    .large-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .watch-layout,
    .watch-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .watch-aside {
        display: none;
    }

    .detail-panel {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        height: 66px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero-slider,
    .hero-track {
        min-height: 620px;
    }

    .hero-slide {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-actions,
    .split-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .section {
        padding: 58px 18px;
    }

    .featured-grid,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .all-movie-grid,
    .watch-side {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 42px 56px 1fr;
    }

    .rank-meta {
        display: none;
    }

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

    .detail-cover {
        max-width: 230px;
    }

    .movie-info {
        grid-template-columns: 1fr;
    }
}
