:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.82);
    --panel-light: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --line: rgba(148, 163, 184, 0.18);
    --brand: #f59e0b;
    --brand-strong: #ea580c;
    --danger: #ef4444;
    --blue: #38bdf8;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow-xl: 0 26px 70px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 18px 36px rgba(0, 0, 0, 0.28);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 30rem),
        var(--bg);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-size: 14px;
    color: var(--muted-strong);
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    color: var(--muted-strong);
    font-size: 13px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    height: clamp(520px, 76vh, 720px);
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.20) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.62) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    gap: 18px;
    max-width: min(1180px, calc(100% - 32px));
}

.eyebrow {
    margin: 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.58);
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    text-shadow: 0 12px 24px rgba(0, 0, 0, 0.62);
}

.hero-tags,
.detail-tags,
.tag-list,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.54);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    padding: 0 24px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.34);
}

.ghost-button {
    padding: 0 22px;
    color: white;
    border: 1px solid rgba(226, 232, 240, 0.25);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
}

.text-button {
    color: var(--brand);
    min-height: auto;
    font-size: 14px;
}

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

.full {
    width: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--brand);
}

.search-panel,
.toolbar-panel,
.content-section,
.breadcrumb,
.detail-layout,
.site-footer .footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel p {
    margin-top: 6px;
    color: var(--muted);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.48);
}

.search-box.wide {
    width: 100%;
}

.search-box span {
    color: var(--brand);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.search-box input::placeholder {
    color: #64748b;
}

.content-section {
    padding-top: 70px;
}

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

.section-heading p {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading > a {
    color: var(--brand);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.movie-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.84);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.9);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

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

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-strong);
    font-size: 12px;
}

.tag-list {
    margin-top: 12px;
    gap: 6px;
}

.tag-list span {
    padding: 4px 8px;
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.10);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

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

.category-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
    opacity: 0.58;
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-card span,
.category-card p,
.category-overview-card span,
.category-overview-card p,
.category-overview-card .text-button {
    position: relative;
    z-index: 2;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 18px;
}

.category-card span,
.category-overview-card span {
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.6;
}

.category-overview-card {
    min-height: 260px;
    padding: 20px;
    display: grid;
    align-content: end;
    gap: 12px;
}

.category-overview-card a:first-child {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-overview-card a:first-child span {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 78px;
}

.category-overview-card p,
.category-overview-card .text-button {
    z-index: 2;
}

.section-title-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title-line span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-weight: 900;
}

.section-title-line i {
    height: 1px;
    flex: 1;
    background: var(--line);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 118px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(30, 41, 59, 0.86);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    height: 76px;
    border-radius: 12px;
    background: #111827;
}

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

.rank-info h3,
.rank-info p {
    margin: 0;
}

.rank-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.rank-info h3 a:hover {
    color: var(--brand);
}

.rank-info p {
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted-strong);
    font-size: 12px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 48%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-xl);
}

.small-hero {
    min-height: 260px;
    display: flex;
    align-items: end;
    padding: 42px;
}

.small-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.small-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.ranking-hero {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.12), transparent 30rem),
        linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
}

.toolbar-panel {
    margin-top: 24px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-pills button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.08);
    cursor: pointer;
}

.filter-pills button.is-active,
.filter-pills button:hover {
    color: white;
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.18);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 26px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 22px;
}

.player-column {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-content,
.side-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.35);
    font-size: 30px;
}

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

.detail-content {
    padding: 30px;
}

.detail-content h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.lead-text {
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin: 18px 0 28px;
}

.detail-content h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-content p {
    color: var(--muted-strong);
    line-height: 2;
}

.side-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 18px;
}

.side-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: #111827;
}

.side-panel h2 {
    margin: 18px 0 14px;
    font-size: 24px;
}

.side-panel dl {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.side-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-panel dt {
    color: var(--muted);
}

.side-panel dd {
    margin: 0;
    color: #e2e8f0;
    text-align: right;
}

.related-section {
    padding-bottom: 70px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
    margin-top: 0;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer a {
    display: block;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.is-filtered-out {
    display: none !important;
}

.no-result {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1120px) {
    .nav-links {
        gap: 14px;
        font-size: 13px;
    }

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

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

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

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

    .side-panel {
        position: static;
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 18px;
        align-items: start;
    }

    .side-panel img {
        grid-row: span 4;
    }
}

@media (max-width: 860px) {
    .top-nav {
        height: 66px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero {
        height: 620px;
    }

    .hero-content {
        bottom: 74px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -28px;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 92px 1fr;
    }

    .rank-row .text-button {
        grid-column: 3;
        justify-self: start;
    }

    .small-hero {
        padding: 30px;
    }

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-tags span:nth-child(n+4) {
        display: none;
    }

    .hero-actions a {
        width: 100%;
    }

    .search-panel,
    .toolbar-panel,
    .detail-content,
    .small-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 38px 84px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .rank-info p {
        display: none;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

    .side-panel img {
        grid-row: auto;
        max-height: 420px;
    }
}
