:root {
    --bg: #030712;
    --bg-soft: #111827;
    --bg-card: rgba(31, 41, 55, 0.62);
    --line: rgba(107, 114, 128, 0.42);
    --text: #f9fafb;
    --muted: #9ca3af;
    --muted-deep: #6b7280;
    --orange: #f97316;
    --orange-bright: #fb923c;
    --cyan: #06b6d4;
    --cyan-bright: #22d3ee;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.14), transparent 30rem),
        radial-gradient(circle at 85% 8%, rgba(6, 182, 212, 0.16), transparent 32rem),
        linear-gradient(135deg, #111827 0%, #1f2937 45%, #111827 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--orange-bright), #ffffff, var(--cyan-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.3);
    transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #d1d5db;
    font-size: 15px;
}

.nav-links a,
.mobile-panel a,
.site-footer a {
    transition: color 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active,
.site-footer a:hover {
    color: var(--orange-bright);
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(31, 41, 55, 0.8);
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: rgba(17, 24, 39, 0.98);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #030712;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.25;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.78) 42%, rgba(3, 7, 18, 0.35) 75%, rgba(3, 7, 18, 0.88) 100%),
        radial-gradient(circle at 22% 30%, rgba(249, 115, 22, 0.34), transparent 24rem),
        radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.28), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 30px;
}

.hero-kicker,
.page-hero p:first-child,
.section-heading span,
.category-overview-head p {
    margin: 0 0 12px;
    color: var(--orange-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--orange-bright), #ffffff, var(--cyan-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 28px;
    color: #d1d5db;
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.filter-chip {
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.16), rgba(6, 182, 212, 0.12));
    color: #fed7aa;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.quick-search button,
.full-link,
.category-overview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button,
.quick-search button,
.full-link {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--cyan));
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.24);
}

.ghost-button,
.category-overview-head a {
    border: 1px solid var(--line);
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.5);
}

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover,
.full-link:hover,
.category-overview-head a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.22);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 8;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-arrow,
.hero-dot {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(17, 24, 39, 0.68);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 32px;
    border-radius: 999px;
    border-color: rgba(249, 115, 22, 0.7);
    background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.search-band {
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.55));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-panel,
.toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(31, 41, 55, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
}

.search-panel p,
.category-card p,
.movie-line,
.page-hero p,
.site-footer p,
.category-overview-desc,
.detail-card p {
    color: var(--muted);
}

.quick-search {
    width: min(520px, 100%);
    display: flex;
    gap: 10px;
}

.quick-search input,
.toolbar-card input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(3, 7, 18, 0.5);
    outline: none;
    padding: 0 16px;
}

.quick-search input:focus,
.toolbar-card input:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.section-block {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, transparent, rgba(31, 41, 55, 0.45), transparent);
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2,
.rank-panel h2,
.detail-card h2,
.info-card h2,
.category-overview-head h2,
.site-footer h2 {
    margin: 0;
    color: #ffffff;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading a {
    color: var(--cyan-bright);
    font-weight: 800;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-panel,
.detail-card,
.detail-title-card,
.info-card {
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-card {
    padding: 24px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.movie-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(249, 115, 22, 0.62);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.18);
}

.category-card h2 {
    margin: 0 0 8px;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.category-thumbs img {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-cover-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

.movie-card:hover .movie-cover {
    transform: scale(1.08);
}

.movie-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-type {
    right: 10px;
    top: 10px;
    background: rgba(249, 115, 22, 0.9);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 30px;
    text-align: center;
    background: rgba(6, 182, 212, 0.9);
}

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

.movie-card h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange-bright);
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--cyan-bright);
    font-size: 12px;
    font-weight: 700;
}

.movie-line {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

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

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-panel h2 {
    margin-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.58);
    transition: background 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: rgba(249, 115, 22, 0.12);
}

.rank-no {
    color: var(--orange-bright);
    font-weight: 900;
    font-size: 18px;
}

.rank-row img {
    width: 56px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.rank-row strong,
.rank-row em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.full-link {
    width: 100%;
    margin-top: 18px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.22), transparent 28rem),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.22), transparent 30rem),
        rgba(3, 7, 18, 0.7);
}

.compact-hero {
    padding: 92px 0 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
}

.list-toolbar {
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.toolbar-card {
    align-items: stretch;
    flex-direction: column;
}

.filter-chip {
    cursor: pointer;
    color: #d1d5db;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    border-color: rgba(6, 182, 212, 0.7);
    background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.category-overview-list {
    display: grid;
    gap: 26px;
    padding: 64px 0;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-desc {
    margin: -10px 0 24px;
}

.breadcrumb-bar {
    background: rgba(17, 24, 39, 0.64);
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--orange-bright);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
    padding: 42px 0 36px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.74)),
        radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 22rem);
    cursor: pointer;
}

.play-layer.hidden {
    display: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 22px 60px rgba(249, 115, 22, 0.32);
    font-size: 36px;
}

.play-layer strong {
    max-width: 80%;
    text-align: center;
    font-size: clamp(20px, 3vw, 32px);
}

.player-column {
    display: grid;
    gap: 24px;
}

.detail-card,
.detail-title-card,
.info-card {
    padding: 24px;
}

.detail-card h2,
.info-card h2 {
    margin-bottom: 16px;
}

.detail-card p {
    margin: 0 0 14px;
    font-size: 16px;
}

.detail-card p:last-child {
    margin-bottom: 0;
}

.lead-text {
    color: #e5e7eb !important;
    font-size: 18px !important;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-title-card p {
    margin: 0 0 8px;
    color: var(--cyan-bright);
    font-weight: 800;
}

.detail-title-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.detail-tags span {
    padding: 6px 10px;
    font-size: 12px;
}

.info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.info-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-card span {
    color: var(--muted);
}

.info-card strong {
    text-align: right;
}

.site-footer {
    margin-top: 50px;
    background: #030712;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer h2 {
    margin-bottom: 12px;
    font-size: 17px;
}

.site-footer p,
.site-footer li {
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-deep);
    text-align: center;
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

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

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

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

    .nav-links {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .site-nav {
        min-height: 64px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 12px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 12vw, 58px);
    }

    .hero-actions,
    .quick-search,
    .search-panel,
    .section-heading,
    .category-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-controls {
        justify-content: center;
    }

    .hero-arrow {
        display: none;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section-block {
        padding: 46px 0;
    }

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

    .detail-layout {
        padding-top: 28px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid,
    .mini-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-tags span {
        font-size: 12px;
    }
}
