:root {
    --color-ink: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-paper: #ffffff;
    --color-line: #fed7aa;
    --color-amber: #f59e0b;
    --color-orange: #f97316;
    --color-rose: #f43f5e;
    --shadow-card: 0 20px 45px rgba(124, 45, 18, 0.12);
    --shadow-hover: 0 28px 60px rgba(124, 45, 18, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fff 34%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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(255, 247, 237, 0.86);
    border-bottom: 1px solid rgba(254, 215, 170, 0.8);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(100% - 32px, var(--container));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.03em;
}

.site-logo__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.site-logo__text {
    font-size: 1.15rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-link {
    color: #4b5563;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-orange);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto 18px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    color: #4b5563;
    font-weight: 700;
    border-bottom: 1px solid #ffedd5;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}

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

.home-hero {
    width: min(100% - 32px, var(--container));
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: stretch;
}

.home-hero__header {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 20% 18%, rgba(251, 191, 36, 0.34), transparent 30%),
        radial-gradient(circle at 78% 10%, rgba(244, 63, 94, 0.22), transparent 28%),
        linear-gradient(135deg, #fffbeb, #fff7ed 48%, #ffe4e6);
    box-shadow: var(--shadow-card);
}

.home-hero__header h1 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.08em;
    color: #111827;
}

.home-hero__header p:not(.eyebrow) {
    max-width: 560px;
    margin: 22px 0 0;
    color: #4b5563;
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-search {
    width: min(100%, 520px);
    margin: 32px 0 0;
    padding: 8px;
    display: flex;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.12);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: #111827;
}

.hero-search button {
    border: 0;
    padding: 13px 22px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
    cursor: pointer;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-category-links a {
    padding: 8px 14px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-links a:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #111827;
}

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

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

.hero-slide__backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide__backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.18) brightness(0.72);
    transform: scale(1.12);
}

.hero-slide__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.44) 52%, rgba(17, 24, 39, 0.1)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 45%);
}

.hero-slide__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
    align-items: center;
    color: #ffffff;
}

.hero-slide__copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-slide__intro {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.detail-meta span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.26);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-slide__poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.carousel-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.carousel-controls button {
    border: 0;
    cursor: pointer;
}

.carousel-controls > button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.6rem;
    line-height: 1;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.carousel-dot.is-active {
    width: 24px;
    background: #ffffff;
}

.section-block {
    width: min(100% - 32px, var(--container));
    margin: 58px auto 0;
}

.section-block--raised {
    margin-top: 34px;
}

.section-featured {
    width: 100%;
    max-width: none;
    padding: 58px max(16px, calc((100vw - var(--container)) / 2));
    background: linear-gradient(135deg, #fbbf24, #fb923c 48%, #fb7185);
}

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

.section-heading h2,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    color: #111827;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.section-heading a {
    color: var(--color-orange);
    font-weight: 900;
}

.section-heading--light h2,
.section-heading--light .eyebrow,
.section-heading--light a {
    color: #ffffff;
}

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

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

.category-card {
    min-height: 188px;
    padding: 24px;
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #fdba74;
    box-shadow: var(--shadow-card);
}

.category-card__title {
    display: inline-flex;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0 16px;
    color: #6b7280;
    font-size: 0.94rem;
}

.category-card__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-card__links a {
    color: #ea580c;
    font-size: 0.9rem;
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(124, 45, 18, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.movie-card.is-hidden,
.rank-list__item.is-hidden {
    display: none;
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #ffedd5, #ffe4e6);
}

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

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

.movie-card__badge,
.movie-card__year {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.movie-card__badge {
    left: 12px;
    top: 12px;
}

.movie-card__year {
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
}

.movie-card__body {
    padding: 16px;
}

.movie-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.9em;
    margin: 9px 0 12px;
    color: #6b7280;
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card__tags span {
    color: #9a3412;
    background: #fff7ed;
}

.library-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    color: #9a3412;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.search-box input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.filter-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
}

.page-hero {
    width: min(100% - 32px, var(--container));
    margin: 36px auto 0;
    padding: 56px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.32), transparent 30%),
        linear-gradient(135deg, #fff7ed, #ffe4e6);
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 1.05rem;
}

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

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

.rank-list__item {
    display: grid;
    grid-template-columns: 54px 88px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #ffedd5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.rank-list__number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
}

.rank-list__thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #ffedd5;
}

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

.rank-list__content a {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
}

.rank-list__content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 8px;
    color: #6b7280;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-list__content div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-page {
    padding-bottom: 32px;
}

.detail-hero {
    width: min(100% - 32px, var(--container));
    margin: 34px auto 0;
    padding: 26px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 15% 12%, rgba(251, 191, 36, 0.26), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff 46%, #ffe4e6);
    box-shadow: var(--shadow-card);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #9a3412;
    font-size: 0.9rem;
    font-weight: 800;
}

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

.detail-hero__poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(124, 45, 18, 0.2);
}

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

.detail-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.detail-hero__lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 1.08rem;
}

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

.detail-meta span,
.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
}

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

.watch-section {
    width: min(100% - 32px, var(--container));
    margin: 34px auto 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 34px 88px rgba(17, 24, 39, 0.26);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #111827;
    cursor: pointer;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(1.12);
}

.player-poster__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.16), transparent 38%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.18));
}

.player-poster__button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-rose));
    font-size: 2.2rem;
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.32);
}

.player-poster__text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.player-shell.is-playing .player-poster {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.detail-content__main {
    display: grid;
    gap: 20px;
}

.text-panel,
.info-panel {
    padding: 28px;
    border: 1px solid #ffedd5;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.text-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.45rem;
}

.text-panel p {
    margin: 0;
    color: #4b5563;
}

.info-panel dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.info-panel dl div {
    padding-bottom: 14px;
    border-bottom: 1px solid #ffedd5;
}

.info-panel dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-panel dt {
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 900;
}

.info-panel dd {
    margin: 4px 0 0;
    color: #111827;
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border-top: 1px solid #fed7aa;
}

.site-footer__inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.6fr) minmax(220px, 0.8fr);
    gap: 34px;
}

.footer-brand p {
    max-width: 520px;
    color: #6b7280;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #111827;
}

.footer-column a {
    color: #7c2d12;
    font-weight: 700;
}

.site-footer__bar {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #9a3412;
    border-top: 1px solid #fed7aa;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .site-nav {
        gap: 14px;
        font-size: 0.88rem;
    }

    .home-hero,
    .hero-slide__inner,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .home-hero__header,
    .hero-carousel {
        min-height: 520px;
    }

    .hero-slide__poster {
        display: none;
    }

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

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

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

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

    .home-hero__header,
    .page-hero {
        padding: 34px;
    }

    .hero-slide__inner {
        padding: 34px;
    }

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

    .rank-list--preview {
        grid-template-columns: 1fr;
    }

    .detail-hero__grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .library-controls {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 680px) {
    .home-hero {
        width: min(100% - 22px, var(--container));
        margin-top: 18px;
    }

    .home-hero__header,
    .hero-carousel {
        min-height: 460px;
        border-radius: 24px;
    }

    .home-hero__header,
    .hero-slide__inner,
    .page-hero,
    .detail-hero,
    .text-panel,
    .info-panel {
        padding: 24px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-search button {
        width: 100%;
    }

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

    .movie-grid,
    .movie-grid--featured,
    .category-grid,
    .category-grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card__body {
        padding: 13px;
    }

    .rank-list__item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-list__number {
        width: 36px;
        height: 36px;
    }

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

    .detail-hero__poster {
        max-width: 240px;
    }

    .site-footer__bar {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid--featured,
    .category-grid,
    .category-grid--wide {
        grid-template-columns: 1fr;
    }

    .home-hero__header h1 {
        font-size: 2.45rem;
    }

    .hero-slide__copy h2,
    .detail-hero h1,
    .page-hero h1 {
        font-size: 2.15rem;
    }
}
