@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;700;900&display=swap");

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #f59e0b;
    --amber-500: #d97706;
    --amber-600: #b45309;
    --amber-700: #92400e;
    --amber-800: #78350f;
    --amber-900: #451a03;
    --ink: #1f1305;
    --paper: #fffaf0;
    --white: #ffffff;
    --muted: #7c5b2b;
    --shadow: 0 20px 50px rgba(69, 26, 3, 0.14);
    --soft-shadow: 0 12px 26px rgba(69, 26, 3, 0.11);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--amber-50);
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
    color: var(--amber-100);
    border-bottom: 2px solid var(--amber-600);
    box-shadow: 0 12px 30px rgba(69, 26, 3, 0.24);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.28);
}

.brand-copy strong {
    display: block;
    font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.brand-copy small {
    display: block;
    color: var(--amber-300);
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 12px;
    color: var(--amber-100);
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(120, 53, 15, 0.72);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.search-page-form input {
    border: 1px solid rgba(180, 83, 9, 0.45);
    border-radius: 14px;
    outline: none;
    transition: 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 220px;
    padding: 9px 12px;
    color: var(--amber-100);
    background: rgba(120, 53, 15, 0.54);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: var(--amber-300);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.search-page-form input:focus {
    border-color: var(--amber-300);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 14px;
    padding: 9px 14px;
    cursor: pointer;
    color: #ffffff;
    background: var(--amber-600);
    transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    background: var(--amber-700);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--amber-100);
    background: rgba(120, 53, 15, 0.65);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    padding: 14px 16px 18px;
}

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

.hero-section {
    position: relative;
    min-height: clamp(560px, 76vh, 720px);
    overflow: hidden;
    color: #ffffff;
    background: var(--amber-900);
}

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

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.1);
}

.hero-wash {
    background:
        radial-gradient(circle at 82% 36%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.96) 0%, rgba(69, 26, 3, 0.72) 42%, rgba(69, 26, 3, 0.35) 100%),
        linear-gradient(0deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.12));
}

.hero-layout {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 46px;
    padding: 60px 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(69, 26, 3, 0.25);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--amber-100);
    font-size: clamp(17px, 2vw, 22px);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(120, 53, 15, 0.72);
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 800;
    transition: 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.primary-btn:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(180, 83, 9, 0.35);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.35);
    background: rgba(69, 26, 3, 0.35);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    background: rgba(120, 53, 15, 0.62);
    transform: translateY(-2px);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(253, 230, 138, 0.28);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.5s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.88);
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

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

.hero-mini-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    border-radius: 16px;
    border: 1px solid rgba(253, 230, 138, 0.2);
    background: rgba(69, 26, 3, 0.6);
}

.hero-mini-card img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    opacity: 0.78;
    transition: 0.35s ease;
}

.hero-mini-card:hover img {
    opacity: 1;
    transform: scale(1.08);
}

.hero-mini-card span {
    position: absolute;
    inset: auto 8px 8px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.warm-section {
    background: linear-gradient(135deg, var(--amber-100), var(--amber-50), #ffffff);
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-900), var(--amber-800));
}

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

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 6px;
    color: var(--amber-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-heading > a,
.side-more {
    color: var(--amber-700);
    font-weight: 800;
}

.section-heading.inverse h2,
.section-heading.inverse p,
.dark-section .section-heading h2,
.dark-section .section-heading p,
.dark-section .section-heading a {
    color: #ffffff;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--amber-900);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
    opacity: 0;
    transition: 0.3s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.9);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: 0.3s ease;
}

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

.poster-link em {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    background: var(--amber-600);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 7px;
    color: var(--amber-900);
    font-size: 17px;
    line-height: 1.35;
}

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

.card-meta,
.card-desc {
    margin: 0 0 10px;
}

.card-meta {
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 700;
}

.card-desc {
    color: var(--muted);
    font-size: 13px;
}

.movie-card.compact .card-desc {
    display: none;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-900), var(--amber-600));
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span {
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.category-tile strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 26px;
}

.category-tile em {
    color: var(--amber-100);
    font-style: normal;
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.22s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--amber-900);
    background: var(--amber-300);
    font-weight: 900;
}

.rank-row img {
    width: 68px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

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

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

.rank-main strong {
    font-size: 17px;
}

.rank-main small {
    color: var(--amber-200);
    font-size: 12px;
}

.rank-score {
    color: var(--amber-300);
    font-size: 22px;
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(135deg, var(--amber-900), var(--amber-800));
    padding: 76px 0;
}

.page-hero p {
    margin: 0 0 10px;
    color: var(--amber-300);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0 0 12px;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: var(--amber-100);
    font-size: 18px;
}

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

.category-card-large {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.category-card-large img,
.category-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card-large img {
    object-fit: cover;
    transition: 0.45s ease;
}

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

.category-overlay {
    background: linear-gradient(0deg, rgba(69, 26, 3, 0.88), rgba(69, 26, 3, 0.22));
}

.category-card-large strong,
.category-card-large em,
.category-number {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
}

.category-number {
    top: 20px;
    color: var(--amber-300);
    font-weight: 900;
}

.category-card-large strong {
    bottom: 78px;
    color: #ffffff;
    font-size: 28px;
}

.category-card-large em {
    bottom: 24px;
    color: var(--amber-100);
    font-style: normal;
    font-size: 14px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: var(--amber-50);
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.13);
}

.filter-panel.dark-filter {
    background: rgba(255, 255, 255, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
}

.filter-panel span {
    color: var(--amber-800);
    font-weight: 900;
}

.dark-filter span {
    color: var(--amber-100);
}

.filter-panel input {
    width: min(520px, 100%);
    padding: 12px 14px;
    color: var(--ink);
    background: #ffffff;
}

.detail-wrap {
    padding: 34px 0 76px;
    background: var(--amber-50);
}

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

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

.breadcrumb a:hover {
    color: var(--amber-900);
}

.breadcrumb em {
    color: var(--muted);
    font-style: normal;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(69, 26, 3, 0.22);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
    transition: 0.25s ease;
}

.player-overlay:hover {
    background: linear-gradient(0deg, rgba(69, 26, 3, 0.78), rgba(0, 0, 0, 0.28));
}

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

.play-button {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.player-overlay strong {
    max-width: min(88%, 620px);
    text-align: center;
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.25;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.detail-card,
.related-section,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.detail-card h1 {
    margin: 0 0 16px;
    color: var(--amber-900);
    font-family: "Noto Serif SC", serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--amber-700);
    font-weight: 800;
}

.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--amber-100);
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-card h2,
.related-section h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: #4b2d0c;
    font-size: 17px;
    text-align: justify;
}

.review-box {
    margin-top: 24px;
    padding: 22px;
    border-left: 5px solid var(--amber-600);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
}

.review-box p {
    margin-bottom: 0;
}

.related-section {
    margin-top: 24px;
    padding: 24px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-card {
    padding: 20px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 16px;
}

.primary-btn.full {
    width: 100%;
}

.side-rec {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.side-rec:hover {
    background: var(--amber-50);
}

.side-rec img {
    width: 78px;
    height: 96px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.side-rec span {
    min-width: 0;
}

.side-rec strong,
.side-rec small {
    display: block;
}

.side-rec strong {
    color: var(--amber-900);
    line-height: 1.35;
}

.side-rec small {
    color: var(--amber-600);
    margin-top: 5px;
    font-size: 12px;
}

.side-more {
    display: block;
    text-align: center;
    margin-top: 14px;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 16px;
    background: #ffffff;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-result-card img {
    width: 82px;
    height: 106px;
    border-radius: 14px;
    object-fit: cover;
}

.search-result-card h3 {
    margin: 0 0 6px;
    color: var(--amber-900);
}

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

.search-result-card a {
    color: #ffffff;
    background: var(--amber-600);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
}

.site-footer {
    color: var(--amber-100);
    background: linear-gradient(180deg, var(--amber-900), #2b1001);
    border-top: 2px solid var(--amber-700);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
    padding: 52px 0 34px;
}

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

.site-footer p,
.site-footer a {
    color: var(--amber-200);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.16);
    padding: 18px 16px;
    color: var(--amber-300);
    text-align: center;
    font-size: 14px;
}

.is-hidden-card {
    display: none !important;
}

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

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

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

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

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

@media (max-width: 820px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .mobile-panel.is-open {
        display: block;
    }

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

    .hero-layout {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .hero-panel {
        max-width: 420px;
    }

    .section {
        padding: 52px 0;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading > a {
        display: inline-block;
        margin-top: 10px;
    }

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

    .search-result-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .search-result-card a {
        grid-column: 1 / -1;
        text-align: center;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 22px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

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

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

    .movie-grid,
    .full-grid,
    .related-grid,
    .category-grid,
    .category-large-grid,
    .detail-side,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        grid-column: 3;
        font-size: 16px;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .search-page-form {
        display: grid;
    }
}
