:root {
    --sand-50: #faf8f3;
    --sand-100: #f4efe5;
    --sand-200: #e7dac5;
    --stone-50: #f7f6f4;
    --stone-100: #eeebe6;
    --stone-200: #ddd8cf;
    --stone-600: #6f6257;
    --stone-700: #5d5149;
    --stone-800: #4f453e;
    --stone-900: #352c27;
    --desert-500: #d4844b;
    --desert-600: #c66a3f;
    --desert-700: #a55337;
    --rose-500: #f43f5e;
    --purple-600: #9333ea;
    --white: #ffffff;
    --shadow-sand: 0 18px 45px rgba(184, 144, 89, 0.18);
    --shadow-desert: 0 24px 60px rgba(212, 132, 75, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--sand-50), #ffffff 46%, var(--stone-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(250, 248, 243, 0.95);
    border-bottom: 1px solid rgba(231, 218, 197, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(79, 69, 62, 0.08);
}

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--stone-900);
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    box-shadow: var(--shadow-desert);
}

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

.nav-link {
    position: relative;
    color: var(--stone-700);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--desert-500);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--desert-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(79, 69, 62, 0.06);
}

.nav-search input {
    width: 220px;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 8px 8px 14px;
    color: var(--stone-800);
}

.nav-search button,
.hero-search button,
.page-filter button,
.primary-btn {
    border: none;
    cursor: pointer;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-weight: 800;
    padding: 10px 18px;
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.page-filter button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(147, 51, 234, 0.25);
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    color: var(--stone-700);
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 8px 20px 18px;
    background: rgba(250, 248, 243, 0.98);
    border-top: 1px solid var(--sand-200);
}

.mobile-nav .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 38%, rgba(244, 63, 94, 0.32), transparent 28%), linear-gradient(90deg, rgba(53, 44, 39, 0.94) 0%, rgba(53, 44, 39, 0.72) 43%, rgba(53, 44, 39, 0.18) 100%), linear-gradient(0deg, rgba(53, 44, 39, 0.92), transparent 52%);
}

.hero-content {
    position: absolute;
    left: max(36px, calc((100vw - 1240px) / 2));
    bottom: 150px;
    z-index: 2;
    max-width: 720px;
    color: var(--white);
}

.hero-eyebrow,
.page-hero span,
.detail-info > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffe4e8;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 14px;
    max-width: 820px;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-content strong {
    display: block;
    margin-bottom: 16px;
    color: #ffd2dc;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.hero-content p {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.75;
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-dots {
    position: absolute;
    left: max(36px, calc((100vw - 1240px) / 2));
    bottom: 96px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 7px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 54px;
    background: var(--rose-500);
}

.hero-search {
    position: absolute;
    right: max(36px, calc((100vw - 1240px) / 2));
    bottom: 88px;
    z-index: 3;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(22px);
}

.hero-search input {
    width: min(340px, 40vw);
    border: none;
    outline: none;
    color: var(--white);
    background: transparent;
    padding: 10px 12px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.hero-categories {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.hero-categories a {
    color: var(--white);
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    font-size: 14px;
    font-weight: 800;
}

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

.soft-bg {
    background: linear-gradient(135deg, var(--sand-50), var(--stone-100));
}

.dark-section {
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.2), transparent 28%), var(--stone-900);
}

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

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1f2, #f3e8ff);
}

.section-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(231, 218, 197, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sand);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.dark-section .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(212, 132, 75, 0.58);
    box-shadow: var(--shadow-desert);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

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

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

.movie-type,
.movie-year {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    color: var(--white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(244, 63, 94, 0.92);
    backdrop-filter: blur(12px);
}

.movie-type {
    left: 12px;
}

.movie-year {
    right: 12px;
    background: rgba(53, 44, 39, 0.74);
}

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

.movie-card h2,
.movie-card h3 {
    margin: 0 0 10px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-section .movie-card h2,
.dark-section .movie-card h3 {
    color: var(--white);
}

.movie-card p {
    margin: 0 0 12px;
    min-height: 48px;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-section .movie-card p {
    color: rgba(255, 255, 255, 0.7);
}

.movie-meta {
    color: var(--desert-700);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

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

.tag-row span {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--desert-700);
    border-radius: 999px;
    background: #f9ede0;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card,
.category-panel {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    padding: 24px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow-sand);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after,
.category-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(147, 51, 234, 0.16));
}

.category-card:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-desert);
}

.category-card span,
.category-panel-title {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: var(--stone-900);
    font-size: 21px;
    font-weight: 950;
}

.category-card p,
.category-panel p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
}

.compact-card .movie-cover {
    aspect-ratio: auto;
    min-height: 190px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--sand-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sand);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
    transform: translateX(6px);
    border-color: rgba(212, 132, 75, 0.58);
}

.rank-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    font-weight: 950;
}

.rank-thumb {
    display: block;
    height: 76px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--stone-200);
}

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

.rank-content h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    font-weight: 900;
}

.rank-content p {
    margin: 0 0 8px;
    color: var(--stone-600);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-content span {
    color: var(--desert-700);
    font-size: 13px;
    font-weight: 800;
}

.center-actions {
    margin-top: 30px;
    text-align: center;
}

.page-hero {
    position: relative;
    padding: 90px 0 76px;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.34), transparent 28%), radial-gradient(circle at 85% 12%, rgba(147, 51, 234, 0.25), transparent 26%), linear-gradient(135deg, var(--stone-900), #5d5149);
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -170px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(212, 132, 75, 0.28);
    filter: blur(12px);
}

.small-hero {
    padding-top: 74px;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.75;
}

.page-filter {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 28px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.page-filter input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    color: var(--white);
    background: transparent;
    padding: 10px 14px;
}

.page-filter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-bar button {
    padding: 10px 16px;
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    color: var(--stone-700);
    background: var(--white);
    cursor: pointer;
    font-weight: 800;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.filter-bar button:hover,
.filter-bar button.is-active {
    color: var(--desert-700);
    border-color: var(--desert-500);
    transform: translateY(-2px);
}

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

.mini-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mini-links a {
    padding: 7px 10px;
    color: var(--desert-700);
    border-radius: 999px;
    background: #f9ede0;
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    width: min(1240px, calc(100% - 40px));
    margin: 34px auto 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--desert-700);
    font-weight: 800;
}

.detail-hero {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    background: radial-gradient(circle at 80% 16%, rgba(244, 63, 94, 0.16), transparent 28%), var(--white);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow-sand);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: var(--stone-200);
    box-shadow: var(--shadow-desert);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info > span {
    background: #f9ede0;
    color: var(--desert-700);
}

.detail-info h1 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 800px;
    margin: 0;
    color: var(--stone-600);
    font-size: 19px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 8px;
}

.detail-meta b {
    padding: 9px 13px;
    border-radius: 14px;
    color: var(--stone-800);
    background: var(--stone-100);
}

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

.player-section {
    padding: 54px 0 24px;
}

.player-section h2 {
    margin: 0 0 18px;
    color: var(--stone-900);
    font-size: 30px;
    font-weight: 950;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(53, 44, 39, 0.28);
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: none;
    color: var(--white);
    background: radial-gradient(circle, rgba(244, 63, 94, 0.26), rgba(0, 0, 0, 0.5)), linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-500), var(--purple-600));
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.36);
    font-size: 32px;
    text-indent: 5px;
}

.play-overlay strong {
    font-size: 22px;
}

.detail-content-section {
    padding-top: 36px;
}

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

.detail-article,
.related-box {
    padding: 30px;
    border: 1px solid var(--sand-200);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-sand);
}

.detail-article h2,
.related-box h2 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: 26px;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 18px;
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.9;
}

.related-grid {
    display: grid;
    gap: 16px;
}

.related-grid .compact-card {
    grid-template-columns: 112px minmax(0, 1fr);
}

.related-grid .compact-card .movie-cover {
    min-height: 154px;
}

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.72);
    background: var(--stone-900);
}

.footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
}

.footer-logo {
    color: var(--white);
}

.footer-inner p {
    max-width: 620px;
    margin: 18px 0 0;
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 18px;
    color: var(--white);
    font-size: 20px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
}

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

.searchable-card.is-hidden {
    display: none;
}

@media (max-width: 1120px) {
    .nav-search input {
        width: 160px;
    }

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

    .home-rank,
    .editor-layout,
    .category-panels,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .hero-slider {
        min-height: 720px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 220px;
    }

    .hero-search {
        left: 20px;
        right: 20px;
        bottom: 94px;
    }

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

    .hero-dots {
        left: 22px;
        bottom: 176px;
    }

    .hero-categories {
        bottom: 24px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 12px;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .detail-poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .container,
    .breadcrumb,
    .detail-hero,
    .footer-inner {
        width: min(100% - 28px, 1240px);
    }

    .site-logo {
        font-size: 21px;
    }

    .movie-grid,
    .large-grid,
    .category-grid,
    .rank-list,
    .home-rank {
        grid-template-columns: 1fr;
    }

    .compact-card,
    .rank-item,
    .related-grid .compact-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .rank-number {
        display: none;
    }

    .rank-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .page-filter,
    .hero-search {
        border-radius: 28px;
        flex-direction: column;
    }

    .hero-content h1,
    .hero-content h2,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

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