:root {
    --primary: #14b8a6;
    --primary-dark: #0f766e;
    --secondary: #6366f1;
    --accent: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, #f3f4f6 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.32);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: rgba(20, 184, 166, 0.11);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}

.hero-section,
.page-hero,
.detail-hero {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(238, 242, 255, 0.95));
    box-shadow: var(--shadow);
}

.hero-section {
    min-height: 620px;
    padding: 34px;
}

.hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.34;
    pointer-events: none;
}

.hero-glow.one {
    top: -120px;
    right: 18%;
    background: var(--primary);
}

.hero-glow.two {
    bottom: -120px;
    left: 8%;
    background: var(--secondary);
}

.hero-slider {
    position: relative;
    z-index: 2;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: center;
    opacity: 0;
    transform: translateX(28px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(20, 184, 166, 0.13);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 12px;
    color: var(--ink);
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.03;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    color: #0f766e;
}

.hero-copy p,
.page-hero p,
.feature-panel p,
.detail-one-line {
    max-width: 720px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-tags,
.detail-tags {
    margin: 20px 0;
}

.hero-tag,
.tag,
.mini-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 184, 166, 0.18);
    color: #0f766e;
    font-weight: 700;
}

.hero-tag,
.tag {
    padding: 8px 12px;
    font-size: 13px;
}

.mini-tag {
    padding: 4px 8px;
    font-size: 12px;
}

.hero-actions,
.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 36px rgba(20, 184, 166, 0.28);
}

.button.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f766e, #312e81);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.25);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.94;
}

.hero-poster::after,
.movie-poster::after,
.detail-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.hero-score {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(14px);
    font-size: 20px;
    font-weight: 950;
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 118px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.2);
}

.hero-dot.active {
    background: var(--primary-dark);
}

.hero-search-card {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
}

.hero-search-card strong,
.footer-brand {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.hero-search-card span,
.movie-meta,
.footer-inner p {
    color: var(--muted);
    font-size: 14px;
}

.search-box {
    min-width: min(100%, 420px);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: #ffffff;
}

.search-box span {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 13px;
}

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

.category-strip,
.content-section {
    width: min(1200px, calc(100% - 32px));
    margin: 30px auto 0;
}

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

.category-chip,
.category-overview-card,
.ranking-panel,
.feature-panel,
.movie-card,
.detail-text,
.filter-panel {
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.category-chip {
    min-height: 120px;
    padding: 18px;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.category-chip strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.category-chip span,
.category-overview-card p,
.movie-card p,
.detail-text p {
    color: var(--muted);
    line-height: 1.7;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 6px;
    color: var(--muted);
}

.section-more {
    flex-shrink: 0;
    color: var(--primary-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.2), rgba(99, 102, 241, 0.22));
}

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

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

.poster-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    font-size: 14px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    font-weight: 950;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card .movie-card-body {
    padding: 12px;
}

.compact-card .movie-title {
    min-height: auto;
    font-size: 15px;
}

.compact-card p,
.compact-card .mini-tags {
    display: none;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.ranking-panel,
.feature-panel {
    border-radius: var(--radius-xl);
    padding: 24px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
}

.ranking-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #ffffff;
    background: var(--ink);
    font-weight: 950;
}

.ranking-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.95));
    color: #ffffff;
}

.feature-panel h2 {
    margin: 16px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.feature-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.feature-panel .button.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-hero {
    min-height: 300px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.small-hero {
    display: block;
}

.category-hero,
.ranking-hero {
    min-height: 360px;
}

.compact-hero-poster {
    width: min(280px, 35vw);
    flex-shrink: 0;
}

.category-feature-list {
    display: grid;
    grid-template-columns: repeat(5, 110px);
    gap: 12px;
}

.category-feature-list a {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
}

.category-feature-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-feature-list span {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.category-overview-list {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    border-radius: var(--radius-xl);
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-title {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 950;
}

.category-preview-grid {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(160px, 0.26fr));
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 22px;
}

.filter-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--ink);
    outline: 0;
}

.empty-result {
    display: none;
    margin: 16px 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    text-align: center;
}

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

.detail-hero {
    padding: 30px;
}

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

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 32px;
    align-items: center;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.25), rgba(99, 102, 241, 0.25));
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.20);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #374151;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 750;
}

.player-section {
    scroll-margin-top: 92px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background: #030712;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.28), rgba(3, 7, 18, 0.78));
    text-align: center;
    pointer-events: auto;
}

.player-wrap.is-playing .player-cover {
    display: none;
}

.player-cover-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.35);
    font-size: 30px;
    text-indent: 4px;
}

.player-cover strong {
    max-width: 80%;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 950;
}

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

.detail-text {
    padding: 26px;
    border-radius: var(--radius-xl);
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.detail-text h2:not(:first-child) {
    margin-top: 28px;
}

.detail-text p {
    font-size: 17px;
}

.site-footer {
    margin-top: 60px;
    padding: 34px 0;
    background: #111827;
    color: #ffffff;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
}

@media (max-width: 1024px) {
    .hero-slide,
    .detail-layout,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 900px;
    }

    .hero-poster {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .hero-dots {
        bottom: 128px;
    }

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

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

    .category-feature-list {
        grid-template-columns: repeat(5, 88px);
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        border-radius: 14px;
    }

    .hero-section,
    .page-hero,
    .detail-hero {
        width: min(100% - 20px, 1200px);
        margin-top: 14px;
        border-radius: 22px;
    }

    .hero-section {
        min-height: 760px;
        padding: 20px;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

    .hero-search-card {
        left: 20px;
        right: 20px;
        bottom: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dots {
        left: 20px;
        bottom: 142px;
    }

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

    .category-strip,
    .content-section {
        width: min(100% - 20px, 1200px);
        margin-top: 20px;
    }

    .category-chip {
        min-height: auto;
        padding: 14px;
    }

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

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

    .ranking-row em {
        grid-column: 2;
    }

    .page-hero {
        min-height: auto;
        padding: 28px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .compact-hero-poster {
        width: 100%;
    }

    .category-feature-list {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .search-box {
        min-width: 100%;
    }

    .detail-hero {
        padding: 20px;
    }

    .detail-cover {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .player-wrap {
        border-radius: 18px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 460px) {
    .category-strip,
    .movie-grid,
    .compact-grid,
    .category-preview-grid,
    .library-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 116px 1fr;
    }

    .movie-poster {
        height: 100%;
        min-height: 164px;
    }

    .compact-card {
        grid-template-columns: 94px 1fr;
    }

    .compact-card .movie-poster {
        min-height: 132px;
    }
}
