:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-900: #0f172a;
    --slate-950: #020617;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--slate-50), var(--amber-50), var(--orange-50));
}

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

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

button,
input {
    font: inherit;
}

::selection {
    background: #fbbf24;
    color: var(--gray-800);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--amber-600);
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.nav-shell {
    max-width: 80rem;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    color: white;
    box-shadow: 0 10px 20px rgb(217 119 6 / 0.28);
}

.brand-text {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-600);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.7rem);
    width: 14rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    background: white;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--gray-700);
}

.dropdown-panel a:hover {
    color: var(--amber-600);
    background: var(--amber-50);
}

.nav-search {
    width: min(21rem, 28vw);
    position: relative;
}

.nav-search input,
.hero-search input,
.filter-box input,
.mobile-panel input {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 0.75rem 3.2rem 0.75rem 1.1rem;
    outline: none;
    background: white;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-box input:focus,
.mobile-panel input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--amber-500);
}

.nav-search button {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    padding: 0.6rem;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 0.9rem 1rem 1.2rem;
    background: white;
}

.mobile-panel a,
.mobile-panel form {
    display: block;
    margin: 0.45rem 0;
    color: var(--gray-700);
    font-weight: 700;
}

.mobile-panel button {
    margin-top: 0.6rem;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    color: white;
    background: var(--amber-600);
}

.hero-shell,
.category-strip,
.content-section,
.rank-section,
.page-shell,
.detail-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-frame {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.84), rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.08));
}

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 54rem;
    padding: 3rem;
    color: white;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-meta {
    margin: 0 0 0.7rem;
    color: rgb(255 255 255 / 0.86);
    font-size: 1.05rem;
}

.hero-desc {
    max-width: 45rem;
    margin: 0 0 1.6rem;
    color: rgb(255 255 255 / 0.76);
    line-height: 1.8;
}

.hero-actions,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.primary-button,
.ghost-button,
.inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 0.9rem 1.45rem;
    color: white;
    background: var(--amber-600);
}

.primary-button:hover,
.inline-button:hover {
    background: var(--amber-700);
    transform: scale(1.04);
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    padding: 0.85rem 1.25rem;
    color: white;
    background: rgb(255 255 255 / 0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ghost-button:hover {
    background: rgb(255 255 255 / 0.3);
}

.hero-control {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgb(255 255 255 / 0.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.hero-control:hover {
    background: rgb(255 255 255 / 0.32);
}

.hero-control.prev {
    right: 5.35rem;
}

.hero-control.next {
    right: 2rem;
}

.hero-dots {
    position: absolute;
    left: 3rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.4);
    cursor: pointer;
}

.hero-dot.active {
    width: 1.75rem;
    background: #fbbf24;
}

.hero-search {
    display: flex;
    gap: 0.7rem;
    width: min(56rem, calc(100% - 2rem));
    margin: -1.75rem auto 0;
    position: relative;
    z-index: 3;
    padding: 0.75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    padding-right: 1.1rem;
}

.hero-search button,
.filter-box button {
    border: 0;
    border-radius: 999px;
    padding: 0 1.4rem;
    color: white;
    background: var(--amber-600);
    font-weight: 800;
    cursor: pointer;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: var(--gray-900);
    letter-spacing: -0.05em;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.section-more,
.inline-link {
    color: var(--amber-600);
    font-weight: 800;
}

.section-more:hover,
.inline-link:hover {
    color: var(--amber-700);
}

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

.category-tile,
.category-card-large,
.page-hero,
.detail-card,
.side-card,
.player-card {
    border-radius: var(--radius-xl);
    background: rgb(255 255 255 / 0.82);
    box-shadow: var(--shadow-md);
}

.category-tile {
    padding: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
}

.category-tile strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.category-tile span {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-200);
}

.poster-wrap img,
.mini-poster img,
.ranking-cover img,
.category-posters img,
.cover-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.mini-card:hover img,
.ranking-row:hover img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent);
    transition: opacity 0.2s ease;
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: white;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
}

.play-hover::before {
    content: "";
    position: absolute;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--amber-600);
    z-index: -1;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-hover {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    font-weight: 900;
}

.card-body {
    padding: 1rem;
}

.card-body h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card.compact .card-body h2 {
    font-size: 0.98rem;
}

.card-body h2 a:hover {
    color: var(--amber-600);
}

.card-meta,
.card-desc {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.65;
}

.card-desc {
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mini-grid,
.mini-list {
    display: grid;
    gap: 1rem;
}

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

.mini-card {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-0.15rem);
    box-shadow: var(--shadow-xl);
}

.mini-poster {
    position: relative;
    flex: 0 0 5.2rem;
    width: 5.2rem;
    height: 6.8rem;
    overflow: hidden;
    border-radius: 0.6rem;
    background: var(--gray-200);
}

.mini-rank {
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    min-width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    font-size: 0.78rem;
    font-weight: 900;
}

.mini-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.mini-info strong {
    color: var(--gray-900);
    line-height: 1.35;
}

.mini-info em,
.mini-info small {
    color: var(--gray-500);
    font-style: normal;
    line-height: 1.5;
}

.mini-info small {
    color: var(--gray-600);
}

.page-hero {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(255 251 235 / 0.88));
}

.page-hero h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
    max-width: 56rem;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.85;
}

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.crumbs a:hover {
    color: var(--amber-600);
}

.filter-box {
    display: flex;
    width: min(44rem, 100%);
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.filter-box input {
    padding-right: 1rem;
}

.filter-box button {
    padding: 0.75rem 1.2rem;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1rem;
    overflow: hidden;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.category-posters img {
    aspect-ratio: 3 / 4;
    border-radius: 0.55rem;
    background: var(--gray-200);
}

.category-card-large h2 {
    margin: 0.35rem 0 0.6rem;
}

.category-card-large p {
    color: var(--gray-600);
    line-height: 1.75;
}

.ranking-list {
    display: grid;
    gap: 1rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 4rem 5.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 1rem;
    background: white;
    box-shadow: var(--shadow-md);
}

.ranking-index {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 1.2rem;
    font-weight: 900;
}

.ranking-cover {
    display: block;
    width: 5.5rem;
    height: 7.2rem;
    overflow: hidden;
    border-radius: 0.7rem;
    background: var(--gray-200);
}

.ranking-info h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.ranking-info p {
    margin: 0.25rem 0 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.inline-button {
    padding: 0.7rem 1rem;
    color: white;
    background: var(--amber-600);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.9fr);
    gap: 2rem;
    align-items: start;
}

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

.player-card {
    overflow: hidden;
    padding: 0;
    background: black;
    box-shadow: var(--shadow-2xl);
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black;
}

.video-element {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5rem;
    height: 5rem;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--amber-600);
    box-shadow: 0 20px 35px rgb(0 0 0 / 0.35);
    font-size: 1.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--amber-700);
}

.movie-player.is-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

.video-box:hover .play-button {
    opacity: 1;
    pointer-events: auto;
}

.player-status {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    color: white;
    text-align: center;
    pointer-events: none;
}

.detail-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.detail-card h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.detail-meta {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.detail-meta a,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: var(--amber-50);
    color: var(--amber-700);
    font-weight: 700;
    font-size: 0.9rem;
}

.tag-list {
    margin-bottom: 1.25rem;
}

.tag-list span {
    background: var(--gray-100);
    color: var(--gray-700);
}

.detail-card section + section {
    margin-top: 1.4rem;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
}

.detail-card p,
.side-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 1.5rem;
    position: sticky;
    top: 5.5rem;
}

.side-card {
    padding: 1rem;
}

.cover-info img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
    background: var(--gray-200);
    margin-bottom: 1rem;
}

.cover-info h2 {
    font-size: 1.35rem;
}

.cover-info .primary-button {
    margin-top: 1rem;
}

.related-block {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    margin-top: 3rem;
    color: var(--gray-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand {
    color: white;
    margin-bottom: 1rem;
}

.site-footer h2 {
    color: white;
    margin: 0 0 1rem;
    font-size: 1rem;
}

.site-footer p,
.site-footer li {
    color: var(--gray-400);
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.3rem 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--gray-400);
}

[data-card].is-hidden {
    display: none;
}

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-frame {
        min-height: 440px;
        border-radius: 1.15rem;
    }

    .hero-slide img {
        min-height: 440px;
    }

    .hero-copy {
        padding: 2rem;
    }

    .hero-control {
        bottom: 1.4rem;
    }

    .hero-control.prev {
        right: 4.7rem;
    }

    .hero-control.next {
        right: 1.4rem;
    }

    .hero-search,
    .filter-box {
        flex-direction: column;
        border-radius: 1rem;
    }

    .hero-search button,
    .filter-box button {
        padding: 0.85rem 1rem;
    }

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

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

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

    .detail-side {
        position: static;
    }

    .ranking-row {
        grid-template-columns: 3.4rem 4.5rem minmax(0, 1fr);
    }

    .ranking-row .inline-button {
        grid-column: 2 / -1;
        width: max-content;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        height: 3.75rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .hero-shell,
    .category-strip,
    .content-section,
    .rank-section,
    .page-shell,
    .detail-shell {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .hero-frame,
    .hero-slide img {
        min-height: 410px;
    }

    .hero-copy {
        padding: 1.25rem;
    }

    .hero-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-dots {
        left: 1.25rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-tile-grid,
    .movie-grid,
    .slim-grid,
    .page-grid,
    .mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .mini-card {
        grid-column: span 2;
    }

    .card-body {
        padding: 0.85rem;
    }

    .ranking-row {
        grid-template-columns: 3rem 4rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .ranking-cover {
        width: 4rem;
        height: 5.4rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
