:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #fb923c;
  --red: #ef4444;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 50px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.nav-shell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #020617;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 35px rgba(34, 211, 238, 0.26);
}

.brand-text {
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.mobile-nav a {
  color: #dbeafe;
  padding: 10px 16px;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.86);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.84);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 19px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.94);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.22) 74%, rgba(2, 6, 23, 0.92) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  min-height: 640px;
  padding: 56px 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 8vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, #fff, #67e8f9 58%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 660px;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-cloud a,
.info-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #cffafe;
  background: rgba(8, 47, 73, 0.42);
}

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

.btn-primary,
.btn-secondary,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.24);
}

.btn-secondary,
.section-link {
  color: #e0f2fe;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.18);
}

.hero-card {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-card-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
}

.hero-card-info h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.hero-card-info p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  width: 54px;
  background: var(--cyan);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
}

.quick-search {
  display: flex;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.quick-search input,
.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.quick-search input {
  padding: 0 16px;
}

.quick-search button {
  border: 0;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 28px 70px rgba(8, 145, 178, 0.18);
}

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

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

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

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

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

.card-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ecfeff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-num {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #020617;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
}

.play-chip {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  background: rgba(34, 211, 238, 0.84);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.26);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

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

.tag-line {
  margin-top: 14px;
  color: #bae6fd;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 56%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

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

.category-card span {
  display: inline-flex;
  margin-top: 22px;
  color: var(--cyan);
  font-weight: 800;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.ranking-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

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

.ranking-item strong {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #020617;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 42px;
  border-bottom: 1px solid var(--line);
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.16), transparent 26rem);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.page-title {
  max-width: 800px;
}

.page-title h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.page-title p {
  margin: 0;
  color: var(--soft);
  line-height: 1.85;
  font-size: 1.05rem;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.search-control {
  min-width: min(100%, 420px);
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
}

.type-filters button.active,
.type-filters button:hover {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.empty-state {
  display: none;
  margin-top: 30px;
  padding: 34px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(4px) saturate(1.2);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.76), #020617 94%);
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.detail-summary h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-summary .lead {
  margin: 0;
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.9;
}

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

.watch-section {
  padding: 44px 0 64px;
}

.player-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.7));
  transition: opacity 0.25s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #00111a;
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.3);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-caption {
  padding: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 360px;
  gap: 28px;
  align-items: start;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow-card);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
}

.article-panel p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.95;
}

.side-panel {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 68px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 40px;
  padding: 46px 0 28px;
}

.footer-brand {
  font-size: 1.25rem;
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
}

.footer-links a:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: #64748b;
  font-size: 0.9rem;
}

.hidden-card {
  display: none;
}

@media (max-width: 1040px) {
  .hero-content,
  .detail-layout,
  .content-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

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

  .menu-button {
    display: flex;
  }

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

  .hero-content {
    padding: 38px 0 74px;
  }

  .quick-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .quick-search input {
    min-height: 44px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .card-body {
    padding: 14px;
  }

  .movie-card p {
    min-height: 44px;
  }

  .detail-poster {
    max-width: 300px;
  }

  .filter-panel {
    align-items: stretch;
  }

  .type-filters {
    width: 100%;
  }

  .type-filters button {
    flex: 1;
  }

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

@media (max-width: 480px) {
  .nav-shell,
  .footer-shell,
  .container,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1rem;
  }

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

  .ranking-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .ranking-index {
    display: none;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }
}
