:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe8dc;
    --peach-200: #ffd0bd;
    --peach-400: #ffa777;
    --peach-500: #ff7b44;
    --peach-600: #e85f2f;
    --coral-400: #ff8f7d;
    --coral-500: #ff5f57;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(255, 123, 68, 0.18);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 40px rgba(229, 93, 46, 0.14);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 167, 119, 0.28), transparent 30rem),
        linear-gradient(135deg, #fff8f4 0%, #fffdfb 45%, #fff1ea 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(229, 93, 46, 0.08);
}

.nav-wrap {
    max-width: 1200px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
    box-shadow: 0 12px 24px rgba(255, 95, 87, 0.28);
}

.brand-text,
.gradient-text {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--peach-600), var(--coral-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--peach-600);
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.wide-search input {
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search input:focus,
.mobile-search input:focus,
.wide-search input:focus {
    border-color: var(--peach-400);
    box-shadow: 0 0 0 4px rgba(255, 167, 119, 0.18);
}

.nav-search button,
.mobile-search button,
.wide-search button,
.primary-btn {
    border: 0;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 14px 28px rgba(255, 95, 87, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-search button {
    padding: 10px 16px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.primary-btn:hover,
.nav-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 36px rgba(255, 95, 87, 0.32);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 232, 220, 0.78);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--ink);
}

.mobile-panel {
    display: none;
    padding: 16px 20px 22px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

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

.mobile-panel a {
    font-weight: 800;
    color: #4b5563;
}

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

.mobile-search input {
    width: 100%;
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #171717;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 55%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(92vw, 1200px);
    margin: 0 auto;
    padding: 80px 20px 110px;
    max-width: 760px;
    transform: translateX(calc((100vw - min(92vw, 1200px)) / -2));
}

.hero-kicker,
.detail-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(255, 123, 68, 0.92);
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.hero p {
    max-width: 670px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.13rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.small-actions {
    margin-top: 22px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
    left: 26px;
}

.hero-arrow.next {
    right: 26px;
}

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

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

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

.quick-search,
.section,
.detail-content {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.quick-search {
    padding: 34px 0 10px;
}

.quick-search-inner,
.page-hero,
.detail-hero,
.detail-block,
.player-shell,
.category-overview-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 26px;
    padding: 30px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--peach-600);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-block h2,
.footer-column h2,
.category-overview-head h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.quick-search h2,
.section-head h2,
.category-overview-head h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.quick-search p,
.section-head p,
.page-hero p,
.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.wide-search input {
    width: 100%;
    padding: 15px 20px;
}

.wide-search button {
    padding: 0 26px;
}

.section {
    padding: 54px 0;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--peach-600);
    font-weight: 900;
    background: rgba(255, 232, 220, 0.9);
    transition: background 0.2s ease, transform 0.2s ease;
}

.section-more:hover {
    background: var(--peach-100);
    transform: translateY(-2px);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(229, 93, 46, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 123, 68, 0.36);
    box-shadow: 0 20px 42px rgba(229, 93, 46, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peach-100), #fff);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
    opacity: 0.72;
}

.card-badge,
.card-score,
.card-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #fff;
    font-size: 0.76rem;
    background: rgba(255, 123, 68, 0.94);
}

.card-score {
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    color: var(--peach-600);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.9);
}

.card-play {
    left: 50%;
    bottom: 18px;
    padding: 9px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--peach-600);
}

.card-body p {
    min-height: 47px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 0.88rem;
}

.card-meta span,
.rank-meta span,
.detail-meta span,
.card-tags span,
.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 232, 220, 0.78);
}

.card-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.card-tags span,
.tag-row a {
    color: var(--peach-600);
    font-size: 0.8rem;
    font-weight: 800;
}

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

.category-card a {
    position: relative;
    min-height: 184px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 232, 220, 0.76));
    box-shadow: 0 12px 28px rgba(229, 93, 46, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(229, 93, 46, 0.16);
}

.category-glow {
    position: absolute;
    right: -38px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 123, 68, 0.32), transparent 70%);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-examples {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-examples a {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    display: inline;
    color: var(--peach-600);
    font-size: 0.82rem;
    font-weight: 800;
    background: transparent;
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(229, 93, 46, 0.08);
}

.rank-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: var(--peach-100);
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 1.04rem;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    width: min(1200px, calc(100% - 40px));
    margin: 34px auto 0;
    padding: 44px;
}

.soft-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 123, 68, 0.18), transparent 24rem),
        rgba(255, 255, 255, 0.86);
}

.rank-hero {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(255, 95, 87, 0.7)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24rem);
}

.rank-hero h1,
.rank-hero p,
.rank-hero .eyebrow {
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.category-overview-block {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 34px;
    padding: 28px;
}

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

.filter-chip {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #4b5563;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.82);
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.84);
}

.no-results.show {
    display: block;
}

.search-page-form {
    max-width: 720px;
    margin-top: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--peach-600);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 48px rgba(31, 41, 55, 0.18);
    background: var(--peach-100);
}

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

.detail-copy h1 {
    font-size: clamp(2.1rem, 5vw, 4.3rem);
    line-height: 1.04;
}

.detail-one-line {
    margin: 18px 0;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-kicker span {
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.detail-copy .ghost-btn,
.page-hero .ghost-btn {
    color: var(--peach-600);
    border-color: var(--line);
    background: rgba(255, 232, 220, 0.72);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #050505;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.64));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 18px 38px rgba(255, 95, 87, 0.35);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 24px;
    border-left: 21px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.play-overlay strong {
    font-size: 1.05rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
    align-items: start;
    padding: 0 0 18px;
}

.detail-block {
    padding: 28px;
}

.detail-block h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

.detail-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.info-block dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-block div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
}

.info-block dt {
    color: var(--muted);
    font-weight: 800;
}

.info-block dd {
    margin: 0;
    color: #374151;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 245, 240, 0.94), rgba(255, 232, 220, 0.82));
}

.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 34px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.footer-brand p {
    max-width: 430px;
}

.footer-column {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-column h2 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.footer-column a:hover {
    color: var(--peach-600);
}

.footer-bottom {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

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

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

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

@media (max-width: 820px) {
    .nav-wrap {
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-copy {
        transform: none;
        max-width: none;
        padding: 74px 20px 100px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .page-hero,
    .detail-hero {
        padding: 30px;
    }
}

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

    .quick-search,
    .section,
    .detail-content,
    .page-hero,
    .detail-hero,
    .category-overview-block,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1200px);
    }

    .quick-search-inner,
    .category-overview-block,
    .detail-block {
        padding: 20px;
    }

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

    .wide-search button {
        min-height: 44px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .ranking-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 92px 1fr;
    }

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

    .hero h1 {
        font-size: clamp(2.2rem, 14vw, 3.8rem);
    }

    .hero p {
        font-size: 1rem;
    }
}
