:root {
    --orange: #ea580c;
    --red: #dc2626;
    --dark: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3f4f6;
    --shadow: 0 22px 60px rgba(127, 29, 29, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #fff7ed 0, #ffffff 360px, #f9fafb 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c, #dc2626, #c2410c);
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand {
    color: #ffffff;
    font-size: 24px;
    white-space: nowrap;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.header-search {
    position: relative;
    width: 250px;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 14px;
    padding: 11px 44px 11px 14px;
    outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 9px 12px;
}

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

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    padding-right: 14px;
}

.mobile-search button,
.big-search button,
.search-strip button {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #dc2626;
    font-weight: 800;
    padding: 0 18px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: linear-gradient(120deg, #9a3412, #7f1d1d);
}

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

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

.hero-backdrop,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.42));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 54px 0 82px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fed7aa;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags,
.detail-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.card-tags .tag {
    background: #fff7ed;
    color: #ea580c;
    box-shadow: none;
    padding: 5px 9px;
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    min-height: 50px;
    padding: 0 24px;
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.movie-card:hover,
.category-card:hover,
.podium-card:hover {
    transform: translateY(-4px);
}

.ghost-button {
    min-height: 50px;
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster img,
.detail-poster img,
.podium-card img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    background: #ffffff;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

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

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.search-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -44px auto 24px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-strip strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.search-strip span {
    color: var(--muted);
}

.search-strip form,
.big-search {
    display: flex;
    gap: 10px;
}

.search-strip input,
.big-search input,
.local-filter input {
    color: var(--dark);
    background: #f9fafb;
    border: 1px solid #fed7aa;
}

.search-strip input {
    flex: 1;
    border-radius: 16px;
    padding: 13px 16px;
    outline: none;
}

.search-strip button,
.big-search button {
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
}

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

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

.gradient-section {
    margin: 24px 0;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.eyebrow {
    color: #ea580c;
}

.section-more,
.text-link {
    color: #ea580c;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
    transition: 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 54px rgba(127, 29, 29, 0.16);
}

.cover-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

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

.movie-card:hover .cover-frame img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55));
    opacity: 0.78;
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

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

.card-title a:hover,
.rank-title:hover {
    color: #ea580c;
}

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

.compact-card .card-desc {
    min-height: auto;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.16);
    transition: 0.22s ease;
}

.category-card strong,
.category-card em,
.category-card span:last-child {
    position: relative;
    z-index: 1;
    display: block;
}

.category-card strong {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card span:last-child {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
}

.category-glow {
    position: absolute;
    right: -45px;
    top: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.page-hero,
.detail-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(120deg, #9a3412, #991b1b);
    overflow: hidden;
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0;
    position: relative;
    z-index: 1;
}

.slim-hero > div {
    padding: 72px 0;
}

.category-hero,
.search-hero,
.ranking-hero {
    background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 24%), linear-gradient(120deg, #ea580c, #dc2626, #7f1d1d);
}

.filter-chips,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.filter-chips button,
.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #7f1d1d;
    background: #ffffff;
    font-weight: 800;
}

.filter-chips button.active,
.filter-row button.active {
    color: #ffffff;
    background: #111827;
}

.filter-toolbar {
    display: grid;
    gap: 16px;
    padding: 22px;
    margin-bottom: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.filter-row {
    align-items: center;
    margin-top: 0;
}

.filter-row strong {
    min-width: 48px;
}

.local-filter {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.local-filter input {
    color: var(--dark);
    padding: 12px 14px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border-radius: 26px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: #fff7ed;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.podium-card {
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
    transition: 0.22s ease;
}

.podium-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    background: #fff7ed;
}

.podium-card span {
    display: inline-flex;
    margin-top: 16px;
    color: #ea580c;
    font-weight: 950;
}

.podium-card h2 {
    margin: 8px 0;
}

.podium-card p {
    color: var(--muted);
    line-height: 1.7;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 90px 120px 70px;
    gap: 12px;
    align-items: center;
    padding: 15px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.rank-num {
    color: #dc2626;
    font-weight: 950;
    font-size: 20px;
}

.rank-title {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hero {
    min-height: 560px;
}

.detail-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.12);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 20px;
}

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

.player-layout {
    padding-top: 34px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030712;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.78));
    z-index: 2;
}

.play-button span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #dc2626;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.play-button strong {
    font-size: 22px;
}

.player-card.is-playing .play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.article-panel,
.info-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
    padding: 28px;
}

.article-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-panel p {
    color: #374151;
    line-height: 2;
    font-size: 17px;
    margin: 0 0 24px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.info-panel dt {
    color: #9ca3af;
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    color: #111827;
}

.big-search {
    margin-top: 28px;
    max-width: 720px;
}

.big-search input {
    color: #111827;
    padding: 15px 18px;
}

.search-status {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    color: #7f1d1d;
    background: #ffedd5;
    font-weight: 800;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

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

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

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    color: #9ca3af;
    margin: 9px 0;
}

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

.is-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-content,
    .detail-wrap,
    .detail-content,
    .search-strip,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

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

@media (max-width: 720px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        height: 62px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 740px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

    .hero-actions,
    .search-strip form,
    .big-search,
    .mobile-search {
        flex-direction: column;
    }

    .movie-grid,
    .small-grid,
    .rank-grid,
    .podium-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-row span:nth-child(3),
    .rank-row span:nth-child(4),
    .rank-row a:last-child {
        display: none;
    }

    .content-section,
    .mini-category,
    .search-strip,
    .page-hero > div,
    .detail-wrap {
        width: min(100% - 24px, 1180px);
    }

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

    .detail-wrap {
        padding: 40px 0;
    }

    .player-card {
        border-radius: 18px;
    }
}
