:root {
    --bg: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --orange: #f97316;
    --slate: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    font-size: 14px;
}

.logo-text {
    font-size: 24px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    padding: 9px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #0891b2;
    background: #ecfeff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 88px 0;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.36), transparent 36%), linear-gradient(135deg, #0891b2 0%, #1d4ed8 46%, #0f172a 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.16'%3E%3Cpath d='M12 12h8v8h-8zM44 12h8v8h-8zM28 28h8v8h-8zM12 44h8v8h-8zM44 44h8v8h-8z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: 44px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 7px 12px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-copy strong {
    color: #fde047;
}

.hero-copy p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

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

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.36);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search {
    display: flex;
    width: min(100%, 560px);
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 16px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #0f172a;
    font-weight: 900;
    background: #ffffff;
    cursor: pointer;
}

.hero-stage {
    position: relative;
    min-height: 484px;
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    min-height: 484px;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
}

.hero-slide.is-active {
    display: block;
    animation: fadeIn 0.55s ease both;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-card-content {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.42);
}

.hero-card-content h2 {
    margin: 14px 0 8px;
    font-size: 30px;
    line-height: 1.14;
}

.hero-card-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.hero-card-link {
    display: inline-flex;
    margin-top: 18px;
    border-radius: 999px;
    padding: 10px 16px;
    color: #0f172a;
    font-weight: 900;
    background: #ffffff;
}

.hero-dots {
    position: absolute;
    right: 22px;
    bottom: -34px;
    left: 22px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

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

.section {
    padding: 70px 0;
}

.soft-section {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.section-heading.light h2,
.section-heading.light p {
    color: #ffffff;
}

.section-kicker {
    color: #0891b2;
}

.section-link,
.text-link {
    color: #0891b2;
    font-weight: 900;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 22%, rgba(15, 23, 42, 0.58));
}

.play-pill {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.card-body {
    padding: 17px;
}

.card-tags span {
    color: #0369a1;
    background: #e0f2fe;
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a:hover {
    color: #0891b2;
}

.card-body p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.28);
}

.ranking-home,
.ranking-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hot-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hot-row img {
    width: 140px;
    height: 96px;
    object-fit: cover;
    background: #0f172a;
}

.hot-content {
    position: relative;
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px 14px 12px 0;
}

.hot-content strong,
.hot-content em,
.hot-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-content strong {
    color: #0f172a;
    font-size: 18px;
}

.hot-content em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.hot-content small {
    color: #94a3b8;
}

.hot-number {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

.category-band {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.category-card,
.category-overview-card {
    border-radius: 24px;
    padding: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
    min-height: 150px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(37, 99, 235, 0.88));
    box-shadow: 0 20px 44px rgba(2, 132, 199, 0.22);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(220, 38, 38, 0.86));
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(13, 148, 136, 0.86));
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb 54%, #0f172a);
}

.category-hero {
    background: linear-gradient(135deg, #0f766e, #2563eb 54%, #0f172a);
}

.ranking-hero {
    background: linear-gradient(135deg, #ea580c, #be123c 54%, #0f172a);
}

.search-hero {
    background: linear-gradient(135deg, #7c3aed, #2563eb 54%, #0f172a);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

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

.breadcrumb a:hover {
    color: #ffffff;
}

.category-overview-card {
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.category-overview-card p {
    min-height: 72px;
    margin: 0 0 18px;
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 0.6fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    padding: 0 13px;
    color: #0f172a;
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.filter-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    display: none;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 36px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

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

.detail-shell {
    padding: 30px 0 76px;
}

.detail-shell .breadcrumb {
    color: #64748b;
}

.detail-shell .breadcrumb a:hover {
    color: #0891b2;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.62));
    cursor: pointer;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.play-circle {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.36);
    font-size: 28px;
}

.detail-card,
.content-card,
.side-box {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-card {
    margin-top: 22px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.lead {
    margin: 16px 0 0;
    color: #475569;
    font-size: 18px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #0f172a;
    font-weight: 800;
    background: #f1f5f9;
}

.detail-tags {
    margin-top: 18px;
}

.detail-tags span {
    color: #0369a1;
    background: #e0f2fe;
}

.content-card {
    margin-top: 22px;
}

.content-card h2,
.side-box h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    text-align: justify;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 20px;
}

.side-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.side-list .hot-row {
    grid-template-columns: 96px 1fr;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.side-list .hot-row img {
    width: 96px;
    height: 72px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
    padding: 50px 0 34px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-links a:hover,
.footer-bottom a:hover {
    color: #22d3ee;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    color: #94a3b8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1040px) {
    .hero-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 430px;
    }

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

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

    .detail-side {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        padding: 58px 0 74px;
    }

    .hero-search {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-stage,
    .hero-slide,
    .hero-slide img {
        min-height: 380px;
    }

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

    .ranking-home,
    .ranking-feature,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .compact-grid,
    .list-grid,
    .search-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hot-row {
        grid-template-columns: 112px 1fr;
    }

    .hot-row img {
        width: 112px;
        height: 86px;
    }
}
