:root {
    --site-orange: #f97316;
    --site-pink: #ec4899;
    --site-blue: #3b82f6;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-card: #ffffff;
    --site-line: #fed7aa;
    --site-radius: 22px;
    --site-shadow: 0 18px 45px rgba(249, 115, 22, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #eff6ff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid rgba(253, 186, 116, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, #fdba74, #f472b6);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.22);
}

.brand-text,
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--site-orange), var(--site-pink), var(--site-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-weight: 650;
    color: #374151;
    transition: color 0.2s ease;
}

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

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-orange), var(--site-pink));
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
    height: 42px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--site-text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

.top-search button,
.mobile-search button,
.search-panel button,
.hero-button,
.detail-button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
    background: linear-gradient(90deg, var(--site-orange), var(--site-pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.hero-button:hover,
.detail-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 237, 213, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #374151;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(253, 186, 116, 0.6);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.hero {
    padding: 36px 0 28px;
}

.hero-shell {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 28px;
    padding: 56px;
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.12));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(249, 115, 22, 0.92);
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 24px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-button.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.36);
}

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

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    background: #fff;
}

.section {
    padding: 32px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-heading p,
.page-title p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--site-orange);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--site-radius);
    background: var(--site-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--site-orange), var(--site-pink));
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--site-orange);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

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

.category-card {
    min-height: 180px;
    padding: 22px;
    border: 1px solid rgba(253, 186, 116, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.category-card p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.category-preview {
    display: flex;
    gap: 6px;
    margin-top: 18px;
}

.category-preview img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.page-hero {
    padding: 48px 0 18px;
}

.page-title {
    padding: 34px;
    border: 1px solid rgba(253, 186, 116, 0.55);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.76));
    box-shadow: var(--site-shadow);
}

.filter-panel,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 26px 0 24px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.search-panel input {
    min-width: min(360px, 100%);
    flex: 1 1 260px;
}

.filter-panel select {
    min-width: 150px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 120px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
}

.rank-item img {
    width: 120px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.6;
}

.rank-meta {
    color: #9ca3af;
    font-size: 13px;
    white-space: nowrap;
}

.detail-hero {
    padding: 36px 0 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--site-muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--site-orange);
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--site-shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-title {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 750;
    background: #ffedd5;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.detail-facts div {
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.detail-facts strong {
    display: block;
    margin-bottom: 4px;
    color: #9a3412;
    font-size: 13px;
}

.player-section {
    padding: 24px 0 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.36);
}

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

.content-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-card + .content-card {
    margin-top: 18px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.compact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.movie-card.compact {
    border-radius: 18px;
}

.compact-link {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 10px;
}

.compact-link img {
    width: 108px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.compact-link h3 {
    margin: 2px 0 6px;
    font-size: 16px;
}

.compact-link p {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 13px;
}

.compact-link span {
    color: #9ca3af;
    font-size: 12px;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.empty-tip {
    padding: 24px;
    border-radius: 22px;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.86);
}

.site-footer {
    margin-top: 48px;
    padding: 42px 0 22px;
    background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer p {
    max-width: 460px;
    color: var(--site-muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
    color: #4b5563;
}

.footer-links a:hover {
    color: var(--site-orange);
}

.footer-copy {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(251, 146, 60, 0.35);
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .top-search {
        display: none;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 44px;
    }

    .hero-poster {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        min-height: 64px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-shell {
        min-height: 580px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero-dots {
        left: 28px;
        bottom: 22px;
    }

    .movie-grid,
    .category-grid,
    .search-results,
    .compact-list {
        grid-template-columns: 1fr;
    }

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

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

    .rank-item img {
        width: 88px;
    }

    .rank-meta {
        grid-column: 2 / -1;
    }

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

    .detail-cover {
        max-width: 320px;
    }

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

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