:root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-soft: rgba(15, 23, 42, 0.72);
    --surface-card: rgba(30, 41, 59, 0.58);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-deep: #64748b;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --cyan-dark: #155e75;
    --radius: 18px;
    --shadow: 0 22px 80px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.1), transparent 28rem),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    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;
}

main {
    padding-top: 64px;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid var(--line);
    transition: background 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-icon,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
    font-size: 13px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-text em {
    color: var(--cyan);
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-weight: 600;
}

.desktop-nav a,
.nav-dropdown button {
    color: #cbd5e1;
    border: 0;
    background: transparent;
    padding: 8px 0;
    transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown:hover button {
    color: var(--cyan);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0f172a;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

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

.nav-dropdown__panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
}

.nav-dropdown__panel a:hover {
    background: rgba(34, 211, 238, 0.08);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(320px, 28vw);
    min-width: 240px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    overflow: hidden;
}

.header-search input,
.page-search input,
.mobile-nav input {
    width: 100%;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.page-search button,
.mobile-nav button {
    border: 0;
    color: white;
    background: var(--cyan-strong);
    font-weight: 700;
    white-space: nowrap;
}

.header-search button {
    align-self: stretch;
    padding: 0 16px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.86);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a {
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 10px;
}

.mobile-nav a:hover {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
}

.mobile-nav form {
    display: flex;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-nav input {
    padding: 10px 14px;
}

.mobile-nav button {
    padding: 0 18px;
}

.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 10px));
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 700ms ease, transform 1300ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.25)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.hero-slide__content h1 {
    max-width: 760px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.04;
    margin: 0 0 20px;
    letter-spacing: -0.055em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.hero-desc {
    max-width: 690px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
    margin: 0 0 24px;
}

.hero-tags,
.movie-card__tags,
.category-chips,
.page-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.18);
    font-size: 13px;
    font-weight: 600;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

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

.btn-primary {
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #38bdf8);
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.24);
}

.btn-ghost {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: var(--cyan);
}

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

.hero-dots button {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
    width: 60px;
    background: var(--cyan);
}

.home-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -62px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-panel h2,
.page-hero h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-search-panel h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.home-search-panel p,
.page-hero p,
.section-heading p {
    color: var(--muted);
}

.home-search-panel form,
.page-search {
    display: flex;
    overflow: hidden;
    margin: 22px 0 20px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.56);
}

.home-search-panel input,
.page-search input {
    flex: 1;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
    padding: 15px 20px;
}

.home-search-panel button,
.page-search button {
    padding: 0 28px;
}

.category-chips a {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 14px;
    transition: color 160ms ease, border 160ms ease, background 160ms ease;
}

.category-chips a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(14, 116, 144, 0.18);
}

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

.panel-section {
    margin-top: 70px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.5));
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.2);
}

.panel-section--dark {
    background: rgba(15, 23, 42, 0.44);
}

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

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

.section-heading p {
    margin: 8px 0 0;
}

.section-more,
.text-link {
    color: var(--cyan);
    font-weight: 800;
}

.section-more span {
    font-size: 22px;
    margin-left: 4px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-card);
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(30, 41, 59, 0.82);
    box-shadow: 0 24px 60px rgba(8, 47, 73, 0.2);
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0f172a;
}

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18) 56%, transparent);
    opacity: 0.74;
    transition: opacity 220ms ease;
}

.movie-card:hover .movie-card__poster::after {
    opacity: 0.92;
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 520ms ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.08);
}

.movie-card__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    color: #a5f3fc;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 9px;
}

.movie-card__title a:hover {
    color: var(--cyan);
}

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

.movie-card__meta {
    color: var(--muted-deep);
    font-size: 13px;
    margin: 0 0 12px;
}

.movie-card__tags {
    gap: 7px;
}

.movie-card__tags span {
    min-height: 24px;
    font-size: 12px;
    padding: 2px 8px;
}

.rank-preview {
    padding: 72px 0 0;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(30, 41, 59, 0.76);
}

.rank-item span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #00131a;
    background: var(--cyan);
    font-weight: 900;
}

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

.rank-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    margin-top: 2px;
}

.page-hero {
    padding: 82px 0 34px;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    font-size: 18px;
}

.page-actions {
    margin-top: 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.category-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.62);
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 18px;
    align-items: center;
}

.category-card__covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card__covers img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

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

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

.rank-list {
    display: grid;
    gap: 16px;
    padding-bottom: 36px;
}

.rank-row {
    display: grid;
    grid-template-columns: 110px 58px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.rank-row__poster img {
    width: 110px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row__index {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    font-weight: 900;
}

.rank-row__content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row__content h2 a:hover {
    color: var(--cyan);
}

.rank-row__content p {
    color: var(--muted);
    margin: 0 0 12px;
}

.rank-row__content div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-deep);
    font-size: 14px;
}

.rank-row__content div a {
    color: var(--cyan);
}

.detail-page {
    padding-top: 34px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

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

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

.player-card,
.copy-panel,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
}

.player-card {
    padding: 10px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.movie-video {
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #000;
    padding: 0;
    z-index: 2;
}

.player-cover[hidden] {
    display: none;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.62;
    filter: saturate(1.05);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 36%), rgba(2, 6, 23, 0.42);
}

.play-circle {
    position: absolute;
    z-index: 3;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    font-size: 28px;
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.12), 0 24px 60px rgba(0, 0, 0, 0.34);
    transition: transform 180ms ease;
}

.player-cover:hover .play-circle {
    transform: scale(1.08);
}

.movie-detail-copy {
    padding: 28px 0 0;
}

.movie-detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-meta {
    color: var(--muted);
    margin: 0 0 16px;
}

.detail-tags {
    margin-bottom: 18px;
}

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

.copy-panel {
    padding: 24px;
    margin-bottom: 18px;
}

.copy-panel--accent {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.68));
}

.copy-panel h2,
.detail-side h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.copy-panel p {
    color: #cbd5e1;
    margin: 0;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.58);
    transition: background 160ms ease, transform 160ms ease;
}

.compact-card:hover {
    transform: translateX(3px);
    background: rgba(30, 41, 59, 0.9);
}

.compact-card img {
    width: 88px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

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

.compact-card strong {
    line-height: 1.35;
}

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

.page-search {
    max-width: 760px;
}

.search-results {
    padding-bottom: 48px;
}

.empty-state {
    text-align: center;
    padding: 72px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.58);
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--muted);
    margin: 0;
}

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand strong {
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--muted);
}

.site-footer p {
    margin: 16px 0 0;
}

.site-footer h2 {
    font-size: 17px;
    margin: 0 0 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .header-search {
        display: none;
    }

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    main {
        padding-top: 64px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-slide__shade {
        background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.86) 100%);
    }

    .hero-slide__content {
        justify-content: end;
        padding-bottom: 110px;
    }

    .home-search-panel {
        margin-top: -34px;
        padding: 22px;
    }

    .home-search-panel form,
    .page-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .home-search-panel button,
    .page-search button {
        min-height: 46px;
    }

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

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

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

    .category-card,
    .rank-row {
        grid-template-columns: 1fr;
    }

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

    .rank-row__poster img {
        width: 100%;
    }

    .panel-section {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, 1180px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero-slide__content h1 {
        font-size: 42px;
    }

    .hero-actions,
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

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

    .compact-card {
        grid-template-columns: 74px 1fr;
    }

    .compact-card img {
        width: 74px;
    }
}
