:root {
    color-scheme: light;
    --site-red-950: #450a0a;
    --site-red-900: #7f1d1d;
    --site-red-800: #991b1b;
    --site-red-700: #b91c1c;
    --site-amber-700: #b45309;
    --site-amber-500: #f59e0b;
    --site-amber-300: #fcd34d;
    --site-gray-950: #111827;
    --site-gray-800: #1f2937;
    --site-gray-700: #374151;
    --site-gray-600: #4b5563;
    --site-gray-500: #6b7280;
    --site-gray-200: #e5e7eb;
    --site-gray-100: #f3f4f6;
    --site-white: #ffffff;
    --shadow-card: 0 16px 40px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 260px, #f9fafb 100%);
    color: var(--site-gray-950);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 48%, #92400e 100%);
    box-shadow: 0 10px 30px rgba(69, 10, 10, 0.22);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #7f1d1d;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(69, 10, 10, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 3px;
    color: #fed7aa;
    font-size: 0.76rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-menu a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: #fde68a;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-search input {
    width: 170px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 7px 10px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.hero-button,
.section-button,
.search-submit {
    border: 0;
    border-radius: 999px;
    color: #7f1d1d;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    font-weight: 900;
    padding: 9px 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.hero-button:hover,
.section-button:hover,
.search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.32);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 0 18px;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    color: #ffffff;
    background: #180606;
}

.hero-slide {
    display: none;
    min-height: 540px;
    background-image: linear-gradient(90deg, rgba(24, 6, 6, 0.92) 0%, rgba(69, 10, 10, 0.78) 38%, rgba(69, 10, 10, 0.24) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.56fr);
    align-items: center;
    gap: 38px;
    min-height: 540px;
    padding: 56px 0;
}

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

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

.hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.hero-description {
    margin: 20px 0 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.12rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fffbeb;
    font-size: 0.84rem;
    font-weight: 800;
}

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

.hero-link {
    color: #fde68a;
    font-weight: 900;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
    transform: rotate(1deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #991b1b, #f59e0b);
}

.hero-card-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

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

.hero-dot.is-active {
    background: #f59e0b;
}

.page-main {
    min-height: 64vh;
}

.section {
    padding: 52px 0;
}

.section-tight {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.16;
    font-weight: 950;
    color: var(--site-gray-950);
}

.section-subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--site-gray-600);
}

.accent-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accent-title::before {
    content: "";
    width: 7px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dc2626 0%, #f59e0b 100%);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #991b1b 0%, #f59e0b 100%);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.78) 100%);
}

.year-badge,
.type-badge {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
}

.year-badge {
    right: 10px;
}

.type-badge {
    left: 10px;
}

.play-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-symbol {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.movie-card-title {
    margin: 0;
    color: var(--site-gray-950);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-gray-500);
    font-size: 0.86rem;
}

.movie-card-text {
    margin: 0;
    color: var(--site-gray-600);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rank-panel,
.info-panel,
.filter-panel,
.detail-card,
.category-card,
.search-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 34px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.18s ease;
}

.rank-item a:hover {
    background: #fef3c7;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    font-weight: 950;
}

.rank-thumb {
    width: 72px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #991b1b, #f59e0b);
}

.rank-title {
    margin: 0;
    font-weight: 900;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    color: var(--site-gray-500);
    font-size: 0.82rem;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 180px;
    color: #ffffff;
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 52%, #b45309 100%);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    color: #7f1d1d;
    background: #fde68a;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
}

.page-hero {
    padding: 56px 0 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #450a0a 0%, #991b1b 58%, #b45309 100%);
}

.page-hero h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.06rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

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

.filter-panel,
.search-panel {
    padding: 22px;
    margin-bottom: 28px;
}

.filter-row,
.search-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 170px 170px auto;
    gap: 12px;
}

.filter-row input,
.filter-row select,
.search-row input,
.search-row select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--site-gray-800);
    background: #ffffff;
    outline: none;
}

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

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

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)), var(--player-image);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-frame.is-ready .player-cover {
    display: none;
}

.player-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.92);
    font-size: 2rem;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.detail-card {
    padding: 28px;
    margin-top: 26px;
}

.detail-card h2,
.info-panel h2 {
    margin: 0 0 14px;
    font-size: 1.48rem;
    line-height: 1.25;
    font-weight: 950;
}

.detail-card p {
    margin: 0;
    color: var(--site-gray-700);
    white-space: pre-line;
}

.meta-table {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.meta-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.meta-label {
    color: var(--site-gray-500);
    font-weight: 800;
}

.meta-value {
    color: var(--site-gray-900);
    font-weight: 800;
}

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

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fef3c7;
    font-size: 0.84rem;
    font-weight: 850;
}

.side-panel {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 22px;
}

.info-panel {
    overflow: hidden;
    padding: 20px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #991b1b, #f59e0b);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.related-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.18s ease;
}

.related-card:hover {
    background: #fef3c7;
}

.related-card img {
    width: 92px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #991b1b, #f59e0b);
}

.related-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.related-card span {
    color: var(--site-gray-500);
    font-size: 0.84rem;
}

.archive-list {
    columns: 4 230px;
    column-gap: 26px;
}

.archive-list a {
    display: block;
    break-inside: avoid;
    margin: 0 0 9px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--site-gray-800);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.archive-list a:hover {
    color: #b91c1c;
    background: #fef3c7;
}

.site-footer {
    margin-top: 54px;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 26px;
    padding: 42px 0;
}

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

.footer-grid p {
    margin: 0;
}

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

.footer-links a:hover {
    color: #fde68a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    color: var(--site-gray-600);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.no-results.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .rank-panel,
    .side-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 44px 0 72px;
    }

    .hero-slide {
        min-height: auto;
    }

    .hero-poster-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .filter-row,
    .search-row {
        grid-template-columns: 1fr;
    }

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

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

    .nav-bar {
        min-height: 68px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        display: none;
    }

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

    .section {
        padding: 38px 0;
    }

    .section-header {
        display: grid;
    }

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

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

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

    .detail-card,
    .filter-panel,
    .search-panel,
    .info-panel {
        padding: 18px;
    }

    .meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .archive-list {
        columns: 1;
    }
}
