:root {
    color-scheme: dark;
    --bg: #160a05;
    --bg-soft: #231006;
    --panel: rgba(45, 18, 8, 0.78);
    --panel-strong: rgba(63, 25, 10, 0.92);
    --line: rgba(255, 210, 128, 0.16);
    --text: #fff7e8;
    --muted: rgba(255, 236, 199, 0.72);
    --subtle: rgba(255, 236, 199, 0.54);
    --gold: #fbbf24;
    --gold-soft: #fcd34d;
    --orange: #f97316;
    --rose: #be123c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius: 24px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(190, 18, 60, 0.18), transparent 30rem),
        linear-gradient(180deg, #2a0f07 0%, #170905 42%, #100604 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.96), rgba(136, 19, 55, 0.96));
    border-bottom: 1px solid rgba(255, 214, 153, 0.16);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: var(--container);
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #6b2507;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 12px 30px rgba(251, 146, 60, 0.32);
}

.brand-text,
.footer-brand {
    font-size: 1.35rem;
    color: transparent;
    background: linear-gradient(90deg, #fef3c7, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link,
.mobile-nav-link {
    color: rgba(255, 237, 213, 0.82);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

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

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 28vw);
    padding: 4px;
    border: 1px solid rgba(255, 237, 213, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
}

.header-search input {
    width: 100%;
    min-width: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 237, 213, 0.58);
}

.header-search button,
.big-search button,
.primary-button {
    border: 0;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.3);
}

.header-search button {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-panel {
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel nav,
.mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-category-row {
    margin-top: 10px;
}

.mobile-category-row a {
    color: rgba(255, 237, 213, 0.82);
    padding: 7px 10px;
    border: 1px solid rgba(255, 237, 213, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 221, 160, 0.12);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #5f1a08, #1b0804 55%, #3b0615);
}

.hero-backdrop::before,
.detail-backdrop::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 237, 213, 0.16);
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    text-align: center;
    padding: 2rem;
}

.hero-backdrop img,
.detail-backdrop img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(2px) saturate(1.15);
    transform: scale(1.04);
}

.hero-backdrop::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(18, 7, 3, 0.94) 0%, rgba(18, 7, 3, 0.68) 45%, rgba(18, 7, 3, 0.36) 100%),
        linear-gradient(0deg, #170905 0%, rgba(23, 9, 5, 0.12) 58%, rgba(23, 9, 5, 0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: var(--container);
    min-height: 650px;
    margin: 0 auto;
    padding: 118px 440px 96px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-soft);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.08;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    font-weight: 950;
    text-wrap: balance;
}

.hero-summary,
.detail-one-line,
.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-tags span,
.detail-tags a {
    padding: 7px 12px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 0.78rem;
}

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

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

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

.ghost-button {
    color: #fff7e8;
    font-weight: 800;
    border: 1px solid rgba(255, 237, 213, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    position: absolute;
    z-index: 4;
    right: max(30px, calc((100vw - 1180px) / 2));
    bottom: 74px;
    width: min(330px, 24vw);
    transform: rotate(2deg);
}

.poster-shell {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(190, 18, 60, 0.2));
    border: 1px solid rgba(255, 237, 213, 0.14);
    box-shadow: var(--shadow);
}

.poster-shell::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    color: rgba(255, 237, 213, 0.62);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}

.poster-shell img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.poster-shell.poster-fallback img {
    display: none;
}

.hero-poster-shell {
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.54);
}

.hero-control {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(0, 0, 0, 0.38);
    transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.62);
    transform: translateY(-1px);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

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

.quick-search-panel {
    padding: 30px 0 8px;
}

.quick-search-panel .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: var(--shadow);
}

.big-search label,
.filter-search label {
    display: block;
    margin-bottom: 8px;
    color: #fde68a;
    font-weight: 900;
}

.big-search div {
    display: flex;
    gap: 10px;
}

.big-search input,
.filter-search input {
    width: 100%;
    color: #fff;
    border: 1px solid rgba(255, 237, 213, 0.16);
    border-radius: 16px;
    outline: 0;
    background: rgba(0, 0, 0, 0.22);
}

.big-search input {
    min-width: min(520px, 54vw);
    padding: 13px 16px;
}

.big-search button {
    padding: 0 22px;
    border-radius: 16px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 12px;
}

.quick-stats div {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 237, 213, 0.12);
    text-align: center;
}

.quick-stats strong {
    display: block;
    color: #fde68a;
    font-size: 1.5rem;
}

.quick-stats span {
    color: var(--muted);
    font-size: 0.82rem;
}

.content-section {
    padding: 56px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.section-action,
.text-link {
    color: #fde68a;
    font-weight: 900;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.text-panel,
.detail-side-card,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-tile {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(253, 230, 138, 0.34);
    background: var(--panel-strong);
}

.category-cover-stack {
    display: flex;
    height: 92px;
}

.category-cover-stack img {
    width: 62px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 237, 213, 0.14);
    margin-right: -18px;
    background: rgba(255, 255, 255, 0.08);
}

.category-tile h3,
.category-overview-card h2,
.movie-card h3 {
    margin: 0;
}

.category-tile p,
.category-overview-card span,
.movie-card p,
.text-panel p,
.detail-side-card dd {
    color: var(--muted);
}

.category-tile span {
    display: inline-flex;
    margin-top: 10px;
    color: #fde68a;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-poster-link {
    position: relative;
    display: block;
}

.movie-card .poster-shell {
    border-radius: 22px 22px 0 0;
    box-shadow: none;
    border: 0;
}

.movie-card:hover .poster-shell img {
    transform: scale(1.06);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 999px;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: #fff;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fef3c7, #fb923c);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--subtle);
    font-size: 0.76rem;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
}

.movie-card h3 {
    margin-top: 7px;
    color: #fff7e8;
    font-size: 1.02rem;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 8px 0 12px;
    overflow: hidden;
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.two-column-showcase {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 24px;
}

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

.ranking-list li + li {
    margin-top: 10px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
}

.ranking-list strong {
    color: #fde68a;
}

.ranking-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    color: #fb923c;
    font-style: normal;
    font-weight: 900;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.movie-card.mini .movie-card-body {
    padding: 10px;
}

.movie-card.mini p,
.movie-card.mini .tag-row {
    display: none;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 221, 160, 0.12);
}

.page-hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(120, 53, 15, 0.42), rgba(136, 19, 55, 0.26));
}

.compact-hero h1,
.category-hero h1 {
    max-width: 900px;
}

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

.category-overview-card {
    padding: 22px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-overview-head p {
    margin: 0 0 8px;
    color: #fde68a;
    font-weight: 900;
}

.category-overview-card ul {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--muted);
}

.category-overview-card li + li {
    margin-top: 6px;
}

.filter-panel {
    margin-top: 34px;
    padding: 20px;
}

.filter-search input {
    padding: 13px 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.filter-buttons button,
.source-button {
    color: #fde68a;
    font-weight: 800;
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 13px;
}

.filter-buttons button.active,
.source-button.active {
    color: #7c2d12;
    background: linear-gradient(135deg, #fef3c7, #fb923c);
}

.filter-count {
    margin: 14px 0 0;
    color: var(--muted);
}

.filter-count span {
    color: #fde68a;
    font-weight: 900;
}

.responsive-table {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 237, 213, 0.1);
    text-align: left;
}

.ranking-table th {
    color: #fde68a;
    background: rgba(0, 0, 0, 0.16);
}

.ranking-table td {
    color: var(--muted);
}

.ranking-table td:first-child,
.ranking-table td:last-child {
    color: #fb923c;
    font-weight: 900;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #5f1a08, #170905 60%, #3b0615);
}

.detail-layout {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: end;
    min-height: 560px;
    padding-top: 70px;
    padding-bottom: 58px;
}

.detail-poster .poster-shell {
    box-shadow: 0 32px 86px rgba(0, 0, 0, 0.56);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 237, 213, 0.72);
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 44px;
}

.video-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(253, 230, 138, 0.18);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at center, rgba(251, 191, 36, 0.18), transparent 34rem),
        #060302;
    box-shadow: var(--shadow);
}

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

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

.play-trigger span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #7c2d12;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #fef3c7, #fb923c);
    box-shadow: 0 20px 60px rgba(251, 146, 60, 0.36);
}

.video-stage.is-playing .play-trigger {
    display: none;
}

.source-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
}

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

.text-panel,
.detail-side-card {
    padding: 22px;
}

.text-panel h2,
.detail-side-card h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.text-panel p:last-child {
    margin-bottom: 0;
}

.detail-side-card dl {
    margin: 0;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 237, 213, 0.1);
}

.detail-side-card dt {
    color: #fde68a;
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 221, 160, 0.12);
    background: rgba(0, 0, 0, 0.24);
}

.footer-inner {
    width: var(--container);
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-about p,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

.footer-links h2 {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 1.05rem;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
}

.footer-links li {
    margin-bottom: 8px;
}

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

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 16px 0 28px;
    border-top: 1px solid rgba(255, 237, 213, 0.08);
    font-size: 0.9rem;
}

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

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .hero-content {
        padding-right: 330px;
    }

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

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

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

@media (max-width: 820px) {
    .header-inner {
        gap: 12px;
    }

    .main-nav {
        display: none;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 92px 0 260px;
    }

    .hero-poster {
        left: 50%;
        right: auto;
        bottom: 54px;
        width: 190px;
        transform: translateX(-50%) rotate(2deg);
    }

    .hero-control {
        display: none;
    }

    .quick-search-panel .container,
    .two-column-showcase,
    .footer-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .big-search div,
    .source-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .big-search input {
        min-width: 0;
    }

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

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .mini-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        align-items: start;
        padding-top: 44px;
    }

    .detail-poster {
        width: 210px;
    }
}

@media (max-width: 560px) {
    :root {
        --container: min(100vw - 22px, 1180px);
    }

    .brand-text {
        font-size: 1.08rem;
    }

    .hero-slider,
    .hero-content {
        min-height: 690px;
    }

    .page-hero {
        padding: 72px 0 52px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .mini-card-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .footer-links ul {
        columns: 1;
    }

    .detail-info h1,
    .hero-content h1,
    .page-hero h1 {
        font-size: clamp(2.15rem, 14vw, 3.2rem);
    }
}
