:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(13, 18, 31, .82);
  --surface-solid: #0d121f;
  --surface-2: #141b2d;
  --text: #f7f8ff;
  --muted: #a7b0c4;
  --line: rgba(255, 255, 255, .1);
  --cyan: #00d7ef;
  --blue: #2686ff;
  --violet: #8e28ff;
  --pink: #ec0870;
  --orange: #ffab16;
  --green: #19e2a3;
  --danger: #ff496a;
  --gradient: linear-gradient(110deg, var(--orange) 0%, var(--pink) 31%, var(--violet) 57%, var(--blue) 78%, var(--green) 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max-width: 1600px;
  --header-height: 96px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% 6%, rgba(28, 121, 255, .13), transparent 30%),
    radial-gradient(circle at 18% 28%, rgba(218, 9, 113, .08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.app-shell { position: relative; min-height: 100vh; isolation: isolate; }
.ambient {
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .08;
  pointer-events: none;
}
.ambient-one { top: 20vh; left: -26vw; background: var(--pink); }
.ambient-two { right: -22vw; bottom: -10vh; background: var(--cyan); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(24px, 4.5vw, 76px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 7, 13, .96), rgba(5, 7, 13, .74));
  backdrop-filter: blur(24px) saturate(150%);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 10px 34px rgba(0,0,0,.22); }

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  border-radius: 14px;
  text-decoration: none;
}
.brand img { width: 176px; height: 70px; object-fit: contain; object-position: left center; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.connection-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(25, 226, 163, .25);
  border-radius: 99px;
  background: rgba(25, 226, 163, .07);
  color: #bff9e5;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(25, 226, 163, .1), 0 0 14px var(--green); }
.connection-pill.offline { border-color: rgba(255,73,106,.3); background: rgba(255,73,106,.08); color: #ffd0d9; }
.connection-pill.offline .connection-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,73,106,.1); }

.icon-button, .round-control {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.icon-button:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.icon-button svg, .round-control svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.clock { min-width: 66px; color: #dce2f1; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.focusable:focus-visible,
.focusable.tv-focus {
  outline: 3px solid rgba(0, 215, 239, .95);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(0, 215, 239, .12), 0 14px 42px rgba(0, 151, 255, .22);
}

main { width: min(100%, 1920px); margin: 0 auto; }

.hero {
  position: relative;
  min-height: clamp(480px, 62vh, 740px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  overflow: hidden;
  padding: clamp(52px, 7vw, 110px) clamp(24px, 6vw, 108px) clamp(72px, 9vw, 130px);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,215,239,.5), transparent);
  box-shadow: 0 0 28px rgba(0,215,239,.5);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center right;
  background-size: cover;
  opacity: .14;
  filter: saturate(.7) blur(1px);
  transform: scale(1.03);
  transition: background-image .55s ease, opacity .3s ease;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #05070d 4%, rgba(5,7,13,.96) 36%, rgba(5,7,13,.54) 72%, #05070d 100%),
    linear-gradient(0deg, #05070d 0%, transparent 46%);
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.live-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #e9eef9;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.live-eyebrow span, .live-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff365b;
  box-shadow: 0 0 0 6px rgba(255,54,91,.11), 0 0 18px rgba(255,54,91,.7);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse { 50% { opacity: .55; transform: scale(.8); } }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 5.3vw, 6rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero-copy > p {
  max-width: 660px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1.65;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.meta-chip {
  padding: 7px 11px;
  border: 1px solid rgba(0,215,239,.25);
  border-radius: 9px;
  background: rgba(0,215,239,.08);
  color: #c5f8ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.meta-chip.subtle { border-color: var(--line); background: rgba(255,255,255,.045); color: #d0d6e4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }

.primary-button, .secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
.primary-button {
  border: 0;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 36px rgba(98, 39, 255, .28);
}
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.065); color: #fff; }
.secondary-button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.1); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: wait; transform: none; }
.primary-button svg, .secondary-button svg { width: 22px; fill: currentColor; }
.secondary-button[aria-pressed="true"] { border-color: rgba(236,8,112,.5); background: rgba(236,8,112,.15); color: #ffb9d7; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-logo-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 150deg, var(--pink), var(--violet), var(--cyan), var(--green), var(--orange), var(--pink));
  filter: blur(70px);
  opacity: .26;
  animation: glowRotate 14s linear infinite;
}
@keyframes glowRotate { to { transform: rotate(360deg); } }
.hero-logo-card {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(19,29,51,.92), rgba(6,9,17,.78));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
  transform: perspective(900px) rotateY(-7deg) rotateX(2deg);
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient);
  opacity: .4;
  filter: blur(20px);
}
.hero-logo-card img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(0,0,0,.35)); }
.signal-bars { position: absolute; right: 2%; bottom: 4%; display: flex; align-items: flex-end; gap: 5px; height: 35px; opacity: .8; }
.signal-bars i { display: block; width: 4px; border-radius: 8px; background: var(--cyan); animation: signal 1.3s ease-in-out infinite; }
.signal-bars i:nth-child(1), .signal-bars i:nth-child(5) { height: 25%; animation-delay: .2s; }
.signal-bars i:nth-child(2), .signal-bars i:nth-child(4) { height: 60%; animation-delay: .4s; }
.signal-bars i:nth-child(3) { height: 100%; }
@keyframes signal { 50% { height: 18%; opacity: .4; } }

.content-panel { padding: clamp(46px, 5vw, 82px) clamp(24px, 4.5vw, 76px) 90px; }
.content-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 42px; }
.category-tabs { min-width: 0; display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: #b8c0d2;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  transition: .2s ease;
}
.category-button:hover { color: #fff; background: rgba(255,255,255,.075); }
.category-button.active { border-color: rgba(0,215,239,.35); background: rgba(0,215,239,.11); color: #e7fcff; box-shadow: inset 0 0 20px rgba(0,215,239,.06); }
.category-button .tab-count { margin-left: 7px; color: #77839a; font-size: .72rem; }
.category-button.active .tab-count { color: #8ceffc; }

.search-box {
  flex: 0 0 min(330px, 30vw);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: rgba(0,215,239,.48); box-shadow: 0 0 0 5px rgba(0,215,239,.08); }
.search-box > svg { flex: 0 0 auto; width: 20px; fill: none; stroke: #7f8ba3; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; }
.search-box input::placeholder { color: #747f95; }
.search-box input:focus-visible { outline: 0; box-shadow: none; }
.search-box button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #bcc5d8; cursor: pointer; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-kicker { color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 2.4vw, 2.6rem); letter-spacing: -.04em; }
.channel-count { color: var(--muted); font-size: .9rem; }

.channel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(15px, 1.6vw, 26px); }
.channel-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s ease, box-shadow .22s ease;
}
.channel-card:hover, .channel-card.tv-focus, .channel-card:focus-visible { transform: translateY(-7px) scale(1.018); border-color: rgba(0,215,239,.5); box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 0 1px rgba(0,215,239,.12); }
.channel-card:focus-visible, .channel-card.tv-focus { outline: 3px solid rgba(0,215,239,.9); outline-offset: 4px; }
.channel-visual { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, #243455, #0a0f1c 72%); }
.channel-visual::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 180deg, rgba(236,8,112,.17), rgba(38,134,255,.2), rgba(25,226,163,.12), rgba(255,171,22,.14), rgba(236,8,112,.17)); filter: blur(28px); opacity: .7; animation: glowRotate 18s linear infinite; }
.channel-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(5,7,13,.78)); pointer-events: none; }
.channel-visual img { position: relative; z-index: 1; width: 76%; height: 72%; padding: 4px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,.48)); transition: transform .45s ease, filter .25s ease; }
.channel-card:hover .channel-visual img { transform: scale(1.07); filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.channel-visual img.logo-fallback { width: 64%; height: 64%; object-fit: contain; filter: saturate(.8) drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.card-live { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(5,7,13,.72); backdrop-filter: blur(12px); font-size: .63rem; font-weight: 850; letter-spacing: .08em; }
.card-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff365b; box-shadow: 0 0 9px #ff365b; }
.favorite-card-button { position: absolute; z-index: 3; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(5,7,13,.72); color: #fff; cursor: pointer; opacity: .82; }
.favorite-card-button:hover { opacity: 1; background: rgba(236,8,112,.28); }
.favorite-card-button svg { width: 18px; fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.favorite-card-button.active { color: #ff84b7; }
.favorite-card-button.active svg { fill: currentColor; }
.channel-info { min-height: 105px; padding: 17px 17px 18px; }
.channel-info h3 { margin: 0; overflow: hidden; color: #f5f7fc; font-size: 1rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.channel-info p { min-height: 2.5em; margin: 7px 0 0; display: -webkit-box; overflow: hidden; color: #8994aa; font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-category { display: inline-block; margin-top: 10px; color: var(--cyan); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.skeleton-card { aspect-ratio: 1.22; border-radius: var(--radius-lg); background: linear-gradient(100deg, #0d121f 20%, #182036 38%, #0d121f 56%); background-size: 300% 100%; animation: skeleton 1.45s linear infinite; }
@keyframes skeleton { to { background-position-x: -150%; } }
.empty-state { max-width: 520px; margin: 80px auto; text-align: center; }
.empty-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.04); color: var(--cyan); font-size: 2.2rem; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.45rem; }
.empty-state p { margin: 0 0 25px; color: var(--muted); line-height: 1.6; }

footer { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 38px clamp(24px, 4.5vw, 76px); border-top: 1px solid var(--line); background: rgba(4,6,12,.7); color: #717c91; font-size: .82rem; }
footer img { width: 120px; height: 55px; object-fit: contain; }
footer p { margin: 0; }

.player {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #000;
}
.player[hidden] { display: none; }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.player-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.65), transparent 19%, transparent 65%, rgba(0,0,0,.8)); opacity: 0; transition: opacity .25s ease; }
.player.controls-visible .player-vignette { opacity: 1; }
.player-topbar, .player-bottom { position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; opacity: 0; transform: translateY(-12px); transition: .25s ease; pointer-events: none; }
.player.controls-visible .player-topbar, .player.controls-visible .player-bottom { opacity: 1; transform: translateY(0); pointer-events: auto; }
.player-topbar { top: 0; justify-content: space-between; padding: 28px clamp(22px, 4vw, 60px); }
.player-topbar > img { position: absolute; left: 50%; width: 130px; height: 58px; object-fit: contain; transform: translateX(-50%); }
.player-back { min-height: 45px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(0,0,0,.55); color: #fff; font-weight: 750; cursor: pointer; backdrop-filter: blur(12px); }
.player-back svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.live-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(0,0,0,.5); font-size: .74rem; font-weight: 850; letter-spacing: .1em; }
.live-badge span { width: 7px; height: 7px; }

.player-bottom { bottom: 0; justify-content: space-between; gap: 30px; padding: 34px clamp(22px, 4vw, 60px); transform: translateY(15px); }
.now-playing { min-width: 0; display: flex; align-items: center; gap: 17px; }
.now-playing img { flex: 0 0 auto; width: 72px; height: 52px; object-fit: cover; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: #101726; }
.now-playing span { color: var(--cyan); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.now-playing h2 { margin: 3px 0 0; overflow: hidden; font-size: clamp(1rem, 2vw, 1.45rem); text-overflow: ellipsis; white-space: nowrap; }
.now-playing p { max-width: 50vw; margin: 4px 0 0; overflow: hidden; color: #aeb7c8; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; gap: 10px; }
.round-control { border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(12px); }
.round-control:hover { background: rgba(255,255,255,.15); transform: scale(1.06); }
.round-control svg { fill: currentColor; stroke: none; }
.round-control .play-icon, .round-control .mute-icon { display: none; }
.round-control.paused .pause-icon, .round-control.muted .volume-icon { display: none; }
.round-control.paused .play-icon, .round-control.muted .mute-icon { display: block; }

.player-loader, .player-error { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; background: radial-gradient(circle at center, #111a2d, #000 70%); }
.player-loader span { margin-top: 20px; color: #bcc5d5; font-size: .9rem; }
.loader-ring { width: 54px; height: 54px; border: 4px solid rgba(255,255,255,.11); border-top-color: var(--cyan); border-right-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-error[hidden], .player-loader[hidden] { display: none; }
.error-symbol { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(255,73,106,.32); border-radius: 20px; background: rgba(255,73,106,.1); color: #ff91a5; font-size: 2rem; font-weight: 900; }
.player-error h2 { margin: 22px 20px 10px; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.player-error p { max-width: 560px; margin: 0 22px; color: var(--muted); line-height: 1.6; }
.error-actions { display: flex; gap: 12px; margin-top: 28px; }

.toast { position: fixed; z-index: 3000; left: 50%; bottom: 28px; max-width: min(90vw, 520px); padding: 14px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(13,18,31,.94); color: #fff; box-shadow: var(--shadow); backdrop-filter: blur(18px); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
noscript { position: fixed; z-index: 5000; inset: auto 20px 20px; padding: 18px; border-radius: 12px; background: #7c1430; color: #fff; text-align: center; }

@media (max-width: 1250px) {
  .channel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr .7fr; }
}

@media (max-width: 980px) {
  :root { --header-height: 82px; }
  .topbar { padding-inline: 24px; }
  .brand img { width: 142px; height: 60px; }
  .connection-pill { display: none; }
  .hero { min-height: 690px; grid-template-columns: 1fr; align-content: center; padding-top: 60px; }
  .hero-copy { max-width: 720px; }
  .hero-art { position: absolute; z-index: -1; right: -6%; bottom: 9%; width: 50%; min-height: 300px; opacity: .35; }
  .hero-logo-card { transform: none; }
  .content-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { flex-basis: 50px; width: 100%; }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --radius-xl: 24px; --radius-lg: 18px; }
  .topbar { padding: 8px 17px; }
  .brand img { width: 120px; height: 52px; }
  .clock { display: none; }
  .icon-button { width: 42px; height: 42px; }
  .hero { min-height: 570px; padding: 62px 20px 75px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .hero-art { width: 75%; right: -35%; bottom: 13%; opacity: .24; }
  .hero-actions { width: 100%; }
  .primary-button, .secondary-button { min-height: 50px; }
  .hero-actions .primary-button { flex: 1; }
  .content-panel { padding: 42px 17px 70px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .channel-info { min-height: 94px; padding: 13px; }
  .channel-info h3 { font-size: .9rem; }
  .channel-info p { font-size: .72rem; }
  .card-live { top: 8px; left: 8px; padding: 5px 7px; font-size: .56rem; }
  .favorite-card-button { top: 7px; right: 7px; width: 31px; height: 31px; }
  .section-heading { align-items: start; }
  .channel-count { margin-top: 8px; font-size: .76rem; }
  footer { align-items: flex-start; flex-direction: column; padding-inline: 20px; }
  .player-topbar { padding: 18px; }
  .player-topbar > img { display: none; }
  .player-bottom { align-items: flex-end; padding: 20px 17px; }
  .now-playing img { width: 54px; height: 42px; }
  .now-playing p { max-width: 48vw; }
  .round-control { width: 42px; height: 42px; }
  .player-controls .round-control:nth-child(2) { display: none; }
  .error-actions { width: min(90%, 380px); flex-direction: column; }
}

@media (max-width: 390px) {
  .channel-grid { grid-template-columns: 1fr; }
  .channel-visual { aspect-ratio: 16/8.5; }
  .channel-info { min-height: auto; }
}

@media (min-width: 1800px) {
  .channel-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .content-panel { max-width: var(--max-width); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (pointer: coarse) {
  .icon-button, .round-control { min-width: 48px; min-height: 48px; }
  .category-button { min-height: 48px; }
}
