:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --accent: #f59e0b;
    --shadow: 0 20px 60px rgba(234, 88, 12, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(254, 215, 170, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, #d97706, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: #fff7ed;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary);
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #fb923c, #f59e0b 55%, #f97316);
}

.hero-bg-orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    filter: blur(8px);
}

.hero-bg-orb-one {
    width: 340px;
    height: 340px;
    top: -90px;
    right: 10%;
}

.hero-bg-orb-two {
    width: 280px;
    height: 280px;
    bottom: -90px;
    left: 6%;
}

.floating-icons span {
    position: absolute;
    opacity: 0.2;
    font-size: clamp(44px, 8vw, 112px);
    animation: floatIcon 9s ease-in-out infinite;
}

.floating-icons span:nth-child(1) {
    top: 12%;
    left: 8%;
}

.floating-icons span:nth-child(2) {
    top: 22%;
    right: 9%;
    animation-delay: 1s;
}

.floating-icons span:nth-child(3) {
    bottom: 13%;
    left: 24%;
    animation-delay: 2s;
}

.floating-icons span:nth-child(4) {
    bottom: 20%;
    right: 28%;
    animation-delay: 3s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(6deg);
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 48px;
    color: #fff;
}

.hero-slide.active {
    display: grid;
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 22px;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
    color: #fff7ed;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-panel button {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.22);
}

.ghost-btn {
    color: #fff;
    background: rgba(194, 65, 12, 0.7);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.search-panel button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(124, 45, 18, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
}

.hero-dots {
    position: absolute;
    bottom: 34px;
    left: 0;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #fff;
}

.feature-strip {
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 46px 0;
    text-align: center;
}

.feature-grid div {
    padding: 28px 20px;
    border: 1px solid #ffedd5;
    border-radius: var(--radius);
    background: #fff;
}

.feature-grid strong {
    font-size: 38px;
}

.feature-grid h3,
.feature-grid p {
    margin: 8px 0 0;
}

.feature-grid p {
    color: var(--muted);
}

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

.soft-bg {
    background: rgba(255, 255, 255, 0.55);
}

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

.section-heading span,
.page-hero span,
.category-card-large span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 900;
}

.section-heading p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.section-action {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.2);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #ffedd5;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(124, 45, 18, 0.46));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.movie-card .tag-row span {
    background: #fff7ed;
    color: #c2410c;
}

.hot-score {
    display: inline-flex;
    margin-top: 12px;
    color: #b45309;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
}

.category-tile img {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(124, 45, 18, 0.78));
}

.category-tile span,
.category-tile strong {
    position: absolute;
    z-index: 2;
    left: 18px;
}

.category-tile span {
    bottom: 42px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    bottom: 18px;
}

.page-hero,
.detail-hero {
    padding: 74px 0;
    background: linear-gradient(120deg, #fff7ed, #ffedd5 54%, #fed7aa);
}

.compact-hero {
    text-align: center;
}

.category-hero-inner,
.detail-layout,
.detail-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 42px;
    align-items: center;
}

.category-hero-poster,
.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.category-hero-poster img,
.detail-poster img {
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

.category-list-large {
    display: grid;
    gap: 22px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid #ffedd5;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.08);
}

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

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

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-card-large p {
    color: var(--muted);
}

.text-link {
    color: var(--primary);
    font-weight: 900;
}

.filter-bar,
.search-panel {
    display: grid;
    grid-template-columns: 1fr 240px 220px;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #ffedd5;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.08);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: var(--text);
    background: #fffaf0;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.result-count {
    margin: 12px 0 20px;
    color: #9a3412;
    font-weight: 900;
}

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

.detail-info h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    font-weight: 900;
}

.detail-tags span {
    background: #fff;
    color: #c2410c;
}

.detail-main-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
}

.player-card,
.side-rank-card,
.prose-card {
    padding: 24px;
    border: 1px solid #ffedd5;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.08);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(17, 24, 39, 0.35);
    cursor: pointer;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
    font-size: 28px;
    transform: translateX(2px);
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-card h2,
.side-rank-card h2,
.prose-card h2 {
    margin: 22px 0 12px;
    font-size: 26px;
}

.player-card p,
.prose-card p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.side-rank-card dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px 10px;
    margin: 0;
}

.side-rank-card dt {
    color: var(--muted);
    font-weight: 900;
}

.side-rank-card dd {
    margin: 0;
    color: #9a3412;
    font-weight: 900;
}

.search-page .search-panel {
    grid-template-columns: 1fr 140px;
}

.site-footer {
    padding: 48px 0;
    color: #7c2d12;
    background: linear-gradient(135deg, #fffbeb, #ffedd5);
    border-top: 1px solid #fed7aa;
}

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

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.footer-grid p {
    color: #9a3412;
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-slide,
    .category-hero-inner,
    .detail-layout,
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .category-hero-poster,
    .detail-poster {
        max-width: 360px;
    }

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

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

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

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

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

    .brand-text small {
        display: none;
    }

    .hero-section,
    .hero-shell {
        min-height: auto;
    }

    .hero-shell {
        padding: 56px 0 72px;
    }

    .hero-slide.active {
        display: flex;
        flex-direction: column;
    }

    .hero-poster {
        width: 76%;
        transform: none;
    }

    .feature-grid,
    .movie-grid,
    .top-grid,
    .rank-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .content-section {
        padding: 48px 0;
    }
}
