:root {
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #f59e0b;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), #ffffff 48%, var(--gray-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.24);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo-mark {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 650;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.94);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fff7ed;
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: 270px;
}

.header-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 44px 10px 16px;
}

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

.header-search input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: transparent;
    transform: translateY(-50%);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

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

.mobile-panel .nav-links {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.mobile-panel .nav-links a {
    border-radius: 12px;
    padding: 10px 14px;
}

.mobile-panel .nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.mobile-panel .header-search {
    width: 100%;
    margin-top: 12px;
}

.hero {
    position: relative;
    height: 610px;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: center;
}

.hero-content {
    width: min(680px, 100%);
    padding-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.25);
}

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

.hero p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #facc15, var(--orange));
    color: #ffffff;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 800;
}

.badge-blue {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.badge-red {
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.28);
}

.btn-white {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.84);
    background: transparent;
}

.hero-controls {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    opacity: 0.72;
}

.hero-dot.is-active {
    width: 32px;
    opacity: 1;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.section {
    padding: 72px 0;
}

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

.section-cool {
    background: linear-gradient(135deg, #eff6ff, #f8fafc, #ecfeff);
}

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

.section-kicker {
    display: inline-flex;
    color: var(--red);
    font-weight: 850;
    margin-bottom: 8px;
}

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

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.more-link {
    color: var(--red);
    font-weight: 850;
    white-space: nowrap;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.poster-link.portrait {
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}

.poster-play {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta span {
    border-radius: 999px;
    background: var(--gray-100);
    padding: 4px 9px;
}

.feature-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 260px;
}

.feature-card .poster-link {
    aspect-ratio: auto;
    height: 100%;
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 10px;
}

.compact-card .poster-link {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.compact-card .card-body {
    padding: 0;
}

.compact-card .card-title {
    min-height: auto;
    margin-bottom: 4px;
    font-size: 16px;
}

.compact-card .card-desc {
    min-height: auto;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pill {
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-700);
    padding: 12px 20px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.category-pill:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: translateY(-3px) scale(1.02);
}

.cta-panel {
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    padding: 54px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(239, 68, 68, 0.23);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
}

.cta-panel p {
    margin: 0 auto 26px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #0891b2, #0f766e);
    padding: 60px 0;
}

.page-hero.orange {
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
}

.page-hero.dark {
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.45), transparent 38%), linear-gradient(135deg, #020617, #111827 60%, #1e293b);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

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

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

.breadcrumb a {
    color: #ffffff;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #ffffff;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::before {
    position: absolute;
    top: -62px;
    right: -42px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.16));
    content: "";
}

.category-card h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: var(--gray-600);
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    color: var(--gray-800);
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.no-results {
    display: none;
    margin-top: 24px;
    border-radius: 22px;
    background: #ffffff;
    padding: 30px;
    color: var(--gray-600);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.no-results.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 132px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-no {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 21px;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

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

.rank-content h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.rank-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.player-section {
    background: #000000;
}

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

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.44));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-start span {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 50px rgba(239, 68, 68, 0.32);
    font-size: 34px;
    text-indent: 4px;
}

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

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

.sidebar-card {
    position: sticky;
    top: 88px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    color: var(--blue);
    background: #eff6ff;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 750;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900), var(--slate-800));
    padding: 54px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 850;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fb923c;
}

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

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

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

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

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

    .sidebar-card {
        position: static;
    }
}

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

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

    .hero {
        height: 560px;
    }

    .hero-bg::after {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.66));
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 20px;
    }

    .section {
        padding: 54px 0;
    }

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

    .movie-grid,
    .movie-grid.three,
    .movie-grid.two,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-card .poster-link {
        aspect-ratio: 16 / 10;
    }

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

    .rank-item {
        grid-template-columns: 50px 92px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .logo {
        font-size: 18px;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-bottom: 76px;
    }

    .hero-actions,
    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .card-title {
        min-height: auto;
    }

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

    .detail-card,
    .sidebar-card {
        padding: 20px;
    }
}
