:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(15, 23, 42, 0.08);
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --amber: #facc15;
  --slate: #0f172a;
  --blue: #1e3a8a;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text,
.footer-logo span:last-child {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-logo strong {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-text em,
.footer-logo em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.nav-link {
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: #fee2e2;
  transform: translateY(-1px);
}

.nav-link.compact {
  font-size: 14px;
  color: #64748b;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 270px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
}

.nav-search button,
.hero-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fee2e2;
}

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

.hero {
  position: relative;
  padding: 34px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.24), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(248, 113, 113, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #7f1d1d 52%, #111827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.hero-stage {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent 58%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 7vw, 86px);
  bottom: clamp(48px, 9vw, 96px);
  width: min(720px, calc(100% - 48px));
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.65;
}

.hero-actions,
.detail-meta-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.tag-list a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary,
.btn.small,
.text-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
}

.btn.ghost {
  color: var(--red-dark);
  background: #fff;
}

.btn.line {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.btn:hover,
.tag-list a:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.btn.small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.52);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

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

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

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

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

.hero-dots button.active {
  width: 26px;
  background: #fff;
}

.hero-search-card {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: -54px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-search-card h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.hero-search-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  outline: 0;
  background: #fff;
  padding: 0 16px;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.hero-search button {
  border-radius: 16px;
  min-width: 130px;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-category-links a {
  color: #475569;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.hero-category-links a:hover {
  color: #fff;
  background: var(--red);
}

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section.tint {
  width: 100%;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.text-panel h2,
.side-panel h2 {
  margin: 10px 0 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.section-kicker {
  color: var(--red);
  background: #fee2e2;
}

.text-link {
  min-height: 36px;
  color: var(--red);
  background: #fee2e2;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  content-visibility: auto;
  contain-intrinsic-size: 360px 520px;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  right: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span:first-child {
  color: var(--red);
}

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

.rank-panel.wide {
  grid-template-columns: 1fr;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-row:hover {
  border-color: rgba(220, 38, 38, 0.28);
  transform: translateX(3px);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-body {
  display: grid;
  min-width: 0;
}

.rank-body strong {
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-body em {
  color: var(--muted);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-tags {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.category-preview-card,
.channel-card,
.text-panel,
.side-panel,
.player-card,
.detail-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-preview-card {
  padding: 22px;
}

.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-preview-head h3,
.channel-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.category-preview-head a {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.category-preview-card p,
.channel-body p {
  color: var(--muted);
  margin: 0 0 16px;
}

.compact-list,
.side-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
}

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

.compact-card img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card span {
  display: grid;
  min-width: 0;
}

.compact-card strong {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(30px, 6vw, 70px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(250, 204, 21, 0.22), transparent 28%),
    linear-gradient(135deg, #0f172a, #7f1d1d 62%, #111827);
  box-shadow: var(--shadow);
}

.page-hero.slim h1 {
  color: #fff;
}

.page-hero p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: #fff;
}

.channel-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
}

.channel-cover {
  min-height: 100%;
  background: #fee2e2;
}

.channel-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.channel-body {
  padding: 24px;
}

.channel-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.channel-body li a {
  color: #475569;
  font-weight: 700;
}

.channel-body li a:hover {
  color: var(--red);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-bar.search-wide {
  grid-template-columns: 1fr 210px 180px 180px;
}

.empty-state {
  display: none;
  margin: 26px 0 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border-radius: 18px;
  background: #fff;
}

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

.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
}

.detail-shell .breadcrumb {
  color: var(--red);
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.player-card,
.detail-info {
  padding: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #020617;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.76));
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 50px rgba(220, 38, 38, 0.45);
}

.play-overlay strong {
  font-size: 18px;
  font-weight: 950;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin-top: 14px;
}

.detail-one {
  color: #475569;
  font-size: 18px;
  margin: 18px 0 0;
}

.detail-meta-list span,
.tag-list a {
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-list a:hover {
  color: #fff;
  background: var(--red);
}

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

.text-panel,
.side-panel {
  padding: clamp(22px, 4vw, 34px);
}

.text-panel h2,
.side-panel h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.text-panel p {
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
  margin: 0 0 28px;
}

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

.site-footer {
  margin-top: 40px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f172a);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
}

.footer-logo strong {
  color: #fff;
}

.footer-logo em {
  color: #fecaca;
}

.footer-brand p {
  max-width: 520px;
  margin: 20px 0 0;
  color: #cbd5e1;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #fecaca;
  font-size: 18px;
}

.footer-links {
  columns: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .rank-panel,
  .category-preview-grid,
  .channel-grid,
  .detail-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    grid-template-columns: 180px 1fr;
  }

  .filter-bar,
  .filter-bar.search-wide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    padding: 16px 0 4px;
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-primary {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-link,
  .nav-link.compact {
    width: 100%;
    font-size: 16px;
  }

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

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.28));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 64px;
    width: auto;
  }

  .hero-actions,
  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 62px 1fr;
  }

  .rank-tags {
    display: none;
  }

  .channel-card {
    grid-template-columns: 1fr;
  }

  .channel-cover img {
    min-height: 260px;
    max-height: 360px;
  }

  .filter-bar,
  .filter-bar.search-wide {
    grid-template-columns: 1fr;
  }

  .footer-links {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .hero,
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero-search-card,
  .page-hero,
  .detail-info,
  .player-card,
  .text-panel,
  .side-panel {
    border-radius: 20px;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p {
    font-size: 12px;
  }

  .poster-badge {
    top: 8px;
    right: 8px;
  }

  .poster-play {
    width: 34px;
    height: 34px;
    right: 10px;
    bottom: 10px;
  }
}
