:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --white: #ffffff;
    --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.20);
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--cyan-400);
    background: rgba(6, 182, 212, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.34);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.brand-name {
    font-size: 22px;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: rgba(226, 232, 240, 0.86);
    font-weight: 650;
    transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan-400);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--white);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--slate-800);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transform: scale(1.02);
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 24%, rgba(34, 211, 238, 0.22), transparent 34%), linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.46) 56%, rgba(15, 23, 42, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(760px, 100%);
    padding: 80px 0;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cyan-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker span {
    color: #facc15;
}

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

.hero-copy p {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(226, 232, 240, 0.90);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.hero-tags span:first-child {
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(6, 182, 212, 0.18);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 14px 28px rgba(6, 182, 212, 0.28);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 180ms ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--cyan-400);
}

.search-band,
.catalog-tools {
    padding: 24px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.search-shell,
.tools-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.search-shell h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
}

.search-box {
    display: flex;
    width: min(520px, 100%);
    min-height: 52px;
    padding: 6px;
    border-radius: 16px;
    background: var(--slate-100);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--slate-900);
    background: transparent;
}

.search-box button,
.filter-row button {
    border: 0;
    border-radius: 12px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.search-box button {
    padding: 0 18px;
}

.content-section {
    padding: 72px 0;
    background: var(--white);
}

.soft-section {
    background: linear-gradient(90deg, var(--slate-50), #ecfeff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--slate-600);
}

.section-heading a,
.back-link {
    color: var(--cyan-600);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: inherit;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-800);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.movie-card-link:hover .poster-frame img {
    transform: scale(1.08);
}

.duration-pill,
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.duration-pill {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
}

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

.category-pill {
    margin-bottom: 10px;
    padding: 5px 10px;
    color: #0e7490;
    background: #cffafe;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    transition: color 180ms ease;
}

.movie-card-link:hover h3 {
    color: var(--cyan-600);
}

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

.tag-row span,
.detail-tags span {
    color: var(--slate-600);
    background: var(--slate-100);
}

.horizontal-list {
    display: grid;
    gap: 20px;
}

.movie-card-horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-horizontal .poster-frame {
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
}

.movie-card-horizontal .movie-card-body {
    padding: 20px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.side-card,
.detail-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-head span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.ranking-head h2 {
    flex: 1;
    margin: 0;
    font-size: 24px;
}

.ranking-head a {
    color: var(--cyan-600);
    font-weight: 800;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 36px 72px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--slate-50);
    transition: transform 180ms ease, background 180ms ease;
}

.rank-item:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.rank-no {
    color: var(--cyan-600);
    font-weight: 900;
}

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

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

.rank-info strong {
    overflow: hidden;
    color: var(--slate-900);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 12px;
}

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

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

.category-entry {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-900), #164e63);
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-entry:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.entry-kicker {
    color: var(--cyan-300, #67e8f9);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.category-entry h2 {
    margin: 18px 0 10px;
    font-size: 26px;
}

.category-entry p {
    margin: 0 0 22px;
    color: rgba(226, 232, 240, 0.88);
}

.entry-arrow {
    font-weight: 900;
    color: #a5f3fc;
}

.page-hero {
    padding: 72px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(90deg, var(--slate-900), #164e63);
}

.page-hero-inner h1 {
    margin: 10px 0 14px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero-inner p {
    max-width: 780px;
    margin: 0;
    color: rgba(226, 232, 240, 0.90);
    font-size: 18px;
}

.tools-shell {
    align-items: stretch;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row button {
    min-height: 42px;
    padding: 0 16px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.filter-row button.is-active,
.filter-row button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 72px 132px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ranking-card a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.ranking-number {
    color: var(--cyan-600);
    font-size: 26px;
    font-weight: 900;
}

.ranking-card img {
    width: 132px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
}

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

.ranking-copy strong,
.ranking-copy em,
.ranking-desc {
    display: block;
}

.ranking-copy strong {
    margin-bottom: 3px;
    color: var(--slate-900);
    font-size: 20px;
}

.ranking-copy em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 14px;
}

.ranking-desc {
    margin: 8px 0;
    color: var(--slate-600);
    font-size: 14px;
}

.detail-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-900);
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 54px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--cyan-400);
}

.detail-hero h1 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.10;
}

.detail-hero p {
    max-width: 840px;
    margin: 0;
    color: rgba(226, 232, 240, 0.90);
    font-size: 18px;
}

.detail-section {
    padding: 42px 0 72px;
    background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.08));
    transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    color: var(--white);
    font-size: 38px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 45px rgba(6, 182, 212, 0.36);
}

.play-text {
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.55);
}

.detail-card {
    padding: 28px;
}

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

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
    background: var(--slate-100);
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    color: var(--slate-900);
    font-size: 24px;
    line-height: 1.25;
}

.detail-card h2:first-of-type,
.side-card h2:first-child {
    margin-top: 0;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--slate-700);
    font-size: 16px;
}

.detail-tags {
    margin: 20px 0 8px;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 20px;
}

.poster-side {
    overflow: hidden;
    padding: 0;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.poster-side div {
    padding: 18px;
}

.poster-side h2 {
    margin: 0 0 4px;
}

.poster-side p {
    margin: 0;
    color: var(--slate-500);
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: var(--slate-50);
    transition: background 180ms ease, transform 180ms ease;
}

.related-item:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.related-item img {
    width: 96px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
}

.related-item strong,
.related-item em {
    display: block;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-item em {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--cyan-700, #0e7490);
    font-weight: 800;
    background: #ecfeff;
}

.site-footer {
    color: rgba(226, 232, 240, 0.86);
    background: var(--slate-900);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    padding: 48px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: rgba(203, 213, 225, 0.78);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 7px 0;
    color: rgba(203, 213, 225, 0.82);
}

.site-footer a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    padding: 18px 0 28px;
    color: rgba(148, 163, 184, 0.78);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

@media (max-width: 1060px) {
    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .category-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-copy {
        padding: 86px 0 72px;
    }

    .hero-control {
        display: none;
    }

    .search-shell,
    .tools-shell,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

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

    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .category-grid-large {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-link {
        grid-template-columns: 1fr;
    }

    .ranking-card a {
        grid-template-columns: 52px 98px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-card img {
        width: 98px;
        height: 68px;
    }

    .ranking-copy strong {
        font-size: 16px;
    }

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

    .detail-card,
    .side-card {
        padding: 18px;
    }

    .detail-hero-content {
        padding: 42px 0 52px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-tags,
    .tag-row,
    .detail-tags,
    .filter-row {
        gap: 7px;
    }

    .rank-item {
        grid-template-columns: 30px 64px 1fr;
        gap: 10px;
    }

    .rank-item img {
        width: 64px;
        height: 44px;
    }

    .related-item {
        grid-template-columns: 82px 1fr;
    }

    .related-item img {
        width: 82px;
        height: 56px;
    }
}
