:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1e3db;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 18px 50px rgba(219, 39, 119, 0.14);
    --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.12), transparent 32rem),
        radial-gradient(circle at 90% 6%, rgba(249, 115, 22, 0.14), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(18px);
}

.top-strip {
    padding: 0.45rem 1rem;
    color: #ffffff;
    text-align: center;
    font-size: 0.88rem;
    background: linear-gradient(90deg, #fb923c, #f472b6, #ef4444);
}

.nav-wrap {
    width: min(1180px, calc(100% - 2rem));
    min-height: 4.25rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    font-weight: 900;
}

.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 0 28px rgba(236, 72, 153, 0.35);
}

.brand-text {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 0.1rem;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 0;
    height: 0.16rem;
    border-radius: 999px;
    background: var(--pink);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 0.9rem;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.26rem;
}

.menu-toggle span {
    width: 1.2rem;
    height: 0.15rem;
    border-radius: 999px;
    background: var(--pink-dark);
}

main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    min-height: 34rem;
    margin: 2rem auto 1.5rem;
    overflow: hidden;
    border-radius: 2rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 16rem),
        linear-gradient(135deg, #f97316 0%, #ec4899 48%, #ef4444 100%);
    box-shadow: var(--shadow);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 54%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.28), transparent 18rem);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(18rem, 0.62fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    opacity: 0;
    transform: translateX(2rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    color: var(--pink-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.section-heading h2,
.detail-copy h1 {
    margin: 0;
    line-height: 1.12;
}

.hero-copy h1 {
    max-width: 45rem;
    margin-top: 1.2rem;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    letter-spacing: -0.07em;
}

.hero-copy h2 {
    margin-top: 1.1rem;
    font-size: clamp(1.45rem, 3vw, 2.5rem);
}

.hero-copy p {
    max-width: 42rem;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags {
    margin-top: 1.4rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    min-height: 3rem;
    padding: 0 1.45rem;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange));
    box-shadow: 0 16px 28px rgba(219, 39, 119, 0.28);
}

.ghost-button {
    min-height: 3rem;
    padding: 0 1.35rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
    color: var(--pink-dark);
    border-color: rgba(236, 72, 153, 0.25);
    background: #ffffff;
}

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

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
    box-shadow: 0 28px 62px rgba(0, 0, 0, 0.28);
    aspect-ratio: 3 / 4;
}

.hero-poster img,
.poster-link img,
.detail-cover img,
.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fde68a, #f9a8d4);
}

.hero-poster span,
.poster-badge {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
}

.hero-controls {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 3;
    display: flex;
    gap: 0.65rem;
}

.hero-controls button {
    width: 2.8rem;
    height: 2.8rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.8rem;
    line-height: 1;
}

.panel,
.section-block,
.page-hero,
.detail-hero {
    margin: 1.5rem 0;
}

.home-search,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
}

.home-search h2 {
    margin: 0.45rem 0 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.search-box {
    position: relative;
    width: min(100%, 31rem);
}

.search-box input,
.filter-bar select {
    width: 100%;
    min-height: 3.15rem;
    padding: 0 1rem;
    color: var(--text);
    border: 1px solid #f1d3df;
    border-radius: 1rem;
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-box input:focus,
.filter-bar select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.search-box.wide {
    width: min(100%, 42rem);
}

.section-block {
    padding: clamp(1.3rem, 3vw, 2rem);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 1.35rem;
}

.section-heading h2 {
    margin-top: 0.55rem;
    font-size: clamp(1.85rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

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

.compact-heading {
    margin-bottom: 1rem;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 1.3rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-link img {
    transition: transform 0.4s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.card-body {
    padding: 0.95rem;
}

.card-body h3,
.card-body h2 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
}

.card-body h3 a:hover,
.card-body h2 a:hover,
.ranking-info h2 a:hover {
    color: var(--pink-dark);
}

.card-summary {
    display: -webkit-box;
    min-height: 3.2rem;
    margin: 0.5rem 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-summary.compact {
    min-height: 2.9rem;
    font-size: 0.86rem;
}

.card-meta {
    margin-top: 0.55rem;
    color: #9f5f74;
    font-size: 0.82rem;
    font-weight: 800;
}

.tag-row {
    margin-top: 0.65rem;
}

.tag-row span {
    color: var(--pink-dark);
    background: #fff1f2;
}

.category-panel {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(252, 231, 243, 0.82));
}

.category-grid,
.category-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.category-tile,
.category-card {
    display: block;
    padding: 1rem;
    min-height: 9rem;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.14);
}

.category-tile span,
.category-card-head span {
    display: block;
    color: var(--pink-dark);
    font-weight: 900;
    font-size: 1.1rem;
}

.category-tile p,
.category-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.category-card-head strong {
    color: var(--orange);
    font-size: 0.82rem;
}

.category-card-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.category-card-links a {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.category-card-links span {
    color: #9ca3af;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.86fr 1.2fr;
    gap: 1.2rem;
    align-items: start;
}

.ranking-panel,
.recommend-panel {
    padding: 1.2rem;
    border-radius: 1.4rem;
    background: #ffffff;
}

.ranking-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.2rem;
    padding: 0.45rem 0.65rem;
    border-radius: 1rem;
    background: #fff7ed;
}

.rank-number {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

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

.rank-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.text-button {
    margin-top: 1rem;
    color: var(--pink-dark);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 86% 15%, rgba(236, 72, 153, 0.16), transparent 18rem),
        linear-gradient(135deg, #ffffff, #fff7ed 58%, #fce7f3);
    box-shadow: var(--soft-shadow);
}

.page-hero h1 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 46rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #9f5f74;
    font-size: 0.9rem;
    font-weight: 800;
}

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

.filter-bar {
    margin-bottom: 1.2rem;
}

.filter-bar select {
    width: min(100%, 14rem);
}

.ranking-stack {
    display: grid;
    gap: 1rem;
}

.ranking-card {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    padding: 0.9rem;
}

.ranking-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.ranking-poster span {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.ranking-info h2 {
    margin: 0;
    font-size: 1.25rem;
}

.ranking-info p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.inline-tags {
    display: flex;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.18);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.78);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.detail-copy h1 {
    margin-top: 0.9rem;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: #4b5563;
    font-size: 1.08rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.detail-meta-grid span {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 1rem;
    color: #724454;
    background: #ffffff;
    font-weight: 800;
}

.detail-tags {
    margin-top: 1rem;
}

.watch-section {
    background: linear-gradient(135deg, #111827, #3b0f2f 62%, #7c2d12);
    color: #ffffff;
}

.watch-section .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.85rem;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-icon {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.36);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.2rem;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.content-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.5rem;
}

.content-card p {
    margin: 0 0 0.85rem;
    color: #4b5563;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.related-section {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(252, 231, 243, 0.72));
}

.empty-state {
    display: none;
    margin-top: 1rem;
    padding: 1.2rem;
    color: #9f5f74;
    border-radius: 1rem;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

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

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

.is-image-hidden {
    opacity: 0;
}

.site-footer {
    margin-top: 3rem;
    color: #f9fafb;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-inner strong {
    font-size: 1.25rem;
}

.footer-inner p {
    margin: 0.35rem 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 1rem;
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 0.9rem 1rem;
    color: #9ca3af;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.9rem;
}

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

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

    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.5rem);
        display: none;
        padding: 1rem;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: var(--soft-shadow);
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-carousel {
        min-height: 46rem;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .hero-poster {
        width: min(70vw, 18rem);
    }

    .home-search,
    .filter-bar,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select,
    .search-box,
    .search-box.wide {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .category-movie-grid,
    .mini-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-cover {
        width: min(70vw, 19rem);
    }

    .ranking-card {
        grid-template-columns: 6.5rem 1fr;
    }
}

@media (max-width: 560px) {
    main,
    .nav-wrap,
    .footer-inner {
        width: min(100% - 1rem, 1180px);
    }

    .brand-text {
        font-size: 1.18rem;
    }

    .hero-carousel {
        min-height: 45rem;
        border-radius: 1.35rem;
    }

    .hero-slide {
        padding: 1.2rem;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .section-block,
    .page-hero,
    .detail-hero {
        border-radius: 1.25rem;
        padding: 1rem;
    }

    .movie-grid,
    .featured-grid,
    .category-movie-grid,
    .mini-grid,
    .related-grid,
    .category-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .ranking-poster {
        width: min(52vw, 12rem);
    }
}
