:root {
    color-scheme: light;
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1c1917;
    --muted: #78716c;
    --line: rgba(120, 113, 108, 0.18);
    --amber: #d97706;
    --amber-light: #f59e0b;
    --amber-dark: #92400e;
    --stone: #292524;
    --shadow: 0 22px 55px rgba(28, 25, 23, 0.12);
    --radius: 24px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0));
    transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

body.is-scrolled .site-header,
.site-header.menu-open {
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(var(--max), calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.36);
}

.brand-name {
    font-size: 1.24rem;
}

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

.nav-link {
    position: relative;
    font-size: 0.96rem;
    font-weight: 700;
    opacity: 0.88;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-light);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.live-search input,
.search-panel input {
    border: 1px solid rgba(255, 255, 255, 0.24);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.is-scrolled .header-search input,
.site-header.menu-open .header-search input,
.mobile-search input,
.live-search input,
.search-panel input {
    color: var(--text);
    border-color: var(--line);
    background: #ffffff;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.live-search input:focus,
.search-panel input:focus {
    border-color: rgba(217, 119, 6, 0.65);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
}

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

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.site-header.menu-open .mobile-panel {
    display: block;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-link,
.mobile-cats a {
    display: block;
    padding: 10px 0;
    font-weight: 800;
    border-bottom: 1px solid rgba(120, 113, 108, 0.12);
}

.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-top: 12px;
    color: var(--amber-dark);
}

.hero {
    position: relative;
    min-height: 760px;
    color: #ffffff;
    overflow: hidden;
    background: #1c1917;
}

.hero-stage {
    position: relative;
    min-height: 760px;
}

.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,
.detail-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.38)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.34), transparent 32%),
        linear-gradient(0deg, #1c1917 0%, rgba(28, 25, 23, 0.28) 42%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    min-height: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.48fr);
    align-items: center;
    gap: 60px;
    padding-top: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.eyebrow.dark {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(217, 119, 6, 0.16);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    color: rgba(255, 255, 255, 0.84);
}

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

.hero-tags {
    margin: 26px 0 0;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.1);
}

.tag-row span {
    color: var(--amber-dark);
    background: rgba(245, 158, 11, 0.12);
}

.hero-actions,
.detail-copy .primary-btn {
    margin-top: 30px;
}

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.ghost-btn {
    margin-left: 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.13);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover {
    transform: translateY(-3px);
}

.hero-poster,
.detail-cover {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

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

.hero-poster span,
.detail-cover span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    width: min(var(--max), calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dots button.active {
    width: 54px;
    opacity: 1;
    background: var(--amber-light);
}

.section-pad {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.alt-bg {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - var(--max)) / 2));
    padding-right: max(16px, calc((100% - var(--max)) / 2));
    background:
        radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
        #fff7ed;
}

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

.section-head.centered {
    max-width: 780px;
    margin: 0 auto 26px;
    text-align: center;
    align-items: center;
    flex-direction: column;
}

.section-head h2,
.ranking-copy h2,
.ranking-aside h2,
.watch-info h2,
.detail-article h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p,
.ranking-copy p,
.watch-info p,
.page-hero p,
.detail-copy p,
.detail-article p {
    color: var(--muted);
}

.section-more {
    color: var(--amber-dark);
    border: 1px solid rgba(217, 119, 6, 0.22);
    background: #ffffff;
}

.wide-search {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.wide-search input {
    color: var(--text);
    border-color: transparent;
    background: #fff7ed;
}

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

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

.category-tile {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, #292524, #78350f);
    box-shadow: var(--shadow);
}

.category-glow {
    position: absolute;
    inset: auto -60px -80px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.42);
    filter: blur(20px);
}

.tile-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.tile-posters img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.tile-copy {
    position: relative;
    z-index: 2;
}

.tile-copy span {
    color: #fef3c7;
    font-size: 0.82rem;
    font-weight: 900;
}

.tile-copy h2 {
    margin: 4px 0 8px;
    font-size: 1.45rem;
}

.tile-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(120, 113, 108, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 20px 45px rgba(28, 25, 23, 0.14);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #292524;
}

.poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.year-badge,
.rank-mark,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.year-badge {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    font-size: 0.75rem;
    color: #ffffff;
    background: rgba(28, 25, 23, 0.72);
    backdrop-filter: blur(8px);
}

.rank-mark {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
}

.play-badge {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.9);
}

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

.movie-meta {
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--amber-dark);
}

.movie-card h3 {
    min-height: 3.1em;
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.3;
}

.movie-card p {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.ranking-strip {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    width: min(var(--max), calc(100% - 32px));
    margin: 44px auto;
    padding: 44px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.34), transparent 34%),
        linear-gradient(135deg, #292524, #111827);
    box-shadow: var(--shadow);
}

.ranking-copy p {
    color: rgba(255, 255, 255, 0.72);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 44px 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: rgba(245, 158, 11, 0.16);
}

.ranking-row img {
    width: 48px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-no {
    color: #fbbf24;
    font-weight: 950;
}

.ranking-title {
    font-weight: 900;
}

.ranking-meta {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

.page-main {
    padding-top: 72px;
}

.page-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 380px;
    padding: 82px max(16px, calc((100% - var(--max)) / 2));
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.34), transparent 34%),
        linear-gradient(135deg, #292524, #111827 76%);
    overflow: hidden;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
}

.filter-panel,
.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
}

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

.filter-chip {
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    padding: 9px 13px;
    cursor: pointer;
    color: var(--amber-dark);
    background: #fff7ed;
}

.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
}

.live-search {
    display: grid;
    min-width: 280px;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--muted);
}

.search-panel {
    justify-content: flex-start;
}

.search-panel input {
    width: min(520px, 100%);
}

.ranking-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-aside {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #292524, #111827);
    box-shadow: var(--shadow);
}

.detail-main {
    background: #fffaf0;
}

.detail-hero {
    position: relative;
    min-height: 670px;
    color: #ffffff;
    overflow: hidden;
    background: #1c1917;
}

.detail-bg {
    background-image:
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.76), rgba(28, 25, 23, 0.34)),
        var(--detail-image);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 112px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumb a {
    color: #fef3c7;
}

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

.detail-copy h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 5.5vw, 5rem);
}

.detail-copy p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
}

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

.detail-meta div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.detail-meta dd {
    margin: 2px 0 0;
    font-weight: 900;
}

.watch-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0c0a09;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.14), rgba(0, 0, 0, 0.5));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-large {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
    box-shadow: 0 18px 44px rgba(217, 119, 6, 0.42);
}

.player-start strong {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.66);
}

.watch-info {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
}

.watch-info a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--amber-dark);
    font-weight: 900;
}

.detail-article article {
    max-width: 940px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.08);
}

.detail-article h2 + p {
    margin-top: 10px;
}

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

.site-footer {
    color: #ffffff;
    background: #1c1917;
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.62);
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-content: start;
}

.footer-inner nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.08);
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 34px;
    }
}

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

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

    .hero,
    .hero-stage {
        min-height: 820px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
    }

    .hero-poster {
        width: min(260px, 68vw);
        transform: rotate(0deg);
    }

    .ranking-strip,
    .watch-section,
    .ranking-page-layout,
    .footer-inner,
    .detail-head-grid {
        grid-template-columns: 1fr;
    }

    .ranking-aside {
        position: static;
    }

    .detail-cover {
        width: min(280px, 72vw);
        transform: rotate(0deg);
    }

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

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

    .live-search {
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        width: min(100% - 24px, var(--max));
        height: 64px;
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .hero,
    .hero-stage {
        min-height: 780px;
    }

    .hero-content {
        width: min(100% - 24px, var(--max));
        padding-top: 64px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.2rem, 13vw, 3.4rem);
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .ghost-btn {
        margin-left: 0;
    }

    .section-pad {
        width: min(100% - 24px, var(--max));
        padding: 52px 0;
    }

    .alt-bg {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .wide-search,
    .mobile-search {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

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

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

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

    .ranking-strip {
        width: min(100% - 24px, var(--max));
        padding: 26px;
    }

    .ranking-row {
        grid-template-columns: 36px 44px 1fr;
    }

    .ranking-meta {
        display: none;
    }

    .page-main {
        padding-top: 64px;
    }

    .page-hero {
        min-height: 320px;
        padding: 64px 12px;
    }

    .detail-wrap {
        width: min(100% - 24px, var(--max));
        padding-top: 92px;
    }

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

    .detail-article article {
        padding: 22px;
    }

    .footer-inner nav {
        justify-content: flex-start;
    }
}
