:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #fb923c;
    --amber: #facc15;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --ink: #111827;
    --muted: #667085;
    --line: rgba(15, 23, 42, 0.10);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 22px 55px rgba(244, 63, 94, 0.16);
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 26rem),
        linear-gradient(135deg, #fff1f2 0%, #fdf2f8 45%, #fff7ed 100%);
}

body,
button,
input {
    font: inherit;
}

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

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

button {
    border: 0;
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 18px 45px rgba(244, 63, 94, 0.24);
}

.nav-shell {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding: 14px 0;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: var(--rose);
    background: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(244, 63, 94, 0.18);
}

.brand-name {
    font-size: 24px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-weight: 700;
}

.main-nav a,
.mobile-panel a {
    position: relative;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fef08a;
    opacity: 1;
}

.main-nav a:hover {
    transform: translateY(-1px);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.site-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
}

.site-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.site-search button {
    min-width: 64px;
    color: var(--rose);
    font-weight: 800;
    background: #ffffff;
    border-radius: 999px;
    padding: 9px 16px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
    padding: 0 16px 18px;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: var(--slate);
}

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

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

.hero-bg,
.hero-bg img,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.70) 40%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.62), transparent 26rem),
        radial-gradient(circle at 82% 22%, rgba(251, 146, 60, 0.54), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 52px;
    min-height: 680px;
    padding: 92px 0 78px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.24);
}

.hero h1,
.inner-hero h1,
.detail-copy h1 {
    margin: 22px 0 10px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.hero p,
.inner-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff1f2;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.btn,
.watch-actions a,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.watch-actions a:hover,
.more-link:hover {
    transform: translateY(-2px);
}

.btn-light {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.24);
}

.btn-primary,
.more-link,
.watch-actions a {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.20);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    font-size: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.stat-strip {
    position: relative;
    z-index: 4;
    margin-top: -42px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-grid a {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.stat-grid strong {
    color: var(--ink);
    font-size: 28px;
}

.stat-grid span {
    color: var(--muted);
}

.section {
    padding: 74px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.45);
}

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

.section-kicker {
    color: var(--rose);
    background: #fff1f2;
    box-shadow: none;
}

.section h2,
.article-content h2,
.watch-panel h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

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

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

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 24px;
    align-items: start;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    backdrop-filter: blur(16px);
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-img {
    width: 100%;
    aspect-ratio: 3 / 4.12;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.poster-badge,
.poster-score {
    position: absolute;
    top: 12px;
    padding: 7px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.poster-badge {
    left: 12px;
}

.poster-score {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

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

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

.movie-title:hover,
.rank-title:hover {
    color: var(--rose);
}

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    margin: 9px 0 12px;
    color: var(--muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.055);
}

.tag-row {
    margin-top: 12px;
}

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

.is-compact .movie-title {
    font-size: 16px;
}

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

.category-tile {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: var(--shadow-soft);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.70));
    z-index: 1;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    display: block;
    margin-top: 74px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-title {
    font-size: 19px;
    font-weight: 900;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 10px;
    color: var(--muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.library-head .site-search {
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.library-head .site-search input {
    color: var(--ink);
}

.library-head .site-search input::placeholder {
    color: #98a2b3;
}

.library-head .site-search button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

.chip {
    color: var(--rose);
    font-weight: 900;
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
}

.inner-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(250, 204, 21, 0.24), transparent 22rem),
        linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
}

.inner-hero .container {
    padding: 86px 0 76px;
}

.inner-hero p {
    max-width: 760px;
}

.category-overview-list {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.category-overview-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.category-overview-copy .btn {
    margin-top: 18px;
}

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

.mini-movie-row a {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.mini-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.detail-hero {
    min-height: 560px;
    background: var(--slate);
}

.detail-backdrop,
.detail-backdrop-img,
.detail-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-backdrop-img {
    object-fit: cover;
    filter: blur(12px) saturate(1.12);
    transform: scale(1.06);
    opacity: 0.44;
}

.detail-shade {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42)),
        radial-gradient(circle at 18% 24%, rgba(244, 63, 94, 0.54), transparent 24rem);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 34px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-cover {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    box-shadow: 0 32px 78px rgba(0, 0, 0, 0.38);
}

.detail-cover-img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.detail-copy h1 {
    max-width: 900px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.player-section {
    padding-top: 52px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.76));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: var(--rose);
    font-size: 32px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(255, 255, 255, 0.26);
}

.player-overlay strong {
    font-size: 18px;
}

.player-status {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 3;
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(244, 63, 94, 0.88);
}

.watch-panel {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.watch-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.article-content {
    max-width: 920px;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--shadow-soft);
}

.article-content p {
    color: #344054;
    font-size: 18px;
    line-height: 2;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer p {
    max-width: 430px;
    line-height: 1.8;
}

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

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

.footer-bottom {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

    .nav-shell {
        grid-template-columns: auto 1fr auto;
    }

    .site-header > .nav-shell .site-search,
    .nav-shell > .site-search {
        justify-self: end;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

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

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

    .featured-layout,
    .player-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-shell > .site-search {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 80px 0 90px;
    }

    .hero-poster {
        justify-self: start;
        width: 210px;
        border-width: 8px;
    }

    .stat-grid,
    .footer-grid,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .side-grid,
    .compact-rank,
    .category-grid,
    .mini-movie-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-cover {
        width: min(260px, 100%);
    }
}

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

    .brand-name {
        font-size: 20px;
    }

    .hero-control {
        display: none;
    }

    .hero h1,
    .inner-hero h1,
    .detail-copy h1 {
        font-size: 42px;
    }

    .movie-grid,
    .side-grid,
    .compact-rank,
    .category-grid,
    .mini-movie-row {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: auto 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-img {
        width: 76px;
    }

    .site-search {
        width: 100%;
    }

    .site-search input {
        width: 100%;
    }

    .article-content {
        padding: 24px;
    }
}
