:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --gold: #f59e0b;
  --red: #ef4444;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.24);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 700;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--teal);
  transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-search input,
.filter-selects select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.top-search input {
  width: 220px;
  padding: 10px 16px;
}

.top-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: var(--white);
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.top-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 15px;
}

.mobile-links,
.mobile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link,
.mobile-chip {
  padding: 9px 13px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover,
.mobile-chip:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(110deg, #0f766e, #0891b2 50%, #2563eb);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(3, 31, 35, 0.92), rgba(8, 145, 178, 0.76), rgba(37, 99, 235, 0.56)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 12% 20%, #ffffff 0 1px, transparent 1px), radial-gradient(circle at 70% 50%, #ffffff 0 1px, transparent 1px);
  background-size: 64px 64px, 90px 90px;
}

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

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

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

.eyebrow,
.section-heading span,
.page-hero-inner span {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-info .eyebrow,
.page-hero-inner span {
  color: #a7f3d0;
}

.hero h1 {
  margin: 16px 0 20px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero p,
.page-hero p,
.detail-info .lead-text {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  background: #ccfbf1;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.3);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.movie-card:hover,
.category-card:hover,
.compact-card:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--white);
  font-weight: 900;
  border-radius: 999px;
  background: rgba(3, 31, 35, 0.62);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  background: var(--white);
}

.feature-shell {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.side-card h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 24px;
}

.text-link {
  color: var(--teal);
  gap: 6px;
}

.text-link::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
}

.featured-grid,
.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #cffafe);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.compact-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.32);
}

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

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

.movie-meta-line span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.large-card {
  grid-column: span 2;
  grid-row: span 2;
}

.large-card .poster-link img {
  aspect-ratio: 16 / 10;
}

.large-card h3 {
  font-size: 26px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 74px 0;
}

.rank-panel,
.side-card,
.content-card,
.player-card,
.filter-panel,
.category-feature-row {
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  background: #ecfeff;
}

.compact-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.compact-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.rank-number {
  position: absolute;
  left: 6px;
  top: 6px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
}

.compact-card h3 {
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.compact-card p,
.compact-card span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.soft-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 45%, #eff6ff 100%);
}

.channel-section {
  padding: 74px 0;
}

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

.channel-strip {
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.site-footer {
  color: #d1d5db;
  background: #0f172a;
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.4fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 26px;
}

.site-footer p {
  max-width: 430px;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links {
  flex-direction: column;
}

.footer-links a,
.footer-categories a {
  color: #d1d5db;
  font-weight: 700;
}

.footer-categories a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #0f766e, #0891b2, #2563eb);
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: var(--page-hero-image, none), var(--detail-image, none);
  background-size: cover;
  background-position: center;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 31, 35, 0.86), rgba(8, 145, 178, 0.68), rgba(37, 99, 235, 0.46));
}

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

.page-hero-inner {
  padding: 86px 0 92px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 68px);
}

.listing-section,
.category-overview,
.related-section {
  padding: 54px 0 74px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-search {
  flex: 1;
}

.filter-search input {
  width: 100%;
  padding: 13px 16px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  padding: 12px 16px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

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

.category-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #e5e7eb;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.category-info span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-info h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.category-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.category-feature-row {
  margin-top: -34px;
  padding: 22px;
  position: relative;
  z-index: 3;
}

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

.horizontal-rank .compact-card {
  grid-template-columns: 64px minmax(0, 1fr);
}

.horizontal-rank .compact-cover img {
  width: 64px;
  height: 88px;
}

.detail-hero-inner {
  padding: 44px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 28px;
}

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

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

.detail-cover {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
}

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

.detail-meta span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.large-tags span {
  padding: 9px 13px;
}

.small-actions .ghost-btn {
  color: var(--white);
}

.player-section {
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.56));
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.35);
  font-size: 28px;
}

.play-overlay span:last-child {
  font-size: 20px;
  font-weight: 900;
}

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

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  font-size: 26px;
}

.content-card p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

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

.big-search {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.big-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
}

.big-search button {
  min-width: 110px;
}

.card-hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

@media (max-width: 1100px) {
  .top-search input {
    width: 180px;
  }

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

  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    min-height: 640px;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 58px 0 84px;
  }

  .hero-poster {
    width: min(300px, 80%);
    transform: none;
  }

  .feature-shell {
    margin-top: -42px;
    padding: 20px;
  }

  .featured-grid,
  .movie-grid,
  .category-overview,
  .channel-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(280px, 100%);
  }
}

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

  .nav-wrap {
    height: 62px;
  }

  .brand-text {
    font-size: 21px;
  }

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

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .page-hero p,
  .detail-info .lead-text {
    font-size: 16px;
  }

  .hero-poster {
    display: none;
  }

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

  .featured-grid,
  .movie-grid,
  .category-overview,
  .channel-grid,
  .footer-grid,
  .horizontal-rank {
    grid-template-columns: 1fr;
  }

  .large-card {
    grid-column: auto;
    grid-row: auto;
  }

  .filter-panel,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    flex-direction: column;
  }

  .two-column-section,
  .soft-section,
  .channel-section,
  .listing-section,
  .category-overview,
  .related-section {
    padding: 46px 0;
  }

  .page-hero-inner,
  .detail-hero-inner {
    padding: 54px 0 70px;
  }

  .detail-meta span {
    width: 100%;
  }

  .content-card,
  .side-card,
  .rank-panel {
    padding: 20px;
  }
}
