:root {
    --color-pink: #ec4899;
    --color-pink-dark: #db2777;
    --color-purple: #8b5cf6;
    --color-blue: #60a5fa;
    --color-orange: #fb923c;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #fdf2f8;
    --shadow-soft: 0 16px 40px rgba(31, 41, 55, 0.12);
    --shadow-card: 0 10px 26px rgba(31, 41, 55, 0.10);
    --radius-large: 28px;
    --radius-card: 18px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(135deg, #fff1f7 0%, #f4efff 46%, #eef7ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #f472b6 0%, #c084fc 48%, #93c5fd 100%);
    box-shadow: 0 10px 30px rgba(190, 24, 93, 0.22);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--color-pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    font-weight: 700;
}

.site-nav > a,
.nav-dropdown > a {
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav > a:hover,
.nav-dropdown > a:hover {
    color: #fff7ed;
    opacity: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    left: 0;
    top: 28px;
    width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: #374151;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

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

.nav-dropdown__panel a:hover {
    color: var(--color-pink-dark);
    background: #fdf2f8;
}

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

.site-search input {
    width: 250px;
    border: 0;
    outline: 0;
    padding: 11px 16px;
    border-radius: 999px;
    color: #374151;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.site-search button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.btn-primary {
    color: #ffffff;
    background: var(--color-pink);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.site-search button:hover,
.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

.hero {
    position: relative;
    height: min(70vh, 640px);
    min-height: 500px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

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

.hero-slide > img,
.detail-hero__bg,
.page-hero--image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.detail-hero p {
    width: min(720px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
}

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

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

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

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

.hero-dot.is-active {
    width: 36px;
    background: #ffffff;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.content-section--soft {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.78), rgba(237, 233, 254, 0.78), rgba(219, 234, 254, 0.78));
}

.content-section--white {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
    background: rgba(255, 255, 255, 0.78);
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--color-muted);
}

.section-link {
    color: var(--color-pink-dark);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.16);
}

.movie-card__poster {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.movie-card--wide {
    display: grid;
    grid-template-columns: 260px 1fr;
}

.movie-card--wide .movie-card__poster {
    height: 100%;
    min-height: 220px;
}

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

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

.movie-card__duration,
.rank-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
}

.movie-card__body {
    padding: 18px;
}

.movie-card__title {
    display: -webkit-box;
    min-height: 52px;
    margin-bottom: 10px;
    overflow: hidden;
    color: #1f2937;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card__title:hover {
    color: var(--color-pink-dark);
}

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

.movie-card__tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #6b7280;
    font-size: 12px;
    background: #f3f4f6;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: stretch;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 92px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
    transition: 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    background: #ffffff;
}

.compact-card img {
    width: 92px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

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

.compact-card strong {
    color: #1f2937;
    font-size: 15px;
}

.compact-card em {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

.compact-rank {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
}

.rank-cover {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-large);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.rank-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12));
}

.rank-cover > div {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 1;
}

.rank-cover span {
    font-weight: 900;
    color: #f9a8d4;
}

.rank-cover h3 {
    margin: 8px 0 12px;
    font-size: 34px;
}

.rank-cover p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-grid,
.category-panel-grid {
    display: grid;
    gap: 22px;
}

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

.category-tile,
.category-panel {
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #fce7f3 0%, #ede9fe 100%);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    min-height: 154px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(139, 92, 246, 0.18);
}

.category-tile span {
    font-size: 38px;
}

.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile strong {
    margin-top: 10px;
    font-size: 20px;
}

.category-tile em {
    margin-top: 5px;
    color: var(--color-muted);
    font-style: normal;
}

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

.category-panel {
    padding: 24px;
}

.category-panel__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

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

.category-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-panel p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.category-panel strong {
    color: var(--color-pink-dark);
    white-space: nowrap;
}

.category-panel__covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.category-panel__covers img {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
}

.category-panel__link {
    color: var(--color-pink-dark);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #9333ea, #ec4899, #3b82f6);
}

.page-hero {
    min-height: 340px;
    display: grid;
    place-items: center;
    padding: 80px 16px;
    text-align: center;
}

.page-hero > div {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
}

.page-hero--compact {
    min-height: 300px;
}

.page-hero--image {
    min-height: 430px;
    text-align: left;
}

.page-hero--image > img {
    position: absolute;
    inset: 0;
}

.page-hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
}

.filter-bar,
.search-panel__controls {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

.search-panel__controls {
    grid-template-columns: 1fr 180px 180px auto;
}

.filter-bar input,
.filter-bar select,
.filter-bar button,
.search-panel__controls input,
.search-panel__controls select,
.search-panel__controls button {
    width: 100%;
    border: 1px solid #f3d4e5;
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
    outline: none;
}

.filter-bar button,
.search-panel__controls button {
    color: #ffffff;
    border: 0;
    font-weight: 900;
    background: var(--color-pink);
}

.empty-state,
.search-panel__summary {
    padding: 18px 20px;
    border-radius: 18px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.84);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.ranking-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.ranking-table th {
    color: #6b7280;
    font-size: 13px;
    background: #fdf2f8;
}

.table-rank {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
}

.rank-title {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 14px;
}

.rank-title img {
    width: 80px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-title em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.detail-hero {
    min-height: 640px;
}

.detail-hero__bg,
.detail-hero__shade {
    position: absolute;
    inset: 0;
}

.detail-hero__shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38));
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 34px 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb:not(.breadcrumb--light) {
    justify-content: center;
}

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

.detail-hero__content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    width: 320px;
    height: 450px;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-large);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-section {
    padding-top: 42px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.player-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.28), rgba(0, 0, 0, 0.18));
    transition: opacity 0.2s ease;
}

.player-card.is-playing .player-button {
    opacity: 0;
    pointer-events: none;
}

.player-button span {
    width: 90px;
    height: 90px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-pink);
    font-size: 40px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.68);
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.detail-copy article,
.detail-copy__side {
    margin-bottom: 22px;
    padding: 28px;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-copy h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-copy p {
    color: #374151;
    line-height: 1.9;
}

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

.info-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

.info-list dt {
    color: var(--color-muted);
}

.info-list dd {
    margin: 0;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
}

.prev-next a {
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--color-pink-dark);
    font-weight: 900;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.sitemap-layout {
    display: grid;
    gap: 22px;
}

.sitemap-group {
    padding: 26px;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.sitemap-group h2 {
    margin: 0 0 18px;
}

.sitemap-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
}

.sitemap-group li a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.sitemap-group li a:hover {
    color: var(--color-pink-dark);
    background: #fdf2f8;
}

.sitemap-group span {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

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

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .site-search input {
        width: 190px;
    }

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

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

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

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

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

    .site-nav,
    .site-search {
        display: none;
        width: 100%;
    }

    body.nav-open .site-nav,
    body.nav-open .site-search {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 10px;
    }

    .site-nav a,
    .nav-dropdown > a {
        display: block;
        padding: 12px 0;
    }

    .nav-dropdown__panel {
        position: static;
        width: 100%;
        margin: 0 0 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .site-search {
        grid-template-columns: 1fr auto;
        padding-bottom: 10px;
    }

    .site-search input {
        width: 100%;
    }

    .hero {
        min-height: 560px;
    }

    .hero-slide__content {
        padding-top: 30px;
        justify-content: center;
    }

    .movie-grid,
    .movie-grid--wide,
    .category-panel-grid,
    .rank-layout,
    .detail-hero__content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card--wide {
        display: block;
    }

    .movie-card--wide .movie-card__poster {
        min-height: 260px;
    }

    .category-grid,
    .sitemap-group ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-poster {
        width: min(320px, 100%);
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .filter-bar,
    .search-panel__controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .content-section {
        padding: 46px 0;
    }

    .hero h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 36px;
    }

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

    .section-heading,
    .prev-next,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-grid,
    .sitemap-group ul {
        grid-template-columns: 1fr;
    }

    .movie-card__poster {
        height: 230px;
    }

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

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

    .category-panel__head {
        grid-template-columns: 1fr;
    }
}
