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

* {
    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", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    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.03em;
}

.brand-icon,
.footer-brand span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 650;
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    background: rgba(154, 52, 18, 0.96);
    padding: 14px 24px 18px;
}

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

.mobile-link {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-category-row,
.quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-category {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

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

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

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

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

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 0 24px 72px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.92);
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.32);
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-meta span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn,
.btn-ghost,
.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
    padding: 14px 26px;
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.34);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--orange-dark);
}

.btn-ghost {
    padding: 13px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

.container.tight {
    padding-top: 28px;
}

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

.section-head h2,
.page-hero h1,
.detail-main h1,
.category-card h2 {
    margin: 0;
    color: #111827;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.category-card p {
    color: var(--muted);
    line-height: 1.8;
}

.more-link {
    color: var(--orange);
    font-weight: 750;
    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,
.category-card,
.list-panel,
.detail-card,
.related-panel,
.search-panel,
.rank-row {
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.movie-card,
.category-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-box,
.wide-cover {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.poster-box {
    aspect-ratio: 3 / 4;
}

.wide-cover {
    aspect-ratio: 16 / 9;
}

.poster-box img,
.wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #ffffff;
    font-size: 42px;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--orange);
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 10px 18px rgba(234, 88, 12, 0.32);
}

.play-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
}

.card-body {
    padding: 18px;
}

.card-body h3,
.list-card h3,
.rank-info h3,
.related-card h3 {
    margin: 0 0 10px;
    color: #111827;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.list-card:hover h3,
.rank-row:hover h3,
.related-card:hover h3 {
    color: var(--orange);
}

.card-body p,
.list-card p,
.rank-info p {
    display: -webkit-box;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.card-meta span:first-child {
    color: var(--orange-dark);
}

.feature-band {
    margin: 10px 0;
    padding: 48px 0;
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.scroll-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

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

.list-panel,
.detail-card,
.related-panel,
.search-panel {
    border-radius: 24px;
    padding: 28px;
}

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

.list-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.list-card img {
    width: 150px;
    height: 94px;
    border-radius: 14px;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 50px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #ffedd5;
    font-size: 18px;
}

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

.category-card {
    padding: 28px;
}

.category-topline {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 750;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 14px;
}

.category-links a:hover {
    color: #ffffff;
    background: var(--orange);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 170px 170px;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select,
.hero-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 15px;
    color: #111827;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-search {
    display: flex;
    gap: 10px;
    width: min(540px, 100%);
    margin-top: 18px;
}

.empty-message {
    display: none;
    padding: 32px;
    border-radius: 18px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
}

.empty-message.show {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 128px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    background: #fff7ed;
    box-shadow: var(--shadow);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 18px;
    font-weight: 800;
}

.rank-row img {
    width: 128px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.rank-info p {
    margin-bottom: 8px;
}

.rank-play {
    padding: 10px 14px;
    color: #ffffff;
    background: var(--orange);
    font-size: 14px;
}

.player-shell {
    background: #000000;
}

.player-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-stage video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.48);
}

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

.player-button {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
    font-size: 42px;
    transform: translateZ(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .player-button {
    transform: scale(1.08);
    background: var(--orange-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-main h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

.region-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-weight: 750;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.detail-line {
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 18px;
    color: #374151;
    background: linear-gradient(90deg, #f9fafb, #f3f4f6);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    padding: 8px 12px;
    color: #4b5563;
    background: #f3f4f6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
}

.tag {
    padding: 7px 11px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 14px;
}

.detail-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.review-box {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.related-panel {
    position: sticky;
    top: 88px;
}

.related-panel h2 {
    margin: 0 0 18px;
}

.related-stack {
    display: grid;
    gap: 12px;
}

.related-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 13px;
    padding: 11px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: #fff7ed;
}

.related-card img {
    width: 112px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.footer-main p {
    max-width: 360px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-main h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #fb923c;
}

.footer-copy {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .related-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 92px 1fr;
    }

    .rank-row img {
        width: 92px;
        height: 68px;
    }

    .rank-play {
        display: none;
    }

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

@media (max-width: 560px) {
    .nav-inner,
    .container,
    .page-hero-inner,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero {
        height: 520px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.65;
    }

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

    .btn,
    .btn-ghost {
        width: 100%;
    }

    .grid,
    .grid.three {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body p {
        display: none;
    }

    .list-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .list-card img {
        width: 110px;
        height: 74px;
    }

    .detail-card,
    .related-panel,
    .list-panel,
    .search-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .detail-title-row {
        display: block;
    }

    .region-pill {
        margin-top: 12px;
    }

    .related-card {
        grid-template-columns: 96px 1fr;
    }

    .related-card img {
        width: 96px;
        height: 68px;
    }
}
