:root {
    --primary-50: #faf5f0;
    --primary-100: #f4e8d9;
    --primary-200: #e8d0b3;
    --primary-300: #dab388;
    --primary-400: #cc9660;
    --primary-500: #b8794a;
    --primary-600: #a05f3d;
    --primary-700: #854c34;
    --primary-800: #6d3f2f;
    --primary-900: #5a3629;
    --accent-50: #fff7ed;
    --accent-100: #fcefd7;
    --accent-500: #ea7e20;
    --accent-900: #762f16;
    --secondary-900: #223426;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft: #f9fafb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(34, 52, 38, 0.12);
    --shadow-lg: 0 24px 60px rgba(34, 52, 38, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #fffaf5;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 245, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-700);
    transition: color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    color: var(--primary-800);
    transform: translateY(-1px);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    box-shadow: 0 10px 25px rgba(160, 95, 61, 0.25);
}

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

.brand-title {
    font-size: 20px;
    font-weight: 800;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    width: 280px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.large-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.nav-search input {
    padding: 7px 12px 7px 16px;
    font-size: 14px;
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: var(--primary-600);
    transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover {
    background: var(--primary-700);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-button span {
    width: 24px;
    height: 2px;
    background: var(--primary-800);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
    opacity: 0;
}

.menu-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fffaf5;
    padding: 12px 16px 18px;
}

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

.mobile-link {
    display: block;
    padding: 12px 4px;
    font-weight: 700;
    color: #374151;
}

.mobile-link.active {
    color: var(--primary-700);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.hero-carousel {
    position: relative;
    height: 600px;
    min-height: 540px;
    overflow: hidden;
    background: var(--secondary-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 64px;
    color: #ffffff;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffe7c7;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
}

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

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

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 12px 28px rgba(160, 95, 61, 0.35);
}

.button.primary:hover {
    background: var(--primary-700);
}

.button.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.button.light {
    color: var(--primary-800);
    background: #ffffff;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    font-size: 30px;
    line-height: 1;
}

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

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

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

.page-section {
    padding: 72px 0;
}

.warm-section {
    background: linear-gradient(180deg, #fffaf5, var(--primary-50));
}

.split-section {
    background: #ffffff;
}

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

.section-heading span,
.sub-hero span {
    display: inline-block;
    color: var(--accent-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.sub-hero h1,
.content-block h2,
.related-categories h2 {
    margin: 6px 0 0;
    color: #111827;
    line-height: 1.18;
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: var(--primary-700);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--secondary-900);
}

.card-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(34, 52, 38, 0.76);
    backdrop-filter: blur(10px);
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 126, 32, 0.94);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

.card-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--primary-200);
}

.movie-card h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
    color: var(--primary-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 700;
}

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

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

.category-tile {
    display: block;
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: var(--primary-50);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-900), var(--primary-600));
}

.category-tile strong {
    display: block;
    font-size: 20px;
    color: #111827;
}

.category-tile p {
    margin: 8px 0 0;
    color: var(--muted);
}

.category-tile em {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary-700);
    font-style: normal;
    font-weight: 800;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list a:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary-700);
    font-weight: 900;
}

.rank-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.mini-card img {
    width: 78px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card span {
    min-width: 0;
    align-self: center;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.sub-hero {
    padding: 88px 0 76px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(234, 126, 32, 0.32), transparent 32%), linear-gradient(135deg, var(--secondary-900), var(--primary-800));
}

.sub-hero h1 {
    max-width: 760px;
    margin-top: 10px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
}

.sub-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-bar input {
    padding: 8px 10px;
}

.filter-bar a {
    flex: 0 0 auto;
    color: var(--primary-700);
    font-weight: 800;
}

.large-search {
    max-width: 680px;
    margin-top: 26px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.large-search input {
    color: #ffffff;
}

.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-pills button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    color: #374151;
    background: #ffffff;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pills button:hover,
.filter-pills button.active {
    color: #ffffff;
    border-color: var(--primary-600);
    background: var(--primary-600);
}

.related-categories {
    margin-top: 48px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.related-categories h2 {
    font-size: 24px;
}

.related-categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.related-categories a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-weight: 800;
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 62px 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ranking-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    font-weight: 900;
}

.ranking-poster img {
    width: 112px;
    height: 148px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-card h2 {
    margin: 8px 0 8px;
    font-size: 24px;
}

.ranking-card p {
    margin: 0;
    color: var(--muted);
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

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

.detail-cover {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-cover 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.75);
    font-size: 14px;
}

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

.detail-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-copy p {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-section {
    background: #ffffff;
}

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

.content-block {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.player-block {
    grid-column: 1 / 2;
}

.story-block {
    grid-column: 1 / -1;
}

.content-block h2 {
    font-size: 28px;
}

.content-block p {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 16px;
}

.player-card {
    position: relative;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.55));
}

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

.play-overlay span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-500);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 18px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px 14px;
    margin: 18px 0 0;
}

.side-info dt {
    color: var(--muted);
    font-weight: 700;
}

.side-info dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.detail-tags {
    margin-top: 22px;
}

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

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

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

.movie-card.compact p {
    min-height: auto;
    font-size: 13px;
}

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

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 18px;
    }

    .nav-search {
        width: 230px;
    }

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

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-carousel {
        height: auto;
        min-height: 680px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 54px 0 90px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        justify-self: center;
        transform: none;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 14px;
    }

    .split-grid,
    .detail-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(280px, 78vw);
    }

    .player-block,
    .story-block {
        grid-column: auto;
    }

    .ranking-card {
        grid-template-columns: 52px 86px 1fr;
    }

    .ranking-poster img {
        width: 86px;
        height: 116px;
        border-radius: 14px;
    }
}

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

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

    .brand-subtitle {
        display: none;
    }

    .page-section {
        padding: 52px 0;
    }

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

    .hero-copy p,
    .sub-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .movie-grid,
    .catalogue-grid,
    .related-grid,
    .category-grid,
    .category-grid-full,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 44px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .ranking-card h2 {
        font-size: 18px;
    }

    .ranking-card p,
    .ranking-card .tag-row {
        display: none;
    }

    .ranking-poster img {
        width: 72px;
        height: 96px;
    }

    .rank-list a {
        grid-template-columns: 42px 1fr;
    }

    .rank-list em {
        display: none;
    }

    .filter-bar {
        display: block;
    }

    .filter-bar a {
        display: inline-block;
        margin: 8px 10px;
    }

    .content-block {
        padding: 20px;
        border-radius: 22px;
    }

    .side-info dl {
        grid-template-columns: 64px 1fr;
    }
}
