:root {
    --primary-50: #fff1f2;
    --primary-100: #ffe4e6;
    --primary-500: #f43f5e;
    --primary-600: #e11d48;
    --primary-700: #be123c;
    --primary-900: #881337;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-500: #737373;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 22px 60px rgba(225, 29, 72, 0.22);
}

* {
    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;
    color: var(--neutral-800);
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 36%, #fafafa 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 229, 229, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.brand-name {
    font-size: 1.25rem;
    color: var(--neutral-900);
}

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

.nav-link {
    position: relative;
    color: var(--neutral-600);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-600);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px;
    height: 3px;
    background: var(--primary-600);
    border-radius: 999px;
}

.header-search {
    display: flex;
    align-items: center;
    width: 260px;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter input,
.inline-filter select {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
}

.header-search input {
    flex: 1;
    padding: 0 12px;
    font-size: 0.9rem;
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    background: var(--primary-600);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--neutral-800);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--neutral-200);
    background: #ffffff;
}

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

.mobile-nav-inner {
    display: grid;
    gap: 10px;
    padding: 16px 0 20px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--neutral-700);
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
}

.mobile-search input {
    flex: 1;
    padding: 10px;
}

.mobile-search button {
    padding: 10px 16px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: var(--primary-900);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
    gap: 54px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 92px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(3%);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: translateX(-50%);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 34%), linear-gradient(180deg, rgba(136, 19, 55, 0.04), rgba(15, 23, 42, 0.2));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--primary-700);
    background: var(--primary-50);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
    box-shadow: 0 18px 34px rgba(136, 19, 55, 0.26);
}

.hero-actions .primary-button {
    color: var(--primary-700);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.22);
}

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

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

.hero-poster {
    overflow: hidden;
    align-self: stretch;
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster:hover img {
    transform: scale(1.04);
}

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
    margin-top: -46px;
    position: relative;
    z-index: 5;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.page-hero h1,
.section-heading h2,
.detail-info h1 {
    margin: 0;
    color: var(--neutral-900);
    letter-spacing: -0.04em;
}

.search-panel h2 {
    margin-top: 8px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.search-panel p,
.page-hero p,
.category-card-large p,
.detail-one-line,
.detail-panel p,
.movie-card-body p {
    color: var(--neutral-600);
    line-height: 1.75;
}

.big-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
}

.big-search input {
    flex: 1;
    padding: 0 14px;
}

.big-search button {
    padding: 14px 22px;
}

.section-block {
    margin: 72px 0;
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary-600);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-more,
.text-link {
    min-height: 38px;
    padding: 0 14px;
    color: var(--primary-700);
    background: var(--primary-50);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    color: #ffffff;
    border-radius: 24px;
    background: var(--neutral-900);
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 78%);
}

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

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    line-height: 1.5;
}

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

.home-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 72px;
}

.section-card,
.detail-panel,
.category-card-large {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.section-card {
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--primary-50);
    transform: translateX(3px);
}

.rank-row img {
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row strong,
.rank-row em {
    display: block;
}

.rank-row strong {
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    overflow: hidden;
    margin-top: 4px;
    color: var(--neutral-500);
    font-size: 0.82rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-rank {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--primary-600);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(244, 63, 94, 0.32);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--neutral-100);
}

.movie-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.cover-play {
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    background: rgba(225, 29, 72, 0.88);
}

.rank-badge {
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    background: rgba(23, 23, 23, 0.72);
    font-size: 0.78rem;
}

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

.movie-meta-row {
    color: var(--neutral-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-card h2 {
    margin: 10px 0 8px;
    color: var(--neutral-900);
    font-size: 1.1rem;
    line-height: 1.4;
}

.movie-card h2 a:hover {
    color: var(--primary-600);
}

.movie-card-body p {
    min-height: 3.45em;
    margin: 0 0 14px;
    font-size: 0.92rem;
}

.page-main {
    padding: 28px 0 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
    color: var(--neutral-500);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-600);
    font-weight: 700;
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    content: "/";
    margin-right: 8px;
    color: var(--neutral-300);
}

.page-hero {
    overflow: hidden;
    position: relative;
    padding: clamp(34px, 6vw, 70px);
    margin-bottom: 34px;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 54%, #ffe4e6 100%);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.2), transparent 64%);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.04;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.05rem;
}

.inline-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.inline-filter input,
.inline-filter select {
    min-height: 46px;
    padding: 0 14px;
    color: var(--neutral-700);
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.inline-filter input {
    min-width: min(360px, 100%);
    flex: 1;
}

.page-grid {
    margin-top: 28px;
}

.category-list-large {
    display: grid;
    gap: 22px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
}

.category-card-image {
    overflow: hidden;
    display: block;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
}

.category-card-image img {
    height: 100%;
    object-fit: cover;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.category-samples span {
    padding: 6px 10px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    border-radius: 999px;
    font-size: 0.86rem;
}

.detail-main {
    max-width: 1180px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

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

.detail-info h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.detail-one-line {
    margin: 18px 0;
    font-size: 1.1rem;
}

.detail-meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 12px;
    color: var(--neutral-700);
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.detail-tags {
    margin: 18px 0 24px;
}

.player-section {
    margin: 34px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.78));
    border: 0;
    cursor: pointer;
    text-align: center;
}

.player-cover-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.player-trigger {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    padding-left: 6px;
    color: var(--primary-600);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    font-size: 2.4rem;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.18);
}

.player-cover strong {
    display: block;
    max-width: min(720px, 90%);
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.15;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    margin: 34px 0;
}

.detail-panel {
    padding: 28px;
}

.detail-panel h2 {
    margin: 0 0 14px;
    color: var(--neutral-900);
    font-size: 1.35rem;
}

.detail-panel p {
    margin: 0;
}

.detail-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin: 28px 0 58px;
}

.detail-pager a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 14px;
    font-weight: 800;
}

.detail-pager a:first-child {
    justify-self: start;
}

.detail-pager a:last-child {
    justify-self: end;
}

.site-footer {
    margin-top: 80px;
    color: var(--neutral-300);
    background: var(--neutral-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 54px 0;
}

.site-footer .brand-name,
.site-footer h2 {
    color: #ffffff;
}

.site-footer p {
    max-width: 420px;
    color: var(--neutral-400);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: var(--neutral-400);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 18px 0;
    color: var(--neutral-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.is-hidden-by-filter {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 760px;
        padding-top: 54px;
    }

    .hero-poster {
        min-height: 320px;
    }

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

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

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

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

    .header-inner {
        height: 64px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

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

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

    .hero-slide {
        min-height: 720px;
        padding-bottom: 82px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .hero-poster {
        min-height: 260px;
        border-radius: 24px;
    }

    .search-panel {
        margin-top: -28px;
        padding: 22px;
        border-radius: 22px;
    }

    .big-search,
    .inline-filter {
        display: grid;
    }

    .big-search button {
        width: 100%;
    }

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

    .category-card-large,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 320px;
        margin: 0 auto;
    }

    .detail-hero,
    .page-hero {
        padding: 22px;
        border-radius: 24px;
    }

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

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

    .detail-pager a,
    .detail-pager a:first-child,
    .detail-pager a:last-child {
        justify-self: stretch;
    }
}

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

    .movie-card-body p {
        min-height: auto;
    }

    .hero-controls {
        bottom: 18px;
    }
}
