:root {
    --rose: #e11d48;
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --pink: #ec4899;
    --slate: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.24);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.brand-name {
    font-size: 21px;
}

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

.desktop-nav a,
.mobile-panel a {
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.header-search input,
.mobile-panel input,
.search-page-form input,
.quick-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: none;
}

.header-search input {
    width: 230px;
    padding: 10px 14px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-panel button,
.quick-search button,
.search-page-form button,
.filter-panel button {
    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,
.mobile-panel button {
    padding: 9px 16px;
    color: var(--orange);
    background: #ffffff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 16px;
    background: rgba(136, 19, 55, 0.96);
    backdrop-filter: blur(16px);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 800;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

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

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

.hero {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    color: #ffffff;
}

.hero-content > * {
    width: min(660px, 100%);
}

.hero-kicker,
.detail-kicker,
.section-title span,
.rank-copy span {
    display: inline-flex;
    width: auto;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 23px);
}

.hero-meta,
.card-meta,
.ranking-meta,
.detail-meta-grid,
.hero-tags,
.detail-tags,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.hero-tags span,
.detail-tags a,
.tag-line span,
.card-meta span,
.ranking-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span,
.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions,
.category-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.primary-button,
.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

.soft-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.soft-button:hover,
.header-search button:hover,
.quick-search button:hover,
.search-page-form button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(249, 115, 22, 0.96));
    box-shadow: var(--shadow);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel form,
.search-page-form,
.filter-panel {
    display: flex;
    gap: 10px;
}

.quick-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
    background: #ffffff;
}

.quick-search button,
.search-page-form button,
.filter-panel button {
    padding: 12px 22px;
    color: #ffffff;
    background: #111827;
}

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

.section-title h2,
.rank-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-title a {
    color: var(--orange);
    font-weight: 900;
}

.light-title,
.light-title a {
    color: #ffffff;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    color: #ffffff;
    isolation: isolate;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h3 {
    margin: 34px 0 6px;
    font-size: 26px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.category-label {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 900;
}

.category-preview {
    display: flex;
    position: absolute;
    right: 18px;
    bottom: 18px;
}

.category-preview img {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    object-fit: cover;
    margin-left: -12px;
    background: rgba(255, 255, 255, 0.2);
}

.category-glow {
    position: absolute;
    inset: auto -40px -70px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(2px);
}

.from-rose-to-orange {
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.from-blue-to-indigo {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.from-violet-to-pink {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.from-slate-to-zinc {
    background: linear-gradient(135deg, #0f172a, #3f3f46);
}

.from-red-to-amber {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.from-pink-to-rose {
    background: linear-gradient(135deg, #ec4899, #e11d48);
}

.from-cyan-to-blue {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.from-emerald-to-teal {
    background: linear-gradient(135deg, #10b981, #0d9488);
}

.from-yellow-to-orange {
    background: linear-gradient(135deg, #eab308, #f97316);
}

.from-purple-to-indigo {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
}

.movie-grid,
.small-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.11);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card.compact .poster-link {
    aspect-ratio: 3 / 4;
}

.poster-link img,
.ranking-thumb img,
.wide-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.card-year,
.card-play {
    position: absolute;
    z-index: 2;
    color: #ffffff;
}

.card-year {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.card-play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover,
.ranking-copy h3 a:hover {
    color: var(--orange);
}

.movie-card-body p {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta span,
.ranking-meta span,
.tag-line span {
    padding: 4px 9px;
    color: #475569;
    background: #f1f5f9;
}

.tag-line {
    margin-top: 10px;
}

.hot-section {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #020617);
}

.hot-section .movie-card {
    color: #111827;
}

.wide-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.wide-card {
    flex: 0 0 260px;
    color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
    scroll-snap-align: start;
}

.wide-card img {
    height: 150px;
}

.wide-card span,
.wide-card small {
    display: block;
    padding: 0 14px;
}

.wide-card span {
    padding-top: 12px;
    font-weight: 900;
}

.wide-card small {
    padding-bottom: 14px;
    color: rgba(255, 255, 255, 0.66);
}

.rank-home {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, #111827, #020617);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1.4fr;
    gap: 34px;
    align-items: start;
}

.rank-copy {
    position: sticky;
    top: 96px;
}

.rank-copy p {
    color: rgba(255, 255, 255, 0.72);
}

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

.full-rank {
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-home .ranking-row {
    color: #111827;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.ranking-thumb {
    display: block;
    width: 82px;
    height: 96px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.ranking-copy h3,
.ranking-copy p {
    margin: 0;
}

.ranking-copy p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.ranking-meta {
    margin-top: 8px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 22%), linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
}

.page-hero {
    padding: 58px 0 64px;
}

.page-hero h1 {
    max-width: 850px;
    margin: 12px 0 10px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-wrap {
    margin-top: -30px;
    position: relative;
    z-index: 8;
}

.filter-panel {
    flex-wrap: wrap;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
    min-width: 190px;
    flex: 1;
    padding: 12px 14px;
    border-radius: 999px;
    background: #f1f5f9;
}

.filter-panel button {
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.search-page-form {
    max-width: 760px;
    margin-top: 24px;
}

.search-status {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.detail-hero {
    padding: 44px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: #111827;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-copy .lead {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
}

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

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

.detail-tags a {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
}

.player-section {
    margin-top: -28px;
    position: relative;
    z-index: 6;
    padding-bottom: 34px;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.play-layer.is-hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
    font-size: 30px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 34px 0 10px;
}

.story-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #334155;
}

.site-footer {
    margin-top: 60px;
    color: #ffffff;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: start;
    font-weight: 800;
}

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

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.56);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-movie-card].is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .rank-layout,
    .detail-layout,
    .detail-content,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .rank-copy {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 82px;
    }

    .hero-control {
        display: none;
    }

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

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

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

    .movie-card-body h3 {
        font-size: 16px;
    }

    .movie-card-body p,
    .tag-line {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 42px 66px 1fr;
        gap: 10px;
    }

    .ranking-thumb {
        width: 66px;
        height: 82px;
    }

    .ranking-copy p {
        display: none;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 100%);
    }

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

@media (max-width: 520px) {
    .category-grid,
    .category-grid.large,
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

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

    .quick-search {
        margin-top: 0;
    }

    .search-panel {
        border-radius: 0;
        width: 100%;
    }
}
