html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

a {
    text-decoration: none;
}

.logo-mark {
    color: #ffffff;
    line-height: 1;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    width: 15rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.mobile-menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 1.2rem;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-menu {
    padding: 0.75rem 0 1rem;
}

.mobile-menu-links,
.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mobile-nav-link,
.mobile-category-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    text-align: center;
}

.mobile-search {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.mobile-search input {
    flex: 1;
    padding: 0.75rem 1rem;
}

.mobile-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.2)), linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 45%);
}

.hero-content {
    position: absolute;
    left: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem));
    bottom: 5rem;
    max-width: 46rem;
    color: #ffffff;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
}

.hero-content h1 {
    margin: 1rem 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 42rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
    color: #e5e7eb;
}

.hero-tags,
.detail-meta,
.detail-tags,
.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.82rem;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.hero-primary,
.hero-secondary,
.watch-now,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary,
.watch-now {
    padding: 0.95rem 1.45rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.hero-secondary {
    padding: 0.9rem 1.35rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-primary:hover,
.hero-secondary:hover,
.watch-now:hover,
.more-link:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2.3rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.hero-prev {
    left: 1.5rem;
}

.hero-next {
    right: 1.5rem;
}

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

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

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

.search-panel {
    margin-top: -2.4rem;
    position: relative;
    z-index: 4;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    gap: 1rem;
    align-items: center;
    border-radius: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(16px);
}

.search-panel strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
}

.search-panel span {
    color: #6b7280;
    font-size: 0.9rem;
}

.search-panel input {
    width: 100%;
    padding: 0.9rem 1.2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-heading-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
}

.section-heading p {
    margin: 0.25rem 0 0;
    color: #6b7280;
}

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
    opacity: 0.86;
}

.category-pill,
.rank-badge,
.play-mini {
    position: absolute;
    z-index: 2;
}

.category-pill {
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-size: 0.74rem;
    font-weight: 800;
}

.rank-badge {
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.82);
    font-weight: 900;
}

.play-mini {
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.movie-info {
    display: block;
    padding: 1rem;
}

.movie-info strong {
    display: -webkit-box;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
    min-height: 3rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-desc {
    display: -webkit-box;
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.movie-meta span {
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    background: #fff7ed;
}

.tag-row {
    margin-top: 0.7rem;
}

.tag-row span {
    color: #b45309;
    background: #fffbeb;
}

.compact-card .movie-card-link {
    display: grid;
    grid-template-columns: 6.8rem 1fr;
}

.compact-card .poster-wrap {
    aspect-ratio: auto;
    min-height: 10rem;
}

.compact-card .movie-info strong {
    min-height: auto;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
    display: block;
    padding: 1.25rem;
    min-height: 8rem;
}

.category-tile:before {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(249, 115, 22, 0.18));
}

.category-tile span,
.category-overview-body strong {
    display: block;
    position: relative;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile em,
.category-overview-body em {
    display: block;
    position: relative;
    margin-top: 0.6rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.6;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 55px rgba(17, 24, 39, 0.14);
}

.soft-section {
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(255, 237, 213, 0.72));
}

.split-sections {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
}

.more-link {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.page-hero {
    overflow: hidden;
    border-radius: 2rem;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.38), transparent 35%), linear-gradient(135deg, #111827, #7c2d12 58%, #f97316);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
    margin-bottom: 2rem;
}

.page-hero span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.page-hero h1 {
    margin: 0.9rem 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 52rem;
    color: #f3f4f6;
    font-size: 1.08rem;
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border-radius: 1.3rem;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(17, 24, 39, 0.08);
}

.filter-bar input,
.filter-bar select {
    padding: 0.8rem 1rem;
}

.filter-bar input {
    min-width: min(100%, 28rem);
    flex: 1;
}

.filter-bar select {
    color: #374151;
}

.category-overview-card {
    min-height: 15rem;
}

.category-overview-card img {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-overview-card:hover img {
    transform: scale(1.08);
}

.category-overview-body {
    position: absolute;
    inset: auto 0 0 0;
    display: block;
    padding: 1.25rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent);
}

.category-overview-body strong,
.category-overview-body em {
    color: #ffffff;
}

.category-overview-body span {
    display: inline-flex;
    margin-top: 0.75rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-weight: 800;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #b45309;
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(14rem, 24rem) 1fr;
    gap: 2rem;
    align-items: stretch;
    border-radius: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.78));
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.detail-category {
    width: max-content;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-weight: 900;
}

.detail-info h1 {
    margin: 1rem 0;
    color: #111827;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #4b5563;
    font-size: 1.15rem;
    line-height: 1.9;
}

.detail-meta {
    margin: 1rem 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #7c2d12;
    background: #ffffff;
    font-weight: 700;
}

.detail-tags a {
    color: #b45309;
    background: #ffffff;
}

.watch-now {
    width: max-content;
    margin-top: 1.5rem;
}

.player-section {
    margin-top: 2rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background: #000000;
    box-shadow: 0 25px 80px rgba(17, 24, 39, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.player-cover[hidden] {
    display: none;
}

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.82));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(4.5rem, 9vw, 7rem);
    height: clamp(4.5rem, 9vw, 7rem);
    border-radius: 999px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 20px 55px rgba(249, 115, 22, 0.45);
    transform: translate(-50%, -50%);
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.detail-content article,
.related-section {
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(17, 24, 39, 0.08);
}

.detail-content h2 {
    margin: 0 0 0.8rem;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 900;
}

.detail-content p {
    color: #4b5563;
    line-height: 1.9;
}

.related-section {
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
}

footer h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 0.85rem;
}

footer a,
footer span {
    display: block;
    margin: 0.45rem 0;
    color: #d1d5db;
}

footer p {
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

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

    .split-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

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

    .hero-content {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 4.5rem;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel form {
        grid-template-columns: 1fr;
    }

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

    .compact-card .movie-card-link {
        grid-template-columns: 1fr;
    }

    .compact-card .poster-wrap {
        aspect-ratio: 3 / 4;
        min-height: auto;
    }

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

    .detail-poster img {
        min-height: auto;
    }

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

@media (max-width: 560px) {
    .hero-slider {
        min-height: 560px;
    }

    .hero-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .movie-grid,
    .small-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .player-shell {
        border-radius: 1rem;
    }
}
