:root {
    --bg: #fff8ed;
    --bg-soft: #fffbf3;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1dec4;
    --card: #ffffff;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --red: #ef4444;
    --orange: #f97316;
    --shadow: 0 18px 55px rgba(146, 64, 14, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.10), transparent 30rem),
        linear-gradient(135deg, rgba(255, 251, 235, 0.76), #ffffff 42%, rgba(254, 243, 199, 0.58));
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;
}

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

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

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

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 12px 36px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    padding: 26px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    border-radius: 999px;
    transition: width 0.2s ease;
}

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

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

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

.header-search input,
.mobile-search input,
.local-search input,
.search-page-form input {
    width: 250px;
    border: 1px solid #e5d3b5;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    padding: 11px 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus,
.search-page-form input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.secondary-button {
    color: #9a3412;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #9a3412;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

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

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

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

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

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

.mobile-search {
    padding: 0 0 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, 0.80), rgba(120, 53, 15, 0.58)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: background 0.5s ease;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 28rem),
        linear-gradient(to top, rgba(17, 24, 39, 0.88), transparent 55%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 48px;
    align-items: end;
    min-height: 620px;
    padding: 70px 0 56px;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #9a3412;
    background: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.hero-kicker {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.24);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 850px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #ffffff, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
}

.hero-mini-card {
    min-height: 110px;
    padding: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.20);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
}

.hero-stage {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.hero-slide {
    display: none;
    min-height: 520px;
    color: #ffffff;
}

.hero-slide.active {
    display: block;
}

.hero-slide a {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 520px;
}

.hero-slide img {
    width: 100%;
    height: 355px;
    object-fit: cover;
}

.hero-slide-body {
    padding: 22px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.94));
}

.hero-slide-body h2 {
    margin: 12px 0 10px;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.16;
}

.hero-slide-body p {
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.65;
}

.hero-dots {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: #fbbf24;
}

.section {
    padding: 56px 0;
}

.section.compact {
    padding-top: 34px;
}

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

.section-head h1,
.section-head h2 {
    margin: 12px 0 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 760px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #111827;
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.06);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.feature-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 34px;
    color: #ffffff;
}

.feature-content h3 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.78;
}

.side-stack {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 26px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 26px;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.20);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111827;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-play,
.play-dot {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.poster-play {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 11px;
    color: #b45309;
    font-size: 12px;
    font-weight: 900;
}

.movie-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fffbeb;
}

.movie-card h3,
.movie-list-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
}

.movie-card p,
.movie-list-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.movie-chip-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid rgba(245, 158, 11, 0.20);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-list-link {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
}

.movie-list-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

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

.play-dot {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.movie-list-body {
    align-self: center;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    border-radius: 20px;
    font-size: 24px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.20);
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.06);
}

.local-search {
    flex: 1 1 260px;
}

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

.filter-button {
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 900;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.search-page-form {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin-top: 22px;
}

.search-page-form input {
    flex: 1 1 auto;
    width: auto;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(245, 158, 11, 0.38);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.80);
}

.empty-state.show {
    display: block;
}

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

.breadcrumbs a {
    color: #b45309;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58)), var(--detail-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.detail-content {
    position: relative;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    padding: 38px;
    color: #ffffff;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
    margin: 12px 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-info p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.player-card {
    margin-top: 34px;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.player-card h2,
.content-card h2 {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 950;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #050505;
    object-fit: contain;
}

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

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.player-overlay.is-hidden {
    display: none;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    margin-top: 34px;
}

.content-card {
    padding: 28px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.07);
}

.content-card p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.content-card p + p {
    margin-top: 16px;
}

.side-related {
    display: grid;
    gap: 14px;
}

.related-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
    border-radius: 20px;
    background: #fffbeb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-link:hover {
    transform: translateY(-2px);
    background: #fff7ed;
}

.related-link img {
    width: 92px;
    height: 66px;
    object-fit: cover;
    border-radius: 14px;
}

.related-link strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.related-link span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-top: 1px solid rgba(245, 158, 11, 0.18);
}

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

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 950;
}

.footer-grid p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #6b7280;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--amber-dark);
}

.footer-bottom {
    padding: 18px 0 28px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
}

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

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

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

    .hero-stage {
        align-self: auto;
    }

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

    .detail-content {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 0;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide,
    .hero-slide a {
        min-height: auto;
    }

    .hero-slide img {
        height: 260px;
    }

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

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

    .detail-poster img {
        min-height: auto;
    }

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

    .search-page-form {
        flex-direction: column;
    }
}

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

    .brand-text em {
        display: none;
    }

    .brand-text strong {
        font-size: 19px;
    }

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

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .primary-button,
    .secondary-button {
        justify-content: center;
        text-align: center;
    }

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

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

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

    .rank-number {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 18px;
    }

    .related-link {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .related-link img {
        width: 80px;
        height: 60px;
    }
}
