* {
  box-sizing: border-box;
}

:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --panel-soft: #eff8ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --accent: #2563eb;
  --shadow: 0 20px 45px rgba(2, 132, 199, 0.13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 36rem),
    linear-gradient(180deg, #f8fbff 0%, #eef7ff 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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;
  border-bottom: 1px solid rgba(125, 211, 252, 0.55);
  background: rgba(240, 249, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

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

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  color: #1e293b;
}

.brand-text small,
.footer-brand p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: #e0f2fe;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

.nav-search button,
.search-large button,
.btn-primary {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.nav-search button {
  padding: 8px 14px;
  border-radius: 999px;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0369a1;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  background: #f8fbff;
}

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

.hero {
  padding: 34px 0 0;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #082f49;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.26);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.25);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(7, 89, 133, 0.68) 52%, rgba(14, 165, 233, 0.18) 100%),
    radial-gradient(circle at 78% 20%, rgba(125, 211, 252, 0.45), transparent 22rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-copy .eyebrow {
  color: #bae6fd;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1,
.detail-copy h1 {
  color: #ffffff;
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: #e0f2fe;
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: #e0f2fe;
  border: 1px solid rgba(186, 230, 253, 0.48);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #e0f2fe;
  border: 1px solid rgba(224, 242, 254, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 13px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: #38bdf8;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.search-panel h2,
.section-title h2,
.content-card h2,
.detail-section h2,
.category-feature h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.search-large {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.search-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}

.search-large button {
  border-radius: 999px;
  padding: 0 22px;
}

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

.section-title.compact {
  align-items: center;
}

.section-title a,
.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.category-card {
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.45), transparent 9rem),
    #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.ranking-row:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, 0.75);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.movie-card:not(.movie-card-wide) .card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.rank-item:hover img,
.ranking-main:hover img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.92);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--primary-dark);
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin: 8px 0 6px;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.6em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags span {
  padding: 4px 8px;
  color: #0369a1;
  font-size: 12px;
  border-radius: 999px;
  background: #e0f2fe;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.rank-item img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.24), transparent 20rem),
    linear-gradient(135deg, #ffffff, #eff8ff);
  box-shadow: var(--shadow);
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: #dbeafe;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  color: var(--muted);
}

.category-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.24), transparent 22rem),
    linear-gradient(135deg, #ffffff, #e0f2fe);
  box-shadow: var(--shadow);
}

.category-feature-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.category-feature-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.16);
}

.category-feature-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 11px 12px;
  background: #f8fbff;
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
}

.movie-card-wide .card-cover img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) 100px;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-main {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ranking-order {
  color: var(--primary-dark);
  font-weight: 900;
}

.ranking-main img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.ranking-main strong,
.ranking-main em {
  display: block;
}

.ranking-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-row p {
  color: var(--muted);
  margin: 0;
}

.score-pill {
  justify-self: end;
  padding: 8px 12px;
  color: #075985;
  font-weight: 900;
  border-radius: 999px;
  background: #e0f2fe;
}

.search-app {
  min-height: 440px;
}

.search-result-meta {
  min-height: 28px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 58px;
  background: #082f49;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(7, 89, 133, 0.62)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.3), transparent 24rem);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #bae6fd;
  font-size: 14px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-one-line {
  max-width: 780px;
  color: #e0f2fe;
  font-size: 19px;
}

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

.detail-section {
  display: grid;
  gap: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 12px;
  margin: 0;
  color: #bae6fd;
  font-size: 13px;
}

.content-card,
.meta-table {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.08);
}

.content-card p {
  color: #334155;
  font-size: 17px;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-table div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
}

.meta-table strong,
.meta-table span {
  display: block;
}

.meta-table strong {
  color: var(--muted);
  font-size: 13px;
}

.meta-table span {
  margin-top: 4px;
  font-weight: 800;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f1f9ff);
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-content: center;
  justify-content: end;
}

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

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 250px;
    padding: 42px;
  }

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

  .two-column-layout,
  .category-overview-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .score-pill {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .section-wrap,
  .hero-shell,
  .detail-wrap,
  .nav-wrap,
  .mobile-panel,
  .footer-wrap {
    width: min(100% - 22px, 1180px);
  }

  .hero-shell {
    min-height: 700px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
    padding: 34px 24px 80px;
  }

  .hero-poster {
    max-width: 230px;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

  .search-panel,
  .category-feature,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .search-large {
    border-radius: 22px;
    flex-direction: column;
  }

  .search-large button {
    min-height: 44px;
  }

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

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

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

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

  .detail-poster {
    width: min(240px, 72vw);
  }

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

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 460px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }
}
