:root {
  color-scheme: light;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --soft: #f0fdfa;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 28%, #f8fafc 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.16));
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.16);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

.brand-text {
  font-size: 1.12rem;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: #ccfbf1;
}

.quick-search,
.inline-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-search {
  width: 280px;
  padding: 6px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.quick-search input,
.big-search input,
.inline-search input,
.search-controls input,
.search-controls select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.quick-search input {
  padding-left: 12px;
  min-width: 0;
}

.quick-search button,
.big-search button,
.inline-search button,
.search-controls button,
.primary-btn {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 15px 35px rgba(20, 184, 166, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-search button {
  padding: 8px 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.primary-btn:hover,
.quick-search button:hover,
.big-search button:hover,
.inline-search button:hover,
.search-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(20, 184, 166, 0.32);
}

.ghost-btn {
  color: #0f766e;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f766e;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #0f766e;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: #ccfbf1;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.12);
}

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.24), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12));
}

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

.hero-copy {
  color: #ffffff;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
  color: #cffafe;
  background: rgba(20, 184, 166, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-meta,
.detail-meta {
  color: #a7f3d0;
  font-weight: 800;
}

.hero-desc,
.detail-one {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy .hero-tags span,
.detail-info .hero-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-poster {
  position: relative;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.2));
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: transparent;
  font-weight: 900;
}

.hero-controls > button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.5rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
  width: 28px;
  background: #2dd4bf;
}

.quick-panel {
  position: relative;
  z-index: 6;
  margin-top: -38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.big-search {
  min-height: 60px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.big-search button,
.inline-search button,
.search-controls button {
  padding: 12px 20px;
  white-space: nowrap;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 12px 16px;
  color: #0f766e;
  font-weight: 800;
  border-radius: 999px;
  background: #ccfbf1;
}

.page-section {
  padding: 72px 0 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.feature-band h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head h2,
.page-hero h1,
.feature-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-head p,
.page-hero p,
.feature-band p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: #0f766e;
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ccfbf1;
}

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.poster-link img {
  transition: transform 0.32s ease;
}

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

.quality-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.quality-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.card-content {
  padding: 14px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.card-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-card .card-content p {
  -webkit-line-clamp: 2;
}

.feature-band {
  margin-top: 76px;
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 25%, rgba(125, 211, 252, 0.24), transparent 25%),
    linear-gradient(135deg, #0f766e, #0284c7 54%, #7c3aed);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.feature-band h2,
.feature-band p {
  color: #ffffff;
}

.feature-band p {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.rank-grid .rank-item {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.rank-index {
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 900;
}

.rank-poster {
  display: block;
  width: 74px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

.rank-body h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-band .rank-body h3,
.feature-band .rank-body p {
  color: #ffffff;
}

.rank-meta {
  font-size: 0.8rem;
  font-weight: 800;
}

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

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  min-height: 220px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile::after,
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.category-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile span {
  bottom: 74px;
  font-size: 1.18rem;
  font-weight: 900;
}

.category-tile strong {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 52%, #faf5ff);
}

.compact-hero {
  padding: 72px 0 62px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.category-panel {
  display: block;
  min-height: 300px;
  background: #ffffff;
  color: var(--ink);
}

.panel-images {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.panel-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #ffffff;
}

.panel-text span {
  font-size: 0.78rem;
  font-weight: 900;
  color: #a7f3d0;
}

.panel-text h2 {
  margin: 5px 0 8px;
  font-size: 1.5rem;
}

.panel-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.toolbar strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-search {
  min-width: 340px;
  padding: 7px 7px 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.detail-hero {
  min-height: 620px;
  color: #ffffff;
  background: #0f172a;
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 74px 0;
}

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

.detail-poster {
  height: 390px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  min-height: 520px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img,
.player-gradient {
  position: absolute;
  inset: 0;
}

.player-gradient {
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 184, 166, 0.2), transparent 25%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.88));
}

.player-button {
  position: relative;
  z-index: 3;
  min-width: 178px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 55px rgba(20, 184, 166, 0.34);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  gap: 20px;
  padding-top: 26px;
}

.content-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.4rem;
}

.content-card p {
  margin: 0;
  line-height: 1.9;
  color: var(--text);
}

.detail-facts dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.search-panel {
  padding-bottom: 72px;
}

.search-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.search-controls input,
.search-controls select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 78px;
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  color: #ecfeff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-facts {
    grid-column: 1 / -1;
  }

  .quick-search {
    display: none;
  }
}

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

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

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

  .hero-inner,
  .split-layout,
  .detail-grid,
  .quick-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
    padding: 54px 0 96px;
  }

  .hero-poster {
    height: 380px;
    transform: none;
  }

  .quick-panel {
    display: grid;
  }

  .quick-links {
    justify-content: center;
  }

  .section-head,
  .toolbar {
    display: grid;
  }

  .inline-search {
    width: 100%;
    min-width: 0;
  }

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

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

  .player-frame,
  .player-video {
    min-height: auto;
  }
}

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

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

  .hero-carousel,
  .hero-track,
  .hero-slide,
  .hero-inner {
    min-height: 680px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-poster {
    height: 320px;
  }

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

  .movie-row {
    grid-auto-columns: minmax(150px, 72vw);
  }

  .card-content {
    padding: 12px;
  }

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

  .rank-poster {
    width: 64px;
    height: 86px;
  }

  .detail-poster {
    height: 420px;
  }

  .content-card {
    padding: 20px;
  }
}
