:root {
    --site-orange: #ea580c;
    --site-amber: #f59e0b;
    --site-teal: #0d9488;
    --site-blue: #2563eb;
    --site-gray: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f9fafb;
    color: #1f2937;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
    display: block;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

.logo-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(234, 88, 12, 0.28);
}

.nav-link-active {
    color: var(--site-orange);
}

.mobile-panel {
    display: none;
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #ea580c, #f59e0b 52%, #facc15);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.18));
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-panel {
    max-width: 760px;
    color: #fff;
    padding: 6rem 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-meta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-meta span,
.tag-pill {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2.2rem;
    background: #fff;
}

.hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.section-shell {
    padding: 4rem 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title-row h2 {
    margin: 0;
}

.category-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.35rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.category-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.movie-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-cover {
    position: relative;
    height: 15rem;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

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

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

.movie-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 55%);
}

.movie-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.95);
    color: #fff;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-title {
    min-height: 3.2rem;
    font-size: 1.06rem;
    line-height: 1.5;
    font-weight: 800;
    color: #1f2937;
}

.movie-card-title:hover {
    color: var(--site-orange);
}

.movie-card-desc {
    min-height: 3.25rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.65;
}

.movie-card-meta {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-cover {
    height: 8.5rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #111827;
}

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

.rank-num {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.search-input {
    width: min(100%, 28rem);
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    outline: none;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.filter-chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c;
}

.page-hero {
    background: linear-gradient(135deg, #0f766e, #0891b2 50%, #2563eb);
    color: #fff;
    padding: 5rem 0;
}

.page-hero-orange {
    background: linear-gradient(135deg, #ea580c, #f59e0b 62%, #facc15);
}

.content-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
    z-index: 3;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16));
}

.player-cover.is-hidden {
    display: none;
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 5.5rem;
    height: 5.5rem;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.9fr);
    gap: 2rem;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.25rem;
    background: #111827;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    max-height: 36rem;
    object-fit: cover;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.88rem;
}

.breadcrumbs a:hover {
    color: #ea580c;
}

.no-result {
    display: none;
    color: #6b7280;
    text-align: center;
    padding: 3rem 0;
    font-size: 1.05rem;
}

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

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-panel {
        padding: 5rem 0;
    }
}

@media (max-width: 640px) {
    .hero-carousel,
    .hero-content {
        min-height: 520px;
    }

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

    .hero-actions a {
        justify-content: center;
    }

    .ranking-card {
        grid-template-columns: 5.5rem minmax(0, 1fr);
    }

    .ranking-cover {
        height: 7rem;
    }

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