:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.16);
    --card: rgba(255, 255, 255, 0.86);
    --soft: #fff7fb;
    --shadow: 0 24px 70px rgba(147, 51, 234, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(125, 211, 252, 0.22), transparent 28rem),
        linear-gradient(135deg, #fff7fb 0%, #f7f0ff 48%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

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

.site-nav a,
.sub-nav a {
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.sub-nav a:hover {
    color: var(--pink);
    background: rgba(236, 72, 153, 0.09);
    transform: translateY(-1px);
}

.sub-nav {
    border-top: 1px solid rgba(236, 72, 153, 0.08);
}

.sub-nav__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.14);
    cursor: pointer;
}

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

.hero-carousel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    min-height: 620px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
        linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(139, 92, 246, 0.14), rgba(56, 189, 248, 0.14));
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-glow--one {
    top: -120px;
    left: -100px;
    background: rgba(236, 72, 153, 0.48);
}

.hero-glow--two {
    right: -120px;
    bottom: -140px;
    background: rgba(56, 189, 248, 0.48);
}

.hero-topline {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #7c3aed;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-topline span {
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px 14px;
}

.hero-slides {
    position: relative;
    z-index: 2;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -28px;
    z-index: -1;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.74) 46%, rgba(255, 255, 255, 0.34) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    opacity: 0.64;
}

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

.hero-copy {
    max-width: 680px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-row span,
.poster-label,
.poster-year,
.detail-category,
.category-tile__name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    color: #111827;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.hero-copy p {
    display: -webkit-box;
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions,
.page-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-primary,
.btn-light,
.page-hero__links a,
.search-box button,
.filter-strip button,
.side-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.page-hero__links a:first-child,
.search-box button,
.filter-strip button.is-active,
.side-card a {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.24);
    padding: 0 22px;
}

.btn-light,
.page-hero__links a:last-child,
.filter-strip button {
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(139, 92, 246, 0.16);
    padding: 0 22px;
}

.btn-primary:hover,
.btn-light:hover,
.page-hero__links a:hover,
.search-box button:hover,
.filter-strip button:hover,
.side-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.22);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.18);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: #fff;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    padding: 10px 16px;
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: relative;
    z-index: 4;
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.hero-dot {
    width: 42px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.hero-search {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 24px;
}

.hero-search input,
.search-box input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
    padding: 0 20px;
}

.hero-search input:focus,
.search-box input:focus {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.hero-search a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    font-weight: 900;
    padding: 0 22px;
}

.hero-categories {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-categories a {
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
    padding: 9px 13px;
}

.section-wrap,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 52px auto;
}

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

.section-heading span,
.page-hero span {
    color: var(--pink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.section-heading a {
    color: #7c3aed;
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(16px);
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.search-panel p {
    margin: 0;
    color: var(--muted);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.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--related {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
    min-width: 0;
}

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

.movie-card__link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card__link:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(236, 72, 153, 0.18);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(56, 189, 248, 0.18));
}

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

.movie-card__link:hover .poster-frame img {
    transform: scale(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.62), transparent 46%);
    pointer-events: none;
}

.poster-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
}

.poster-year {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(10px);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__body h2 {
    display: -webkit-box;
    margin: 10px 0 8px;
    min-height: 48px;
    color: #111827;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__body p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile,
.category-card-large a,
.side-card {
    display: block;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.11);
    padding: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-card-large a:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(236, 72, 153, 0.18);
}

.category-tile p,
.category-card-large p,
.side-card p {
    color: var(--muted);
    line-height: 1.8;
}

.category-tile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-tile__links a {
    color: #7c3aed;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.category-card-large__posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-card-large__posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.16));
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
    box-shadow: var(--shadow);
    padding: clamp(30px, 5vw, 62px);
}

.page-hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.85;
}

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-strip button {
    min-height: 40px;
    padding: 0 16px;
}

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

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

.rank-item__link {
    display: grid;
    grid-template-columns: 58px 78px minmax(0, 1fr) 72px;
    gap: 16px;
    align-items: center;
    min-height: 116px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.1);
    padding: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(236, 72, 153, 0.16);
}

.rank-number {
    color: #fff;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.rank-item img {
    width: 78px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.16));
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
}

.rank-heat {
    color: #ec4899;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.player-section,
.detail-content,
.detail-side > * {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
    background: #111827;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(88, 28, 135, 0.42));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.video-overlay.is-hidden,
.video-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.34);
    cursor: pointer;
}

.play-button span {
    display: inline-block;
    margin-left: 5px;
    font-size: 30px;
}

.video-loading {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #fff;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.detail-content {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 36px);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-badges {
    margin-bottom: 10px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta div {
    border-radius: 20px;
    background: rgba(236, 72, 153, 0.07);
    padding: 16px;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 900;
}

.detail-content h2,
.side-card h2,
.category-card-large h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.detail-content section {
    margin-top: 26px;
}

.detail-content p {
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 18px;
}

.side-poster {
    overflow: hidden;
    padding: 0;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.16));
}

.side-card a {
    margin-top: 12px;
}

.related-section {
    margin-top: 0;
}

.site-footer {
    margin-top: 72px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.92)),
        linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(56, 189, 248, 0.12));
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
    padding: 46px 0;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #7c3aed;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    font-size: 14px;
    font-weight: 800;
    padding: 8px 12px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #6b7280;
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    padding: 18px 0 28px;
    font-size: 14px;
}

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

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

    .detail-side {
        position: static;
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(236, 72, 153, 0.14);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 22px 60px rgba(139, 92, 246, 0.18);
        padding: 12px;
    }

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

    .hero-carousel {
        min-height: auto;
        padding: 18px;
        border-radius: 26px;
    }

    .hero-slides {
        min-height: 760px;
    }

    .hero-slide,
    .hero-slide.is-active {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 360px;
    }

    .hero-search,
    .search-panel,
    .search-box,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .category-overview-grid,
    .rank-list--compact {
        grid-template-columns: 1fr;
    }

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

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

    .rank-item__link {
        grid-template-columns: 42px 66px minmax(0, 1fr);
    }

    .rank-heat {
        display: none;
    }
}

@media (max-width: 520px) {
    .nav-shell,
    .sub-nav__inner,
    .hero-carousel,
    .section-wrap,
    .detail-layout,
    .page-hero,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 20px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-slides {
        min-height: 690px;
    }

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

    .hero-copy p {
        -webkit-line-clamp: 4;
    }

    .movie-grid,
    .movie-grid--home,
    .movie-grid--related {
        grid-template-columns: 1fr;
    }

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

    .detail-title-row,
    .section-heading {
        display: block;
    }

    .detail-category,
    .section-heading a {
        margin-top: 12px;
    }
}
