:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --primary: #dc2626;
  --primary-2: #f97316;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 45%, #0f172a);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fecaca, #fed7aa);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: #e2e8f0;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  transform: translateY(-1px);
}

.nav-link.mini {
  font-size: 13px;
  color: #cbd5e1;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 190px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button {
  color: #fff;
  border: 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
}

.mobile-link {
  display: block;
  padding: 10px 2px;
  color: #e2e8f0;
}

.mobile-link.active {
  color: #fecaca;
}

.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, rgba(248, 113, 113, 0.48), transparent 32%), linear-gradient(135deg, #991b1b, #ea580c 48%, #f59e0b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.2);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 0 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #ffedd5;
  font-size: clamp(17px, 2.2vw, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--primary);
  background: #fff7ed;
  border-color: #fed7aa;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-actions,
.detail-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 13px 24px;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  padding: 12px 23px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.secondary-button.dark {
  color: var(--dark);
  border-color: #fed7aa;
  background: #fff7ed;
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 460px;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
}

.hero-bottom {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-search-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.hero-search-card form,
.search-page-form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.hero-search-card input,
.search-page-form input {
  min-width: 240px;
  border: 0;
  outline: 0;
  padding: 11px 15px;
}

.hero-search-card button,
.search-page-form button {
  color: #fff;
  border: 0;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: #fff;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

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

.section-more,
.text-link {
  color: var(--primary);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 10px 16px;
}

.movie-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x proximity;
}

.movie-scroll .movie-card {
  scroll-snap-align: start;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  display: block;
  aspect-ratio: 2 / 3;
  background: radial-gradient(circle at 30% 15%, #fb923c, transparent 34%), linear-gradient(135deg, #7f1d1d, #0f172a);
  overflow: hidden;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

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

.movie-meta-row {
  display: flex;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card.compact h2 {
  font-size: 17px;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.28s ease;
}

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

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 7px 0 0;
  color: #fed7aa;
  font-size: 13px;
}

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

.intro-section {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.intro-grid h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  color: #fff;
  padding: 76px 0;
  background: radial-gradient(circle at 12% 12%, rgba(248, 113, 113, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #7f1d1d 55%, #f97316);
}

.compact-hero h1,
.category-hero h1,
.rank-hero h1 {
  margin: 16px 0 14px;
  max-width: 840px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.compact-hero p,
.category-hero p,
.rank-hero p {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
}

.category-hero-grid,
.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}

.category-feature-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-feature-links a,
.rank-top-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 22px;
  background: #7f1d1d;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
}

.category-feature-links img,
.rank-top-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.category-feature-links span,
.rank-top-card span,
.rank-top-card strong {
  position: absolute;
  z-index: 2;
}

.category-feature-links span,
.rank-top-card span {
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rank-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rank-top-card {
  min-height: 132px;
}

.rank-top-card strong {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.category-panels {
  display: grid;
  gap: 24px;
}

.category-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

.category-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

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

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.category-mini-links a {
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 12px 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-row span {
  color: var(--muted);
  font-weight: 800;
  margin-right: 4px;
}

.filter-row button {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 7px 12px;
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
}

.filter-row button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 22px;
  border: 1px dashed #fed7aa;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 520px;
  background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #7f1d1d, #fb923c);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
  font-weight: 700;
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 20px;
  color: #ffedd5;
  font-size: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-card,
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.18), rgba(2, 6, 23, 0.58));
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.36);
}

.player-card h2,
.player-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.player-card h2 {
  margin-top: 24px;
  font-size: 30px;
}

.player-card p {
  margin-bottom: 28px;
  color: #334155;
}

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

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.side-card table {
  width: 100%;
  border-collapse: collapse;
}

.side-card th,
.side-card td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.side-card th {
  width: 74px;
  color: var(--muted);
  text-align: left;
}

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

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

.search-page-form input {
  flex: 1;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.image-hidden {
  opacity: 0 !important;
}

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

  .header-search input {
    width: 150px;
  }

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

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

  .hero-poster {
    display: none;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .mobile-search {
    margin-top: 10px;
  }

  .mobile-search input {
    flex: 1;
    width: auto;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    min-height: 570px;
    padding: 58px 0 168px;
  }

  .hero-bottom {
    display: grid;
    gap: 14px;
  }

  .hero-search-card {
    display: grid;
  }

  .hero-search-card form {
    width: 100%;
  }

  .hero-search-card input {
    min-width: 0;
    width: 100%;
  }

  .section-heading,
  .intro-grid,
  .detail-hero-grid,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

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

  .detail-hero-grid {
    gap: 26px;
  }

  .detail-poster {
    width: 220px;
  }

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .detail-info h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .detail-actions,
  .intro-actions {
    display: grid;
  }

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

  .movie-scroll {
    grid-auto-columns: 78%;
  }

  .category-cover-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-hero {
    padding: 52px 0;
  }

  .detail-poster {
    width: 180px;
  }

  .player-card h2,
  .player-card p {
    margin-left: 16px;
    margin-right: 16px;
  }
}
