:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #0f172a;
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --red: #ef4444;
    --red-dark: #b91c1c;
    --amber: #f59e0b;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.10), transparent 25rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.34);
}

.site-logo-copy strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.site-logo-copy small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.site-nav a {
    color: var(--soft);
    font-size: 14px;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #fff;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.site-search input,
.page-search input,
.inline-filter input {
    color: var(--text);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search input {
    width: 190px;
    border-radius: 999px;
    padding: 10px 15px;
}

.site-search input:focus,
.page-search input:focus,
.inline-filter input:focus {
    border-color: rgba(239, 68, 68, 0.72);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    background: rgba(15, 23, 42, 0.96);
}

.site-search button,
.page-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.site-search button {
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #fff;
}

main {
    padding-top: 76px;
}

.home-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) brightness(0.62);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 40%, rgba(2, 6, 23, 0.42) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 46%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 720px;
    margin: 0 auto;
    padding: 80px 24px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fecaca;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(48px, 8vw, 98px);
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #dbe4ef;
    font-size: 19px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags,
.detail-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-card-tags span {
    border: 1px solid rgba(248, 113, 113, 0.26);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.22);
    border-radius: 999px;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.26);
}

.button-secondary,
.button-ghost {
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.66);
}

.button-ghost {
    color: #fecaca;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.45);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    background: var(--panel-solid);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(239, 68, 68, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 26px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 32px;
    opacity: 1;
    background: var(--red);
}

.home-search-band,
.section-block,
.page-hero,
.detail-hero-inner {
    width: min(1280px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-band {
    margin-top: -38px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.home-search-band h2 {
    font-size: 28px;
}

.home-search-band p {
    margin-top: 8px;
    color: var(--muted);
}

.home-search-band form,
.page-search {
    display: flex;
    gap: 10px;
}

.home-search-band input,
.page-search input {
    min-width: 0;
    flex: 1;
    padding: 15px 18px;
    border-radius: 999px;
}

.home-search-band button,
.page-search button {
    padding: 0 24px;
}

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

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

.section-heading span {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

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

.section-heading a {
    color: #fecaca;
    font-weight: 700;
}

.small-heading h2 {
    font-size: 28px;
}

.featured-grid,
.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

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

.movie-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-card-cover img {
    transform: scale(1.05);
    filter: saturate(1.12);
}

.movie-card-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.movie-card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(239, 68, 68, 0.92);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .movie-card-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #fca5a5;
}

.movie-card p {
    min-height: 56px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card-tags {
    margin-top: 14px;
}

.movie-card-tags span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-panel,
.category-large-card {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 55%),
        rgba(15, 23, 42, 0.70);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-panel:hover,
.category-large-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 113, 113, 0.44);
}

.category-panel strong,
.category-large-card span {
    font-size: 22px;
    color: #fff;
}

.category-panel span,
.category-large-card strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.category-large-card em {
    color: #fecaca;
    font-style: normal;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
}

.ranking-box,
.side-panel,
.content-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
}

.ranking-box {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 100px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(15, 23, 42, 0.88);
}

.rank-number {
    color: #fecaca;
    font-weight: 900;
    font-size: 20px;
}

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

.rank-copy strong,
.rank-copy em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: #fff;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    padding: 88px 0 26px;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.page-hero p {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.chip {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.62);
}

.chip.is-active,
.chip:hover {
    color: #fff;
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.32);
}

.inline-filter input {
    width: 240px;
    padding: 11px 14px;
    border-radius: 999px;
}

.empty-state {
    padding: 38px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
}

.rankings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
}

.rank-list-large .rank-item {
    grid-template-columns: 62px 112px minmax(0, 1fr);
}

.rank-list-large .rank-item img {
    width: 112px;
    height: 72px;
}

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

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

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

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

.detail-bg {
    object-fit: cover;
    filter: saturate(1.1) brightness(0.48) blur(1px);
    transform: scale(1.03);
}

.detail-bg-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 52%, rgba(2, 6, 23, 0.42) 100%),
        linear-gradient(0deg, #020617 0%, transparent 46%, rgba(2, 6, 23, 0.78) 100%);
}

.detail-hero-inner {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 64px 0 48px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    background: var(--panel-solid);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: #fecaca;
}

.detail-copy h1 {
    max-width: 900px;
    font-size: clamp(42px, 6vw, 78px);
}

.detail-one-line {
    max-width: 880px;
    color: #dbe4ef;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 20px;
}

.detail-meta span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
}

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

.detail-main,
.detail-side,
.related-list {
    display: grid;
    gap: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.movie-player,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player {
    background: #000;
}

.player-cover {
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #000;
    z-index: 2;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-cover img {
    object-fit: cover;
    filter: brightness(0.58) saturate(1.08);
}

.play-orb {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    background: rgba(239, 68, 68, 0.94);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
}

.content-panel,
.side-panel {
    padding: 26px;
}

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

.content-panel p {
    margin: 0;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.9;
}

.side-panel {
    position: sticky;
    top: 100px;
}

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

.related-list .movie-card-cover {
    height: 100%;
    aspect-ratio: 1 / 1.22;
}

.related-list .movie-card p,
.related-list .movie-card-tags {
    display: none;
}

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

.site-footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 32px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: var(--soft);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fecaca;
}

.site-copyright {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .site-nav {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: rgba(239, 68, 68, 0.14);
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

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

@media (max-width: 860px) {
    .site-header-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .site-logo-copy small,
    .site-search {
        display: none;
    }

    .home-hero,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 70px;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .home-search-band,
    .site-footer-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-search-band,
    .section-block,
    .page-hero,
    .detail-hero-inner,
    .site-footer-inner,
    .site-copyright {
        width: min(100% - 28px, 1280px);
    }

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

    .home-search-band button,
    .page-search button {
        min-height: 48px;
    }

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

    .detail-poster {
        width: min(260px, 70vw);
    }

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

    .inline-filter input {
        width: min(100%, 420px);
    }

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

@media (max-width: 560px) {
    .site-logo-copy strong {
        font-size: 17px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

    .related-list .movie-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .rank-item,
    .rank-list-large .rank-item {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .rank-list-large .rank-item img,
    .rank-item img {
        width: 78px;
        height: 56px;
    }

    .content-panel,
    .side-panel {
        padding: 20px;
    }
}
