:root {
    --primary-50: #fef6ee;
    --primary-100: #fdebd6;
    --primary-500: #f06b28;
    --primary-600: #e14f11;
    --primary-700: #ba3910;
    --accent-50: #fefbe8;
    --accent-500: #eeac07;
    --secondary-600: #50675e;
    --warm-50: #faf8f5;
    --warm-100: #f2ede4;
    --warm-200: #e4d8c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 24px 80px rgba(17, 24, 39, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--warm-50) 48%, var(--warm-100) 100%);
    color: var(--gray-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(228, 216, 199, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
    white-space: nowrap;
}

.brand-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(225, 79, 17, 0.22);
}

.brand-text {
    background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.18rem;
}

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

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gray-700);
    font-size: 0.94rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-600);
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--warm-200);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.header-search input,
.mobile-search input,
.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    padding: 10px 14px;
    background: var(--primary-600);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--primary-700);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--gray-100);
    background: #ffffff;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    padding: 14px 0 18px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(225, 79, 17, 0.36), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding-bottom: 92px;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary-600);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f6b38d;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-badges,
.detail-meta,
.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-badges span,
.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.detail-meta span,
.detail-meta a {
    background: var(--primary-50);
    color: var(--primary-700);
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: var(--primary-600);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(225, 79, 17, 0.3);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.ghost-button.light {
    border-color: var(--warm-200);
    background: #ffffff;
    color: var(--gray-800);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dot.is-active {
    width: 30px;
    background: var(--primary-600);
}

.hero-search {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 32px;
    width: min(420px, calc(100% - 32px));
}

.hero-search input {
    flex: 1;
    padding: 13px 16px;
}

.hero-search button {
    padding: 13px 18px;
}

.page-shell {
    min-height: 70vh;
    padding: 36px 0 72px;
}

.page-hero {
    margin-bottom: 28px;
    border-radius: 28px;
    padding: clamp(34px, 6vw, 72px);
    background:
        radial-gradient(circle at 88% 10%, rgba(238, 172, 7, 0.26), transparent 28%),
        linear-gradient(135deg, var(--gray-900), #312219 58%, var(--primary-700));
    color: #ffffff;
    box-shadow: var(--shadow-large);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.section-block {
    padding: 58px 0 0;
}

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

.section-heading.compact {
    align-items: start;
    margin-bottom: 16px;
}

.section-heading h2,
.filter-panel h2,
.detail-card h1,
.detail-card h2,
.sidebar-card h2,
.prose-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-heading h2,
.filter-panel h2 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.section-heading a,
.text-button {
    color: var(--primary-600);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link,
.category-card,
.category-overview-card,
.detail-card,
.player-card,
.poster-card,
.sidebar-card,
.filter-panel,
.category-stat-card,
.prose-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.movie-card-link {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover,
.category-card:hover,
.category-overview-card:hover,
.horizontal-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.poster-frame {
    position: relative;
    height: 220px;
    margin: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(225, 79, 17, 0.34), rgba(80, 103, 94, 0.36)),
        var(--gray-800);
}

.movie-card-large .poster-frame {
    height: 280px;
}

.poster-frame img,
.category-card img,
.category-cover img,
.poster-card img,
.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card-link:hover .poster-frame img,
.category-card:hover img,
.horizontal-card a:hover img {
    transform: scale(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-frame::after {
    opacity: 1;
}

.poster-region {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    overflow: hidden;
    border-radius: 10px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff;
    font-size: 0.75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-600);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card h3,
.horizontal-card h3,
.category-card h3,
.category-overview-card h2,
.poster-card h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.movie-card p,
.horizontal-card p,
.category-card p,
.category-overview-card p,
.poster-card p,
.prose-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.65;
}

.movie-card h3,
.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.movie-card h3 {
    -webkit-line-clamp: 1;
}

.movie-card p {
    min-height: 3em;
    -webkit-line-clamp: 2;
}

.movie-meta-row {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 0.82rem;
}

.movie-meta-row span:last-child {
    color: var(--primary-600);
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 28px;
}

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

.horizontal-card a {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card figure {
    width: 112px;
    height: 76px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-800);
}

.rank-index {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-weight: 900;
}

.horizontal-card span:not(.rank-index) {
    color: var(--gray-500);
    font-size: 0.84rem;
}

.ranking-panel,
.category-stat-card {
    position: sticky;
    top: 96px;
    align-self: start;
    border-radius: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 20px;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: saturate(1.05);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2));
}

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

.category-card span {
    display: inline-flex;
    margin-bottom: 72px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.category-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
}

.category-card p {
    color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 0 24px;
    padding: 22px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--warm-200);
    border-radius: 12px;
    padding: 0 12px;
    outline: 0;
    background: #ffffff;
    color: var(--gray-800);
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(225, 79, 17, 0.12);
}

.filter-count {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.empty-state {
    border-radius: 16px;
    padding: 22px;
    background: #ffffff;
    color: var(--gray-600);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 16px;
    background: var(--gray-900);
}

.category-cover span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.66);
    color: #ffffff;
    font-weight: 800;
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 10px;
    padding: 9px 12px;
    background: var(--warm-50);
    color: var(--gray-700);
}

.category-stat-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
}

.category-stat-card span {
    color: var(--primary-600);
    font-size: 5rem;
    font-weight: 950;
    line-height: 1;
}

.category-stat-card strong {
    color: var(--gray-900);
    font-size: 1.35rem;
}

.category-stat-card p {
    color: var(--gray-600);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--gray-600);
    font-size: 0.94rem;
}

.breadcrumbs a {
    color: var(--primary-600);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

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

.player-card {
    margin-bottom: 22px;
    border-radius: 24px;
    background: #000000;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: radial-gradient(circle at 50% 48%, rgba(225, 79, 17, 0.18), rgba(0, 0, 0, 0.58));
    color: #ffffff;
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-600);
    font-size: 2rem;
    box-shadow: var(--shadow-large);
}

.player-overlay strong {
    font-size: 1.12rem;
}

.player-card.is-playing .player-overlay {
    display: none;
}

.player-message {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.92rem;
}

.detail-card,
.prose-card {
    padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.detail-card section {
    margin-top: 28px;
}

.detail-card h2,
.sidebar-card h2,
.prose-card h2 {
    margin-bottom: 12px;
    font-size: 1.18rem;
}

.detail-card p,
.prose-card p {
    color: var(--gray-700);
    line-height: 1.9;
}

.review-box {
    border-radius: 18px;
    padding: 22px;
    background: var(--warm-50);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 0.88rem;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.poster-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: var(--gray-900);
}

.poster-card h2,
.poster-card p {
    padding-right: 18px;
    padding-left: 18px;
}

.poster-card h2 {
    padding-top: 18px;
}

.poster-card p {
    padding-bottom: 18px;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-list .horizontal-card a {
    grid-template-columns: 92px minmax(0, 1fr);
}

.sidebar-list .rank-index {
    display: none;
}

.sidebar-list .horizontal-card figure {
    width: 92px;
    height: 68px;
}

.ranking-page .filter-panel {
    margin-bottom: 20px;
}

.ranking-list-large .horizontal-card a {
    grid-template-columns: 56px 150px minmax(0, 1fr);
}

.ranking-list-large .horizontal-card figure {
    width: 150px;
    height: 94px;
}

.site-footer {
    border-top: 1px solid var(--warm-200);
    background: linear-gradient(180deg, var(--warm-50), var(--warm-100));
}

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

.footer-grid h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.75;
}

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

.footer-grid a:hover {
    color: var(--primary-600);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(228, 216, 199, 0.8);
    padding: 18px 0 28px;
}

@media (max-width: 1180px) {
    .all-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

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

    .detail-sidebar,
    .ranking-panel,
    .category-stat-card {
        position: static;
    }

    .hero-search {
        right: 16px;
        left: 16px;
        width: auto;
    }
}

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

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-bottom: 144px;
    }

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

    .hero-controls {
        bottom: 92px;
    }

    .section-heading,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

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

    .poster-frame {
        height: 190px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

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

    .horizontal-card a,
    .ranking-list-large .horizontal-card a {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .horizontal-card figure,
    .ranking-list-large .horizontal-card figure {
        width: 86px;
        height: 68px;
    }

    .rank-index {
        display: none;
    }

    .poster-card img {
        height: 320px;
    }
}

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

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

    .poster-frame {
        height: 260px;
    }

    .hero-badges span {
        padding: 7px 10px;
    }
}
