:root {
    color-scheme: light;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
    --soft-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-900);
    background: var(--stone-50);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: var(--stone-50);
    background: rgba(41, 37, 36, 0.96);
    box-shadow: 0 8px 28px rgba(12, 10, 9, 0.28);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-900));
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.36);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    font-size: 14px;
    color: var(--stone-200);
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: var(--amber-500);
}

.nav-search,
.mobile-search,
.search-page-form,
.filter-panel {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--stone-700);
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--stone-50);
    background: transparent;
}

.nav-search input {
    width: 190px;
    padding: 10px 8px 10px 16px;
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.filter-panel button {
    border: 0;
    color: white;
    cursor: pointer;
    background: var(--amber-600);
    transition: background 0.2s ease;
}

.nav-search button {
    padding: 10px 16px;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.filter-panel button:hover {
    background: var(--amber-700);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 26px;
    background: transparent;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(231, 229, 228, 0.12);
}

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

.mobile-nav-inner {
    display: grid;
    gap: 13px;
    padding: 16px 0 18px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
}

.mobile-search button {
    padding: 12px 18px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-700) 55%, var(--amber-900));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.72s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    filter: blur(2px) saturate(0.85);
    opacity: 0.24;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(28, 25, 23, 0.72) 56%, rgba(28, 25, 23, 0.36));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    min-height: 560px;
    gap: 52px;
    padding: 68px 0 86px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: var(--amber-100);
    border: 1px solid rgba(254, 243, 199, 0.22);
    border-radius: 999px;
    background: rgba(41, 37, 36, 0.42);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    margin: 0;
    color: var(--stone-200);
    font-size: clamp(17px, 2.3vw, 23px);
    line-height: 1.72;
}

.hero-tags,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.card-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-tags span {
    padding: 8px 12px;
    color: var(--stone-100);
    background: rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.primary-button {
    padding: 13px 28px;
    color: white;
    background: var(--amber-600);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.35);
}

.ghost-button {
    padding: 12px 24px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
    transform: translateY(-2px);
}

.primary-button:hover,
.small-button:hover {
    background: var(--amber-700);
}

.ghost-button:hover {
    border-color: var(--amber-500);
    color: var(--amber-100);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.hero-poster:hover img,
.poster-link:hover img,
.category-card:hover img,
.overview-image-row:hover img,
.ranking-cover:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    right: max(20px, calc((100% - 1180px) / 2));
    bottom: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.52);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.active {
    width: 26px !important;
    background: var(--amber-500) !important;
}

.content-section {
    padding: 64px 0;
}

.soft-section,
.category-section {
    background: var(--stone-100);
}

.dark-section {
    color: var(--stone-50);
    background: var(--stone-900);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--amber-700);
    font-weight: 700;
}

.light-head a {
    color: var(--amber-100);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--stone-300);
}

.poster-link img,
.ranking-cover img,
.category-thumbs img,
.overview-image-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    color: white;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.72);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 34px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.32);
    transition: opacity 0.2s ease;
}

.poster-link:hover .play-hover {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 9px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
}

.card-body h2 a:hover,
.ranking-content h2 a:hover {
    color: var(--amber-700);
}

.card-body p,
.ranking-content p,
.category-card p,
.overview-content p,
.article-card p {
    color: var(--stone-600);
    line-height: 1.7;
}

.card-body p {
    display: -webkit-box;
    min-height: 47px;
    margin: 0 0 13px;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    margin-bottom: 13px;
    color: var(--stone-500);
    font-size: 12px;
}

.card-meta span,
.card-meta a {
    padding: 4px 8px;
    background: var(--stone-100);
}

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

.tag-row a,
.detail-tags a {
    color: var(--stone-700);
    font-size: 12px;
    border-radius: 999px;
    background: var(--amber-50);
}

.tag-row a {
    padding: 5px 9px;
}

.tag-row a:hover,
.detail-tags a:hover {
    color: var(--amber-800);
    background: var(--amber-100);
}

.compact-card .card-body h2 {
    font-size: 16px;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.category-card {
    display: grid;
    gap: 0;
}

.category-thumbs,
.overview-image-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 132px;
    overflow: hidden;
    background: var(--stone-200);
}

.category-card h2,
.overview-content h2 {
    margin: 18px 18px 8px;
    font-size: 21px;
    font-weight: 850;
}

.category-card p,
.overview-content p {
    margin: 0 18px 18px;
    font-size: 14px;
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 118px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.dark-section .ranking-item {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.ranking-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: var(--stone-200);
}

.ranking-number {
    color: var(--amber-600);
    font-size: 28px;
    font-weight: 900;
}

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 830;
}

.ranking-content p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dark-section .ranking-content p,
.dark-section .card-meta {
    color: var(--stone-300);
}

.small-button {
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    background: var(--amber-600);
    white-space: nowrap;
}

.page-hero {
    color: white;
    background:
        radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.35), transparent 30%),
        linear-gradient(135deg, var(--stone-900), var(--stone-800) 58%, var(--amber-900));
}

.compact-hero {
    padding: 54px 0 60px;
}

.compact-hero h1 {
    margin-top: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--stone-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-100);
}

.filter-panel,
.search-page-form {
    max-width: 760px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.filter-panel input,
.search-page-form input {
    flex: 1;
    padding: 15px 18px;
}

.filter-panel button,
.search-page-form button {
    align-self: stretch;
    padding: 0 24px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 46% 1fr;
}

.overview-image-row {
    height: 100%;
    min-height: 230px;
}

.overview-content {
    padding: 22px;
}

.overview-content h2 {
    margin: 0 0 10px;
}

.overview-content p {
    margin: 0 0 20px;
}

.search-status {
    margin-bottom: 22px;
    color: var(--stone-600);
    font-size: 18px;
    font-weight: 750;
}

.detail-wrap {
    padding: 28px 0 70px;
}

.detail-breadcrumb {
    color: var(--stone-600);
}

.detail-breadcrumb a:hover {
    color: var(--amber-700);
}

.player-panel {
    margin-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 24px 70px rgba(12, 10, 9, 0.26);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

.player-overlay span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    padding-left: 6px;
    font-size: 42px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.42);
}

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

.detail-card,
.article-card {
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.detail-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    margin-bottom: 24px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    background: var(--stone-200);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    color: var(--stone-700);
    background: var(--stone-100);
}

.one-line {
    margin: 0 0 20px;
    color: var(--stone-700);
    font-size: 19px;
    line-height: 1.75;
    font-weight: 650;
}

.detail-tags a {
    padding: 8px 12px;
}

.article-card {
    padding: 26px;
    margin-bottom: 24px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 850;
}

.article-card p {
    margin: 0;
    font-size: 17px;
}

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

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

.site-footer {
    color: var(--stone-300);
    background: var(--stone-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 36px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.site-footer p {
    margin: 14px 0 0;
    line-height: 1.7;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    color: var(--stone-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 12px;
        font-size: 13px;
    }

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

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

    .ranking-preview,
    .latest-list,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 44px;
    }

    .hero-poster {
        display: none;
    }

    .hero-controls {
        right: 16px;
        left: 16px;
        justify-content: center;
    }

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

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

    .ranking-number,
    .ranking-item .small-button {
        grid-column: 2;
    }
}

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

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

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .featured-grid,
    .category-movie-grid,
    .category-grid,
    .latest-list,
    .ranking-preview,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-number {
        font-size: 22px;
    }

    .filter-panel,
    .search-page-form {
        border-radius: 20px;
        align-items: stretch;
        flex-direction: column;
    }

    .filter-panel button,
    .search-page-form button {
        padding: 13px 16px;
    }

    .detail-card,
    .article-card {
        padding: 18px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 32px;
    }
}
