:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --red: #dc2626;
    --yellow: #facc15;
    --blue: #2563eb;
    --cyan: #0891b2;
    --green: #059669;
    --bg: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --footer: #111827;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 20px 45px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--red));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-name {
    font-size: 22px;
    color: #111827;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: #fff7ed;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--primary);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--primary), var(--red));
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 54px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 128px;
    opacity: 0;
    transform: translateX(34px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 72px 0 auto 0;
    height: 660px;
    opacity: 0.16;
    pointer-events: none;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.2);
    transform: scale(1.06);
}

.hero-backdrop::after,
.hero-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.24), transparent 34%), linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.primary-button {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 82px;
    z-index: 5;
    display: flex;
    width: min(760px, calc(100% - 32px));
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-strong);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #111827;
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
}

.stat-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 48px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-strip a {
    display: grid;
    place-items: center;
    min-height: 112px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-strip a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.stat-strip strong {
    color: var(--primary);
    font-size: 30px;
}

.stat-strip span {
    color: var(--muted);
    font-weight: 700;
}

.content-section,
.category-band,
.latest-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.category-band,
.latest-band {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
}

.category-band {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.latest-band {
    background: linear-gradient(135deg, var(--green), #10b981);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.section-heading a {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 800;
}

.light-heading,
.light-heading p,
.light-heading a {
    color: #ffffff;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fca5a5);
}

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

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

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.92);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h2 {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-tags span {
    background: #f3f4f6;
    color: #475569;
}

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

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

.category-tile {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease;
}

.content-section .category-tile {
    background: #ffffff;
    border-color: var(--line);
}

.category-tile:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}

.category-tile > a {
    display: block;
    padding: 24px;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--red));
    color: #ffffff;
}

.category-tile h2 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: inherit;
    opacity: 0.78;
}

.category-band .category-tile,
.category-band .category-tile p,
.category-band .category-tile h2 {
    color: #ffffff;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 0 24px 24px;
}

.category-samples a {
    overflow: hidden;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-band .category-samples a {
    color: #fde68a;
}

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

.ranking-item {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.latest-band .ranking-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ranking-link {
    display: grid;
    grid-template-columns: 64px 120px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff7ed;
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
}

.ranking-link img {
    width: 120px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fca5a5);
}

.ranking-content {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ranking-content strong,
.ranking-content em,
.ranking-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-content strong {
    font-size: 18px;
}

.ranking-content em {
    color: var(--muted);
    font-style: normal;
}

.ranking-content small {
    color: var(--muted);
}

.latest-band .ranking-content,
.latest-band .ranking-content em,
.latest-band .ranking-content small,
.latest-band .ranking-score {
    color: #ffffff;
}

.ranking-score {
    color: var(--primary);
    font-weight: 900;
    font-size: 20px;
    text-align: right;
}

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

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.blue-hero {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.dark-hero {
    background: linear-gradient(135deg, #111827, #374151);
}

.compact-hero > div {
    padding: 54px 0;
}

.filter-panel {
    margin-bottom: 28px;
    border-radius: 20px;
    background: #ffffff;
    padding: 20px;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
    gap: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.search-box span {
    color: var(--muted);
    font-size: 22px;
}

.search-box input,
.filter-grid select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    outline: 0;
    background: #f8fafc;
}

.search-box input {
    min-height: auto;
    border: 0;
    background: transparent;
}

.filter-grid select {
    padding: 0 12px;
}

.empty-result {
    display: none;
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

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

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 48px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #ffffff;
    padding: 36px;
    box-shadow: var(--shadow-strong);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fca5a5);
}

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

.detail-one-line {
    margin: 0 0 22px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
}

.detail-meta div {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

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

.player-heading {
    margin-bottom: 18px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.34);
    font-size: 32px;
}

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

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.detail-copy {
    display: grid;
    gap: 18px;
    padding-top: 46px;
    padding-bottom: 32px;
}

.detail-copy h2 {
    margin: 0;
    font-size: 28px;
}

.detail-copy p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card h2 {
    min-height: 0;
    font-size: 16px;
}

.site-footer {
    margin-top: 40px;
    background: var(--footer);
    color: #cbd5e1;
}

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

.footer-logo .brand-name {
    color: #ffffff;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
}

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

.footer-links h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    text-align: center;
    color: #94a3b8;
}

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

    .hero-track {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 64px;
    }

    .hero-poster {
        width: min(320px, 78vw);
        justify-self: center;
    }

    .stat-strip,
    .detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

    .menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 18px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        border-radius: 12px;
    }

    .hero-track {
        min-height: 740px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-search {
        bottom: 76px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 44px;
    }

    .stat-strip,
    .movie-grid,
    .category-grid,
    .large-category-grid,
    .filter-grid,
    .detail-meta {
        grid-template-columns: 1fr;
    }

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

    .ranking-link {
        grid-template-columns: 44px 88px minmax(0, 1fr);
    }

    .ranking-link img {
        width: 88px;
        height: 60px;
    }

    .ranking-score {
        display: none;
    }

    .detail-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .play-overlay span {
        width: 70px;
        height: 70px;
    }
}
