:root {
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --dark: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --bg: #fff7ed;
    --card: #ffffff;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--dark);
    background: linear-gradient(180deg, #fff7ed 0%, #fff 28%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
    background: linear-gradient(135deg, #fb923c, #f43f5e 55%, #f59e0b);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(251, 146, 60, 0.25);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
}

.nav-wrap {
    max-width: 1180px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 0 26px rgba(249, 115, 22, 0.36);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 700;
    color: #374151;
}

.nav-links a,
.mobile-links a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-links {
    display: none;
    padding: 12px 22px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(251, 146, 60, 0.18);
}

.mobile-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

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

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

.hero-track {
    position: relative;
    min-height: 600px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(67, 20, 7, 0.64) 48%, rgba(17, 24, 39, 0.18));
}

.hero-content {
    position: relative;
    max-width: 1180px;
    min-height: 600px;
    margin: 0 auto;
    padding: 70px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 44px;
    color: #fff;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: #fed7aa;
    font-weight: 700;
}

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

.hero p {
    max-width: 740px;
    margin: 0 0 26px;
    color: #f3f4f6;
    font-size: 19px;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 15px 34px rgba(249, 115, 22, 0.32);
}

.btn-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-panel {
    border-radius: 30px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.hero-panel h2 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.hero-panel p {
    margin: 0;
    font-size: 14px;
    color: #fff7ed;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px 74px;
}

.section-block {
    margin-bottom: 58px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title > span {
    width: 5px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--orange), var(--rose));
    flex: 0 0 auto;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.search-panel input,
.select-filter {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 18px;
    color: #374151;
    font-size: 15px;
    outline: none;
    background: #fff7ed;
}

.search-panel input:focus,
.select-filter:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
}

.filter-row button,
.filter-pill {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: #fff;
    color: #374151;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    font-weight: 700;
    cursor: pointer;
}

.filter-row button.is-active,
.filter-pill:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

.movie-grid.compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fb923c, #f43f5e 55%, #f59e0b);
}

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

.movie-card:hover .poster-link img,
.compact-card:hover img,
.rank-cover:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68));
    opacity: 0.7;
}

.duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
}

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

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: var(--orange);
}

.card-body p {
    display: -webkit-box;
    min-height: 47px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span,
.detail-tags span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

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

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
}

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

.compact-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 12px 12px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

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

.category-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 170px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f43f5e 58%, #f59e0b);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.22);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -36px;
    bottom: -46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f43f5e 58%, #f59e0b);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 34%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.page-hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 22px;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 160px 1fr 82px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.rank-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: #4b5563;
}

.rank-score {
    justify-self: end;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 900;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.25);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.68));
}

.player-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.35);
}

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

.detail-card,
.side-card {
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.1);
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.detail-card h2,
.side-card h2 {
    margin: 24px 0 10px;
    font-size: 22px;
}

.detail-card p {
    color: #374151;
    font-size: 16px;
}

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

.side-list {
    display: grid;
    gap: 12px;
}

.side-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
}

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

.side-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

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

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #881337);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 22px 34px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: #d1d5db;
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
}

.footer-grid a:hover,
.footer-bottom a:hover {
    color: #fdba74;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: #d1d5db;
}

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-panel {
        display: none;
    }

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

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

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

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

@media (max-width: 720px) {
    .hero,
    .hero-track,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 54px;
        padding-bottom: 68px;
    }

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

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

    .ranking-row {
        grid-template-columns: 42px 96px 1fr;
        gap: 12px;
    }

    .rank-score {
        display: none;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .card-body {
        padding: 14px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .movie-grid.compact,
    .compact-strip,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
