:root {
    --pink: #ec4899;
    --pink-strong: #db2777;
    --sky: #38bdf8;
    --emerald: #34d399;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fdf2f8;
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.55), #ffffff 38%, rgba(240, 249, 255, 0.72) 74%, rgba(236, 253, 245, 0.6));
    min-height: 100vh;
}

::selection {
    color: #ffffff;
    background: var(--pink);
}

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.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 16px rgba(31, 41, 55, 0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(56, 189, 248, 0.18));
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.14);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #4b5563;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--pink-strong);
    background: rgba(252, 231, 243, 0.85);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 999px;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
}

.nav-search input {
    width: 230px;
    padding: 8px 10px 8px 16px;
}

.nav-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #4b5563;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel.open {
    display: grid;
    gap: 10px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f3f4f6;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.24), rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.18));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0.28)), linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(56, 189, 248, 0.24));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding: 54px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--pink-strong);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-line {
    color: #374151;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.48;
    margin: 24px 0 14px;
    font-weight: 700;
}

.hero-summary {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 0 24px;
}

.hero-tags,
.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(252, 231, 243, 0.9);
    color: var(--pink-strong);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.btn.ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.9);
}

.btn.light {
    color: var(--pink-strong);
    background: rgba(252, 231, 243, 0.92);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.25);
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.hero-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-floating span {
    position: absolute;
    font-size: 42px;
    opacity: 0.18;
    animation: float 11s ease-in-out infinite;
}

.hero-floating span:nth-child(1) {
    left: 10%;
    top: 18%;
}

.hero-floating span:nth-child(2) {
    left: 78%;
    top: 16%;
    animation-delay: 1.8s;
}

.hero-floating span:nth-child(3) {
    left: 72%;
    top: 72%;
    animation-delay: 3s;
}

.hero-floating span:nth-child(4) {
    left: 20%;
    top: 78%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(12px, -26px, 0) rotate(8deg);
    }
}

.home-search-card,
.content-section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.home-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    gap: 24px;
    align-items: center;
    margin-top: -44px;
    position: relative;
    z-index: 6;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.home-search-card span {
    color: var(--pink-strong);
    font-weight: 800;
}

.home-search-card h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 38px);
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
}

.content-section {
    padding: 76px 0 0;
}

.compact-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-head a {
    color: var(--pink-strong);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.76);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(31, 41, 55, 0.14);
    border-color: rgba(236, 72, 153, 0.32);
}

.poster-link {
    display: block;
}

.poster-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background-color: #fce7f3;
    background-image: linear-gradient(135deg, rgba(236, 72, 153, 0.24), rgba(56, 189, 248, 0.2));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.poster-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52));
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35), transparent 58%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
    z-index: 2;
}

.movie-card:hover .poster-shine {
    transform: translateX(130%);
}

.poster-badge,
.poster-type {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
}

.poster-type {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: var(--pink-strong);
    background: rgba(255, 255, 255, 0.88);
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    min-height: 20px;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.35;
}

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

.movie-card p {
    color: #4b5563;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.7;
    min-height: 54px;
    margin: 0 0 14px;
}

.movie-card.compact .movie-body {
    padding: 15px;
}

.movie-card.compact h3 {
    font-size: 18px;
}

.movie-card.compact p {
    min-height: 48px;
    font-size: 14px;
}

.category-band {
    margin-top: 76px;
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.54), rgba(224, 242, 254, 0.54), rgba(209, 250, 229, 0.54));
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.78);
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(31, 41, 55, 0.14);
}

.category-card {
    min-height: 166px;
    padding: 28px;
}

.category-card span,
.category-icon {
    display: inline-flex;
    font-size: 42px;
    margin-bottom: 14px;
}

.category-card strong,
.category-overview-body h2 {
    display: block;
    color: var(--ink);
    font-size: 22px;
    margin: 0 0 8px;
}

.category-card em,
.category-overview-body p,
.category-overview-body em {
    display: block;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 138px 1fr;
    min-height: 210px;
}

.category-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 10px;
}

.category-preview span {
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: #fce7f3;
}

.category-overview-body {
    padding: 22px 22px 22px 8px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 64px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.82);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(236, 72, 153, 0.36);
}

.rank-number {
    color: var(--pink-strong);
    font-size: 22px;
    font-weight: 900;
}

.rank-thumb {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-color: #fce7f3;
}

.rank-main {
    min-width: 0;
}

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

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

.rank-heat {
    color: #ffffff;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    margin: 42px auto 0;
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 54px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.94), rgba(224, 242, 254, 0.78), rgba(209, 250, 229, 0.8));
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    line-height: 1.8;
    font-size: 18px;
}

.soft-hero::after,
.ranking-hero::after,
.search-hero::after,
.category-page-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 62%);
}

.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f3f4f6;
}

.filter-panel input {
    flex: 1;
}

.filter-panel select {
    min-width: 160px;
    cursor: pointer;
}

.narrow-section {
    max-width: 980px;
}

.full-ranking .ranking-item {
    grid-template-columns: 64px 74px 1fr auto;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.44;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)), linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(56, 189, 248, 0.2));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    background-color: #fce7f3;
    box-shadow: 0 30px 60px rgba(31, 41, 55, 0.2);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
}

.breadcrumb a:hover,
.side-card a:hover {
    color: var(--pink-strong);
}

.detail-line {
    max-width: 820px;
    color: #374151;
    font-size: 22px;
    line-height: 1.65;
    font-weight: 700;
    margin: 24px 0 16px;
}

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

.detail-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #4b5563;
    font-weight: 700;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.article-card,
.side-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
}

.player-card {
    padding: 14px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.video-shell video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.32);
}

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

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    color: #374151;
    line-height: 2;
    font-size: 17px;
    margin: 0 0 24px;
}

.side-card {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.site-footer {
    margin-top: 90px;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.9), rgba(224, 242, 254, 0.76), rgba(209, 250, 229, 0.76));
}

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.35fr 0.7fr 0.8fr 1fr;
    gap: 34px;
}

.footer-brand p,
.footer-col p,
.footer-col a {
    color: #4b5563;
    line-height: 1.8;
}

.footer-col h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--pink-strong);
}

.footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.72);
    text-align: center;
    color: #6b7280;
    padding: 20px 24px;
}

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

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

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

    .ranking-layout,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-side .side-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        padding: 0 18px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        margin: 0 auto;
        padding: 34px;
        width: min(92%, 720px);
    }

    .home-search-card {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .filter-panel {
        flex-direction: column;
        border-radius: 24px;
    }

    .wide-search input,
    .wide-search button,
    .filter-panel input,
    .filter-panel select {
        width: 100%;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .detail-inner {
        grid-template-columns: 1fr;
        padding: 42px 0;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .detail-info h1 {
        font-size: clamp(38px, 12vw, 62px);
    }

    .ranking-item,
    .full-ranking .ranking-item {
        grid-template-columns: 44px 58px 1fr;
    }

    .rank-heat {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .home-search-card,
    .content-section,
    .page-hero,
    .detail-inner,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .hero-content {
        padding: 26px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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

    .category-preview {
        height: 180px;
    }

    .article-card,
    .side-card {
        padding: 22px;
    }
}
