:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #eff8ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --brand: #0ea5e9;
  --brand-deep: #0284c7;
  --brand-soft: #e0f2fe;
  --accent: #2563eb;
  --danger: #ef4444;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
    linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #f8fbff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  color: #082f49;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.32);
  font-size: 14px;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-deep);
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 210px;
  padding: 8px 6px 8px 14px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-weight: 800;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #f1f5f9;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 9px;
}

.quick-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.64);
}

.quick-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
}

.quick-strip a {
  white-space: nowrap;
  color: #0369a1;
  font-size: 14px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 660px;
  margin: 28px 0 34px;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.95), rgba(14, 116, 144, 0.82)),
    linear-gradient(120deg, #082f49, #0ea5e9);
  box-shadow: var(--shadow);
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.58;
}

.hero-orbit-one {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -120px;
  background: rgba(56, 189, 248, 0.36);
}

.hero-orbit-two {
  width: 280px;
  height: 280px;
  left: 32%;
  bottom: -140px;
  background: rgba(37, 99, 235, 0.28);
}

.hero-slider {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 34px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  transform: scale(1.03);
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.94), rgba(8, 47, 73, 0.42));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.rank-hero-text span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 20px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-line {
  margin: 0 0 16px;
  color: #e0f2fe;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  font-weight: 800;
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
  font-size: 16px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.btn {
  min-height: 46px;
  padding: 0 22px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 28px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
  color: #075985;
  background: #ffffff;
}

.btn-line {
  color: #e0f2fe;
  border: 1px solid rgba(224, 242, 254, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  display: block;
  width: min(410px, 100%);
  justify-self: end;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(2, 8, 23, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 64px;
  right: 64px;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  width: 52px;
  background: #ffffff;
}

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

.hero-category-links a {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.search-band,
.content-section,
.page-hero,
.rank-hero,
.detail-hero,
.player-section {
  margin: 34px 0;
}

.search-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.rank-hero h1,
.detail-info h1 {
  margin: 0;
  color: #082f49;
  letter-spacing: -0.05em;
}

.search-band h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.search-band p,
.section-head p,
.page-hero p,
.rank-hero p,
.channel-card p,
.movie-info p,
.detail-line,
.detail-text p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.content-section {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.soft-section {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.78), rgba(255, 255, 255, 0.92));
}

.blue-section {
  background: linear-gradient(135deg, #dff5ff, #eef6ff);
}

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
}

.section-link,
.text-button {
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 10px 15px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease;
}

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

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-tile strong {
  bottom: 62px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.78));
  opacity: 0.7;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.36);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--brand-deep);
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 12px;
  min-height: 50px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.movie-card.is-compact .movie-info h2 {
  font-size: 16px;
}

.movie-card.is-compact .movie-info {
  padding: 13px;
}

.movie-card.is-compact .tag-row {
  display: none;
}

.page-hero,
.rank-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 48px;
  background:
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.26), transparent 20rem),
    linear-gradient(135deg, #082f49, #075985 58%, #0ea5e9);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-hero h1,
.rank-hero h1,
.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
  margin: 14px 0;
}

.page-hero p,
.rank-hero p {
  max-width: 760px;
  color: rgba(241, 245, 249, 0.86);
  font-size: 17px;
}

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

.channel-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.channel-cover {
  overflow: hidden;
  border-radius: 18px;
}

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

.channel-card h2 {
  margin: 0 0 8px;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.channel-links a {
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  border-radius: 22px;
  background: #f1f5f9;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.rank-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 54px rgba(2, 8, 23, 0.32);
}

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

.rank-cover strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--brand-deep);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(2, 8, 23, 0.38);
}

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

.detail-line {
  max-width: 780px;
  color: rgba(241, 245, 249, 0.9);
  font-size: 21px;
  font-weight: 800;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 24px;
}

.player-section {
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.28);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000000;
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  outline: 0;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
}

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

.player-start {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.44);
  font-size: 34px;
  cursor: pointer;
}

.player-overlay strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(24px, 4vw, 42px);
}

.player-overlay span {
  color: rgba(226, 232, 240, 0.86);
  font-weight: 800;
}

.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

.detail-text article,
.detail-side {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.detail-text h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #082f49;
}

.detail-text p {
  margin: 0 0 22px;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

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

.detail-side dd {
  margin: 0;
  font-weight: 700;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.prev-next a {
  padding: 12px;
  border-radius: 16px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  padding: 42px 0 28px;
  background: #082f49;
  color: rgba(241, 245, 249, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
}

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

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(226, 232, 240, 0.66);
}

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    min-height: 720px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 34px 24px 120px;
  }

  .hero-controls {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .hero-category-links {
    left: 24px;
    right: 24px;
    bottom: 78px;
    overflow-x: auto;
    transform: none;
  }

  .search-band,
  .rank-hero,
  .detail-hero,
  .detail-text,
  .footer-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  main,
  .header-inner,
  .quick-strip-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .content-section,
  .page-hero,
  .rank-hero,
  .detail-hero,
  .search-band {
    padding: 20px;
    border-radius: 22px;
  }

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

  .category-tile {
    min-height: 160px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h2 {
    font-size: 16px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

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

  .channel-cover img {
    height: 150px;
  }

  .big-search {
    flex-direction: column;
    border-radius: 22px;
  }

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