:root {
    --bg: #fff7ed;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #ffedd5;
    --line: #fed7aa;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
    font-size: 15px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 23px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease;
    white-space: nowrap;
}

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

.top-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.page-filter-input {
    width: 240px;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.page-filter-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn,
.section-link,
.filter-years button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    padding: 11px 18px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    transform: translateY(-2px) scale(1.02);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--orange);
}

.mobile-panel {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.1)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 600px;
    padding: 110px 20px 80px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 950;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #f3f4f6;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span,
.tag-list span,
.badge,
.year-pill {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span,
.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 36px;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.content-section,
.filter-bar,
.search-page-panel {
    max-width: 1180px;
    margin: 0 auto;
    padding: 68px 20px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.detail-side h2,
.recommend-panel h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 950;
    line-height: 1.12;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-link {
    color: var(--orange);
    background: #fff7ed;
    border: 1px solid #fdba74;
    padding: 10px 16px;
}

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

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

.poster-card,
.compact-card,
.rank-card,
.category-overview-card,
.story-card,
.recommend-panel,
.player-card,
.detail-side {
    background: var(--card);
    border: 1px solid #ffedd5;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.poster-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster-media .cover-img,
.category-tile .cover-img,
.category-cover .cover-img,
.compact-poster .cover-img,
.rank-poster .cover-img,
.detail-poster .cover-img {
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-card:hover .poster-shade {
    opacity: 1;
}

.poster-play,
.play-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-weight: 950;
}

.badge-hot {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.year-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
}

.poster-body {
    padding: 18px;
}

.poster-body h3 {
    margin: 0 0 8px;
    min-height: 52px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
}

.poster-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.poster-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.feature-band {
    max-width: 1180px;
    margin: 68px auto 0;
    padding: 42px 20px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.category-tile .cover-img,
.category-cover .cover-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-tile span,
.category-tile strong,
.category-cover span {
    position: relative;
    z-index: 1;
}

.category-tile span,
.category-cover span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    margin-top: 8px;
    color: #f3f4f6;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
}

.compact-head {
    margin-bottom: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.rank-row > span,
.ranking-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 950;
}

.compact-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    overflow: hidden;
    padding: 10px;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.compact-poster {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.compact-card strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 900;
}

.compact-card span,
.rank-info span {
    color: var(--muted);
    font-size: 13px;
}

.recommend-panel {
    border-radius: 28px;
    padding: 26px;
}

.recommend-panel p {
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 20px 56px;
    background: radial-gradient(circle at 22% 0%, rgba(236, 72, 153, 0.22), transparent 32%), linear-gradient(135deg, #fff7ed, #ffffff 48%, #fdf2f8);
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.page-hero-glow {
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.22);
    filter: blur(10px);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 34px;
}

.filter-search {
    flex: 1;
}

.filter-search input {
    width: min(100%, 480px);
}

.filter-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.filter-years button {
    padding: 9px 14px;
    color: #9a3412;
    background: #ffedd5;
}

.filter-years button.active,
.filter-years button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.category-overview-grid {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    border-radius: 30px;
    overflow: hidden;
    padding: 18px;
}

.category-cover {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: #ffffff;
    background: #111827;
}

.category-overview-body h2 {
    margin: 6px 0 10px;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-body p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.rank-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.rank-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 950;
}

.rank-info p {
    color: var(--muted);
}

.search-page-panel {
    padding-top: 34px;
}

.search-page-form {
    width: min(100%, 760px);
    padding: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-page-form input {
    flex: 1;
    width: auto;
    border-color: transparent;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-bg > div {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111827, rgba(17, 24, 39, 0.74), #111827);
}

.detail-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fed7aa;
    font-weight: 800;
}

.detail-copy h1 {
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
    max-width: 760px;
    color: #f3f4f6;
    font-size: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 26px;
}

.tag-list span {
    color: #9a3412;
    background: #ffedd5;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.38));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.94);
    font-size: 28px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    font-size: 18px;
}

.story-card,
.detail-side {
    border-radius: 28px;
    padding: 26px;
}

.story-card h2,
.detail-side h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.site-footer {
    margin-top: 78px;
    color: #ffffff;
    background: #111827;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 620px;
    color: #d1d5db;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

.footer-links a {
    color: #fed7aa;
    font-weight: 800;
}

.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

    .nav-toggle {
        display: block;
    }

    .top-search {
        margin-left: auto;
    }

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

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

    .hero-carousel,
    .hero-content {
        min-height: 520px;
    }

    .hero-arrow {
        display: none;
    }

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

    .split-layout,
    .detail-layout,
    .detail-shell,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-cover {
        min-height: 220px;
    }

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

    .filter-bar,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-years {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        min-height: 68px;
        padding: 0 14px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .hero-content {
        padding: 90px 16px 70px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .content-section,
    .filter-bar,
    .search-page-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .poster-grid,
    .poster-grid-wide,
    .category-grid,
    .category-preview {
        grid-template-columns: 1fr;
    }

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

    .ranking-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .detail-shell {
        padding: 46px 14px;
    }

    .detail-copy h1 {
        font-size: 34px;
    }

    .search-page-form {
        border-radius: 24px;
        flex-direction: column;
    }

    .search-page-form input,
    .search-page-form button {
        width: 100%;
    }
}
