:root {
    --site-bg: #f8fafc;
    --site-bg-soft: #f0fdfa;
    --site-card: #ffffff;
    --site-text: #111827;
    --site-muted: #64748b;
    --site-border: #e5e7eb;
    --site-primary: #14b8a6;
    --site-primary-dark: #0f766e;
    --site-accent: #06b6d4;
    --site-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--site-text);
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.32);
}

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

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--site-primary-dark);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 270px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--site-text);
    background: transparent;
}

.header-search button,
.mobile-toggle {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    border-radius: 999px;
    cursor: pointer;
}

.header-search button {
    padding: 7px 14px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    color: #334155;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: #f1f5f9;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 32%, rgba(20, 184, 166, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.hero-content-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 48px;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    color: #ccfbf1;
    border: 1px solid rgba(204, 251, 241, 0.35);
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.36);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-title span {
    display: block;
    color: #99f6e4;
}

.hero-movie-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
}

.hero-description {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.hero-actions,
.hero-dots,
.tag-row,
.card-tags,
.detail-tags,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 24px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta .meta-pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
    color: var(--site-primary-dark);
    background: #ccfbf1;
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.18);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 5;
}

.hero-control-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrows button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    border-radius: 999px;
    cursor: pointer;
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 42px 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--site-primary-dark);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: var(--site-card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: var(--site-shadow);
}

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

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

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

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

.movie-card-body {
    padding: 18px;
}

.card-title {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-title a:hover {
    color: var(--site-primary-dark);
}

.card-desc {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.card-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
}

.card-tags .tag-pill,
.detail-tags .tag-pill {
    color: #0891b2;
    background: #ecfeff;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #06b6d4);
    box-shadow: 0 20px 38px rgba(15, 118, 110, 0.2);
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-card .btn-ghost {
    padding: 9px 14px;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rank-num {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 850;
}

.rank-title a:hover {
    color: var(--site-primary-dark);
}

.rank-desc {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.34), transparent 32%),
        linear-gradient(135deg, #0f172a, #0f766e);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select,
.search-box input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.result-count {
    margin: 0 0 18px;
    color: var(--site-muted);
}

.detail-hero {
    position: relative;
    padding: 48px 0 64px;
    color: #ffffff;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    overflow: hidden;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72));
}

.detail-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.breadcrumb {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 650;
}

.breadcrumb a:hover {
    color: #99f6e4;
}

.player-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(20, 184, 166, 0.38);
    cursor: pointer;
}

.player-caption {
    padding: 22px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-poster-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

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

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.content-card,
.side-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.content-card {
    padding: 30px;
}

.side-card {
    padding: 22px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.9;
    font-size: 16px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.related-item h3 a:hover {
    color: var(--site-primary-dark);
}

.related-item p {
    margin: 0;
    color: var(--site-muted);
    font-size: 13px;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.prev-next a {
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ffffff;
    font-weight: 800;
}

.prev-next a:hover {
    color: var(--site-primary-dark);
    border-color: rgba(20, 184, 166, 0.4);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 840px;
    margin-top: 28px;
}

.search-box button {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    border-radius: 14px;
    font-weight: 850;
    cursor: pointer;
}

.site-footer {
    margin-top: 56px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-text,
.footer-links a {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel,
    .hero-image {
        min-height: 760px;
    }

    .hero-grid,
    .detail-grid,
    .content-grid,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster-card {
        justify-self: start;
        max-width: 280px;
    }

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

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

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

    .header-inner {
        height: 62px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .hero-carousel,
    .hero-image {
        min-height: 820px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero-copy {
        padding-top: 20px;
    }

    .hero-description,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .search-box {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 46px 66px minmax(0, 1fr);
    }

    .rank-item .btn-secondary {
        grid-column: 1 / -1;
        width: 100%;
    }

    .rank-thumb {
        width: 66px;
        height: 88px;
    }

    .content-card,
    .side-card {
        padding: 20px;
    }

    .prev-next {
        grid-template-columns: 1fr;
    }
}
