:root {
    color-scheme: dark;
    --bg: #030712;
    --bg-soft: #0b1120;
    --panel: #111827;
    --panel-light: #172033;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f9fafb;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;
    --red: #dc2626;
    --red-light: #ef4444;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 36rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    background: rgba(17, 24, 39, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(3, 7, 18, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.3);
}

.brand-icon svg {
    fill: white;
}

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

.brand-text strong,
.footer-brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #ef4444, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: var(--muted-strong);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: white;
    background: rgba(220, 38, 38, 0.94);
}

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

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    padding: 12px 14px;
    transition: border 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(239, 68, 68, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.ghost-button,
.section-more,
.category-overview-head a,
.player-controls button {
    border: 0;
    border-radius: 14px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.category-overview-head a:hover,
.player-controls button:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.98);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    padding-top: 74px;
    background: #050816;
}

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

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

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

.hero-bg {
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.72) 44%, rgba(3, 7, 18, 0.2)), linear-gradient(0deg, #030712, rgba(3, 7, 18, 0) 42%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: calc(78vh - 74px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    align-items: center;
    padding: 44px 0 110px;
}

.eyebrow,
.page-hero p,
.detail-category,
.section-heading p {
    color: #fb923c;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 16px 0 20px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-lead {
    max-width: 650px;
    color: var(--muted-strong);
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.12);
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
}

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

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

.ghost-button {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68)), var(--poster-image), linear-gradient(135deg, #1f2937, #111827);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(2deg);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    font-weight: 900;
}

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

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    color: white;
    font-size: 24px;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.28) !important;
}

.hero-dot.active {
    width: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, var(--red), var(--orange)) !important;
}

.hero-search {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 20px;
    width: min(680px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(18px);
}

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

.content-section {
    margin-bottom: 66px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.article-section h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-more,
.category-overview-head a {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.78);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.poster,
.compact-cover,
.ranking-poster,
.detail-poster {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.8)), var(--poster-image), linear-gradient(135deg, #1f2937, #111827);
    background-size: cover;
    background-position: center;
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card-link:hover .poster::after {
    opacity: 1;
}

.type-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    top: 10px;
    right: 10px;
    padding: 6px 9px;
    background: rgba(220, 38, 38, 0.94);
}

.play-badge {
    left: 50%;
    bottom: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card-link:hover .play-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

.movie-card-body h3 {
    margin: 0;
    min-height: 44px;
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin: 8px 0;
    color: var(--muted);
    font-size: 12px;
}

.movie-desc {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-overview-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.62));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.category-tile {
    padding: 22px;
    min-height: 150px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.45);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-tile span,
.category-overview-head p {
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.sub-page {
    padding-top: 74px;
}

.page-hero {
    position: relative;
    min-height: 310px;
    display: grid;
    place-items: center;
    padding: 72px 16px;
    background: radial-gradient(circle at 50% 0, rgba(220, 38, 38, 0.24), transparent 32rem), linear-gradient(180deg, #111827, #030712);
    text-align: center;
    overflow: hidden;
}

.page-hero span {
    display: block;
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.76);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-search {
    margin-bottom: 14px;
}

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

.filter-panel select option {
    color: #111827;
}

.empty-state {
    display: none;
    padding: 48px 16px;
    color: var(--muted);
    text-align: center;
}

.empty-state.show {
    display: block;
}

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

.category-overview-card {
    padding: 24px;
}

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

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

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.4);
}

.compact-cover {
    width: 54px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
}

.compact-info {
    min-width: 0;
}

.compact-info strong,
.compact-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-info strong {
    font-size: 14px;
}

.compact-info em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 64px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.5);
}

.ranking-index {
    color: #fb923c;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.ranking-poster {
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.ranking-main {
    min-width: 0;
}

.ranking-main strong,
.ranking-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-main strong {
    font-size: 17px;
}

.ranking-main em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
}

.ranking-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: var(--muted-strong);
    font-size: 13px;
}

.ranking-side b {
    color: #fecaca;
}

.detail-page {
    min-height: 100vh;
    background: var(--bg);
}

.detail-hero {
    position: relative;
    padding-top: 74px;
    min-height: 680px;
    overflow: hidden;
    background: #050816;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.82) 52%, rgba(3, 7, 18, 0.3)), linear-gradient(0deg, #030712, rgba(3, 7, 18, 0) 36%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.04);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 606px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 54px 0 68px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-category a {
    color: #fb923c;
}

.detail-info h1 {
    max-width: 820px;
    margin-top: 12px;
    font-size: clamp(38px, 6vw, 72px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.detail-line {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin: 22px 0 30px;
}

.detail-content {
    padding-top: 40px;
}

.player-section {
    margin-bottom: 50px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: black;
    box-shadow: var(--shadow);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    object-fit: contain;
}

.center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.center-play span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 32px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 26px solid white;
}

.player-card.is-playing .center-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-card:hover .player-controls,
.player-card:focus-within .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-controls button {
    padding: 10px 13px;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.player-status {
    position: absolute;
    right: 18px;
    top: 18px;
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.72);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.player-status.is-hidden {
    display: none;
}

.article-section {
    margin-bottom: 34px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.7);
}

.article-section h2 {
    margin-bottom: 16px;
    font-size: 28px;
}

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

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

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

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

    .hero-poster {
        display: none;
    }

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

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

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

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

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

    .brand-text em {
        display: none;
    }

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

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-search,
    .mobile-search {
        flex-direction: column;
    }

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

    .category-grid,
    .compact-grid,
    .rank-list,
    .filter-selects {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 42px 54px minmax(0, 1fr);
    }

    .ranking-side {
        display: none;
    }

    .detail-shell {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .detail-poster {
        width: min(230px, 64vw);
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .page-shell,
    .header-inner,
    .footer-inner,
    .mobile-nav,
    .hero-content,
    .hero-controls {
        width: min(100% - 24px, 1180px);
    }

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

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

    .movie-card-body h3 {
        font-size: 14px;
    }

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

    .center-play {
        width: 70px;
        height: 70px;
    }

    .center-play span {
        margin-left: 27px;
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-left-width: 22px;
    }
}
