:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-500: #3b82f6;
    --red-500: #ef4444;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.22);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.site-nav a,
.nav-dropdown button {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 650;
    border: 0;
    background: transparent;
    padding: 8px 0;
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-dropdown button:hover {
    color: var(--cyan-300);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 38px;
    right: 0;
    width: 180px;
    padding: 12px;
    display: none;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow-strong);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
    gap: 8px;
}

.nav-dropdown-menu a {
    padding: 8px 10px;
    border-radius: 12px;
}

.nav-dropdown-menu a:hover {
    background: rgba(34, 211, 238, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input {
    width: 100%;
    color: var(--white);
    border: 0;
    outline: none;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.header-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--white);
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.mobile-panel a:hover,
.mobile-panel a.is-active {
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan-300);
}

.hero-section {
    padding: 28px 16px 10px;
}

.hero-carousel {
    position: relative;
    width: min(1240px, 100%);
    min-height: 560px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 32px;
    background: var(--slate-900);
    box-shadow: var(--shadow-strong);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 44%);
}

.hero-copy {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: clamp(36px, 8vw, 92px);
    width: min(560px, calc(100% - 48px));
    color: var(--white);
}

.eyebrow,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan-300);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h2,
.hero-panel h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    font-size: clamp(36px, 6vw, 72px);
}

.hero-copy p,
.hero-panel p,
.page-hero p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.34);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: absolute;
    top: 34px;
    right: 34px;
    width: min(360px, calc(100% - 68px));
    padding: 24px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.hero-panel h1 {
    font-size: clamp(30px, 3vw, 42px);
}

.hero-search,
.search-page-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
    padding: 13px 16px;
    color: var(--gray-900);
    background: var(--white);
}

.hero-search input {
    border: 0;
}

.hero-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-shortcuts a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: 32px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
    background: var(--cyan-300);
}

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 56px auto;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    color: var(--gray-900);
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--gray-600);
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.18);
}

.section-icon.red {
    background: linear-gradient(135deg, var(--red-500), #f97316);
}

.section-more {
    margin-left: auto;
    color: var(--cyan-600);
    font-weight: 800;
}

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

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

.featured-card a {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    background: var(--slate-900);
}

.featured-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.featured-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 34px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12));
}

.featured-overlay h3 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 4vw, 38px);
}

.featured-overlay p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.meta-line,
.card-meta,
.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-line span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
}

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--slate-900);
}

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

.type-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: auto;
    right: 12px;
    background: linear-gradient(135deg, var(--red-500), #f97316);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 44px;
    margin: 0 0 10px;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 12px;
}

.category-band,
.dark-section {
    padding: 42px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-strong);
}

.light-heading h2,
.light-heading p {
    color: var(--white);
}

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

.category-chip,
.category-overview-card {
    display: block;
    padding: 22px;
    border-radius: 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-chip:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    background: rgba(34, 211, 238, 0.13);
}

.category-chip span,
.category-overview-main span {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-chip small,
.category-overview-main p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.dark-section .movie-card-link,
.category-band .movie-card-link {
    background: var(--white);
}

.page-main {
    padding: 28px 0 1px;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 44px;
    padding: clamp(32px, 6vw, 72px);
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-strong);
}

.compact-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.compact-hero p {
    max-width: 760px;
    margin: 16px 0 0;
}

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

.breadcrumb a {
    color: var(--cyan-300);
    font-weight: 800;
}

.category-overview-card {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.category-samples {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.category-samples a {
    color: rgba(255, 255, 255, 0.82);
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    padding: 32px;
    text-align: center;
    border-radius: 22px;
    color: var(--gray-600);
    background: var(--white);
}

.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 26px;
}

.detail-player-card,
.detail-info-card,
.copy-card {
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-player-card {
    padding: 22px;
}

.detail-player-card .breadcrumb {
    color: var(--gray-600);
}

.detail-player-card .breadcrumb a {
    color: var(--cyan-600);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--slate-950);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--slate-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--white);
    cursor: pointer;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.16));
    transition: opacity 0.24s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: var(--slate-950);
    font-size: 30px;
    background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
}

.player-status {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--white);
    text-align: center;
    background: rgba(239, 68, 68, 0.82);
}

.detail-info-card {
    overflow: hidden;
}

.detail-info-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.detail-info-card > div {
    padding: 24px;
}

.detail-info-card h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.detail-lead {
    color: var(--gray-600);
    line-height: 1.8;
}

.detail-meta span {
    color: var(--cyan-600);
    background: #ecfeff;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    background: #eff6ff;
}

.detail-copy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.copy-card {
    padding: 28px;
}

.copy-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.copy-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.search-page-form {
    max-width: 760px;
}

.search-page-form input {
    border: 0;
}

.site-footer {
    margin-top: 72px;
    color: rgba(255, 255, 255, 0.72);
    background: var(--slate-900);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 28px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
}

.footer-inner p {
    max-width: 420px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-content: start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: var(--cyan-300);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

    .movie-grid,
    .latest-grid,
    .rank-grid,
    .rank-page-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .hero-slide img {
        min-height: 760px;
    }

    .hero-panel {
        top: auto;
        right: 20px;
        left: 20px;
        bottom: 88px;
        width: auto;
    }

    .hero-copy {
        top: 44px;
        bottom: auto;
    }

    .hero-dots {
        left: 32px;
        bottom: 32px;
    }

    .featured-grid,
    .detail-copy-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

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

    .hero-section {
        padding: 16px 10px 0;
    }

    .hero-carousel,
    .page-hero,
    .category-band,
    .dark-section {
        border-radius: 22px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-slide img {
        min-height: 720px;
    }

    .hero-panel {
        padding: 18px;
    }

    .hero-search,
    .search-page-form {
        flex-direction: column;
    }

    .hero-search button,
    .search-page-form button {
        width: 100%;
    }

    .section-wrap {
        width: min(100% - 20px, 1240px);
        margin: 42px auto;
    }

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

    .section-more {
        display: none;
    }

    .movie-grid,
    .home-grid,
    .latest-grid,
    .rank-grid,
    .rank-page-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-chip-grid,
    .category-overview-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .movie-card-body p {
        min-height: 40px;
        font-size: 12px;
    }

    .detail-player-card,
    .detail-info-card,
    .copy-card {
        border-radius: 20px;
    }

    .detail-player-card {
        padding: 12px;
    }

    .play-circle {
        width: 64px;
        height: 64px;
    }
}
