:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --amber: #d97706;
    --red: #dc2626;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --page: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

body.no-scroll {
    overflow: hidden;
}

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

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

.image-off {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--red));
    box-shadow: 0 10px 25px rgba(194, 65, 12, 0.25);
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.nav-link {
    padding: 8px 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fde68a;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-menu {
    display: none;
    padding: 10px 16px 18px;
    background: rgba(154, 52, 18, 0.96);
}

.mobile-menu.open {
    display: block;
}

.mobile-link {
    display: block;
    width: min(1180px, 100%);
    margin: 4px auto;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fde68a;
}

.main-page {
    min-height: 70vh;
}

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #000;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 58px;
    z-index: 3;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    color: #fff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-eyebrow span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.95);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    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);
}

.btn-primary {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--orange);
}

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

.section-stack {
    padding: 58px 0;
}

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

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.more-link {
    color: var(--orange);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.45), transparent 32%), linear-gradient(135deg, #111827, #431407);
}

.compact-card .poster-frame,
.landscape .poster-frame {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img,
.rank-row:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 46px;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
    transition: opacity 0.22s ease;
}

.movie-card:hover .play-hover,
.related-card:hover .play-hover {
    opacity: 1;
}

.corner-label,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.corner-label {
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    background: var(--orange);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-badge {
    left: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 46px;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

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

.tag-list span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.warm-band {
    margin-left: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
    margin-right: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
    padding: 48px calc((100vw - min(1180px, calc(100vw - 32px))) / 2);
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.horizontal-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 2px 20px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.rank-panel {
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--soft);
    transform: translateX(4px);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

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

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    margin-bottom: 7px;
    font-size: 18px;
}

.rank-info em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.rank-tag {
    padding: 7px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    font-size: 13px;
}

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

.category-box {
    position: relative;
    min-height: 150px;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow-soft);
}

.category-box:nth-child(2n) {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-box:nth-child(3n) {
    background: linear-gradient(135deg, #fb923c, #be123c);
}

.category-box h2,
.category-box h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-box::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-panel label span {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.filter-selects {
    display: flex;
    gap: 12px;
    align-items: end;
}

.filter-selects label {
    min-width: 148px;
}

.no-result {
    display: none;
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    padding: 40px 0;
    color: #fff;
    background: radial-gradient(circle at 25% 0%, rgba(251, 146, 60, 0.42), transparent 28%), linear-gradient(135deg, #111827, #431407 58%, #7f1d1d);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #fed7aa;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.detail-info .lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 800;
}

.player-section {
    margin-top: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font: inherit;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 18px 32px rgba(234, 88, 12, 0.35);
    font-size: 30px;
}

.play-cover strong {
    font-size: 20px;
}

.content-card {
    margin-top: 28px;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

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

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

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.related-card .poster-frame {
    aspect-ratio: 16 / 9;
}

.related-card h3 {
    margin: 0;
    padding: 14px 16px 4px;
    font-size: 17px;
}

.related-card p {
    display: -webkit-box;
    margin: 0;
    padding: 0 16px 16px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(160px, 0.7fr));
    gap: 36px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
}

.footer-brand p {
    max-width: 420px;
    margin: 0;
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-column a {
    display: block;
    margin: 9px 0;
    color: #d1d5db;
}

.footer-column a:hover {
    color: #fdba74;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        height: 520px;
    }

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

    .detail-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

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

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

@media (max-width: 680px) {
    .brand-text {
        font-size: 21px;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        bottom: 56px;
    }

    .hero-arrow {
        display: none;
    }

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

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 14px;
    }

    .grid,
    .grid.three,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        padding: 18px;
    }

    .rank-row {
        grid-template-columns: 38px 82px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-tag {
        display: none;
    }

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

    .detail-poster {
        max-width: 280px;
    }

    .filter-selects {
        grid-template-columns: 1fr;
    }

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