html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #fffaf4;
    color: #43302b;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    backdrop-filter: blur(18px);
}

.nav-bar {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-text {
    font-size: 1.28rem;
    color: #43302b;
}

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0284c7, #f59e0b);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.24);
    font-size: 0.8rem;
}

.logo-mark.small {
    width: 28px;
    height: 28px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #6b5a54;
    font-weight: 600;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #0284c7;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f5ebe2;
    color: #43302b;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 0 16px;
}

.mobile-nav a {
    border-radius: 12px;
    background: #fff7ed;
    padding: 10px 14px;
    text-align: center;
    font-weight: 700;
}

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #43302b);
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 26%, rgba(2, 132, 199, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(20, 12, 8, 0.92) 0%, rgba(20, 12, 8, 0.76) 42%, rgba(20, 12, 8, 0.32) 100%),
        linear-gradient(0deg, rgba(20, 12, 8, 0.68), rgba(20, 12, 8, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    padding-top: 48px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 8px 14px;
    color: #fde68a;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #f8fafc;
    font-size: 1.14rem;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-meta,
.breadcrumb,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.12);
    padding: 5px 10px;
    color: #0369a1;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

.primary-btn {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(2, 132, 199, 0.28);
}

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

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

.text-btn {
    background: #fff7ed;
    color: #0369a1;
}

.hero-actions {
    margin-top: 28px;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

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

.content-section {
    position: relative;
}

.alt-section {
    background: linear-gradient(135deg, #f0f9ff, #fff7ed);
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #43302b;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.section-heading p,
.page-title p,
.category-card p,
.detail-title p,
.text-block p {
    color: #6b5a54;
    line-height: 1.85;
}

.section-kicker {
    background: #e0f2fe;
    color: #0369a1;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(67, 48, 43, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(67, 48, 43, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.22);
    box-shadow: 0 24px 60px rgba(2, 132, 199, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eadfd6;
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 132, 199, 0.94);
    padding: 7px 10px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #43302b;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #0284c7;
}

.card-body p {
    min-height: 52px;
    margin: 10px 0 12px;
    color: #6b5a54;
    font-size: 0.92rem;
    line-height: 1.65;
}

.movie-meta,
.detail-meta {
    color: #8a756d;
    font-size: 0.84rem;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(67, 48, 43, 0.08);
}

.category-card a {
    display: flex;
    height: 100%;
    min-height: 230px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-card .category-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    opacity: 0.94;
}

.category-bg img {
    height: 100%;
    object-fit: cover;
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(20, 12, 8, 0.86), rgba(20, 12, 8, 0.12));
}

.page-hero {
    padding: 64px 0 38px;
    background: linear-gradient(135deg, #f0f9ff, #fff7ed);
}

.page-title h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.page-title p {
    max-width: 780px;
    margin: 14px 0 0;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #8a756d;
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #0284c7;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
}

.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid rgba(67, 48, 43, 0.12);
    border-radius: 16px;
    background: #ffffff;
    padding: 13px 15px;
    color: #43302b;
    outline: none;
    box-shadow: 0 10px 24px rgba(67, 48, 43, 0.05);
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: rgba(2, 132, 199, 0.55);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.empty-state {
    display: none;
    border-radius: 20px;
    background: #ffffff;
    padding: 36px;
    text-align: center;
    color: #8a756d;
    box-shadow: 0 16px 34px rgba(67, 48, 43, 0.06);
}

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

.rank-list {
    display: grid;
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 72px 110px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(67, 48, 43, 0.08);
    border-radius: 22px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(67, 48, 43, 0.07);
}

.rank-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    background: #fff7ed;
    color: #d97706;
    font-size: 1.2rem;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #eadfd6;
}

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

.rank-info h2 {
    margin: 0 0 8px;
    color: #43302b;
    font-size: 1.12rem;
    font-weight: 900;
}

.rank-info p {
    margin: 8px 0 0;
    color: #6b5a54;
    line-height: 1.7;
}

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

.player-card,
.detail-side,
.text-block {
    border: 1px solid rgba(67, 48, 43, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(67, 48, 43, 0.08);
}

.player-card {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.18), rgba(0, 0, 0, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: inline-grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0284c7;
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.player-info,
.detail-side,
.text-block {
    padding: 24px;
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-title p {
    max-width: 920px;
    margin: 12px 0 0;
    font-size: 1.05rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.detail-side img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    background: #eadfd6;
}

.detail-side h2,
.text-block h2 {
    margin: 0 0 14px;
    color: #43302b;
    font-size: 1.25rem;
    font-weight: 900;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 12px;
    margin: 18px 0 0;
    color: #6b5a54;
}

.detail-side dt {
    color: #8a756d;
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.related-section {
    margin-top: 38px;
}

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 22px;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-stage {
        min-height: 620px;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 82px 1fr;
    }

    .rank-item .text-btn {
        grid-column: 3;
        justify-self: start;
    }
}

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

    .hero-content h1 {
        font-size: 2.7rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .movie-grid,
    .category-strip,
    .detail-side,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-info p {
        display: none;
    }
}
