:root {
    --bg: #f7fbfc;
    --surface: #ffffff;
    --surface-soft: #eefafa;
    --ink: #102027;
    --muted: #64748b;
    --line: rgba(15, 118, 110, 0.14);
    --primary: #0f766e;
    --primary-bright: #06b6d4;
    --accent: #facc15;
    --danger: #ef4444;
    --shadow: 0 24px 70px rgba(15, 118, 110, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 34rem),
        linear-gradient(180deg, #f8ffff 0%, #f7fbfc 46%, #eef7f8 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-logo__mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #334155;
    font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 22px 0;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown:hover > a {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 220px;
    padding: 12px;
    transform: translateX(-50%) translateY(12px);
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown__panel a {
    padding: 10px 12px;
    color: #334155;
    border-radius: 12px;
}

.nav-dropdown__panel a:hover {
    color: var(--primary);
    background: #ecfeff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--primary);
    background: #ecfeff;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #334155;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--primary);
    background: #ecfeff;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2 52%, #2563eb);
}

.hero-slides {
    position: relative;
    min-height: 660px;
}

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

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

.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.02);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.28), transparent 24rem),
        linear-gradient(90deg, rgba(6, 78, 59, 0.92), rgba(8, 145, 178, 0.68) 48%, rgba(15, 23, 42, 0.74)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.42), transparent 48%);
}

.hero-slide__inner {
    position: relative;
    z-index: 1;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 50px;
    align-items: center;
    padding: 72px 0 96px;
}

.hero-slide__content {
    max-width: 720px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #a7f3d0;
}

.hero-slide h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-slide p {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.9;
}

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

.hero-tags {
    margin: 28px 0 0;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions,
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.18);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.btn-small {
    min-height: 38px;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

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

.hero-dot,
.hero-arrow {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #ffffff;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.site-section {
    padding: 72px 0;
}

.site-section--soft {
    background: rgba(236, 254, 255, 0.56);
    border-block: 1px solid rgba(15, 118, 110, 0.08);
}

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

.section-head h2,
.ranking-panel h2,
.page-hero h1,
.detail-info h1,
.detail-text-card h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-head h2,
.ranking-panel h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-head p,
.page-hero p,
.category-panel p,
.site-footer p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
}

.section-link--block {
    width: 100%;
    margin-top: 18px;
}

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

.category-tile,
.category-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 150px;
    color: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-tile::before,
.category-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(6, 182, 212, 0.92));
}

.category-tile--red::before,
.category-panel--red::before {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-tile--purple::before,
.category-panel--purple::before {
    background: linear-gradient(135deg, #6d28d9, #db2777);
}

.category-tile--green::before,
.category-panel--green::before {
    background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.category-tile--blue::before,
.category-panel--blue::before {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-tile--rose::before,
.category-panel--rose::before {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.category-tile--amber::before,
.category-panel--amber::before {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.category-tile__icon {
    display: block;
    margin-bottom: 18px;
    font-size: 34px;
}

.category-tile strong,
.category-panel strong {
    display: block;
    font-size: 22px;
}

.category-tile small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 118, 110, 0.08);
}

.search-box {
    display: grid;
    gap: 8px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: var(--ink);
    background: #f8ffff;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-bright);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 36px;
    padding: 0 14px;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.filter-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 24px;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: 0 26px 70px rgba(15, 118, 110, 0.18);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.movie-card__poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.movie-card__type,
.movie-card__rank {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 118, 110, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-card__type {
    left: 12px;
}

.movie-card__rank {
    right: 12px;
    background: rgba(250, 204, 21, 0.92);
    color: #1f2937;
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

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

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

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 20px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 34px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #f8ffff;
    border: 1px solid rgba(15, 118, 110, 0.08);
    border-radius: 16px;
}

.ranking-item__num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    border-radius: 12px;
    font-weight: 950;
}

.ranking-item img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

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

.ranking-item strong,
.ranking-item small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-item strong {
    color: #0f172a;
}

.ranking-item small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    position: relative;
    padding: 86px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.3), transparent 24rem),
        linear-gradient(135deg, #ecfeff, #ffffff 58%, #dff8ff);
}

.page-hero--center {
    text-align: center;
}

.page-hero--center p {
    margin-left: auto;
    margin-right: auto;
}

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

.page-hero--category {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.page-hero--category h1,
.page-hero--category .section-kicker,
.page-hero--category p {
    color: #ffffff;
}

.page-hero--red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.page-hero--purple {
    background: linear-gradient(135deg, #6d28d9, #db2777);
}

.page-hero--green {
    background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.page-hero--blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.page-hero--rose {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.page-hero--amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.category-panel {
    display: grid;
    gap: 16px;
    min-height: 320px;
}

.category-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-panel__head span {
    font-size: 30px;
}

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

.category-panel__previews img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
}

.category-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.detail-hero {
    padding: 66px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 8%, rgba(250, 204, 21, 0.26), transparent 25rem),
        linear-gradient(135deg, #064e3b, #0f766e 50%, #0891b2);
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
    max-width: 780px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.9;
}

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

.detail-tags {
    margin-top: 12px;
}

.detail-actions .btn-primary {
    color: #0f766e;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #020617;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(15, 118, 110, 0.36), transparent 18rem),
        rgba(2, 6, 23, 0.42);
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
}

.player-overlay__icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 4px;
    color: var(--primary);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.36);
    font-size: 30px;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.detail-text-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.detail-text-card h2 {
    font-size: 30px;
}

.detail-text-card p {
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.site-footer {
    padding: 52px 0;
    background: #061b1f;
    color: #d7f6f5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 28px;
    align-items: start;
}

.site-logo--footer {
    color: #ffffff;
}

.site-footer p {
    color: rgba(215, 246, 245, 0.72);
}

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

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

.footer-links a {
    color: rgba(215, 246, 245, 0.82);
    font-weight: 700;
}

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

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

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

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

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-carousel,
    .hero-slides,
    .hero-slide__inner {
        min-height: 740px;
    }

    .hero-slide__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 56px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
        transform: none;
    }

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

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

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

    .section-head {
        display: grid;
    }

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

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

    .site-logo {
        font-size: 18px;
    }

    .hero-slide h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .movie-grid,
    .movie-grid--compact,
    .ranking-page-grid,
    .category-grid,
    .category-panel-grid,
    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

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

    .detail-text-card {
        padding: 22px;
    }
}
