:root {
    color-scheme: light;
    --brand-start: #f97316;
    --brand-mid: #ef4444;
    --brand-end: #db2777;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid), var(--brand-end));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.22);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.nav-links a {
    padding: 8px 0;
    opacity: 0.95;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fef3c7;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 10px 12px;
    font-weight: 800;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    display: none;
    min-height: 620px;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

.hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(249, 115, 22, 0.28), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.42) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    min-height: 620px;
    padding: 84px 0 96px;
}

.hero-copy {
    max-width: 680px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffedd5;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 620px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.9;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.32);
}

.btn-light {
    background: #ffffff;
    color: #ea580c;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.hero-dot {
    width: 46px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.section {
    padding: 68px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 50%, #fdf2f8 100%);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    aspect-ratio: 3 / 4.18;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ef4444, #db2777);
}

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

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

.poster-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title a:hover {
    color: #ea580c;
}

.card-meta,
.rank-meta,
.detail-meta {
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    margin: 8px 0 0;
    color: #4b5563;
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    line-height: 1.55;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(3n+2) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #db2777, #ef4444);
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px;
    gap: 14px;
    padding: 18px;
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

.input:focus,
.select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 94px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    width: 94px;
    height: 126px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #db2777);
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.page-hero {
    padding: 64px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(135deg, var(--brand-start), var(--brand-mid), var(--brand-end));
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.85;
}

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

.breadcrumb a {
    font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #0f172a;
    object-fit: contain;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
}

.play-cover.is-hidden {
    display: none;
}

.play-circle {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-mid));
    box-shadow: 0 18px 44px rgba(239, 68, 68, 0.34);
    font-size: 36px;
    transform: translateZ(0);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-section {
    margin-top: 28px;
}

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

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

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

.related-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    width: 74px;
    height: 96px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #db2777);
}

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

.related-title {
    margin: 0 0 6px;
    font-weight: 900;
    line-height: 1.35;
}

.footer {
    padding: 34px 0;
    background: #111827;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.footer strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 20px;
}

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

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

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

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

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

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

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

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

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

    .header-inner {
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero,
    .hero-slide,
    .hero-content,
    .hero-image img {
        min-height: 560px;
    }

    .hero-content {
        padding: 58px 0 90px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-controls {
        right: 12px;
        left: 12px;
        bottom: 24px;
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        display: block;
    }

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

    .category-grid {
        grid-template-columns: 1fr;
    }

    .tools {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 46px 76px 1fr;
    }

    .rank-num {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .rank-cover {
        width: 76px;
        height: 102px;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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