:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --surface: #ffffff;
    --surface-strong: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-strong: #ea580c;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --shadow: 0 22px 60px rgba(154, 52, 18, 0.14);
    --shadow-soft: 0 14px 40px rgba(251, 146, 60, 0.16);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.14), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffbeb 100%);
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(254, 215, 170, 0.78);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(251, 146, 60, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #7c2d12;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-strong);
    background: #ffedd5;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    position: relative;
    width: min(275px, 34vw);
}

.search-form input {
    width: 100%;
    border: 2px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    padding: 11px 48px 11px 18px;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 5px rgba(251, 146, 60, 0.12);
}

.search-form button {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    transform: translateY(-50%);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #7c2d12;
    background: #ffedd5;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #fed7aa;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-menu .container {
    padding: 16px 0 22px;
}

.mobile-menu nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-menu a {
    border-radius: 14px;
    padding: 12px 14px;
    color: #4b5563;
    font-weight: 800;
    background: #fff7ed;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fed7aa 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.48;
}

.hero::before {
    top: 60px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: rgba(251, 146, 60, 0.28);
}

.hero::after {
    right: -120px;
    bottom: 40px;
    width: 360px;
    height: 360px;
    background: rgba(245, 158, 11, 0.22);
}

.hero-shell {
    position: relative;
    z-index: 2;
    padding: 54px 0 70px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.86);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.hero-track {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: 34px;
    align-items: center;
    padding: 44px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(36px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 8px 14px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.92);
    font-size: 0.92rem;
    font-weight: 900;
}

.hero-title {
    margin: 0 0 16px;
    color: #7c2d12;
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    font-weight: 950;
    line-height: 0.97;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 690px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.9;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.88rem;
    font-weight: 800;
}

.pill.dark {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.btn.ghost {
    color: #9a3412;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.22);
}

.hero-visual {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(124, 45, 18, 0.3);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-slide.active .hero-poster:hover img {
    transform: scale(1.05);
}

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

.hero-poster-caption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    color: #ffffff;
}

.hero-poster-caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.hero-controls {
    position: absolute;
    right: 30px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(124, 45, 18, 0.25);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.section {
    padding: 64px 0;
}

.section.soft {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.7));
}

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

.section-title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 670px;
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.75;
}

.text-link {
    flex-shrink: 0;
    color: #ea580c;
    font-weight: 900;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: #fb923c;
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(249, 115, 22, 0.2);
}

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.07);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    font-size: 0.78rem;
    font-weight: 900;
}

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-play span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #f97316;
    font-weight: 900;
}

.movie-card:hover .card-play {
    opacity: 1;
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.35;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.15em;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 0.93rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 68px 132px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(254, 215, 170, 0.92);
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(251, 146, 60, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    border-color: #fb923c;
    transform: translateX(4px);
}

.rank-num {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    font-size: 1.16rem;
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #f3f4f6;
}

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

.rank-title {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 950;
}

.rank-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-score {
    min-width: 92px;
    text-align: right;
    color: #ea580c;
    font-weight: 950;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border: 1px solid rgba(254, 215, 170, 0.92);
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    position: absolute;
    top: -44px;
    right: -44px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    content: "";
    background: rgba(251, 146, 60, 0.2);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(249, 115, 22, 0.18);
}

.category-card:hover::before {
    transform: scale(1.35);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 1.22rem;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.65;
}

.page-hero {
    padding: 54px 0;
    background: linear-gradient(135deg, #fff7ed, #fffbeb 55%, #fed7aa);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #7c2d12;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 1.06rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #9a3412;
    font-size: 0.92rem;
    font-weight: 800;
}

.breadcrumb a {
    color: #ea580c;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-input {
    width: min(520px, 100%);
    border: 2px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    padding: 13px 18px;
    color: #374151;
    background: #ffffff;
}

.filter-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 5px rgba(251, 146, 60, 0.12);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    cursor: pointer;
    background: #111827;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.05);
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
}

.player-start {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    color: #f97316;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.player-start span {
    margin-left: 5px;
    font-size: 2.1rem;
    font-weight: 950;
}

.player-shell.is-playing .player-cover,
.player-shell.is-playing .player-start {
    display: none;
}

.detail-card {
    margin-top: 22px;
    border: 1px solid rgba(254, 215, 170, 0.92);
    border-radius: 26px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: clamp(1.8rem, 3vw, 2.85rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-card h2 {
    margin: 28px 0 12px;
    color: #1f2937;
    font-size: 1.28rem;
    font-weight: 950;
}

.detail-card p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.9;
}

.meta-panel {
    border: 1px solid rgba(254, 215, 170, 0.92);
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.meta-panel h2 {
    margin: 0 0 16px;
    font-size: 1.24rem;
    font-weight: 950;
}

.meta-list {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #4b5563;
    line-height: 1.55;
}

.meta-row strong {
    color: #9a3412;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 10px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: #ffedd5;
    transform: translateY(-2px);
}

.related-item img {
    width: 112px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
    line-height: 1.35;
}

.related-item span {
    display: -webkit-box;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.empty-state {
    display: none;
    border: 1px dashed #fdba74;
    border-radius: 22px;
    padding: 30px;
    color: #9a3412;
    background: #fff7ed;
    text-align: center;
    font-weight: 900;
}

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

.site-footer {
    margin-top: 58px;
    border-top: 1px solid rgba(254, 215, 170, 0.86);
    padding: 34px 0;
    color: #7c2d12;
    background: rgba(255, 247, 237, 0.72);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #9a3412;
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
    cursor: pointer;
}

.back-to-top.show {
    display: grid;
}

@media (max-width: 1100px) {
    .grid.cards,
    .grid.cards.wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    .main-nav,
    .header-actions .search-form {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .mobile-menu .search-form {
        display: block;
        width: 100%;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px;
    }

    .hero-track {
        min-height: 760px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 320px;
    }

    .hero-controls {
        right: 24px;
        bottom: 22px;
    }

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

    .rank-item {
        grid-template-columns: 52px 106px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        min-width: auto;
        text-align: left;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

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

    .logo {
        font-size: 1.16rem;
    }

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

    .hero-shell {
        padding: 26px 0 44px;
    }

    .hero-carousel {
        border-radius: 24px;
    }

    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        padding: 20px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .grid.cards,
    .grid.cards.wide,
    .grid.categories {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .rank-thumb {
        display: none;
    }

    .rank-score {
        grid-column: 2;
    }

    .detail-card,
    .meta-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .player-start {
        width: 72px;
        height: 72px;
    }

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

    .related-item img {
        width: 94px;
    }
}
