* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-strong: #ffedd5;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.86);
    --text: #431407;
    --muted: #9a3412;
    --primary: #f59e0b;
    --primary-strong: #ea580c;
    --ring: rgba(245, 158, 11, 0.28);
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 34rem),
        linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #ffedd5 100%);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(255, 251, 235, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.26);
    font-size: 15px;
}

.brand-text {
    background: linear-gradient(135deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #78350f;
    font-weight: 700;
    padding: 8px 2px;
    transition: color 0.2s ease;
}

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

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.nav-search input,
.big-search input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
}

.nav-search input {
    width: 230px;
    padding: 9px 14px;
}

.nav-search button,
.big-search button,
.filter-bar button,
.chip-row button {
    border: 0;
    cursor: pointer;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-search button {
    padding: 9px 16px;
}

.nav-search button:hover,
.big-search button:hover,
.filter-bar button:hover,
.chip-row button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.26);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.26);
}

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

.hero {
    position: relative;
    height: min(760px, calc(100vh - 72px));
    min-height: 620px;
    overflow: hidden;
    background: #431407;
}

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

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

.hero-bg,
.hero-bg img,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img,
.detail-bg {
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.02);
}

.hero-bg::after,
.poster-frame::before,
.category-tile::before,
.category-overview-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 20, 7, 0.94) 0%, rgba(67, 20, 7, 0.66) 48%, rgba(67, 20, 7, 0.16) 100%),
        linear-gradient(0deg, rgba(67, 20, 7, 0.85) 0%, transparent 45%);
}

.hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.hero-kicker {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-desc,
.detail-copy p,
.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.hero-tags,
.detail-meta,
.tag-row,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.chip-row button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: #fff7ed;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.btn.ghost {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
}

.hero-card span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    cursor: pointer;
    color: #fff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    font-size: 36px;
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.active {
    background: #fbbf24;
}

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

.search-band {
    padding-top: 32px;
    padding-bottom: 18px;
}

.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.big-search input {
    min-height: 54px;
    padding: 0 22px;
    font-size: 17px;
}

.big-search button {
    padding: 0 30px;
    font-weight: 900;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.section-heading h2 {
    margin: 0;
    color: #7c2d12;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-heading.compact h2 {
    font-size: 28px;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(124, 45, 18, 0.2);
}

.poster-frame {
    position: relative;
    height: 220px;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.78), transparent 42%),
        linear-gradient(135deg, #451a03, #f59e0b);
}

.poster-frame::before {
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-cover,
.poster-frame img,
.category-tile img,
.category-overview-card img,
.ranking-row img,
.small-thumb img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover img,
.small-movie:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: #fff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 800;
}

.card-content {
    padding: 18px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: #7c2d12;
    font-size: 19px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    min-height: auto;
    color: #9a3412;
    background: #ffedd5;
    border: 0;
    font-size: 12px;
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 330px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x proximity;
}

.rail .movie-card {
    scroll-snap-align: start;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.ranking-panel,
.detail-aside,
.article-block,
.player-section,
.category-overview-card,
.filter-bar {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.1);
    backdrop-filter: blur(16px);
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.ranking-panel ol,
.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li + li {
    border-top: 1px solid #ffedd5;
}

.ranking-panel a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
}

.rank-no {
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    font-weight: 900;
    text-align: center;
    padding: 8px 0;
}

.ranking-panel strong,
.ranking-row strong {
    display: block;
    color: #7c2d12;
}

.ranking-panel em,
.ranking-row em,
.small-info em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary-strong);
    font-weight: 900;
}

.category-section,
.glow-section {
    position: relative;
    width: min(1220px, calc(100% - 20px));
    padding: 54px 20px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.82), rgba(255, 237, 213, 0.86));
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg, #451a03, #f59e0b);
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.18);
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.58;
}

.category-tile::before {
    z-index: 1;
    background: linear-gradient(180deg, transparent 18%, rgba(67, 20, 7, 0.9));
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
}

.large-card .poster-frame {
    height: 360px;
}

.large-card h3 {
    font-size: 24px;
}

.horizontal a {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.horizontal .poster-frame {
    height: 100%;
    min-height: 160px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    color: #fff;
    background: linear-gradient(135deg, #431407, #9a3412);
}

.compact-hero {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 80px 16px;
}

.compact-hero > div,
.category-hero > div {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
}

.category-hero {
    display: grid;
    place-items: center;
    min-height: 500px;
    padding: 90px 16px;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.category-hero::after,
.compact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.3), transparent 28rem),
        linear-gradient(180deg, rgba(67, 20, 7, 0.65), rgba(67, 20, 7, 0.92));
}

.category-hero .btn {
    margin-top: 20px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px;
}

.filter-bar input {
    min-height: 48px;
    padding: 0 16px;
}

.filter-bar button,
.chip-row button {
    padding: 0 20px;
    font-weight: 900;
}

.chip-row {
    margin-bottom: 24px;
}

.chip-row button {
    min-height: 36px;
    color: #9a3412;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: none;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    overflow: hidden;
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 240px;
}

.category-overview-card figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #f59e0b);
}

.category-overview-card figure::after {
    background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.86));
}

.category-overview-card div {
    padding: 28px;
}

.category-overview-card p {
    margin: 0 0 10px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 0 0 12px;
    color: #7c2d12;
    font-size: 34px;
}

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

.sample-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 0 !important;
}

.sample-line span {
    padding: 6px 10px;
    color: #9a3412;
    border-radius: 999px;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.ranking-row a {
    display: grid;
    grid-template-columns: 58px 74px 1fr;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
}

.ranking-row img {
    width: 74px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #451a03);
}

.search-title {
    margin: 28px 0 22px;
    color: #7c2d12;
    font-size: 22px;
    font-weight: 900;
}

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

.detail-hero-inner {
    display: block;
    padding: 36px 0 70px;
}

.breadcrumb {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: end;
    min-height: 520px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, #451a03, #f59e0b);
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.42);
}

.detail-copy {
    max-width: 780px;
    color: #fff;
}

.detail-copy h1 {
    margin-bottom: 20px;
}

.detail-copy p {
    max-width: 760px;
}

.detail-meta {
    margin: 22px 0;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-content {
    display: grid;
    gap: 24px;
}

.player-section,
.article-block,
.detail-aside {
    padding: 24px;
}

.player-section h2,
.article-block h2,
.detail-aside h2 {
    margin: 0 0 18px;
    color: #7c2d12;
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: var(--muted);
    line-height: 2;
    font-size: 17px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    font-size: 32px;
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.detail-aside {
    position: sticky;
    top: 94px;
}

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

.small-movie {
    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 12px;
    align-items: center;
}

.small-thumb {
    overflow: hidden;
    width: 106px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(135deg, #451a03, #f59e0b);
}

.small-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #7c2d12;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

[data-filter-card].is-hidden {
    display: none;
}

.site-footer {
    margin-top: 56px;
    color: #7c2d12;
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.45), #ffedd5);
    border-top: 1px solid rgba(245, 158, 11, 0.18);
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: #7c2d12;
    font-size: 20px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid a:hover {
    color: var(--primary-strong);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    color: var(--muted);
    font-size: 14px;
}

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

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

    .ranking-panel,
    .detail-aside {
        position: static;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

@media (max-width: 860px) {
    .site-nav {
        min-height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        display: none;
        padding: 16px;
        border-top: 1px solid rgba(245, 158, 11, 0.18);
        background: rgba(255, 251, 235, 0.96);
        box-shadow: 0 18px 40px rgba(124, 45, 18, 0.14);
    }

    .nav-panel.open {
        display: grid;
        gap: 14px;
    }

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

    .nav-search,
    .nav-search input {
        width: 100%;
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 34px 0 76px;
    }

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

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .hero-arrow {
        display: none;
    }

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

    .category-overview-card a,
    .horizontal a,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card figure {
        min-height: 220px;
    }

    .category-overview-card figure::after {
        background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.92));
    }

    .detail-grid {
        align-items: start;
        min-height: auto;
        padding-top: 46px;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }

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

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

    .content-wrap {
        width: min(100% - 20px, 1180px);
        padding: 38px 0;
    }

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

    .poster-frame {
        height: 245px;
    }

    .big-search,
    .filter-bar {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .big-search button,
    .filter-bar button {
        min-height: 48px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-actions {
        display: grid;
    }

    .category-section,
    .glow-section {
        border-radius: 24px;
    }

    .ranking-row a {
        grid-template-columns: 48px 62px 1fr;
        gap: 10px;
    }

    .ranking-row img {
        width: 62px;
        height: 54px;
    }

    .small-movie {
        grid-template-columns: 94px 1fr;
    }

    .small-thumb {
        width: 94px;
        height: 68px;
    }

    .player-section,
    .article-block,
    .detail-aside {
        padding: 18px;
        border-radius: 20px;
    }

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