:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --amber: #f59e0b;
    --ink: #18181b;
    --muted: #6b7280;
    --soft: #fff7ed;
    --paper: rgba(255, 255, 255, 0.94);
    --line: rgba(244, 63, 94, 0.16);
    --shadow: 0 24px 80px rgba(190, 18, 60, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.13), transparent 34rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32rem),
        linear-gradient(135deg, #fff1f2 0%, #ffffff 44%, #fffbeb 100%);
    font-family: "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.narrow {
    width: min(920px, calc(100% - 32px));
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 28px rgba(190, 18, 60, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.32);
}

.brand-copy strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--rose-dark), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #52525b;
    font-weight: 700;
    transition: all 0.24s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.10);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--rose-dark);
}

.hero-slider {
    position: relative;
    min-height: 760px;
    padding: 132px 0 36px;
    overflow: hidden;
    color: #ffffff;
    background: #4c0519;
}

.hero-bg,
.detail-bg,
.category-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.1);
    transition: background-image 0.5s ease, opacity 0.5s ease;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.42), transparent 28rem),
        linear-gradient(90deg, rgba(76, 5, 25, 0.95) 0%, rgba(76, 5, 25, 0.72) 46%, rgba(76, 5, 25, 0.38) 100%);
}

.hero-layout,
.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.64fr);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fb7185;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.category-hero p,
.detail-copy .lead {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

.hero-meta {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.24s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.34);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(225, 29, 72, 0.42);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    margin-top: 34px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    background: var(--rose);
    cursor: pointer;
    font-weight: 900;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-play {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.hero-thumbs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
    text-align: left;
    transition: all 0.24s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-thumb img {
    width: 50px;
    height: 66px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-thumb span {
    min-width: 0;
    font-weight: 900;
    line-height: 1.35;
}

.section-pad {
    padding: 78px 0;
}

.soft-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 241, 242, 0.70));
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link,
.text-link {
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.10);
}

.section-link:hover,
.text-link:hover {
    background: rgba(244, 63, 94, 0.16);
    transform: translateY(-1px);
}

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

.category-card {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 22px;
    color: #ffffff;
    background: #4c0519;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.76;
    transition: transform 0.36s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(76, 5, 25, 0.88) 100%);
}

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

.category-card strong,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 14px 50px rgba(190, 18, 60, 0.08);
}

.control-panel.standalone {
    margin-bottom: 32px;
}

.control-panel input {
    flex: 1;
    min-width: 220px;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    outline: 0;
    padding: 14px 18px;
    background: #ffffff;
}

.control-panel input:focus {
    border-color: rgba(225, 29, 72, 0.42);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filters button {
    border: 0;
    border-radius: 999px;
    padding: 12px 15px;
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.10);
    cursor: pointer;
    font-weight: 800;
}

.quick-filters button:hover,
.quick-filters button.is-active {
    color: #ffffff;
    background: var(--rose);
}

.movie-grid,
.mini-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(190, 18, 60, 0.10);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(190, 18, 60, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #4c0519;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(76, 5, 25, 0.76));
}

.year-badge,
.play-chip,
.rank-num {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.year-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(24, 24, 27, 0.72);
    backdrop-filter: blur(10px);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 13px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-num {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-style: normal;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-info h3 a:hover {
    color: var(--rose-dark);
}

.movie-info p {
    min-height: 52px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-meta span,
.tag-list span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.10);
    font-size: 12px;
    font-weight: 800;
}

.tag-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-card.compact .movie-info h3 {
    font-size: 18px;
}

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

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

.ranking-box,
.story-card,
.category-overview-card {
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(190, 18, 60, 0.10);
}

.ranking-box {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.compact-head {
    margin-bottom: 18px;
}

.compact-head h2 {
    font-size: 28px;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-item {
    display: grid;
    grid-template-columns: 38px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.ranking-page-list .ranking-item {
    grid-template-columns: 54px 96px minmax(0, 1fr) auto;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 950;
}

.ranking-cover {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-copy h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
}

.ranking-copy p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #4c0519;
}

.page-hero {
    padding: 96px 0 82px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.36), transparent 32rem),
        linear-gradient(135deg, #4c0519, #be123c 54%, #f97316 100%);
}

.page-hero p,
.category-hero p {
    max-width: 760px;
}

.category-hero {
    padding: 112px 0 92px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

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

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

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-row img {
    width: 100%;
    height: 104px;
    border-radius: 16px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 950;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.75;
}

.detail-hero {
    min-height: 720px;
    padding: 118px 0 70px;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.40);
}

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

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

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.detail-facts li {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-facts span {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 800;
}

.detail-facts strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 16px;
}

.detail-copy .tag-cloud span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.player-section {
    background: #09090b;
    color: #ffffff;
}

.player-section .section-head p {
    color: rgba(255, 255, 255, 0.68);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
    overflow: hidden;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
    filter: blur(1px);
    transform: scale(1.04);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.22), rgba(0, 0, 0, 0.66));
}

.play-circle {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 50px rgba(225, 29, 72, 0.36);
    font-size: 34px;
}

.player-cover strong {
    position: relative;
    z-index: 1;
    margin-top: 120px;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 950;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.story-card {
    padding: 30px;
}

.story-card h2 {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 950;
}

.story-card p {
    margin: 0 0 16px;
    color: #52525b;
    line-height: 1.92;
    font-size: 16px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.95));
}

.site-footer {
    padding: 46px 0 22px;
    color: #52525b;
    background: #ffffff;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: var(--rose-dark);
    font-size: 24px;
}

.site-footer p {
    max-width: 560px;
    line-height: 1.75;
}

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

.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.08);
    color: var(--rose-dark);
    font-weight: 800;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 63, 94, 0.12);
    color: #71717a;
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .category-grid,
    .large-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .two-column,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-box {
        position: static;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(244, 63, 94, 0.14);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 18px 50px rgba(190, 18, 60, 0.16);
    }

    .nav-links.is-open {
        display: flex;
    }

    .brand-copy small {
        display: none;
    }

    .hero-slider {
        min-height: auto;
        padding-top: 110px;
    }

    .hero-layout,
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

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

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

    .control-panel,
    .footer-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-page-list .ranking-item {
        grid-template-columns: 42px 82px minmax(0, 1fr);
    }

    .ranking-page-list .text-link {
        grid-column: 2 / -1;
    }
}

@media (max-width: 560px) {
    .container,
    .narrow,
    .nav-wrap,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero-copy h1,
    .page-hero h1,
    .category-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .category-hero p,
    .detail-copy .lead {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search button {
        margin-top: 8px;
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .mini-grid,
    .category-overview-grid,
    .hero-thumbs,
    .detail-facts {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

    .story-card {
        padding: 22px;
    }
}
