:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --purple-dark: #6d28d9;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --panel: rgba(255, 255, 255, 0.84);
    --line: rgba(255, 255, 255, 0.38);
    --shadow: 0 24px 70px rgba(139, 92, 246, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.95), rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.95));
    color: #fff;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink-dark);
    background: linear-gradient(135deg, #fef3c7, #fbcfe8);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48), 0 12px 26px rgba(0, 0, 0, 0.12);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.nav-link {
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #fde68a;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-nav.is-open {
    display: grid;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-banner {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.82), rgba(59, 130, 246, 0.68)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.15));
}

.stars-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stars-background::before,
.stars-background::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 100px 150px #fff, 200px 300px #fff, 300px 100px #fff, 400px 250px #fff, 500px 180px #fff, 600px 320px #fff, 700px 90px #fff, 800px 200px #fff, 900px 280px #fff, 1000px 140px #fff, 1100px 260px #fff, 1200px 170px #fff, 50px 220px #fff, 150px 80px #fff, 250px 340px #fff, 350px 120px #fff, 450px 290px #fff, 550px 160px #fff, 650px 310px #fff, 750px 70px #fff, 850px 240px #fff, 950px 190px #fff, 1050px 300px #fff, 1150px 130px #fff;
    animation: starsTwinkle 3s infinite;
}

.stars-background::after {
    width: 3px;
    height: 3px;
    animation-delay: 1.5s;
    box-shadow: 80px 180px #fff, 180px 280px #fff, 280px 120px #fff, 380px 230px #fff, 480px 190px #fff, 580px 300px #fff, 680px 100px #fff, 780px 220px #fff, 880px 270px #fff, 980px 150px #fff, 1080px 250px #fff, 1180px 160px #fff;
}

@keyframes starsTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.32;
        transform: scale(0.82);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    align-items: center;
    gap: 52px;
    padding: 88px 0 70px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fef3c7;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--pink-dark);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.hero-summary {
    margin: 0 0 24px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.tag-row,
.filter-row,
.detail-meta,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span,
.detail-meta span {
    color: var(--purple-dark);
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.tag-row.large span {
    font-size: 14px;
}

.hero-actions {
    margin-top: 30px;
}

.hero-actions.center {
    justify-content: center;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.36);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(139, 92, 246, 0.25);
}

.primary-btn.small {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 14px;
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-btn.light {
    color: var(--purple-dark);
    background: #fff;
    border-color: rgba(139, 92, 246, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-size: 28px;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.search-panel {
    position: relative;
    z-index: 8;
    margin: -42px auto 0;
}

.search-panel.wide {
    margin: 0 auto;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f3d8ef;
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.04);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.filter-row {
    grid-column: 1 / -1;
}

.filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--purple-dark);
    background: #f5f3ff;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transform: translateY(-1px);
}

.section-block {
    padding: 70px 0 0;
}

.section-block.inner {
    padding-top: 42px;
}

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

.section-heading h2,
.page-hero h1,
.detail-article h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-article p,
.movie-card-body p,
.category-overview-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.section-heading p {
    margin: 10px 0 0;
    max-width: 760px;
}

.section-link {
    color: var(--purple-dark);
    background: #fff;
    border: 1px solid rgba(139, 92, 246, 0.16);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 50px rgba(139, 92, 246, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 70px rgba(139, 92, 246, 0.22);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.1);
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.05) 58%);
}

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    min-height: 34px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 46px;
    height: 34px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.9);
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.tag-row {
    gap: 8px;
}

.tag-row span {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 12px;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.86), rgba(59, 130, 246, 0.78));
    box-shadow: var(--shadow);
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 36%);
    pointer-events: none;
}

.category-card strong,
.category-overview-head strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 12px;
    font-size: 24px;
}

.category-card em,
.category-overview-card p {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.7;
}

.category-card img {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.42;
    transform: rotate(-8deg);
}

.category-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    font-size: 34px;
}

.category-icon.large {
    font-size: 54px;
}

.category-overview-card {
    min-height: auto;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.76);
}

.category-overview-card p {
    color: var(--muted);
}

.category-overview-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-overview-head span {
    font-size: 30px;
}

.category-overview-head strong {
    margin: 0;
}

.mini-cover-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.mini-cover-row img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.page-main {
    padding-bottom: 70px;
}

.page-hero {
    margin-top: 34px;
    padding: 58px 36px;
    text-align: center;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
}

.page-hero.slim {
    padding: 48px 34px;
}

.page-hero p {
    max-width: 800px;
    margin: 14px auto 0;
    font-size: 18px;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(139, 92, 246, 0.10);
}

.rank-line img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.rank-line strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-line em,
.rank-line span:last-child {
    color: var(--muted);
    font-style: normal;
    font-weight: 700;
}

.detail-main {
    padding: 34px 0 80px;
}

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

.detail-primary,
.detail-sidebar {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.player-card,
.detail-article,
.side-panel,
.side-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050816;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(5, 8, 22, 0.78), rgba(5, 8, 22, 0.28));
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    font-size: 32px;
}

.play-overlay strong {
    width: min(90%, 720px);
    font-size: clamp(22px, 4vw, 40px);
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.detail-article {
    margin-top: 24px;
    padding: 30px;
}

.detail-article h1 {
    margin-bottom: 18px;
}

.detail-article h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-article .lead {
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.detail-meta {
    margin-bottom: 14px;
}

.side-poster {
    display: block;
    margin-bottom: 20px;
}

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

.side-panel {
    margin-bottom: 20px;
    padding: 22px;
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 10px;
    margin: 0;
}

.side-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    min-width: 0;
    font-weight: 700;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 74px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 24px;
    text-align: center;
    border-radius: 22px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.82);
}

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

.site-footer {
    margin-top: 80px;
    padding: 44px 0;
    color: #fff;
    background: linear-gradient(90deg, #be185d, #6d28d9, #1d4ed8);
}

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

.site-footer p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a,
.footer-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

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

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

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

    .hero-poster {
        display: none;
    }

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

    .detail-sidebar {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 20px;
    }

    .side-panel,
    .side-poster {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero-banner,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 70px;
        gap: 28px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions {
        gap: 8px;
    }

    .primary-btn,
    .ghost-btn,
    .section-link {
        min-height: 42px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .search-panel-inner {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 22px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

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

    .movie-card-body {
        padding: 14px;
    }

    .movie-title {
        min-height: 46px;
        font-size: 16px;
    }

    .rank-line {
        grid-template-columns: 46px 60px minmax(0, 1fr);
    }

    .rank-line em,
    .rank-line span:last-child {
        display: none;
    }

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

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

    .detail-article {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-banner,
    .hero-content {
        min-height: 520px;
    }

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

    .hero-summary {
        font-size: 16px;
    }

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

    .page-hero {
        padding: 38px 20px;
    }
}
