:root {
    color-scheme: light;
    --page-bg: #fffaf0;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --amber-1: #fffbeb;
    --amber-2: #fef3c7;
    --amber-3: #f59e0b;
    --amber-4: #b45309;
    --amber-5: #78350f;
    --stone-1: #292524;
    --card-bg: #ffffff;
    --line: rgba(180, 83, 9, 0.18);
    --shadow-soft: 0 14px 38px rgba(120, 53, 15, 0.13);
    --shadow-hover: 0 24px 60px rgba(120, 53, 15, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fffbeb;
    background: linear-gradient(135deg, #1c1917, #78350f 54%, #92400e);
    box-shadow: 0 18px 45px rgba(41, 37, 36, 0.22);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.36);
    font-size: 24px;
}

.logo-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #fde68a, #fff7ed);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: -3px;
    color: #fde68a;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
}

.site-nav a {
    padding: 10px 0;
    color: #fff7ed;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fcd34d;
    opacity: 1;
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    font-size: 20px;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #fff7ed;
    background: linear-gradient(115deg, #78350f, #9a3412 50%, #854d0e);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: softPulse 5s ease-in-out infinite;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 600px;
    align-items: center;
    padding: 84px 0;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(90deg, #fde68a, #fff7ed, #facc15);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(253, 230, 138, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fde68a;
    font-weight: 700;
}

.hero-desc {
    max-width: 740px;
    margin: 0 0 18px;
    color: #ffedd5;
    font-size: clamp(17px, 2.1vw, 23px);
}

.hero-summary {
    max-width: 760px;
    margin: 0 0 30px;
    color: #fde68a;
    font-size: 16px;
}

.hero-actions,
.card-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

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

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    width: min(440px, 100%);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 40px 90px rgba(28, 25, 23, 0.45);
    transform: rotate(1.5deg);
    background: linear-gradient(135deg, #fef3c7, #92400e);
}

.hero-meta-card {
    position: absolute;
    left: -26px;
    bottom: -24px;
    width: min(300px, 80%);
    padding: 18px;
    border-radius: 22px;
    color: #292524;
    background: rgba(255, 251, 235, 0.92);
    box-shadow: 0 24px 60px rgba(41, 37, 36, 0.25);
    backdrop-filter: blur(12px);
}

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

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

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

.section {
    padding: 68px 0;
}

.section-white {
    background: #ffffff;
}

.section-warm {
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
}

.section-dark {
    color: #fff7ed;
    background: linear-gradient(135deg, #1c1917, #78350f, #9a3412);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.2;
    color: #292524;
}

.section-dark .section-title {
    color: #fff7ed;
}

.section-intro {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--text-muted);
}

.section-dark .section-intro {
    color: #fde68a;
}

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

.movie-grid.small {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fef3c7, #92400e);
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 65%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.badge,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    font-size: 12px;
    font-weight: 800;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 5px 11px;
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    border-radius: 8px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
}

.card-body {
    padding: 16px;
    flex: 1;
}

.card-title {
    margin: 0 0 8px;
    color: #292524;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .card-title {
    color: #b45309;
}

.card-desc {
    margin: 0 0 13px;
    color: #6b7280;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #78716c;
    font-size: 12px;
}

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

.rank-item {
    position: relative;
}

.rank-badge {
    position: absolute;
    z-index: 5;
    top: -12px;
    left: -12px;
    width: 46px;
    height: 46px;
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.32);
    font-size: 20px;
}

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

.category-tile {
    border-radius: 22px;
    padding: 24px;
    color: #fff7ed;
    background: linear-gradient(135deg, #78350f, #ea580c);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.category-tile p {
    margin: 0 0 14px;
    color: #fde68a;
}

.category-count {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 190px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.input,
.select {
    width: 100%;
    border: 1px solid #f3d08a;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fffdf7;
    color: #292524;
    font: inherit;
    outline: none;
}

.input:focus,
.select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-hero {
    padding: 74px 0;
    color: #fff7ed;
    background: linear-gradient(135deg, #1c1917, #78350f 55%, #ea580c);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #fde68a;
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 16px;
    color: #fed7aa;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 30px;
    align-items: start;
}

.player-box {
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.play-button {
    position: relative;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 48px rgba(234, 88, 12, 0.38);
    font-size: 34px;
    cursor: pointer;
}

.player-tip {
    position: absolute;
    left: 20px;
    bottom: 16px;
    right: 20px;
    color: #fffbeb;
    font-weight: 700;
}

.detail-card,
.info-panel {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card h2,
.info-panel h2 {
    margin: 0 0 16px;
    color: #292524;
}

.detail-cover {
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #92400e);
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    color: #57534e;
}

.info-list strong {
    color: #292524;
}

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

.tag-list span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

.article-text {
    color: #44403c;
    font-size: 17px;
}

.article-text p {
    margin: 0 0 16px;
}

.site-footer {
    color: #fde68a;
    background: linear-gradient(135deg, #1c1917, #78350f, #1c1917);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
}

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

.footer-grid p,
.footer-grid li {
    color: #ffedd5;
    font-size: 14px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    padding: 18px 0;
    color: #fed7aa;
    font-size: 13px;
    text-align: center;
}

.hidden-by-filter {
    display: none !important;
}

.no-results {
    display: none;
    margin-top: 24px;
    padding: 32px;
    border-radius: 20px;
    color: #78716c;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

@keyframes softPulse {
    0%, 100% {
        opacity: 0.16;
    }
    50% {
        opacity: 0.28;
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        border-radius: 0 0 18px 18px;
        padding: 14px;
        background: rgba(41, 37, 36, 0.97);
    }

    .site-nav.open {
        display: flex;
    }

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

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

    .hero-poster-wrap {
        display: none;
    }

    .movie-grid,
    .movie-grid.small,
    .rank-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .hero-slide {
        padding: 56px 0 74px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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