* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #d97706 0%, #ea580c 52%, #dc2626 100%);
    box-shadow: 0 12px 30px rgba(185, 28, 28, 0.22);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    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.04em;
}

.brand {
    font-size: 24px;
}

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

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

.desktop-nav a,
.mobile-nav a {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.menu-button {
    display: none;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

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

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

.hero-slide.active {
    opacity: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-copy {
    position: absolute;
    left: 50%;
    bottom: 58px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-eyebrow,
.section-heading p,
.page-hero p {
    margin: 0 0 10px;
    color: #fb923c;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.hero-copy p:not(.hero-eyebrow) {
    max-width: 700px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
}

.detail-meta span,
.tag-list span {
    color: #7c2d12;
    background: #ffedd5;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #ea580c;
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    background: #c2410c;
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #f97316;
}

.section,
.hot-band,
.detail-layout,
.page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 58px 0;
}

.intro-section {
    padding-bottom: 22px;
}

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

.center-heading {
    display: block;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 24px;
}

.block-heading {
    display: block;
}

.section-heading h2,
.page-hero h1,
.side-card h2,
.text-section h2,
.footer-inner h2,
.rank-panel h2,
.link-cloud h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    font-weight: 900;
}

.section-heading span,
.page-hero span {
    display: block;
    color: #4b5563;
    line-height: 1.8;
}

.section-heading a {
    color: #ea580c;
    font-weight: 800;
    white-space: nowrap;
}

.browse-tools {
    display: grid;
    gap: 14px;
    margin: 24px 0 30px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.search-box {
    display: grid;
    gap: 8px;
    color: #7c2d12;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    color: #111827;
    background: #fff7ed;
}

.search-box input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #7c2d12;
    background: #ffedd5;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: #ea580c;
}

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

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

.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(234, 88, 12, 0.18);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: #f97316;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.card-content {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-content strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: #ea580c;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-band {
    width: 100%;
    max-width: none;
    padding: 54px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

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

.compact-card {
    min-width: 250px;
    scroll-snap-align: start;
}

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

.category-card,
.category-overview-card,
.rank-panel,
.side-card,
.detail-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card,
.category-overview-card {
    display: grid;
    gap: 10px;
    min-height: 160px;
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(234, 88, 12, 0.15);
}

.category-card span,
.category-overview-card span {
    color: #ea580c;
    font-size: 20px;
    font-weight: 900;
}

.category-card strong,
.category-overview-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
}

.category-overview-card strong {
    color: #ea580c;
}

.highlight {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.highlight span,
.highlight strong,
.highlight p {
    color: #ffffff;
}

.ranking-split {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 28px;
    align-items: start;
}

.ranking-list,
.related-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.mini-card img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: #1f2937;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: #111827;
    font-style: normal;
    font-weight: 900;
}

.mini-card em {
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

.rank-panel {
    position: sticky;
    top: 90px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.rank-panel p {
    color: #4b5563;
    line-height: 1.85;
}

.page-main {
    padding: 46px 0 70px;
}

.page-hero {
    overflow: hidden;
    border-radius: 28px;
    margin-bottom: 36px;
    padding: clamp(36px, 7vw, 70px);
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.45), transparent 26%), linear-gradient(135deg, #111827, #7c2d12 55%, #dc2626);
    box-shadow: 0 26px 70px rgba(124, 45, 18, 0.22);
}

.page-hero h1,
.page-hero span {
    color: #ffffff;
}

.page-hero span {
    max-width: 820px;
}

.ranking-hero {
    display: grid;
    gap: 26px;
}

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

.rank-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    isolation: isolate;
}

.rank-hero-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.12));
}

.rank-hero-card span {
    color: #fb923c;
    font-weight: 900;
}

.rank-hero-card strong {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 900;
}

.rank-hero-card em {
    color: #e5e7eb;
    font-style: normal;
    line-height: 1.6;
}

.link-cloud {
    padding-top: 10px;
}

.link-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.link-cloud a {
    border-radius: 999px;
    padding: 9px 14px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
}

.empty-state {
    display: none;
    margin-top: 24px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
}

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

.detail-page {
    background: #f3f4f6;
}

.player-band {
    background: #000000;
}

.player-shell {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

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

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

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

.js-player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    background: #ea580c;
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
    font-size: 40px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 38px 0 70px;
}

.detail-card,
.side-card {
    padding: 28px;
}

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

.breadcrumb a {
    color: #ea580c;
    font-weight: 800;
}

.detail-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.detail-head img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #7c2d12);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.detail-head h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.18;
    font-weight: 900;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

.text-section {
    margin-top: 34px;
}

.text-section h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.text-section p {
    color: #374151;
    font-size: 16px;
    line-height: 2;
}

.side-card {
    position: sticky;
    top: 90px;
    align-self: start;
}

.side-card .mini-card {
    grid-template-columns: 82px 1fr;
}

.side-card .mini-card .mini-rank {
    display: none;
}

.side-card .mini-card img {
    width: 82px;
    height: 58px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

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

.footer-inner p {
    max-width: 410px;
    line-height: 1.85;
}

.footer-inner h2 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 18px;
}

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

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

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

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

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

    .rank-panel,
    .side-card {
        position: static;
    }
}

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

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

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 560px;
    }

    .hero-copy {
        bottom: 60px;
    }

    .hero-copy p:not(.hero-eyebrow) {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .detail-head {
        display: grid;
    }

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

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

    .detail-head img {
        max-width: 260px;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .large-grid,
    .category-grid,
    .category-overview-grid,
    .rank-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-tags,
    .hero-actions {
        gap: 8px;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .mini-card {
        grid-template-columns: auto 74px 1fr;
    }

    .mini-card img {
        width: 74px;
        height: 54px;
    }
}
