:root {
    color-scheme: dark;
    --black: #000000;
    --grape-950: #3b0764;
    --grape-900: #581c87;
    --grape-800: #6b21a8;
    --grape-700: #7e22ce;
    --grape-600: #9333ea;
    --grape-500: #a855f7;
    --grape-400: #c084fc;
    --grape-300: #d8b4fe;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-300: #fcd34d;
    --text: #ffffff;
    --muted: #d8b4fe;
    --soft: rgba(216, 180, 254, 0.72);
    --panel: rgba(59, 7, 100, 0.62);
    --panel-strong: rgba(88, 28, 135, 0.78);
    --border: rgba(192, 132, 252, 0.28);
    --shadow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
    --shadow-gold: 0 0 15px rgba(251, 191, 36, 0.42);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(147, 51, 234, 0.28), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.10), transparent 24rem),
        linear-gradient(180deg, #000000 0%, #2e064f 40%, #000000 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(90deg, rgba(59, 7, 100, 0.96), rgba(88, 28, 135, 0.95), rgba(59, 7, 100, 0.96)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
    border-bottom: 1px solid rgba(192, 132, 252, 0.22);
    box-shadow: 0 12px 34px rgba(24, 5, 40, 0.48);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--gold-300);
    background: linear-gradient(135deg, var(--grape-700), var(--grape-900));
    box-shadow: var(--shadow-purple);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-logo {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--grape-300), var(--gold-300), var(--grape-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    font-size: 12px;
    color: var(--grape-400);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--grape-300);
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(107, 33, 168, 0.78);
    box-shadow: var(--shadow-gold);
}

.header-search {
    position: relative;
    width: min(270px, 24vw);
}

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(192, 132, 252, 0.28);
    border-radius: 13px;
    outline: none;
    color: #ffffff;
    background: rgba(46, 6, 79, 0.86);
    padding: 0 46px 0 16px;
    transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
    border-color: var(--grape-400);
    box-shadow: var(--shadow-purple);
}

.header-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 42px;
    border: 0;
    color: var(--grape-300);
    background: transparent;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--grape-300);
    background: transparent;
    font-size: 26px;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(192, 132, 252, 0.18);
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.mobile-search input {
    padding-right: 16px;
}

.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--grape-600), var(--grape-700));
    padding: 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg,
.hero-bg img,
.detail-bg,
.detail-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img,
.detail-bg img {
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000000 0%, transparent 44%, rgba(59, 7, 100, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
    transform: translateX(calc((100vw - min(1280px, calc(100vw - 32px))) / 2));
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-400);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 16px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.78);
    animation: float 3s ease-in-out infinite;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--grape-300);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.hero-tags,
.hero-actions,
.category-chips,
.detail-tags,
.card-tags,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    color: var(--grape-300);
    font-weight: 700;
}

.hero-meta span:first-child {
    color: var(--gold-300);
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--grape-300);
    background: rgba(107, 33, 168, 0.62);
    border: 1px solid rgba(192, 132, 252, 0.18);
    font-size: 12px;
}

.hero-actions {
    margin-top: 26px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--grape-600), var(--grape-700));
    box-shadow: 0 12px 28px rgba(147, 51, 234, 0.38);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(168, 85, 247, 0.48);
}

.ghost-btn {
    color: var(--grape-300);
    background: rgba(46, 6, 79, 0.72);
    border: 1px solid rgba(192, 132, 252, 0.26);
}

.ghost-btn:hover {
    color: var(--gold-300);
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: var(--shadow-gold);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(216, 180, 254, 0.45);
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 38px;
    background: linear-gradient(90deg, var(--grape-400), var(--gold-400));
    box-shadow: var(--shadow-gold);
}

.category-strip {
    background: rgba(46, 6, 79, 0.66);
    border-top: 1px solid rgba(192, 132, 252, 0.16);
    border-bottom: 1px solid rgba(192, 132, 252, 0.16);
}

.category-strip-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.category-strip-inner > span {
    color: var(--gold-300);
    font-weight: 800;
    min-width: max-content;
}

.category-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--grape-300);
    background: rgba(88, 28, 135, 0.72);
    border: 1px solid rgba(192, 132, 252, 0.18);
    transition: 0.25s ease;
}

.category-chips a:hover {
    color: #ffffff;
    background: var(--grape-700);
    box-shadow: var(--shadow-purple);
}

.section-block {
    padding: 48px 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
}

.section-heading a {
    color: var(--grape-400);
    font-weight: 800;
    transition: 0.25s ease;
}

.section-heading a:hover {
    color: var(--gold-400);
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.52), rgba(24, 5, 40, 0.92));
    border: 1px solid rgba(192, 132, 252, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    transition: 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.38), var(--shadow-purple);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--grape-950), var(--black));
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 10;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.rating-badge,
.duration-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.rating-badge {
    top: 10px;
    left: 10px;
    color: var(--gold-300);
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    color: var(--grape-300);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-large .card-body h3 {
    font-size: 20px;
}

.card-body h3 a:hover {
    color: var(--gold-300);
}

.card-body p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--grape-400);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(216, 180, 254, 0.76);
    font-size: 12px;
}

.wide-panel {
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.32), transparent);
    border-top: 1px solid rgba(192, 132, 252, 0.12);
    border-bottom: 1px solid rgba(192, 132, 252, 0.12);
}

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

.category-panel,
.text-panel,
.player-card {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.category-panel {
    padding: 20px;
}

.category-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-panel h3 {
    margin: 0;
    font-size: 21px;
}

.category-panel a {
    color: var(--gold-300);
    font-weight: 800;
}

.category-panel p {
    min-height: 64px;
    color: var(--grape-400);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(46, 6, 79, 0.72);
    border: 1px solid rgba(192, 132, 252, 0.16);
    transition: 0.25s ease;
}

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

.small-rank .rank-number {
    display: none;
}

.rank-item:hover {
    background: rgba(107, 33, 168, 0.7);
    border-color: rgba(251, 191, 36, 0.34);
}

.rank-item img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.small-rank .rank-item img {
    width: 50px;
    height: 66px;
}

.rank-number {
    color: var(--gold-300);
    font-weight: 900;
    font-size: 18px;
}

.rank-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy em {
    color: var(--grape-400);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 64px;
    background:
        radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.14), transparent 24rem),
        linear-gradient(120deg, rgba(0, 0, 0, 0.95), rgba(59, 7, 100, 0.86));
    border-bottom: 1px solid rgba(192, 132, 252, 0.16);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--grape-300);
    font-size: 18px;
}

.page-chips {
    margin-top: 26px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.detail-bg {
    opacity: 0.35;
}

.detail-bg div {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(59, 7, 100, 0.5) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 30px 0 62px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--grape-400);
    padding: 14px 0 30px;
}

.breadcrumb a:hover {
    color: var(--gold-300);
}

.breadcrumb strong {
    color: #ffffff;
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58), var(--shadow-purple);
}

.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: var(--grape-300);
    font-size: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
}

.detail-meta li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(59, 7, 100, 0.58);
    border: 1px solid rgba(192, 132, 252, 0.18);
}

.detail-meta span {
    color: var(--grape-400);
    font-size: 12px;
}

.detail-meta strong {
    color: #ffffff;
}

.player-card {
    padding: 16px;
}

.player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000000;
}

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

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

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--grape-600), var(--grape-800));
    box-shadow: var(--shadow-purple);
    font-size: 32px;
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay:hover {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.52), rgba(0, 0, 0, 0.66));
}

.player.is-playing .player-overlay {
    display: none;
}

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

.text-panel {
    padding: 24px;
}

.text-panel h2 {
    margin: 0 0 14px;
    color: var(--gold-300);
}

.text-panel p {
    margin: 0;
    color: var(--grape-300);
    line-height: 1.9;
}

.search-page-form {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin-top: 26px;
}

.search-page-form input {
    height: 54px;
    padding-right: 18px;
}

.search-page-form button {
    min-width: 118px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(192, 132, 252, 0.18);
    background: rgba(12, 2, 20, 0.88);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--grape-400);
}

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

.footer-links a {
    color: var(--grape-400);
}

.footer-links a:hover {
    color: var(--gold-300);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 26px;
    color: rgba(216, 180, 254, 0.58);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--grape-600), var(--grape-800));
    box-shadow: var(--shadow-purple);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.25s ease;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

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

    .desktop-nav .nav-link:nth-last-child(-n + 3) {
        display: none;
    }
}

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

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

    .hero {
        min-height: 620px;
        height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 620px;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-content {
        transform: none;
        padding: 92px 0 92px;
    }

    .hero-shade {
        background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.88) 56%, rgba(0, 0, 0, 0.22) 100%);
    }

    .grid-3,
    .grid-4,
    .grid-6,
    .rank-list,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text small {
        display: none;
    }

    .category-strip-inner,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-3,
    .grid-4,
    .grid-6,
    .rank-list,
    .detail-content,
    .category-panels {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .movie-card-large {
        display: block;
    }

    .poster-link,
    .movie-card-large .poster-link {
        aspect-ratio: 2 / 3;
    }

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

    .search-page-form {
        flex-direction: column;
    }

    .search-page-form button {
        min-height: 46px;
    }
}
