/* ТВ, Радио, Видео, Игры — страницы сайта (2026-10-18). Цвета и шрифты — из темы. */
.mx { --mx-r: 16px; --mx-dark: #0b1119; padding-bottom: 48px; }
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx-crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-crumbs a { color: var(--muted); text-decoration: none; }
.mx-crumbs a:hover { color: var(--brand); }
.mx-crumbs span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- заголовок раздела, фильтры ---------- */
.mx-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 4px 0 18px; }
.mx-head > div { flex: 1; min-width: 260px; }
.mx-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.1; margin: 0; display: flex; align-items: center; gap: 12px; }
.mx-head-ico { font-size: .8em; }
.mx-head p { color: var(--muted); margin: 8px 0 0; font-size: 16px; max-width: 640px; }
.mx-search { width: 260px; max-width: 100%; padding: 11px 16px; border-radius: 30px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: 500 15px var(--sans); }
.mx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 14px; scrollbar-width: thin; }
.mx-chips button { flex: none; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 30px; padding: 8px 14px; font: 700 13.5px/1 var(--sans); cursor: pointer; }
.mx-chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mx-chips sup { font-size: 10px; opacity: .7; }
.mx-empty, .mx-none { text-align: center; padding: 50px 20px; border: 2px dashed var(--rule); border-radius: var(--mx-r); color: var(--muted); }

/* ---------- карточки ---------- */
.mx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mx-grid--radio { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mx-grid--tv { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mx-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 14px; transition: transform .2s ease; }
.mx-card[hidden] { display: none; }
.mx-card:hover { transform: translateY(-3px); }
.mx-card-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--mist); border: 1px solid var(--rule); }
.mx-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mx-card:hover .mx-card-cover img { transform: scale(1.05); }
.mx-grid--tv .mx-card-cover, .mx-grid--radio .mx-card-cover { background: linear-gradient(145deg, var(--paper), var(--mist)); }
.mx-grid--tv .mx-card-cover img, .mx-grid--radio .mx-card-cover img { object-fit: contain; padding: 14%; }
.mx-grid--radio .mx-card-cover { aspect-ratio: 1 / 1; border-radius: 50%; }
.mx-grid--radio .mx-card-cover img { padding: 18%; }
.mx-grid--game .mx-card-cover { aspect-ratio: 4 / 3; }
.mx-card-cover.is-empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 140% at 85% 0%, #3a0b12 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #0b2a55 0%, transparent 60%), var(--mx-dark); }
.mx-card-ico { font-size: 42px; }
.mx-card-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); box-shadow: 0 6px 16px rgba(232, 3, 4, .35); opacity: 0; transform: scale(.8); transition: all .2s ease; }
.mx-card-play::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.mx-card:hover .mx-card-play, .mx-card:focus-visible .mx-card-play { opacity: 1; transform: none; }
.mx-grid--radio .mx-card-play { right: 50%; bottom: 50%; margin: 0 -20px -20px 0; }
.mx-grid--video .mx-card-play, .mx-grid--game .mx-card-play { opacity: .92; transform: none; }
.mx-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; }
.mx-grid--radio .mx-card-body { text-align: center; }
.mx-card-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.mx-grid--video .mx-card-t, .mx-grid--game .mx-card-t { font-family: var(--serif); font-size: 17px; }
.mx-card-g { font-size: 12px; color: var(--muted); }
.mx-card-ex { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-live { position: absolute; left: 10px; top: 10px; background: var(--brand); color: #fff; font: 800 10px/1 var(--sans); letter-spacing: .08em; padding: 4px 7px 4px 16px; border-radius: 4px; }
.mx-live::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: mx-blink 1.4s ease-in-out infinite; }
.mx-grid--radio .mx-live { left: 50%; top: auto; bottom: -1px; transform: translateX(-50%); }
.mx-live--inline { position: relative; left: auto; top: auto; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes mx-blink { 50% { opacity: .25; } }

/* ---------- плеер ---------- */
.mx-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mx-stage.has-list { grid-template-columns: minmax(0, 1fr) 300px; }
.mx-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--mx-r); overflow: hidden; box-shadow: 0 20px 50px rgba(10, 20, 35, .22); }
.mx-player video, .mx-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mx-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.mx-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mx-bigplay { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(232, 3, 4, .92); box-shadow: 0 0 0 12px rgba(232, 3, 4, .25); transition: transform .2s; }
.mx-bigplay::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.mx-facade:hover .mx-bigplay { transform: scale(1.07); }
.mx-unmute { position: absolute; left: 14px; top: 14px; z-index: 3; border: 0; border-radius: 30px; padding: 10px 16px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 14px var(--sans); cursor: pointer; backdrop-filter: blur(6px); animation: mx-pulse 2s ease-in-out infinite; }
@keyframes mx-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); } }
.mx-err { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; background: rgba(8, 12, 20, .92); color: #fff; }
.mx-err[hidden] { display: none; }
.mx-err b { font-family: var(--serif); font-size: 22px; }
.mx-err span { color: rgba(255, 255, 255, .75); font-size: 14px; }
.mx-err button { margin-top: 6px; border: 0; border-radius: 30px; padding: 10px 18px; background: var(--brand); color: #fff; font: 700 14px var(--sans); cursor: pointer; }

/* список каналов справа */
.mx-chlist { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--mx-r); overflow: hidden; display: flex; flex-direction: column; max-height: 100%; }
.mx-chlist-h { margin: 0; padding: 12px 14px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--rule); }
.mx-chlist-in { overflow-y: auto; flex: 1; max-height: calc((min(100vw, 1240px) - 32px - 318px) * .5625 - 44px); }
.mx-chlist a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.mx-chlist a:hover { background: var(--mist); }
.mx-chlist b { display: block; font-size: 14px; }
.mx-chlist small { display: block; font-size: 12px; color: var(--muted); }
.mx-ch-logo { flex: none; width: 44px; height: 32px; border-radius: 6px; background: var(--mist); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mx-ch-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.mx-info { margin: 22px 0 10px; }
.mx-title { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; margin: 8px 0 8px; }
.mx-lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 820px; line-height: 1.55; }
.mx-radio-genre { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--mist); border-radius: 20px; padding: 4px 10px; }
.mx-body { font-size: 18px; line-height: 1.7; max-width: 820px; margin-top: 16px; }
.mx-body img { max-width: 100%; height: auto; border-radius: 12px; }
.mx-body a { color: var(--link); }

/* ---------- радио ---------- */
.mx-radio { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #10192a, #2a0d16); box-shadow: 0 24px 60px rgba(10, 20, 35, .25); }
.mx-radio-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px) saturate(1.4); opacity: .45; z-index: -1; }
.mx-radio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 20, .78), rgba(8, 12, 20, .45)); }
.mx-radio-in { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(22px, 4vw, 48px); }
.mx-radio-logo { flex: none; width: clamp(140px, 22vw, 260px); aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 8px rgba(255, 255, 255, .08); }
.mx-radio-logo img { width: 100%; height: 100%; object-fit: contain; padding: 16%; }
.mx-radio-logo.is-empty { background: radial-gradient(circle, #3a0b12, #0b2a55); font-size: 70px; }
.mx-radio.is-playing .mx-radio-logo { animation: mx-spin 18s linear infinite; }
@keyframes mx-spin { to { transform: rotate(360deg); } }
.mx-radio-info { min-width: 0; flex: 1; }
.mx-radio .mx-title { color: #fff; }
.mx-radio .mx-radio-genre { background: rgba(255, 255, 255, .14); color: #fff; }
.mx-radio-ex { color: rgba(255, 255, 255, .8); margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.mx-radio-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.mx-play { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--brand); cursor: pointer; box-shadow: 0 12px 30px rgba(232, 3, 4, .45); transition: transform .15s; }
.mx-play:hover { transform: scale(1.06); }
.mx-play-i { position: absolute; left: 30px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.is-playing .mx-play-i { left: 27px; top: 26px; width: 22px; height: 24px; border: 0; border-left: 7px solid #fff; border-right: 7px solid #fff; }
.is-loading .mx-play-i { left: 22px; top: 22px; width: 32px; height: 32px; border: 4px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: mx-spin .8s linear infinite; }
.mx-eq { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.mx-eq i { width: 5px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.is-playing .mx-eq i { animation: mx-eq 1s ease-in-out infinite; background: #fff; }
.is-playing .mx-eq i:nth-child(2) { animation-delay: -.3s; } .is-playing .mx-eq i:nth-child(3) { animation-delay: -.6s; }
.is-playing .mx-eq i:nth-child(4) { animation-delay: -.15s; } .is-playing .mx-eq i:nth-child(5) { animation-delay: -.45s; }
.is-playing .mx-eq i:nth-child(6) { animation-delay: -.75s; } .is-playing .mx-eq i:nth-child(7) { animation-delay: -.2s; }
@keyframes mx-eq { 0%, 100% { height: 6px; } 50% { height: 34px; } }
.mx-vol { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.mx-vol input { width: 120px; accent-color: #fff; }
.mx-status { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); min-height: 1.2em; }

/* ---------- игры ---------- */
.mx-player--game { aspect-ratio: 16 / 9; }
.mx-game { position: absolute; inset: 0; background: #000; }
.mx-game iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mx-game-start { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(120% 140% at 85% 0%, #3a0b12 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #0b2a55 0%, transparent 60%), var(--mx-dark); }
.mx-game-start img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mx-game-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--brand); color: #fff; font: 800 20px/1 var(--sans); padding: 18px 34px; border-radius: 40px; box-shadow: 0 14px 34px rgba(232, 3, 4, .45); white-space: nowrap; }
.mx-game-start:hover .mx-game-btn { filter: brightness(1.08); }
.mx-fs-close { display: none; position: absolute; right: 12px; top: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 20px; cursor: pointer; }
.mx-game-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mx-game-bar button { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 30px; padding: 10px 16px; font: 700 14px var(--sans); cursor: pointer; }
.mx-game-bar button:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mx-game-tip { font-size: 13px; color: var(--muted); }
/* «на весь экран» там, где браузер не умеет (iPhone) */
.mx-game.is-pseudo-fs { position: fixed; inset: 0; z-index: 100000; width: 100vw; height: 100vh; height: 100dvh; }
.mx-game.is-pseudo-fs .mx-fs-close, .mx-game:fullscreen .mx-fs-close { display: block; }
html.mx-noscroll, html.mx-noscroll body { overflow: hidden !important; }

/* ---------- ещё ---------- */
.mx-more { margin-top: 40px; }
.mx-more-h { font-family: var(--serif); font-size: 26px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.mx-more-h a { margin-left: auto; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.mx .share { margin-top: 26px; }

@media (max-width: 1100px) {
  .mx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-grid--radio { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-grid--tv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-stage.has-list { grid-template-columns: minmax(0, 1fr); }
  .mx-chlist-in { max-height: 320px; }
}
@media (max-width: 640px) {
  .mx-grid, .mx-grid--tv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mx-grid--radio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .mx-grid--radio .mx-card-t { font-size: 13px; }
  .mx-player { border-radius: 0; margin: 0 calc(-1 * var(--gutter, 16px)); }
  .mx-radio { border-radius: 18px; }
  .mx-radio-in { flex-direction: column; text-align: center; }
  .mx-radio-ctrl { justify-content: center; }
  .mx-vol input { width: 90px; }
  .mx-search { width: 100%; }
  .mx-game-btn { font-size: 17px; padding: 15px 26px; }
  .mx-card-play { opacity: .92; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mx *, .mx-card { animation: none !important; transition: none !important; }
}
