:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --deep: #0f172a;
    --slate: #334155;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --text: #1f2937;
    --muted: #64748b;
    --radius: 18px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 38%, #eef2ff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #ea580c, #d97706, #ca8a04);
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.25);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 4px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7ad;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: none;
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    min-width: 0;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-search input {
    flex: 1;
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.nav-search button {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.primary-btn:hover,
.nav-search button:hover,
.mobile-search button:hover {
    transform: translateY(-1px);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    border: 0;
    background: transparent;
    font-size: 28px;
}

.mobile-panel {
    padding: 0 20px 20px;
    background: rgba(154, 52, 18, 0.96);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 14px 0;
}

.mobile-search input {
    flex: 1;
}

.mobile-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    padding: 11px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.78), rgba(0, 0, 0, 0.4)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(251, 146, 60, 0.34), transparent 28%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.84));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 82px 24px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 420px;
    align-items: center;
    gap: 56px;
}

.eyebrow {
    display: inline-flex;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    margin: 0 0 22px;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
    margin: 0 0 22px;
}

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

.hero-tags span,
.detail-tags a,
.tag-line span {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.detail-tags a,
.tag-line span {
    background: #fff7ed;
    color: #c2410c;
}

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

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

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

.section-title span {
    font-size: 32px;
    font-weight: 900;
    color: #1f2937;
}

.section-title a {
    color: #ea580c;
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.duration-badge,
.play-badge {
    position: absolute;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.68);
}

.play-badge {
    left: 12px;
    top: 12px;
    background: rgba(249, 115, 22, 0.92);
}

.card-body {
    padding: 18px;
}

.card-body h2,
.compact-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.compact-card h2 a:hover {
    color: #ea580c;
}

.card-body p,
.compact-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.card-meta,
.detail-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
}

.card-meta span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
}

.wide-card {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.wide-card .poster-link img {
    height: 100%;
}

.warm-panel {
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.compact-cover {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.compact-cover img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rank-num {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #ef4444;
    font-size: 13px;
    font-weight: 900;
}

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

.category-tile,
.category-card a {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 12px;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22);
    transition: transform 0.24s ease;
}

.category-tile:hover,
.category-card a:hover {
    transform: translateY(-5px);
}

.category-tile span,
.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile small,
.category-card p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
    margin: 0;
}

.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 64px;
}

.page-hero {
    margin: 0 0 30px;
    border-radius: 32px;
    padding: 48px;
    color: #fff;
    background: linear-gradient(135deg, #7c2d12, #ea580c, #f59e0b);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
}

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

.category-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
    border-radius: 24px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    color: #111827;
    background: #f1f5f9;
}

.filter-bar input {
    flex: 1;
}

.empty-state {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    margin: 10px 0 22px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

.player-overlay.is-hidden {
    display: none;
}

.player-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.4);
    font-size: 34px;
    padding-left: 5px;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    background: rgba(220, 38, 38, 0.88);
}

.detail-card {
    margin-top: 24px;
    padding: 30px;
}

.detail-card h1 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 0 0 16px;
}

.lead-text {
    margin: 22px 0;
    padding: 18px;
    border-left: 5px solid #f97316;
    border-radius: 14px;
    background: #fff7ed;
    color: #7c2d12;
    line-height: 1.8;
    font-weight: 700;
}

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

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

.detail-card p,
.content-card p {
    color: #475569;
    line-height: 1.9;
    margin: 0 0 12px;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 20px;
}

.side-card .compact-card {
    grid-template-columns: 96px 1fr;
    box-shadow: none;
    background: #f8fafc;
}

.prose-wrap {
    display: grid;
    gap: 24px;
}

.content-card {
    padding: 30px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 24px;
}

.site-footer h2 {
    color: #fb923c;
    font-size: 20px;
    margin: 0 0 16px;
}

.site-footer p {
    line-height: 1.8;
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

    .four-col,
    .three-col,
    .editor-grid,
    .category-grid,
    .category-list-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

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

    .hero-content {
        padding: 66px 18px 110px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions,
    .filter-bar,
    .category-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .section-wrap,
    .page-main,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .four-col,
    .three-col,
    .editor-grid,
    .category-grid,
    .category-list-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .wide-card,
    .compact-card {
        grid-template-columns: 1fr;
    }

    .compact-cover img {
        aspect-ratio: 16 / 9;
    }

    .page-hero,
    .detail-card,
    .content-card {
        padding: 24px;
    }

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