:root {
    color-scheme: light;
    --site-bg: #fff7ed;
    --site-bg-soft: #fffbeb;
    --ink: #1c1917;
    --muted: #78716c;
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-soft: #fef3c7;
    --line: rgba(120, 53, 15, 0.14);
    --shadow: 0 20px 60px rgba(120, 53, 15, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef2f2 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(146, 64, 14, 0.94), rgba(154, 52, 18, 0.96));
    border-bottom: 1px solid rgba(252, 211, 77, 0.25);
    box-shadow: 0 18px 45px rgba(28, 25, 23, 0.24);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fffbeb;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fef3c7;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: #ffffff;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: #fde68a;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

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

.nav-search input,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(253, 230, 138, 0.38);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder,
.search-panel input::placeholder {
    color: rgba(254, 243, 199, 0.76);
}

.nav-search input:focus,
.search-panel input:focus {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.24);
}

.nav-search button,
.search-panel button {
    border: 0;
    cursor: pointer;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.search-panel button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.mobile-toggle {
    display: none;
    border: 1px solid rgba(253, 230, 138, 0.28);
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 13px;
    font-weight: 800;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.mobile-nav a {
    display: block;
    color: #fef3c7;
    padding: 12px 4px;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #1c1917;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.75s ease, transform 1.2s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.88) 0%, rgba(28, 25, 23, 0.56) 42%, rgba(28, 25, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(28, 25, 23, 0.86) 0%, transparent 54%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 110px 0 92px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.pill-soft {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.46);
}

.hero-line {
    margin: 0 0 14px;
    color: #fde68a;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.hero-summary {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    margin-bottom: 28px;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 22px;
    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, #d97706, #ea580c);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

.btn-secondary {
    color: #78350f;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(28, 25, 23, 0.12);
}

.btn-ghost {
    color: #78350f;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(146, 64, 14, 0.12);
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 42px rgba(217, 119, 6, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.48);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

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

.section {
    margin-bottom: 62px;
}

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

.section-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-desc {
    margin: 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(146, 64, 14, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.34);
    box-shadow: 0 24px 56px rgba(120, 53, 15, 0.18);
}

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #451a03, #92400e);
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 56%);
    opacity: 0.75;
}

.card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 16px;
}

.card-title {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: var(--brand);
}

.card-line {
    margin: 0;
    min-height: 44px;
    color: #57534e;
    font-size: 14px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.meta-tag.blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.meta-tag.green {
    color: #047857;
    background: #d1fae5;
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border-radius: 26px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #d97706 55%, #f59e0b);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(120, 53, 15, 0.2);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.hero-panel,
.filter-panel,
.detail-card,
.player-panel,
.related-panel {
    border: 1px solid rgba(146, 64, 14, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-panel,
.filter-panel {
    padding: 26px;
}

.search-panel {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    border-radius: 24px;
    padding: 12px;
    background: rgba(120, 53, 15, 0.9);
    box-shadow: 0 18px 48px rgba(120, 53, 15, 0.16);
}

.search-empty {
    display: none;
    padding: 42px;
    text-align: center;
    color: #78716c;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
}

.search-empty.is-visible {
    display: block;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 52px 122px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(146, 64, 14, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(120, 53, 15, 0.16);
}

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    border-radius: 14px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #451a03;
}

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

.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.rank-copy p {
    margin: 0;
    color: #57534e;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #78716c;
    font-size: 14px;
}

.breadcrumb a {
    color: #92400e;
    font-weight: 800;
}

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

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

.player-panel {
    padding: 16px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.34);
    font-size: 36px;
    text-indent: 4px;
}

.detail-card {
    padding: 28px;
}

.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-title {
    margin: 16px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: #b45309;
    font-size: 19px;
    line-height: 1.7;
    font-weight: 800;
}

.prose-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.prose-block p {
    margin: 0;
    color: #44403c;
    font-size: 16px;
    line-height: 1.92;
    white-space: pre-line;
}

.divider {
    height: 1px;
    margin: 26px 0;
    background: rgba(146, 64, 14, 0.12);
}

.related-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.related-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(254, 243, 199, 0.72);
}

.related-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #451a03;
}

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

.related-copy h3 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-copy p {
    margin: 0;
    color: #78716c;
    font-size: 12px;
}

.site-footer {
    margin-top: 48px;
    color: #fef3c7;
    background: linear-gradient(180deg, #78350f, #1c1917);
}

.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-wrap h2,
.footer-wrap h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-wrap p,
.footer-wrap a {
    color: rgba(254, 243, 199, 0.82);
    line-height: 1.75;
}

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

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    padding: 18px 0;
    text-align: center;
    color: rgba(254, 243, 199, 0.7);
}

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

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

    .related-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        align-items: flex-end;
        padding: 88px 0 78px;
    }

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

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

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

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

@media (max-width: 560px) {
    .nav-wrap,
    .mobile-nav,
    .page-main,
    .hero-content,
    .footer-wrap {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-slider,
    .hero-content {
        min-height: 78vh;
    }

    .hero-summary {
        -webkit-line-clamp: 4;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 96px 1fr;
        gap: 12px;
    }

    .detail-card,
    .hero-panel,
    .filter-panel,
    .related-panel {
        padding: 20px;
    }
}
