:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #f1e2d8;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --accent: #ec4899;
    --accent-dark: #db2777;
    --dark: #111827;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.nav-shell {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-input input,
.filter-panel select {
    border: 1px solid #eadbd2;
    background: #ffffff;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 180px;
    height: 40px;
    border-radius: 999px;
    padding: 0 16px;
}

.nav-search button,
.mobile-search button {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 700;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff3e8;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary-dark);
    border-radius: 999px;
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid #f3ded1;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.08);
}

.mobile-panel a {
    display: block;
    padding: 10px 4px;
    color: #374151;
    font-weight: 700;
}

.mobile-search {
    margin-bottom: 8px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    height: 42px;
    border-radius: 999px;
    padding: 0 14px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 700px;
    padding: 64px 0 52px;
    background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.18), transparent 36%), radial-gradient(circle at 85% 0%, rgba(236, 72, 153, 0.18), transparent 34%), linear-gradient(135deg, #fff7ed 0%, #fff1f2 46%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: auto -12% -38% -12%;
    height: 420px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.16), rgba(236, 72, 153, 0.14));
    filter: blur(60px);
    transform: rotate(-2deg);
}

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-slides {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-image {
    position: relative;
    border-radius: 34px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.44));
    box-shadow: var(--shadow);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 34px -22px -22px 34px;
    z-index: -1;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.18));
}

.hero-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

.hero-text {
    padding: 16px 0;
}

.eyebrow,
.section-heading span,
.page-hero span,
.category-overview-card span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.hero-text h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-text h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
    color: #9a3412;
}

.hero-text p {
    margin: 0 0 20px;
    max-width: 680px;
    color: #4b5563;
    font-size: 18px;
}

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

.hero-tags span,
.card-tags span,
.tag-cloud span {
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.10);
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

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

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

.primary-btn {
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
    padding: 0 22px;
    color: #c2410c;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.2);
}

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
}

.hero-dots,
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.22);
}

.hero-dot.is-active {
    width: 54px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 30px;
    line-height: 1;
}

.quick-strip {
    transform: translateY(-24px);
    position: relative;
    z-index: 2;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.strip-grid a {
    display: grid;
    place-items: center;
    min-height: 54px;
    border-radius: 18px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.strip-grid a:hover {
    transform: translateY(-2px);
    background: #ffedd5;
}

.category-section,
.movie-section,
.rank-section,
.category-overview,
.detail-content,
.related-section {
    padding: 72px 0;
}

.soft-bg {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-heading {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 720px;
}

.section-heading.left {
    text-align: left;
    margin-left: 0;
}

.section-heading.split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: left;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-block h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p {
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.section-heading.split a,
.text-link {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.12);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.76));
}

.category-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 78px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.category-card:hover img,
.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

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

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 50px rgba(17, 24, 39, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.card-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.card-badge,
.card-play {
    position: absolute;
    color: #ffffff;
    font-weight: 900;
}

.card-badge {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 12px;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.84);
    background: rgba(17, 24, 39, 0.58);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

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

.card-body h2,
.card-body h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body h2 a:hover,
.card-body h3 a:hover,
.rank-info h2 a:hover {
    color: var(--primary-dark);
}

.card-meta,
.card-text,
.rank-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.card-text {
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    margin-top: 12px;
}

.page-hero {
    padding: 88px 0 66px;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.18), transparent 35%), linear-gradient(135deg, #fff7ed, #fff1f2 54%, #ffffff);
}

.page-hero .breadcrumb {
    margin-bottom: 20px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 24px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.filter-input {
    position: relative;
}

.filter-input span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-dark);
    font-weight: 900;
}

.filter-input input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    padding: 0 16px;
}

.filter-input input {
    padding-left: 40px;
}

.empty-state {
    margin: 30px 0 0;
    padding: 22px;
    text-align: center;
    border-radius: 20px;
    color: var(--muted);
    background: #fff7ed;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow: hidden;
}

.category-collage img {
    height: 170px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.category-overview-card h2 {
    margin: 10px 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 82px 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.1);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.07);
}

.rank-cover img {
    width: 82px;
    height: 108px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.rank-no {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.rank-info h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.rank-info p:last-child {
    margin: 6px 0 0;
    color: var(--muted);
}

.rank-action {
    padding: 0 18px;
    color: #ffffff;
    background: var(--dark);
}

.detail-hero {
    padding: 58px 0 70px;
    background: radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.16), transparent 38%), linear-gradient(135deg, #fff7ed, #ffffff 62%);
}

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

.detail-poster {
    padding: 12px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.detail-line {
    margin: 16px 0 18px;
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-weight: 800;
    font-size: 13px;
}

.detail-copy .primary-btn {
    margin-top: 26px;
}

.player-section {
    padding: 70px 0;
    background: #111827;
    color: #ffffff;
}

.player-section .section-heading span {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
}

.player-section .section-heading h2 {
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.overlay-play {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.34);
    font-size: 34px;
    padding-left: 4px;
}

.player-overlay strong {
    font-size: 22px;
    max-width: 80%;
}

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

.story-block,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.1);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.07);
}

.story-block {
    padding: 34px;
}

.story-block h2 {
    font-size: 28px;
    margin-top: 0;
}

.story-block h2 + p {
    margin-top: 12px;
}

.story-block p + h2 {
    margin-top: 30px;
}

.story-block p {
    margin-bottom: 0;
    color: #374151;
    font-size: 17px;
}

.side-card {
    padding: 24px;
    align-self: start;
}

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

.side-card dl {
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.side-card dd {
    margin: 3px 0 14px;
    font-weight: 800;
}

.side-card a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--primary-dark);
    font-weight: 900;
}

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

.site-footer {
    background: #111827;
    color: #ffffff;
    padding: 54px 0 26px;
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
}

.brand-dark .brand-text {
    background: linear-gradient(135deg, #fdba74, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    margin: 16px 0 0;
    color: #d1d5db;
    max-width: 460px;
}

.footer-links h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

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

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

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

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

    .hero-slide,
    .detail-grid,
    .content-grid,
    .footer-shell,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: auto;
        padding-top: 36px;
    }

    .hero-slides {
        min-height: 0;
    }

    .hero-slide {
        gap: 26px;
    }

    .hero-image {
        order: 2;
        max-width: 440px;
    }

    .hero-control-row,
    .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
    }

    .strip-grid,
    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .rank-no {
        position: absolute;
        margin-left: 44px;
        margin-top: -64px;
    }

    .rank-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .page-shell,
    .hero-shell,
    .nav-shell,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .nav-shell {
        height: 66px;
    }

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

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p,
    .detail-line {
        font-size: 16px;
    }

    .strip-grid,
    .filter-panel,
    .movie-grid,
    .catalog-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 180px;
    }

    .category-section,
    .movie-section,
    .rank-section,
    .category-overview,
    .detail-content,
    .related-section {
        padding: 46px 0;
    }

    .page-hero {
        padding: 58px 0 44px;
    }

    .story-block,
    .side-card {
        padding: 22px;
        border-radius: 22px;
    }

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

    .player-section {
        padding: 44px 0;
    }

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

    .overlay-play {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
