:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --rose-600: #e11d48;
    --shadow: 0 16px 45px rgba(28, 25, 23, 0.14);
    --soft-shadow: 0 10px 28px rgba(28, 25, 23, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--stone-50) 0%, #ffffff 48%, var(--stone-50) 100%);
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #8a3d07, var(--amber-700), #7c2d12);
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.20);
}

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

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--amber-700);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.15);
}

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

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

.site-nav a:hover {
    color: var(--amber-100);
    opacity: 1;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 2px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 48px;
    padding: 80px max(24px, calc((100vw - 1180px) / 2)) 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.38;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.70) 48%, rgba(28, 25, 23, 0.22) 100%);
}

.hero-content,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--amber-600);
}

.hero-content h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.2vw, 24px);
}

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

.hero-tags span,
.tag-list span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.30);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.btn-soft {
    color: var(--amber-100);
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.30);
}

.hero-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--amber-500);
}

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

.home-section-muted {
    width: 100%;
    padding-inline: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(180deg, var(--stone-100), var(--stone-50));
}

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

.section-title h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

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

.featured-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 36px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.featured-image {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.featured-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-text h2 {
    margin: 14px 0 14px;
    color: var(--stone-900);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.featured-text p {
    margin: 0 0 14px;
    color: var(--stone-600);
}

.pill {
    padding: 7px 12px;
    color: #92400e;
    background: var(--amber-100);
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--stone-200);
}

.movie-poster img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card h3 a:hover {
    color: var(--amber-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-list span {
    padding: 5px 9px;
    color: #92400e;
    background: var(--amber-50);
    border: 1px solid var(--amber-100);
}

.large-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    color: #ffffff;
    background: var(--stone-900);
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.category-tile::before,
.category-overview-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: linear-gradient(135deg, rgba(28, 25, 23, 0.75), rgba(120, 53, 15, 0.72)), var(--tile-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.category-tile:hover::before,
.category-overview-card:hover::before {
    transform: scale(1.08);
}

.category-tile > *,
.category-overview-card > * {
    position: relative;
    z-index: 1;
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.36), transparent 34%), linear-gradient(135deg, var(--amber-700), #7c2d12);
}

.compact-hero {
    padding: 74px max(24px, calc((100vw - 1180px) / 2));
}

.compact-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
}

.compact-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.category-overview-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    min-height: 260px;
}

.category-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-preview-links a {
    padding: 6px 10px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--stone-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--stone-800);
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card-compact .movie-poster img {
    height: 100%;
    min-height: 176px;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-body {
    min-width: 0;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-600));
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--amber-700);
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.46));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-trigger span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 5px;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.40);
    font-size: 34px;
}

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

.detail-info-card,
.side-card {
    margin-top: 22px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.detail-info-card h1 {
    margin: 6px 0 14px;
    color: var(--stone-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.lead-text {
    margin: 0 0 20px;
    color: var(--stone-600);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    color: var(--stone-700);
    background: var(--stone-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.article-block {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--stone-200);
}

.article-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--stone-900);
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: var(--stone-700);
    font-size: 16px;
}

.sticky-card {
    position: sticky;
    top: 92px;
}

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

.related-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-row img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.related-row strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--stone-800);
    font-size: 14px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-row:hover strong {
    color: var(--amber-700);
}

.related-row small {
    display: block;
    margin-top: 6px;
    color: var(--stone-500);
}

.detail-more {
    width: 100%;
}

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

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

.footer-brand {
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
    color: var(--stone-200);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--stone-200);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: var(--stone-500);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .site-nav {
        gap: 14px;
        font-size: 14px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 680px;
        padding-top: 58px;
    }

    .hero-cover {
        max-width: 330px;
        margin: 0 auto;
    }

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

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

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

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

    .sticky-card {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 62px;
    }

    .mobile-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(68, 64, 60, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .site-nav a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .hero-carousel {
        min-height: 650px;
    }

    .hero-slide {
        gap: 28px;
        padding: 42px 20px 74px;
    }

    .hero-control {
        display: none;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-cover {
        max-width: 240px;
    }

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

    .featured-panel,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .featured-panel {
        padding: 18px;
    }

    .movie-grid,
    .ranking-list,
    .category-overview-grid,
    .filter-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .movie-card-compact .movie-poster img {
        min-height: 164px;
    }

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

    .compact-hero {
        padding: 52px 20px;
    }

    .detail-info-card,
    .side-card {
        padding: 20px;
    }

    .player-trigger span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
