:root {
    color-scheme: light;
    --site-bg: #f8f2e8;
    --site-panel: #fffaf2;
    --site-text: #2d241d;
    --site-muted: #7a6757;
    --site-accent: #dd6f1f;
    --site-accent-dark: #b75316;
    --site-border: #ead8c1;
    --site-shadow: 0 18px 45px rgba(75, 50, 30, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    background: linear-gradient(135deg, #e8d3b6, #b8956b);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(234, 216, 193, 0.9);
    background: rgba(255, 250, 242, 0.94);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dd6f1f, #9f3e12);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 28px rgba(221, 111, 31, 0.28);
}

.brand-text {
    color: #2d241d;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

.nav-link,
.mobile-link {
    color: #5e4c40;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
    color: var(--site-accent);
}

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

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.search-page-form input {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 190px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus,
.search-page-form input:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 4px rgba(221, 111, 31, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
    border-radius: 999px;
    background: var(--site-accent);
    color: #ffffff;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.search-page-form button:hover {
    background: var(--site-accent-dark);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: var(--site-text);
    font-size: 1.6rem;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid var(--site-border);
}

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

.mobile-link {
    display: block;
    padding-top: 10px;
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 18px;
}

.hero-section {
    background: #20170f;
}

.hero-stage {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
}

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

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

.hero-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 20, 12, 0.92), rgba(55, 33, 15, 0.62), rgba(25, 18, 12, 0.38));
}

.hero-content {
    position: relative;
    width: min(760px, calc(100% - 32px));
    margin-left: max(24px, calc((100vw - 1280px) / 2 + 16px));
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(48, 31, 18, 0.42);
    color: #ffffff;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.hero-kicker,
.page-hero span,
.detail-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffbf7a;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-bottom: 18px;
    font-size: clamp(2.6rem, 6vw, 5.9rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-content p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    border-radius: 999px;
    background: rgba(221, 111, 31, 0.12);
    color: #8f3f13;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 8px 13px;
}

.detail-tags span,
.movie-tags span {
    padding: 6px 10px;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: var(--site-accent);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(221, 111, 31, 0.28);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.detail-info .secondary-button {
    border-color: rgba(221, 111, 31, 0.35);
    color: var(--site-accent-dark);
    background: #fff7ed;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.search-strip {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 250, 242, 0.95);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(10px);
}

.big-search input,
.search-page-form input {
    padding: 16px 20px;
}

.big-search button,
.search-page-form button {
    padding: 0 28px;
}

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

.sand-panel {
    background: linear-gradient(180deg, #f3e5d3, #f8f2e8);
}

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--site-accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #2d241d;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-heading a {
    color: var(--site-accent-dark);
    font-weight: 900;
}

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

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(61, 39, 24, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e8d3b6, #b8956b);
}

.movie-card.large .poster-frame {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.compact-card:hover img {
    transform: scale(1.08);
}

.poster-year,
.poster-rating {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-year {
    left: 12px;
    padding: 6px 10px;
    background: rgba(30, 20, 12, 0.68);
}

.poster-rating {
    right: 12px;
    padding: 6px 9px;
    background: var(--site-accent);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 3em;
    overflow: hidden;
    color: #2d241d;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: var(--site-accent);
}

.movie-line {
    display: -webkit-box;
    min-height: 3.9em;
    margin-top: 10px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: #8a725d;
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-tags {
    margin-top: 14px;
}

.movie-category-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--site-accent-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.category-grid,
.category-overview-grid,
.compact-grid {
    display: grid;
    gap: 20px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 26px;
    background: #2d241d;
    color: #ffffff;
    box-shadow: var(--site-shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 22px;
    z-index: 2;
}

.category-tile span {
    bottom: 52px;
    font-size: 1.45rem;
    font-weight: 950;
}

.category-tile small {
    right: 22px;
    bottom: 22px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 12px;
    align-items: center;
    min-height: 92px;
    padding: 10px;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(61, 39, 24, 0.1);
}

.compact-card img {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.compact-card span {
    display: -webkit-box;
    overflow: hidden;
    color: #2d241d;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-card small {
    color: var(--site-muted);
    font-weight: 700;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(221, 111, 31, 0.28), transparent 35%), linear-gradient(135deg, #2d241d, #7b451f);
    color: #ffffff;
}

.small-hero {
    padding: 88px 0 74px;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.8;
}

.category-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(61, 39, 24, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-preview-images {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 8px;
    height: 180px;
    overflow: hidden;
    border-radius: 20px;
}

.category-preview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card h2 {
    color: #2d241d;
    font-size: 1.45rem;
    font-weight: 950;
}

.category-overview-card p {
    margin-top: 8px;
    color: var(--site-muted);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(234, 216, 193, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
}

.filter-panel input {
    padding: 14px 18px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f5eadb;
    color: #6f5745;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    background: var(--site-accent);
    color: #ffffff;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--site-muted);
    text-align: center;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 100px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 22px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(61, 39, 24, 0.1);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff1df;
    color: var(--site-accent-dark);
    font-size: 1.15rem;
    font-weight: 950;
}

.rank-thumb img {
    width: 100px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info a {
    color: #2d241d;
    font-size: 1.08rem;
    font-weight: 950;
}

.rank-info p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--site-muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.rank-info span,
.rank-score span {
    color: #8a725d;
    font-size: 0.82rem;
    font-weight: 700;
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--site-accent);
    font-size: 1.5rem;
    font-weight: 950;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.search-result-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 22px;
    background: #ffffff;
}

.search-result-card img {
    width: 110px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
}

.search-result-card h2 {
    color: #2d241d;
    font-size: 1.25rem;
    font-weight: 950;
}

.search-result-card p {
    margin-top: 8px;
    color: var(--site-muted);
    line-height: 1.7;
}

.search-result-card span {
    display: inline-block;
    margin-top: 12px;
    color: var(--site-accent-dark);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #2d241d;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 20, 12, 0.94), rgba(30, 20, 12, 0.78), rgba(30, 20, 12, 0.38));
}

.detail-hero-inner {
    position: relative;
    padding-top: 48px;
    padding-bottom: 64px;
    color: #ffffff;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: #ffbf7a;
}

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

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    max-width: 840px;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.detail-info p {
    max-width: 820px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
    line-height: 1.85;
}

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

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

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--site-shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--site-accent);
    font-size: 2.4rem;
    box-shadow: 0 18px 42px rgba(221, 111, 31, 0.42);
}

.player-start strong {
    font-size: 1.1rem;
    font-weight: 950;
}

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

.story-card,
.side-card,
.plain-card {
    padding: 28px;
    border: 1px solid rgba(234, 216, 193, 0.72);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(61, 39, 24, 0.07);
}

.story-card h2,
.side-card h2 {
    margin-bottom: 16px;
    color: #2d241d;
    font-size: 1.55rem;
    font-weight: 950;
}

.story-card p,
.plain-card p {
    color: #5e4c40;
    font-size: 1.02rem;
    line-height: 1.9;
}

.plain-card p + p {
    margin-top: 18px;
}

.info-table {
    display: grid;
    gap: 12px;
}

.info-table div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e1cf;
}

.info-table dt {
    color: #8a725d;
    font-weight: 900;
}

.info-table dd {
    color: #3b3028;
    line-height: 1.7;
}

.side-card {
    position: sticky;
    top: 96px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.site-footer {
    padding: 56px 0 28px;
    background: #211812;
    color: #d8c7b4;
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 950;
}

.site-footer p {
    max-width: 360px;
    color: #bba895;
    line-height: 1.75;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.site-footer li + li {
    margin-top: 9px;
}

.site-footer a {
    color: #cbb9a6;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9e8974;
    font-size: 0.92rem;
}

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

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

    .mobile-toggle {
        display: block;
    }

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

    .side-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text {
        font-size: 1.28rem;
    }

    .hero-stage {
        min-height: 78vh;
    }

    .hero-content {
        margin: 0 16px;
        padding: 30px;
        border-radius: 26px;
    }

    .big-search,
    .search-page-form,
    .filter-panel,
    .rank-row,
    .search-result-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

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

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

    .movie-title {
        font-size: 0.95rem;
    }

    .movie-line {
        font-size: 0.82rem;
    }

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

    .detail-cover {
        max-width: 220px;
    }

    .rank-score {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .content-section {
        padding: 48px 0;
    }

    .small-hero {
        padding: 62px 0 54px;
    }

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

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

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}
