:root {
    --page-bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #f3f4f6;
    --text-main: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --brand-soft: #fee2e2;
    --blue: #2563eb;
    --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 18px 40px rgba(17, 24, 39, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.34);
    font-size: 15px;
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    color: var(--text-soft);
    font-size: 15px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--brand);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 290px;
    background: var(--surface-soft);
    border-radius: 999px;
    padding: 5px;
    border: 1px solid transparent;
    transition: border 0.2s ease, background 0.2s ease;
}

.header-search:focus-within {
    background: #ffffff;
    border-color: rgba(220, 38, 38, 0.32);
}

.header-search input,
.mobile-search input,
.big-search input,
.search-page-form input,
.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
}

.header-search input {
    padding: 8px 12px;
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--surface-soft);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: #ffffff;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    background: var(--surface-soft);
    border-radius: 16px;
    padding: 8px;
    margin: 0 auto 14px;
    max-width: var(--container);
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: var(--container);
    margin: 0 auto;
}

.mobile-links a {
    padding: 10px 12px;
    background: var(--surface-soft);
    border-radius: 12px;
    color: var(--text-soft);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.6fr);
    align-items: center;
    gap: 46px;
    width: 100%;
    padding: 78px max(32px, calc((100vw - var(--container)) / 2)) 92px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.82)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(239, 68, 68, 0.36), transparent 34%), radial-gradient(circle at 82% 68%, rgba(37, 99, 235, 0.22), transparent 32%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-intro .eyebrow {
    color: #fecaca;
}

.hero-content h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-summary {
    max-width: 700px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.34);
}

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

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-btn.light {
    color: #ffffff;
}

.hero-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: min(520px, 72vh);
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 36px;
    line-height: 1;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 28px;
    background: var(--brand);
}

.home-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
    gap: 28px;
    align-items: center;
    margin-top: -42px;
    position: relative;
    z-index: 10;
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.home-search-panel h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.home-search-panel p {
    margin: 10px 0 0;
    color: var(--text-soft);
}

.big-search,
.search-page-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--surface-soft);
    border-radius: 999px;
}

.big-search input,
.search-page-form input {
    padding: 0 16px;
}

.section-block {
    margin-top: 58px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card-link {
    display: block;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-link:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
    pointer-events: none;
}

.badge-top,
.rating-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(8px);
}

.badge-top {
    left: 10px;
}

.rating-badge {
    right: 10px;
    background: rgba(220, 38, 38, 0.88);
}

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

.movie-card-body h2,
.movie-card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 43px;
}

.movie-card-body p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

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

.tag-row {
    margin-top: 12px;
}

.home-rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.rank-panel,
.info-panel {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.rank-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-number {
    color: var(--brand);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}

.rank-text strong,
.rank-text small {
    display: block;
}

.rank-text strong {
    font-size: 14px;
    line-height: 1.35;
}

.rank-text small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.category-strip {
    padding: 28px;
    margin-bottom: 26px;
    background: linear-gradient(135deg, #fff7f7, #eff6ff);
    border-radius: var(--radius-lg);
}

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

.compact-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 190px;
    background: #111827;
}

.compact-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.compact-card:hover img {
    transform: scale(1.08);
}

.compact-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 12px 12px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 15%, rgba(248, 113, 113, 0.36), transparent 38%), linear-gradient(135deg, #991b1b, #111827 68%);
}

.page-hero .container {
    padding: 70px 0;
}

.page-hero h1,
.detail-intro h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 48px;
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    min-height: 210px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: #111827;
}

.category-thumbs img {
    width: 100%;
    height: 104px;
    object-fit: cover;
}

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

.category-overview-body h2 {
    margin: 0;
    font-size: 24px;
}

.category-overview-body p {
    margin: 10px 0 18px;
    color: var(--text-soft);
}

.category-overview-body span {
    color: var(--brand);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-search {
    background: var(--surface-soft);
    border-radius: 999px;
    padding: 12px 16px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-controls label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.filter-controls select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--text-main);
    outline: 0;
}

.rank-list {
    display: grid;
    gap: 16px;
    padding-top: 42px;
}

.rank-card a {
    display: grid;
    grid-template-columns: 68px 118px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-card-number {
    color: var(--brand);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-card img {
    width: 118px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-card h2 {
    margin: 0;
    font-size: 22px;
}

.rank-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.detail-hero {
    padding: 54px 0;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-one-line {
    max-width: 860px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-score {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-score span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
}

.large-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    margin-top: 42px;
}

.player-shell {
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.player-frame {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.42);
    font-size: 34px;
}

.play-label {
    font-size: 18px;
    font-weight: 800;
}

.article-block {
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-block h2:not(:first-child) {
    margin-top: 30px;
}

.article-block p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
}

.detail-side {
    min-width: 0;
}

.info-panel {
    position: sticky;
    top: 92px;
}

.info-panel dl {
    margin: 0;
}

.info-panel div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.info-panel div:last-child {
    border-bottom: 0;
}

.info-panel dt {
    color: var(--text-muted);
}

.info-panel dd {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.info-panel a {
    color: var(--brand);
}

.empty-state {
    display: block;
    padding: 70px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state.is-hidden {
    display: none;
}

.empty-state h2 {
    margin: 0;
    font-size: 26px;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.site-footer {
    margin-top: 80px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.55fr) minmax(180px, 0.7fr);
    gap: 34px;
    padding: 46px 0;
}

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 0;
}

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

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

    .home-rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-side {
        max-width: none;
    }
}

@media (max-width: 920px) {
    .site-nav {
        display: none;
    }

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

    .header-inner {
        gap: 14px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 720px;
        padding: 56px 24px 92px;
    }

    .hero-poster {
        width: min(340px, 72vw);
        margin: 0 auto;
    }

    .home-search-panel,
    .filter-panel,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card a {
        grid-template-columns: 180px minmax(0, 1fr);
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-slider,
    .hero-track {
        min-height: 680px;
    }

    .hero-slide {
        min-height: 680px;
        padding: 42px 18px 76px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-summary,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search-panel {
        margin-top: -24px;
        padding: 20px;
    }

    .big-search,
    .search-page-form {
        flex-direction: column;
        border-radius: 18px;
    }

    .big-search input,
    .search-page-form input {
        min-height: 42px;
    }

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

    .grid-four,
    .grid-five,
    .grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .movie-card-body h2,
    .movie-card-body h3 {
        font-size: 15px;
    }

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

    .category-strip {
        padding: 18px;
    }

    .category-overview-card a,
    .rank-card a {
        grid-template-columns: 1fr;
    }

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

    .category-thumbs img {
        height: 120px;
    }

    .rank-card-number {
        text-align: left;
    }

    .rank-card img {
        width: 100%;
        height: 260px;
    }

    .detail-hero {
        padding: 34px 0;
    }

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

    .article-block {
        padding: 20px;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-controls label {
        width: 100%;
        justify-content: space-between;
    }

    .filter-controls select {
        flex: 1;
    }
}
