:root {
    --color-primary-50: #f0fdf9;
    --color-primary-100: #ccfbf1;
    --color-primary-500: #14b8a6;
    --color-primary-600: #0d9488;
    --color-primary-700: #0f766e;
    --color-secondary-50: #fdf8f6;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-gray-50);
    color: var(--color-gray-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 70vh;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-gray-900);
}

.brand__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}

.brand__text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--color-gray-700);
    font-size: 15px;
    font-weight: 650;
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-primary-600);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--color-gray-100);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-gray-700);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    width: min(100% - 32px, var(--container));
    height: 70vh;
    min-height: 560px;
    margin: 90px auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-gray-900);
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-slide__bg {
    transform: scale(1.0);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 26%, rgba(20, 184, 166, 0.30), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 690px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--color-primary-500);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 620px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.hero-tags,
.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
}

.pill {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
}

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

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

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

.button--primary {
    background: var(--color-primary-600);
    color: #fff;
    box-shadow: 0 14px 26px rgba(13, 148, 136, 0.28);
}

.button--primary:hover {
    background: var(--color-primary-700);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.44);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.button--ghost-dark {
    border-color: var(--color-gray-200);
    color: var(--color-gray-800);
    background: #fff;
}

.button--block {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

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

.hero-poster span,
.movie-card__play {
    position: absolute;
    inset: auto 18px 18px auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-700);
    box-shadow: var(--shadow-md);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-arrow--prev {
    left: 18px;
}

.hero-arrow--next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.stat-strip div {
    padding: 24px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.stat-strip strong {
    display: block;
    color: var(--color-primary-700);
    font-size: 34px;
    line-height: 1;
}

.stat-strip span {
    color: var(--color-gray-500);
    font-size: 14px;
}

.section-block {
    margin-top: 48px;
}

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

.section-heading h2,
.search-panel h2,
.rank-panel h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.search-panel p,
.rank-panel p {
    margin: 8px 0 0;
    color: var(--color-gray-600);
}

.section-link {
    color: var(--color-primary-700);
    font-weight: 800;
    white-space: nowrap;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid rgba(13, 148, 136, 0.16);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-secondary-50));
    box-shadow: var(--shadow-sm);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 96px;
    gap: 10px;
}

.filter-form input,
.filter-form select,
.filter-form button {
    height: 48px;
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    background: #fff;
    color: var(--color-gray-800);
    padding: 0 14px;
    outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-form button {
    color: #fff;
    background: var(--color-gray-900);
    font-weight: 800;
}

.filter-result {
    grid-column: 2;
    margin: 0;
    color: var(--color-primary-700);
    font-weight: 700;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--color-gray-200);
}

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

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

.movie-card__play {
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary-600);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.movie-card__body {
    padding: 15px;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--color-gray-500);
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.movie-card--compact p {
    min-height: auto;
    -webkit-line-clamp: 1;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 86px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.rank-list__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--color-gray-50);
}

.rank-list__number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--color-primary-600);
    color: #fff;
    font-weight: 900;
}

.rank-list__title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

.rank-list__heat {
    color: var(--color-primary-700);
    font-weight: 900;
    text-align: right;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-gray-900);
    box-shadow: var(--shadow-md);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.07);
}

.category-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.category-card__content {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    color: #fff;
}

.category-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.category-card small {
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    position: relative;
    margin-top: 66px;
    overflow: hidden;
    background-color: var(--color-gray-900);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.page-hero--compact {
    background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.28), transparent 30%), linear-gradient(135deg, #111827, #0f172a 55%, #134e4a);
}

.page-hero--compact .container,
.page-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 82px;
    padding-bottom: 82px;
}

.page-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.overview-grid {
    display: grid;
    gap: 22px;
}

.overview-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.overview-card__cover {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.overview-card__cover img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.overview-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.overview-card p {
    color: var(--color-gray-600);
}

.overview-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 0;
    margin: 18px 0;
    list-style: none;
}

.overview-card li a {
    color: var(--color-gray-700);
}

.overview-card li a:hover {
    color: var(--color-primary-700);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.rank-table th,
.rank-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-gray-200);
    text-align: left;
}

.rank-table th {
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    font-size: 13px;
}

.rank-table td:first-child,
.rank-table td:last-child {
    color: var(--color-primary-700);
    font-weight: 900;
}

.rank-table a {
    font-weight: 800;
}

.rank-table a:hover {
    color: var(--color-primary-700);
}

.detail-hero {
    position: relative;
    margin-top: 66px;
    overflow: hidden;
    color: #fff;
    background: var(--color-gray-900);
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 0.5;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.96));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 34px;
    padding-bottom: 48px;
}

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

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

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

.player-card,
.detail-info,
.detail-content article,
.next-prev,
.text-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    color: #fff;
    font-weight: 900;
}

.video-overlay.is-hidden {
    display: none;
}

.video-overlay__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--color-primary-600);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 24px 48px rgba(13, 148, 136, 0.35);
}

.player-status {
    margin: 0;
    padding: 14px 18px 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.detail-info {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.detail-poster {
    width: 140px;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.detail-info h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.detail-meta div {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.54);
}

.detail-meta dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

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

.detail-content article,
.next-prev,
.text-card {
    background: #fff;
    border-color: var(--color-gray-200);
    color: var(--color-gray-800);
    backdrop-filter: none;
}

.detail-content article {
    padding: 28px;
}

.detail-content h2,
.text-card h2 {
    margin: 0 0 12px;
    color: var(--color-gray-900);
    font-size: 26px;
}

.detail-content p,
.text-card p {
    margin: 0 0 20px;
    color: var(--color-gray-700);
}

.next-prev {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 12px;
    padding: 20px;
}

.next-prev a {
    padding: 14px;
    border-radius: 14px;
    background: var(--color-gray-50);
    color: var(--color-gray-700);
    font-weight: 750;
}

.next-prev a:hover {
    color: var(--color-primary-700);
}

.text-stack {
    display: grid;
    gap: 18px;
}

.text-card {
    padding: 26px;
}

.site-footer {
    margin-top: 72px;
    background: var(--color-gray-900);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 42px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #fff;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
}

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

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1120px) {
    .movie-grid,
    .movie-grid--library {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-slide__content,
    .detail-layout,
    .detail-content,
    .section-split {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .next-prev {
        position: static;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 0 4px;
    }

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

    .site-nav a {
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--color-gray-50);
    }

    .hero-carousel {
        height: auto;
        min-height: 520px;
        margin-top: 88px;
    }

    .hero-slide__content {
        display: flex;
        min-height: 520px;
        padding: 48px 24px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .stat-strip,
    .category-grid,
    .footer-grid,
    .overview-card,
    .detail-info,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-result {
        grid-column: auto;
    }

    .movie-grid,
    .movie-grid--home,
    .movie-grid--compact,
    .movie-grid--library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .overview-card__cover img {
        height: 220px;
    }
}

@media (max-width: 520px) {
    .container,
    .site-header__inner,
    .hero-carousel {
        width: min(100% - 22px, var(--container));
    }

    .brand__text {
        font-size: 17px;
    }

    .movie-grid,
    .movie-grid--home,
    .movie-grid--compact,
    .movie-grid--library,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .button {
        width: 100%;
    }

    .hero-arrow {
        display: none;
    }

    .detail-info {
        display: block;
    }

    .detail-poster {
        width: 160px;
        margin-bottom: 18px;
    }
}
