:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --rose: #e11d48;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.88);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--amber-dark);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

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

.nav-link {
    padding: 9px 2px;
    color: #4b5563;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber);
    border-color: var(--amber);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 4px 8px 12px;
    color: var(--text);
}

.header-search button,
.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.26);
}

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

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

.primary-btn:hover,
.header-search button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.ghost-btn.light {
    color: var(--amber-dark);
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(255, 255, 255, 0.8);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fef3c7;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 3px;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 800;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--amber);
    background: #fef3c7;
}

main {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.42), transparent 36%), linear-gradient(135deg, #78350f, #c2410c 52%, #881337);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(120, 53, 15, 0.72), rgba(136, 19, 55, 0.62));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 48px;
    padding: 74px 0 68px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 50px rgba(69, 26, 3, 0.45);
}

.hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #ffedd5;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-poster {
    position: relative;
    width: min(430px, 100%);
    justify-self: end;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(69, 26, 3, 0.48);
    transform: rotate(2deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.48));
}

.hero-poster span {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--amber-dark);
    background: #ffffff;
    font-size: 26px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

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

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

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

.home-search-panel,
.page-hero,
.content-section,
.detail-wrap,
.detail-nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.home-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -48px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-search-panel h2,
.page-hero h1,
.section-heading h2,
.detail-main h1,
.story-block h2,
.info-card h2 {
    margin: 0;
    color: var(--text);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.home-search-panel h2 {
    font-size: clamp(26px, 4vw, 46px);
}

.home-search-panel p,
.page-hero p,
.section-heading p,
.category-card-large p,
.site-footer p {
    margin: 8px 0 0;
    color: var(--muted);
}

.home-search-panel form {
    display: flex;
    gap: 12px;
    margin: 24px 0 18px;
}

.home-search-panel input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 18px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.12);
}

.home-search-panel input {
    min-height: 54px;
    padding: 0 18px;
}

.home-search-panel button {
    min-width: 130px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
    cursor: pointer;
}

.quick-links a {
    color: var(--amber-dark);
    background: #fef3c7;
}

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

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 11px 18px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(146, 64, 14, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.play-corner,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 950;
}

.play-corner {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    color: var(--amber-dark);
    background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

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

.movie-meta,
.card-bottom,
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.movie-meta {
    color: var(--amber);
    font-size: 13px;
    font-weight: 850;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text);
}

.movie-card h2 a:hover {
    color: var(--amber);
}

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

.card-tags {
    min-height: 30px;
}

.card-tags span,
.detail-tags span {
    color: var(--amber-dark);
    background: #fef3c7;
}

.card-bottom {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.card-bottom a {
    color: var(--amber);
}

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

.compact-card h2 {
    font-size: 18px;
}

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 26px;
    color: #ffffff;
    background: #78350f;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.35s ease;
}

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

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

.category-tile span,
.category-tile strong {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 54px;
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    bottom: 20px;
    color: #ffedd5;
    font-size: 13px;
}

.page-hero {
    margin-top: 32px;
    padding: 56px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #92400e, #ea580c, #be123c);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.04;
}

.page-hero p {
    max-width: 760px;
    color: #ffedd5;
    font-size: 18px;
}

.small-hero {
    min-height: 260px;
}

.filter-panel {
    margin: 0 0 26px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.1);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 14px;
}

.filter-search {
    margin-bottom: 16px;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-card-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px;
    background: #fef3c7;
}

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

.category-card-large h2 {
    margin: 6px 0 8px;
    font-size: 28px;
    color: var(--text);
}

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

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

.rank-row,
.rank-wide-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover,
.rank-wide-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.rank-row span,
.rank-number {
    color: var(--orange);
    font-size: 22px;
    font-weight: 950;
}

.rank-row img,
.rank-wide-row img {
    width: 58px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: #fef3c7;
}

.rank-row strong,
.rank-wide-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em,
.rank-wide-row em {
    color: var(--muted);
    font-style: normal;
}

.rank-wide-row {
    grid-template-columns: 54px 78px minmax(0, 1.2fr) minmax(0, 1fr) 64px;
    padding: 12px 18px;
}

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

.rank-wide-row b {
    color: var(--amber);
    font-size: 22px;
}

.detail-wrap {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
}

.detail-left,
.detail-main,
.info-card,
.story-block {
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-left {
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 26px 70px rgba(69, 26, 3, 0.22);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

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

.play-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--amber-dark);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

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

.info-card {
    margin-top: 18px;
    padding: 24px;
}

.info-card h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.info-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-card div {
    padding: 14px;
    border-radius: 16px;
    background: #fffbeb;
}

.info-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 900;
}

.detail-main {
    padding: 34px;
}

.detail-main h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
}

.rating-row {
    color: #f59e0b;
    font-size: 18px;
}

.rating-row strong {
    color: var(--text);
    font-size: 24px;
}

.rating-row em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.one-line {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 5px solid var(--amber);
    border-radius: 18px;
    color: #374151;
    background: #fffbeb;
    font-size: 18px;
    font-weight: 750;
}

.story-block {
    margin-top: 24px;
    padding: 24px;
    background: #fffbeb;
    box-shadow: none;
}

.story-block h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.story-block p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.detail-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 34px 0 0;
}

.detail-nav a {
    padding: 18px 22px;
    border-radius: 20px;
    color: var(--amber-dark);
    background: #fef3c7;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 72px;
    color: #ffedd5;
    background: linear-gradient(135deg, #78350f, #9a3412, #881337);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    color: #ffedd5;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #ffedd5;
}

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

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fed7aa;
    font-size: 14px;
}

.search-hidden {
    display: none !important;
}

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

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

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

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

    .hero-poster {
        justify-self: start;
        width: min(360px, 78vw);
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 44px;
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 13vw, 68px);
    }

    .home-search-panel form,
    .section-heading,
    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .category-list-grid,
    .footer-grid,
    .detail-nav,
    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-wide-row em {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .home-search-panel,
    .page-hero,
    .content-section,
    .detail-wrap,
    .detail-nav,
    .footer-grid,
    .footer-bottom,
    .mobile-nav {
        width: min(100% - 20px, 1240px);
    }

    .logo {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 700px;
    }

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

    .hero-tags span {
        max-width: 100%;
    }

    .home-search-panel,
    .page-hero,
    .detail-main {
        padding: 24px;
        border-radius: 24px;
    }

    .movie-grid,
    .category-grid,
    .filter-row,
    .info-card dl {
        grid-template-columns: 1fr;
    }

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

    .category-card-images {
        min-height: 150px;
    }

    .poster-link {
        aspect-ratio: 16 / 10;
    }
}
