:root {
    --lamp-dark: #0f0f0f;
    --lamp-charcoal: #1a1a1a;
    --lamp-panel: #211c19;
    --lamp-brown: #4e342e;
    --lamp-warm: #ffa726;
    --lamp-gold: #ffb74d;
    --lamp-beige: #f8ead8;
    --lamp-muted: rgba(248, 234, 216, 0.68);
    --lamp-soft: rgba(255, 167, 38, 0.12);
    --shadow-warm: 0 18px 60px rgba(255, 167, 38, 0.18);
    --shadow-deep: 0 20px 70px rgba(0, 0, 0, 0.48);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--lamp-beige);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 167, 38, 0.14), transparent 32rem),
        radial-gradient(circle at 90% 8%, rgba(255, 183, 77, 0.10), transparent 28rem),
        linear-gradient(180deg, #120f0d 0%, var(--lamp-dark) 42%, #0a0a0a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(78, 52, 46, 0.58);
    background: rgba(26, 26, 26, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: 0 0 28px rgba(255, 167, 38, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong,
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: rgba(248, 234, 216, 0.62);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: rgba(248, 234, 216, 0.74);
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--lamp-gold);
    background: rgba(255, 167, 38, 0.12);
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--lamp-beige);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(78, 52, 46, 0.36);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-bottom: 1px solid rgba(78, 52, 46, 0.32);
    background: #050505;
}

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

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

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

.hero-bg.image-failed,
.poster img.image-failed,
.hero-poster img.image-failed,
.detail-cover img.image-failed,
.category-tile img.image-failed {
    opacity: 0;
}

.hero-dim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 15, 15, 0.98) 0%, rgba(15, 15, 15, 0.72) 40%, rgba(15, 15, 15, 0.48) 100%),
        linear-gradient(0deg, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.12) 52%, rgba(15, 15, 15, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 64px;
    padding: 64px 0 86px;
}

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

.hero-kicker,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--lamp-gold);
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #fff7eb 0%, var(--lamp-warm) 56%, var(--lamp-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(248, 234, 216, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 167, 38, 0.28);
    border-radius: 999px;
    color: #ffe0b2;
    background: rgba(255, 167, 38, 0.12);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-button {
    padding: 0 24px;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
}

.ghost-button,
.section-more {
    padding: 0 18px;
    border: 1px solid rgba(255, 183, 77, 0.28);
    color: var(--lamp-beige);
    background: rgba(255, 255, 255, 0.06);
}

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

.ghost-button:hover,
.section-more:hover {
    border-color: rgba(255, 183, 77, 0.58);
    background: rgba(255, 167, 38, 0.13);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 30% 12%, rgba(255, 167, 38, 0.28), transparent 12rem),
        linear-gradient(150deg, #302018, #0a0a0a 76%);
    box-shadow: var(--shadow-deep);
}

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

.hero-poster::after,
.poster::after,
.detail-cover::after,
.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 56%);
    pointer-events: none;
}

.hero-poster span,
.detail-cover span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 9px 14px;
    border-radius: 999px;
    color: #1a1a1a;
    background: var(--lamp-warm);
    font-size: 14px;
    font-weight: 850;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 234, 216, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--lamp-warm);
}

.search-hero-card,
.content-section,
.page-main,
.detail-main section {
    position: relative;
}

.search-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    margin-top: -44px;
    padding: 28px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.92);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
}

.search-intro span {
    color: var(--lamp-gold);
    font-size: 13px;
    font-weight: 800;
}

.search-intro h2 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.16;
}

.search-intro p {
    margin: 0;
    color: var(--lamp-muted);
    line-height: 1.8;
}

.home-search,
.search-box {
    display: grid;
    gap: 10px;
}

.home-search span,
.search-box span {
    color: rgba(248, 234, 216, 0.7);
    font-size: 13px;
    font-weight: 750;
}

.home-search input,
.search-box input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 18px;
    outline: none;
    color: var(--lamp-beige);
    background: rgba(0, 0, 0, 0.34);
}

.home-search input:focus,
.search-box input:focus {
    border-color: rgba(255, 183, 77, 0.58);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.12);
}

.quick-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 9px 13px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 999px;
    color: rgba(248, 234, 216, 0.78);
    background: rgba(255, 255, 255, 0.05);
}

.quick-links a:hover {
    color: var(--lamp-gold);
    background: rgba(255, 167, 38, 0.12);
}

.hidden-search-grid {
    grid-column: 1 / -1;
    display: none;
}

.has-search .hidden-search-grid {
    display: block;
}

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

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

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

.section-heading p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--lamp-muted);
    line-height: 1.78;
}

.movie-grid,
.rank-grid,
.mini-grid {
    display: grid;
    gap: 20px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 183, 77, 0.13);
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.76);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 183, 77, 0.38);
    box-shadow: var(--shadow-deep);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 167, 38, 0.28), transparent 8rem),
        linear-gradient(145deg, #2e211b, #090909);
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 48%);
}

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

.play-chip {
    right: 12px;
    bottom: 12px;
    min-height: 30px;
    padding: 0 11px;
    color: #1a1a1a;
    background: var(--lamp-warm);
    font-size: 13px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    color: #fff7eb;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 183, 77, 0.45);
}

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

.movie-card-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h2 a:hover {
    color: var(--lamp-gold);
}

.meta-line,
.genre-line,
.card-summary {
    margin: 8px 0 0;
    color: rgba(248, 234, 216, 0.62);
    font-size: 13px;
    line-height: 1.65;
}

.genre-line {
    color: rgba(255, 183, 77, 0.78);
}

.card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}

.movie-card-compact .poster {
    aspect-ratio: 3 / 4;
    min-height: 154px;
}

.movie-card-compact .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-card-compact .movie-card-body h2 {
    font-size: 17px;
}

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 220px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid rgba(255, 183, 77, 0.16);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 30% 8%, rgba(255, 167, 38, 0.22), transparent 10rem),
        linear-gradient(145deg, #2b211d, #090909);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

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

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.5;
}

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

.category-tile strong {
    font-size: 24px;
}

.category-tile em {
    margin-top: 8px;
    color: rgba(248, 234, 216, 0.75);
    font-style: normal;
    line-height: 1.6;
}

.page-main {
    padding: 48px 0 70px;
}

.page-hero {
    overflow: hidden;
    margin-bottom: 32px;
    padding: 44px;
    border: 1px solid rgba(255, 183, 77, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 167, 38, 0.2), transparent 18rem),
        linear-gradient(135deg, rgba(33, 28, 25, 0.94), rgba(10, 10, 10, 0.92));
    box-shadow: var(--shadow-deep);
}

.simple-page-hero h1,
.category-page-hero h1 {
    font-size: clamp(34px, 5vw, 60px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    color: rgba(248, 234, 216, 0.62);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--lamp-gold);
}

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid rgba(255, 183, 77, 0.14);
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.72);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 183, 77, 0.16);
    border-radius: 999px;
    color: rgba(248, 234, 216, 0.76);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #1a1a1a;
    border-color: transparent;
    background: var(--lamp-warm);
}

.empty-result {
    display: none;
    grid-column: 1 / -1;
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 16px;
    color: rgba(248, 234, 216, 0.72);
    background: rgba(255, 255, 255, 0.05);
}

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

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

.category-overview-card {
    padding: 24px;
    border: 1px solid rgba(255, 183, 77, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.72);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

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

.category-overview-head p {
    margin: 8px 0 0;
    color: var(--lamp-muted);
}

.rank-list-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-main {
    padding-bottom: 72px;
}

.detail-hero {
    padding: 44px 0 28px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin-top: 26px;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 25% 8%, rgba(255, 167, 38, 0.25), transparent 10rem),
        linear-gradient(145deg, #302018, #090909);
    box-shadow: var(--shadow-deep);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 66px);
}

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

.detail-meta div {
    padding: 14px;
    border: 1px solid rgba(255, 183, 77, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.detail-meta dt {
    color: rgba(248, 234, 216, 0.56);
    font-size: 12px;
}

.detail-meta dd {
    margin: 5px 0 0;
    color: var(--lamp-beige);
    font-weight: 750;
}

.detail-meta a:hover {
    color: var(--lamp-gold);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow-deep);
    aspect-ratio: 16 / 9;
}

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--lamp-beige);
    background:
        radial-gradient(circle at center, rgba(255, 167, 38, 0.18), transparent 18rem),
        rgba(0, 0, 0, 0.38);
    cursor: pointer;
}

.play-trigger.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-trigger-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: 0 0 46px rgba(255, 167, 38, 0.42);
    font-size: 34px;
}

.play-trigger span:last-child {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.56);
    font-weight: 850;
}

.detail-text-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-top: 42px;
}

.text-card {
    padding: 28px;
    border: 1px solid rgba(255, 183, 77, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.72);
}

.text-card h2 {
    margin: 0 0 14px;
    color: var(--lamp-gold);
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: rgba(248, 234, 216, 0.78);
    line-height: 1.95;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(78, 52, 46, 0.5);
    background: rgba(10, 10, 10, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    padding: 42px 0;
}

.footer-about p,
.footer-links a {
    color: rgba(248, 234, 216, 0.66);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--lamp-gold);
    font-size: 18px;
}

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

.footer-links a:hover {
    color: var(--lamp-gold);
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 32px;
    }

    .detail-grid {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .rank-grid,
    .rank-list-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 24px, 1180px);
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .header-inner {
        height: 66px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 44px 0 78px;
    }

    .hero-poster {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        line-height: 1.06;
    }

    .search-hero-card {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 20px;
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-compact {
        grid-template-columns: 92px minmax(0, 1fr);
    }

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

    .movie-card-body h2 {
        font-size: 16px;
    }

    .card-summary {
        display: none;
    }

    .page-hero {
        padding: 26px;
    }

    .detail-grid,
    .detail-text-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 320px;
        min-height: 420px;
    }

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

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
