:root {
    --pink: #ec4899;
    --pink-600: #db2777;
    --rose: #f43f5e;
    --orange: #f97316;
    --yellow: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
    --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #fce7f3;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 12px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1.25rem;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.28);
    font-size: 0.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    color: var(--gray-700);
    font-weight: 600;
}

.desktop-nav a,
.mobile-panel a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--pink);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #fbcfe8;
    outline: none;
    background: #ffffff;
    color: var(--gray-900);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 16rem;
    padding: 0.6rem 2.6rem 0.6rem 1rem;
    border-radius: 999px;
}

.header-search button {
    position: absolute;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fce7f3;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.mobile-panel a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-panel a:hover,
.mobile-panel a.is-active {
    background: #fdf2f8;
}

.mobile-search {
    display: flex;
    gap: 0.5rem;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    padding: 0.7rem 1.1rem;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 42rem;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--yellow);
    margin-bottom: 1.1rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 1.25rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-meta,
.card-meta,
.light-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.hero-meta {
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.hero-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    padding: 0.85rem 1.65rem;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.3);
}

.secondary-button {
    margin-top: 1.3rem;
    padding: 0.7rem 1.25rem;
    color: var(--pink);
    background: #fdf2f8;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.82rem 1.4rem;
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 2.1rem;
    background: #ffffff;
}

.section {
    padding: 4rem 0;
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.section-intro h2,
.section-heading h2,
.page-hero h1,
.detail-title-row h1 {
    margin: 0.35rem 0 0;
    color: var(--gray-900);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-intro h2,
.section-heading h2 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.section-intro p,
.page-hero p,
.detail-title-row p {
    max-width: 58rem;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.section-link {
    color: var(--pink);
    font-size: 0.98rem;
}

.section-link:hover {
    color: var(--pink-600);
}

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

.section-heading.compact {
    align-items: center;
}

.movie-grid,
.category-grid,
.feature-grid {
    display: grid;
    gap: 1.5rem;
}

.movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

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

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.65);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.card-poster img,
.large-poster img,
.category-tile img,
.category-cover img,
.poster-card img,
.ranking-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .card-poster img,
.movie-card:hover .large-poster img,
.category-tile:hover img,
.category-cover:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(0, 0, 0, 0.12);
}

.play-mark,
.large-play {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.play-mark {
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.badge,
.duration {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge {
    left: 0.75rem;
    top: 0.75rem;
    color: #ffffff;
    background: var(--pink);
    padding: 0.25rem 0.6rem;
}

.duration {
    right: 0.75rem;
    bottom: 0.75rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    padding: 0.25rem 0.5rem;
}

.card-body {
    padding: 1rem;
}

.card-body h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
    color: var(--pink);
}

.card-body p {
    min-height: 2.75rem;
    margin: 0.5rem 0 0;
    color: var(--gray-600);
    font-size: 0.92rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin-top: 0.8rem;
    color: var(--gray-500);
    font-size: 0.86rem;
}

.soft-panel {
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #ffedd5);
    padding: clamp(1.25rem, 4vw, 3rem);
    box-shadow: var(--soft-shadow);
}

.horizontal-rail {
    overflow-x: auto;
    padding-bottom: 0.8rem;
}

.rail-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
}

.rail-card {
    width: 18rem;
    flex: 0 0 auto;
}

.movie-card-large {
    min-height: 20rem;
    border-radius: 1.4rem;
}

.large-poster {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.large-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1.5rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.large-mask .badge {
    position: static;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.large-mask h3 {
    margin: 0;
    font-size: 1.4rem;
}

.large-mask p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.light-meta {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.large-play {
    top: 50%;
    left: 50%;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.movie-card-large:hover .large-play {
    opacity: 1;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem;
    align-items: start;
    gap: 2rem;
}

.ranking-panel,
.content-card,
.info-card,
.poster-card,
.category-overview-card,
.filter-panel {
    border: 1px solid rgba(251, 207, 232, 0.65);
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.ranking-panel {
    position: sticky;
    top: 6rem;
    padding: 1.25rem;
}

.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 0.7rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 3.4rem 4.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem;
    border-radius: 0.9rem;
    color: var(--gray-700);
    background: #fff7fb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    background: #fdf2f8;
}

.rank-number {
    font-weight: 900;
    color: var(--gray-500);
}

.top-rank .rank-number {
    color: var(--pink);
}

.ranking-item img {
    width: 4.4rem;
    height: 3rem;
    border-radius: 0.65rem;
}

.ranking-title {
    min-width: 0;
    overflow: hidden;
    color: var(--gray-900);
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-info {
    color: var(--gray-500);
    font-size: 0.88rem;
}

.ranking-heat {
    color: var(--pink);
    font-weight: 800;
}

.ranking-page-list .ranking-item {
    grid-template-columns: 4rem 6rem minmax(0, 1fr) 11rem 5rem;
}

.ranking-page-list .ranking-item img {
    width: 6rem;
    height: 4rem;
}

.category-tile {
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    border-radius: 1.35rem;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.category-tile span,
.category-tile p {
    position: absolute;
    z-index: 1;
    left: 1.2rem;
    right: 1.2rem;
}

.category-tile span {
    bottom: 4rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile p {
    bottom: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #ffedd5);
}

.page-hero {
    padding: 4rem 0 3.5rem;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.channel-hero {
    background: linear-gradient(135deg, #fff1f2, #ffffff, #ffedd5);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.93rem;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 700;
}

.category-overview-grid {
    display: grid;
    gap: 1.5rem;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    overflow: hidden;
}

.category-cover {
    position: relative;
    min-height: 12rem;
    overflow: hidden;
    color: #ffffff;
}

.category-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-cover span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    font-weight: 900;
    font-size: 1.4rem;
}

.category-overview-card > div {
    padding: 1.4rem;
}

.category-overview-card h2 {
    margin: 0 0 0.5rem;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.category-samples a {
    border-radius: 999px;
    color: var(--pink);
    background: #fdf2f8;
    padding: 0.35rem 0.7rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.filter-panel {
    margin-bottom: 1.6rem;
    padding: 1rem;
}

.filter-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.filter-selects select {
    min-width: 10rem;
    padding: 0.72rem 0.9rem;
    border-radius: 999px;
}

.no-results {
    display: none;
    margin: 1rem 0 0;
    color: var(--gray-600);
    font-weight: 700;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    min-height: 26rem;
    color: #ffffff;
    background: #111827;
}

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
}

.detail-bg-mask {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.22));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3.2rem 0;
}

.detail-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.detail-title-row h1,
.detail-title-row p {
    color: #ffffff;
}

.detail-title-row h1 {
    max-width: 48rem;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.detail-title-row p {
    color: rgba(255, 255, 255, 0.82);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
    gap: 2rem;
}

.detail-main {
    display: grid;
    gap: 1.4rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #000000;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 5.2rem;
    height: 5.2rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.36);
    font-size: 1.8rem;
    transform: translateX(0.1rem);
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.content-card,
.info-card {
    padding: 1.45rem;
}

.content-card h2,
.info-card h2 {
    margin: 0 0 0.8rem;
    color: var(--gray-900);
    font-size: 1.45rem;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.02rem;
    line-height: 1.85;
}

.soft-content-card {
    background: linear-gradient(135deg, #ffffff, #fff7fb);
}

.detail-sidebar {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 1.2rem;
}

.poster-card {
    overflow: hidden;
}

.poster-card img {
    aspect-ratio: 3 / 4;
}

.info-card dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.8rem;
}

.info-card dt {
    color: var(--gray-500);
    font-weight: 700;
}

.info-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.tag {
    border-radius: 999px;
    color: var(--pink);
    background: #fdf2f8;
    padding: 0.32rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.list-poster {
    height: 8rem;
    aspect-ratio: auto;
}

.list-body h3 {
    -webkit-line-clamp: 1;
}

.site-footer {
    margin-top: 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #831843, #9f1239, #9a3412);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.site-footer p {
    max-width: 26rem;
    color: #fce7f3;
}

.site-footer h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

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

.site-footer a {
    color: #fce7f3;
    font-size: 0.94rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1rem;
    color: #fce7f3;
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .hero {
        height: 600px;
    }

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

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 1.25rem, 80rem);
    }

    .header-inner {
        min-height: 4rem;
    }

    .hero {
        height: 520px;
    }

    .hero-mask {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.86));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 5rem;
    }

    .section {
        padding: 2.8rem 0;
    }

    .section-intro,
    .section-heading,
    .detail-title-row {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 1rem;
    }

    .rail-card {
        width: 15.5rem;
    }

    .category-overview-card,
    .movie-card-list,
    .ranking-item,
    .ranking-page-list .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-item img,
    .ranking-page-list .ranking-item img {
        width: 100%;
        height: 8rem;
    }

    .card-body p {
        min-height: auto;
    }

    .filter-selects select {
        flex: 1 1 12rem;
    }

    .detail-hero-inner {
        padding: 2.4rem 0;
    }

    .poster-card img {
        aspect-ratio: 16 / 9;
    }
}
