:root {
    --orange: #ea580c;
    --orange-deep: #c2410c;
    --red: #ef4444;
    --pink: #ec4899;
    --amber: #d97706;
    --blue: #2563eb;
    --teal: #0d9488;
    --rose: #e11d48;
    --green: #16a34a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
    --shadow-strong: 0 24px 55px rgba(17, 24, 39, 0.22);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

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

.nav-links a {
    font-weight: 650;
    color: var(--gray-700);
    transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--gray-900);
    background: var(--gray-100);
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

main {
    min-height: 70vh;
}

.section {
    padding: 72px 0;
}

.section.white {
    background: var(--white);
}

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

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

.section.gray {
    background: var(--gray-100);
}

.section.teal {
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
}

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

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

.title-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    margin-right: 12px;
}

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

.hero {
    position: relative;
    min-height: 620px;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(234, 88, 12, 0.58), transparent 36%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55) 46%, rgba(236, 72, 153, 0.30));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: 42px;
    padding: 62px 0 82px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 0;
    font-weight: 850;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.btn.light {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.92);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-stat {
    min-width: 118px;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.hero-panel {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.hero-panel img {
    position: static;
    width: 100%;
    height: 360px;
    border-radius: 18px;
    object-fit: cover;
    transform: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hero-panel h2 {
    margin: 18px 0 6px;
    font-size: 24px;
}

.hero-panel p {
    font-size: 15px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active {
    width: 36px;
    background: var(--white);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.search-band {
    margin-top: -32px;
    position: relative;
    z-index: 4;
}

.search-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 13px 15px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
}

.search-box input:focus,
.search-box select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.feature-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 624px;
}

.feature-card:hover,
.poster-card:hover,
.rank-card:hover,
.compact-card:hover,
.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.feature-card img,
.poster-wrap img,
.rank-cover img,
.compact-card img,
.category-images img,
.detail-cover img,
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.feature-card:hover img,
.poster-card:hover img,
.rank-card:hover img,
.compact-card:hover img,
.category-tile:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18) 62%, rgba(17, 24, 39, 0.04));
}

.pill,
.poster-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 850;
    color: var(--white);
}

.pill.blue {
    background: var(--blue);
}

.pill.amber {
    background: var(--amber);
}

.pill.teal {
    background: var(--teal);
}

.pill.rose {
    background: var(--rose);
}

.rank-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.feature-card .pill {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
}

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

.feature-card-body h3 {
    margin: 0 0 8px;
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.12;
}

.feature-card-body p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.84);
}

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

.poster-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.poster-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green);
}

.play-dot {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(10px);
}

.poster-body {
    padding: 14px;
}

.poster-body h3,
.rank-info h3,
.compact-card h3,
.related-card h3 {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.3;
}

.poster-body h3 {
    font-size: 16px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.poster-body p,
.rank-info p,
.compact-card p,
.related-card p {
    color: var(--gray-500);
}

.poster-body p {
    min-height: 44px;
    margin: 8px 0 12px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.feature-card .meta-row,
.rank-card .meta-row {
    color: rgba(255, 255, 255, 0.80);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.rank-cover {
    min-height: 190px;
    overflow: hidden;
}

.rank-info {
    padding: 24px;
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rank-head strong {
    color: var(--amber);
    font-size: 28px;
}

.rank-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.rank-info p {
    margin: 0 0 14px;
}

.compact-grid {
    columns: 4 240px;
    column-gap: 22px;
}

.compact-card {
    display: inline-grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    margin: 0 0 22px;
    padding: 12px;
    break-inside: avoid;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
}

.compact-card h3 {
    font-size: 16px;
}

.compact-card p {
    margin: 8px 0;
    font-size: 13px;
}

.compact-card span {
    color: var(--gray-500);
    font-size: 12px;
}

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

.category-tile {
    display: grid;
    grid-template-rows: 170px 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.category-content {
    padding: 22px;
}

.category-content h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-content p {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.category-content span {
    color: var(--orange);
    font-weight: 850;
}

.page-hero {
    padding: 76px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

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

.breadcrumb {
    padding: 18px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 30px;
    padding: 40px 0 72px;
}

.panel {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    background: rgba(17, 24, 39, 0.54);
    transition: opacity 180ms ease, visibility 180ms ease;
}

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

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
}

.play-button {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.detail-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 750;
}

.detail-content h2,
.sidebar h2,
.related-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-content p {
    margin: 0 0 20px;
    color: var(--gray-700);
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}

.sidebar {
    display: grid;
    gap: 22px;
    align-content: start;
}

.detail-cover {
    padding: 18px;
}

.detail-cover img {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
}

.side-card {
    padding: 22px;
}

.side-card p {
    margin: 0;
    color: var(--gray-500);
}

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

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.related-card img {
    aspect-ratio: 2 / 3;
}

.related-card div {
    padding: 12px;
}

.related-card h3 {
    font-size: 15px;
    min-height: 38px;
}

.related-card p {
    margin: 6px 0 0;
    font-size: 12px;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-500);
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state.show {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.65fr));
    gap: 36px;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.footer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list a:hover {
    color: #fdba74;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

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

    .sidebar {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 18px;
        background: var(--white);
        box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

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

    .nav-links a:hover,
    .nav-links a.active {
        background: #fff7ed;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 48px;
    }

    .hero-panel img {
        height: 260px;
    }

    .search-box {
        flex-direction: column;
    }

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

    .rank-cover {
        height: 230px;
    }

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

@media (max-width: 640px) {
    .navbar,
    .container,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .section {
        padding: 48px 0;
    }

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

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

    .feature-card:first-child {
        grid-column: span 2;
        min-height: 420px;
    }

    .feature-card {
        min-height: 250px;
    }

    .poster-body {
        padding: 11px;
    }

    .poster-body p {
        display: none;
    }

    .compact-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .page-hero {
        padding: 54px 0;
    }

    .detail-content {
        padding: 20px;
    }

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

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}
