:root {
    --color-earth-900: #3f2d24;
    --color-earth-800: #5f402f;
    --color-earth-700: #8a5f3e;
    --color-earth-600: #a86d3c;
    --color-canyon-700: #a33f25;
    --color-canyon-600: #c9542d;
    --color-cream-50: #fbf7f0;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-400: #a8a29e;
    --color-stone-600: #57534e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --shadow-soft: 0 18px 45px rgba(63, 45, 36, 0.14);
    --shadow-card: 0 12px 28px rgba(41, 37, 36, 0.12);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-stone-900);
    background:
        radial-gradient(circle at top left, rgba(201, 84, 45, 0.12), transparent 32rem),
        linear-gradient(180deg, #fffaf3 0%, var(--color-stone-50) 48%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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;
    border-bottom: 1px solid rgba(231, 229, 228, 0.86);
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: max-content;
    font-weight: 900;
    color: var(--color-stone-800);
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-earth-700), var(--color-canyon-600));
    box-shadow: 0 12px 24px rgba(168, 109, 60, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    padding: 0.62rem 0.85rem;
    border-radius: 0.9rem;
    color: var(--color-stone-600);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-earth-700);
    background: rgba(138, 95, 62, 0.1);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 240px;
    border: 1px solid var(--color-stone-200);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(41, 37, 36, 0.05);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    padding: 0.72rem 0.95rem;
    border: 0;
    outline: 0;
    color: var(--color-stone-800);
    background: transparent;
}

.nav-search button {
    padding: 0.72rem 1rem;
    border: 0;
    color: #ffffff;
    background: var(--color-earth-700);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.9rem;
    color: var(--color-stone-800);
    background: var(--color-stone-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1.25rem;
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-nav {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.main-shell {
    min-height: 68vh;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
}

.section.compact {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-kicker {
    margin: 0 0 0.45rem;
    color: var(--color-earth-700);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-stone-900);
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.08;
}

.section-lead {
    max-width: 760px;
    margin: 0.72rem 0 0;
    color: var(--color-stone-600);
    font-size: 1.02rem;
    line-height: 1.85;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-earth-900), #292524 50%, #6f2f21);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 650px;
}

.hero-slide.is-active {
    display: block;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.08) contrast(1.06);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.18), transparent 18rem),
        linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(63, 45, 36, 0.72) 46%, rgba(111, 47, 33, 0.44) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
    align-items: center;
    gap: 3rem;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 5rem 1.25rem 5.6rem;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.48rem 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffe7d2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-title {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-desc {
    max-width: 720px;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.9vw, 1.24rem);
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.8rem;
    padding: 0.78rem 1.15rem;
    border: 0;
    border-radius: 0.95rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-earth-700), var(--color-canyon-600));
    box-shadow: 0 16px 28px rgba(201, 84, 45, 0.26);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--color-earth-800);
    background: #ffffff;
    border: 1px solid var(--color-stone-200);
    box-shadow: 0 12px 22px rgba(41, 37, 36, 0.08);
}

.hero-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-preview img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
}

.hero-preview-body {
    padding: 1rem;
}

.hero-preview-title {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 1.15rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

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

.hero-arrow {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 13.5rem;
    padding: 1.1rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.45rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(63, 45, 36, 0.92), rgba(163, 63, 37, 0.78));
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    transition: transform 0.28s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 11rem;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 0.48rem;
    font-size: 1.32rem;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.18rem;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.88);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(41, 37, 36, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(168, 109, 60, 0.42);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #3f2d24, #a33f25);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.poster-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(28, 25, 23, 0.62);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body {
    padding: 1rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-bottom: 0.6rem;
    color: var(--color-earth-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.card-title {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 0.55rem;
    overflow: hidden;
    color: var(--color-stone-900);
    font-size: 1.05rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 4.7em;
    margin: 0 0 0.85rem;
    overflow: hidden;
    color: var(--color-stone-600);
    font-size: 0.92rem;
    line-height: 1.58;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.tag {
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    color: var(--color-earth-700);
    background: rgba(138, 95, 62, 0.1);
    font-size: 0.76rem;
    font-weight: 800;
}

.card-action {
    display: inline-flex;
    align-items: center;
    margin-top: 0.9rem;
    color: var(--color-canyon-700);
    font-weight: 900;
}

.card-action::after {
    content: "›";
    margin-left: 0.35rem;
    font-size: 1.2em;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.35rem;
}

.rank-list {
    display: grid;
    gap: 0.7rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3.2rem 4.8rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(41, 37, 36, 0.06);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-earth-700), var(--color-canyon-600));
    font-weight: 900;
}

.rank-row img {
    width: 4.8rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.75rem;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-stone-600);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-earth-900), #2a211d 52%, #87361f);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 20rem);
}

.page-hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.6rem 1.25rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

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

.page-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-desc {
    max-width: 820px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.85;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.06);
}

.filter-bar input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 0.95rem;
    outline: 0;
    background: #ffffff;
}

.filter-bar input:focus {
    border-color: rgba(138, 95, 62, 0.52);
    box-shadow: 0 0 0 4px rgba(138, 95, 62, 0.11);
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--color-stone-200);
    border-radius: 1.2rem;
    color: var(--color-stone-600);
    background: #ffffff;
    text-align: center;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1c1917, var(--color-earth-900) 58%, #772e1f);
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(2px) saturate(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.64));
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.4rem 1.25rem;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.6rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.detail-desc {
    max-width: 880px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.15rem 0;
}

.detail-meta span {
    padding: 0.46rem 0.76rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.player-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #000000;
    box-shadow: 0 24px 64px rgba(28, 25, 23, 0.2);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 0;
    color: #ffffff;
    background: rgba(28, 25, 23, 0.46);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.play-orb {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-earth-700), var(--color-canyon-600));
    box-shadow: 0 18px 38px rgba(201, 84, 45, 0.34);
    font-size: 1.8rem;
}

.player-side {
    padding: 1.2rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(41, 37, 36, 0.08);
}

.player-side h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.player-side p {
    margin: 0;
    color: var(--color-stone-600);
    line-height: 1.85;
}

.article-box {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.article-panel {
    padding: 1.45rem;
    border: 1px solid var(--color-stone-200);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(41, 37, 36, 0.06);
}

.article-panel h2 {
    margin: 0 0 0.8rem;
    font-size: 1.35rem;
}

.article-panel p {
    margin: 0;
    color: var(--color-stone-700);
    line-height: 1.95;
}

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

.site-footer {
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--color-earth-900), var(--color-stone-900));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.4rem 1.25rem;
}

.footer-title {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-desc {
    max-width: 660px;
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-content: start;
    justify-content: end;
}

.footer-links a {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
}

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

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

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-inner,
    .detail-inner,
    .rank-layout,
    .player-wrap,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-preview {
        max-width: 360px;
    }

    .detail-poster {
        max-width: 280px;
    }

    .player-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: 64px;
    }

    .brand span:last-child {
        max-width: 10em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section {
        padding-top: 3.1rem;
        padding-bottom: 3.1rem;
    }

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

    .hero-slider,
    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 3.6rem;
        padding-bottom: 5rem;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.wide,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .card-body {
        padding: 0.82rem;
    }

    .card-desc {
        min-height: 3.1em;
        -webkit-line-clamp: 2;
    }

    .rank-row {
        grid-template-columns: 2.7rem 4.2rem minmax(0, 1fr);
        gap: 0.7rem;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .nav-wrap {
        padding: 0 0.9rem;
    }

    .mobile-panel,
    .section,
    .page-hero-inner,
    .detail-inner,
    .hero-inner,
    .footer-inner {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.wide,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-preview,
    .detail-poster {
        max-width: 100%;
    }

    .footer-links {
        justify-content: start;
    }
}
