:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --muted: #94a3b8;
  --text: #f8fafc;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --blue: #3b82f6;
  --purple: #a855f7;
  --pink: #ec4899;
  --emerald: #10b981;
  --orange: #f97316;
  --violet: #8b5cf6;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(6, 182, 212, 0.18),
      transparent 32rem
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(20, 184, 166, 0.14),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
  color: #ffffff;
  font-size: 15px;
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #67e8f9;
}

.header-search,
.mobile-search,
.quick-search-panel form,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.quick-search-panel input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(6, 182, 212, 0.86);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.header-search button,
.mobile-search button,
.quick-search-panel button,
.filter-bar a,
.primary-button,
.ghost-button,
.text-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-search button,
.mobile-search button,
.quick-search-panel button,
.primary-button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.18);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.64);
  color: #e2e8f0;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  color: #67e8f9;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.quick-search-panel button:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.97);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
}

.mobile-search input {
  flex: 1;
  padding: 10px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.98),
      rgba(2, 6, 23, 0.72) 48%,
      rgba(2, 6, 23, 0.26)
    ),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 42%),
    radial-gradient(
      circle at 28% 45%,
      rgba(6, 182, 212, 0.2),
      transparent 32rem
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 72px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title-row h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 650px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #bae6fd;
  border: 1px solid rgba(103, 232, 249, 0.18);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  color: #ffffff;
  font-size: 36px;
  line-height: 42px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  margin-top: -34px;
  position: relative;
  z-index: 8;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.quick-search-panel h2 {
  font-size: 22px;
}

.quick-search-panel p {
  color: var(--muted);
  margin-top: 4px;
}

.quick-search-panel input {
  flex: 1;
  padding: 13px 14px;
}

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

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

.section-heading div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.section-heading span:first-child {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-heading p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 700px;
}

.section-link {
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
}

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

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.slim-grid,
.related-grid,
.archive-grid,
.rank-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.32);
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.featured-grid .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
  opacity: 0.78;
}

.card-year,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-year {
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.card-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.86);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

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

.card-body {
  display: grid;
  gap: 6px;
  padding: 15px;
}

.card-body strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  color: #67e8f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.card-body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.compact .card-body strong {
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

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

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.rank-list .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.category-tile,
.category-hero-link {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.category-tile img,
.category-hero-link img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.category-tile::after,
.category-hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile:hover img,
.category-hero-link:hover img {
  opacity: 0.4;
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong,
.category-tile em,
.category-hero-link span,
.category-hero-link h2,
.category-hero-link p {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-hero-link span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong,
.category-hero-link h2 {
  margin: 6px 0;
  color: #ffffff;
  font-size: 24px;
}

.category-tile em,
.category-hero-link p {
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.category-tile.purple span,
.category-hero-link.purple span,
.category-tile.pink span,
.category-hero-link.pink span {
  color: #f0abfc;
}

.category-tile.blue span,
.category-hero-link.blue span {
  color: #93c5fd;
}

.category-tile.orange span,
.category-hero-link.orange span {
  color: #fdba74;
}

.category-tile.emerald span,
.category-hero-link.emerald span {
  color: #6ee7b7;
}

.category-block-list {
  display: grid;
  gap: 34px;
}

.category-block {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: stretch;
}

.archive-page {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72)),
    var(
      --page-image,
      radial-gradient(
        circle at 30% 20%,
        rgba(6, 182, 212, 0.28),
        transparent 30rem
      )
    );
  background-size: cover;
  background-position: center;
  padding: 56px;
  min-height: 310px;
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 240px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.page-hero .primary-button {
  margin-top: 26px;
}

.filter-bar {
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-bar input {
  flex: 1 1 280px;
  padding: 12px 14px;
}

.filter-bar select {
  padding: 12px 14px;
}

.filter-bar a {
  padding: 12px 16px;
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 18px;
}

.breadcrumb a {
  color: #67e8f9;
}

.watch-panel {
  margin-bottom: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(6, 182, 212, 0.18),
      transparent 26rem
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.9));
  color: #ffffff;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.player-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 42px rgba(6, 182, 212, 0.34);
  font-size: 30px;
}

.player-cover strong {
  font-size: 24px;
}

.player-cover small {
  max-width: min(520px, 90%);
  color: #cbd5e1;
  font-size: 14px;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: #dbeafe;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-main .tag-list {
  margin-bottom: 24px;
}

.text-card,
.info-box {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  padding: 24px;
  margin-bottom: 22px;
}

.gradient-card {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82),
    rgba(20, 184, 166, 0.12)
  );
}

.text-card h2,
.info-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-card p {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

.detail-side img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  margin: 0;
}

.info-box dt {
  color: var(--muted);
}

.info-box dd {
  margin: 0;
  text-align: right;
  color: #ffffff;
  font-weight: 800;
}

.related-section {
  padding-bottom: 28px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-grid a:not(.brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .split-section,
  .detail-layout,
  .category-block {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero-copy {
    padding: 72px 0 106px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .quick-search-panel form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-grid,
  .featured-grid,
  .slim-grid,
  .archive-grid,
  .rank-grid,
  .side-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rank-list .movie-card {
    grid-template-columns: 118px 1fr;
  }

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

  .page-hero {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .text-card,
  .info-box {
    padding: 18px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .featured-grid,
  .slim-grid,
  .archive-grid,
  .rank-grid,
  .side-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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