:root {
      --background: #01162b;
      --foreground: #fff;
      --muted: hsla(0,0%,100%,.55);
      --line: hsla(0,0%,100%,.08);
      --surface: #0a2238;
      --surface-elevated: #0f2d4a;
      --gold: #d4a853;
      --gold-light: #e8c872;
      --gold-dark: #b8923f;
      --gold-soft: rgba(212,168,83,.12);
      --gold-border: rgba(212,168,83,.22);
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html, body { margin: 0; min-height: 100%; }
    body {
      font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
      background: var(--background);
      color: var(--foreground);
      -webkit-font-smoothing: antialiased;
    }
    button, input { font: inherit; }
    .bg-mesh {
      min-height: 100dvh;
      background-color: var(--background);
      background-image:
        linear-gradient(rgba(1, 22, 43, 0.55), rgba(1, 22, 43, 0.72)),
        url('/Betamiraltv-BG.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
    }
    .glass-header {
      position: sticky;
      top: 0;
      z-index: 40;
      border-bottom: 1px solid var(--line);
      background: rgba(1,22,43,.8);
      backdrop-filter: blur(24px);
    }
    .header-inner {
      margin: 0 auto;
      max-width: 1600px;
      height: 56px;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    @media (min-width: 640px) {
      .header-inner { height: 60px; padding: 0 20px; }
    }
    .brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .icon-btn {
      display: none;
      height: 36px;
      width: 36px;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: rgba(255,255,255,.7);
      cursor: pointer;
    }
    .icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
    @media (max-width: 1023px) {
      .icon-btn { display: inline-flex; }
    }
    .logo-img { height: 32px; width: auto; object-fit: contain; }
    @media (min-width: 640px) { .logo-img { height: 36px; } }
    .tv-badge {
      flex-shrink: 0;
      border: 1px solid var(--gold-border);
      background: var(--gold-soft);
      color: var(--gold-light);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .live-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 9999px;
      border: 1px solid var(--gold-border);
      background: var(--gold-soft);
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,.85);
    }
    .dot-live {
      position: relative;
      display: flex;
      height: 6px;
      width: 6px;
    }
    .dot-live::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: var(--gold);
      opacity: .6;
      animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
    }
    .dot-live::after {
      content: "";
      position: relative;
      height: 6px;
      width: 6px;
      border-radius: 9999px;
      background: var(--gold);
    }
    @keyframes ping {
      75%, 100% { transform: scale(2); opacity: 0; }
    }
    .layout {
      margin: 0 auto;
      max-width: 1600px;
      display: grid;
      gap: 12px;
      padding: 12px;
      grid-template-columns: 1fr;
    }
    @media (min-width: 640px) {
      .layout { gap: 16px; padding: 16px; }
    }
    @media (min-width: 1024px) {
      .layout {
        grid-template-columns: 280px minmax(0,1fr) 300px;
      }
      #channelsPanel { order: 1; }
      .main-col { order: 2; }
      #chatPanel { order: 3; }
    }
    @media (min-width: 1280px) {
      .layout {
        grid-template-columns: 300px minmax(0,1fr) 320px;
      }
    }
    .panel {
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,.06);
      background: var(--surface);
      box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 hsla(0,0%,100%,.04);
    }
    .side-panel {
      display: none;
      flex-direction: column;
      position: sticky;
      top: 4.25rem;
      height: calc(100dvh - 5rem);
      padding: 16px;
      min-height: 0;
      overflow: hidden;
    }
    .chat-panel { padding: 0; overflow: hidden; }
    @media (min-width: 1024px) {
      .side-panel { display: flex; }
    }
    @media (max-width: 1023px) {
      .side-panel.mobile-active {
        display: flex;
        position: static;
        height: min(68dvh, 640px);
        overflow: hidden;
        order: 3;
      }
      .main-col { order: 1; }
      .mobile-tabs-wrap { order: 2; }
    }
    .panel-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      flex-shrink: 0;
    }
    .panel-icon {
      display: flex;
      height: 28px;
      width: 28px;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: var(--gold-soft);
      color: var(--gold);
      font-size: 11px;
    }
    .panel-title p { margin: 0; }
    .panel-title .t { font-size: 13px; font-weight: 600; }
    .panel-title .s { font-size: 10px; color: rgba(255,255,255,.45); }
    .search-wrap { position: relative; margin-bottom: 12px; flex-shrink: 0; }
    .search-wrap i {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: rgba(255,255,255,.35);
      pointer-events: none;
    }
    .input-dark {
      width: 100%;
      height: 40px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      color: #fff;
      padding: 0 12px 0 36px;
      outline: none;
    }
    .input-dark::placeholder { color: rgba(255,255,255,.4); }
    .input-dark:focus {
      border-color: var(--gold-border);
      background: rgba(255,255,255,.06);
      box-shadow: 0 0 0 2px rgba(212,168,83,.12);
    }
    .promo {
      display: block;
      margin-bottom: 12px;
      height: 96px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.06);
      overflow: hidden;
      text-decoration: none;
      position: relative;
      background:
        linear-gradient(135deg, rgba(212,168,83,.25), transparent 55%),
        linear-gradient(160deg, #0a1e33, #061526);
    }
    .promo.main {
      height: 200px;
      margin-bottom: 0;
    }
    @media (min-width: 640px) {
      .promo.main { height: 180px; }
    }
    .promo.chat-banner {
      height: 112px;
      margin-bottom: 0;
    }
    .promo-inner {
      height: 100%;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 10px;
    }
    .promo-kicker {
      font-size: 13px;
      font-weight: 800;
      font-style: italic;
      letter-spacing: .02em;
      line-height: 1.2;
      color: #fff;
      text-transform: uppercase;
    }
    .promo-kicker span { color: var(--gold-light); }
    .btn-gold {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      border: 0;
      border-radius: 8px;
      padding: 8px 14px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
      box-shadow: 0 4px 14px rgba(212,168,83,.25);
      cursor: pointer;
      text-decoration: none;
    }
    .btn-gold:hover { filter: brightness(1.1); }
    .list-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding-right: 2px;
      position: relative;
      z-index: 1;
      background: var(--surface);
    }
    .list-scroll::-webkit-scrollbar { width: 4px; }
    .list-scroll::-webkit-scrollbar-thumb {
      background: rgba(212,168,83,.25);
      border-radius: 99px;
    }
    .group-block { margin-bottom: 16px; }
    .group-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 4px;
      margin-bottom: 6px;
      width: 100%;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      text-align: left;
    }
    .group-head h3 {
      margin: 0;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(212,168,83,.6);
    }
    .group-block.collapsed .group-items { display: none; }
    .group-count {
      border-radius: 9999px;
      background: rgba(255,255,255,.06);
      padding: 2px 6px;
      font-size: 10px;
      color: rgba(255,255,255,.4);
    }
    .channel {
      position: relative;
      display: flex;
      width: 100%;
      align-items: center;
      gap: 10px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: rgba(255,255,255,.03);
      padding: 8px 10px;
      text-align: left;
      color: inherit;
      cursor: pointer;
      margin-bottom: 4px;
      transition: .15s;
    }
    .channel:hover {
      border-color: rgba(255,255,255,.06);
      background: rgba(255,255,255,.05);
    }
    .channel.active {
      border-color: var(--gold-border);
      background: var(--gold-soft);
      box-shadow: 0 4px 14px rgba(212,168,83,.25);
    }
    .channel.active::before {
      content: "";
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 2px;
      border-radius: 9999px;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
    }
    .ch-logo {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      object-fit: fill;
      background: rgba(0,0,0,.35);
      flex-shrink: 0;
    }
    .ch-meta { min-width: 0; flex: 1; }
    .ch-name {
      display: block;
      font-size: 12px;
      font-weight: 600;
      line-height: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: rgba(255,255,255,.8);
    }
    .channel.active .ch-name { color: #fff; }
    .ch-group {
      display: block;
      margin-top: 2px;
      font-size: 10px;
      color: rgba(255,255,255,.4);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ch-dot {
      position: relative;
      width: 6px;
      height: 6px;
      flex-shrink: 0;
      display: none;
    }
    .channel.active .ch-dot { display: block; }
    .ch-dot::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: var(--gold);
      opacity: .5;
      animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
    }
    .ch-dot::after {
      content: "";
      position: relative;
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 9999px;
      background: var(--gold);
    }
    .main-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
    @media (min-width: 640px) { .main-col { gap: 16px; } }
    .player-card { overflow: hidden; }
    .player-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      background: var(--surface);
      padding: 10px 16px;
    }
    @media (min-width: 640px) { .player-bar { padding: 10px 20px; } }
    .badge-live {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 9999px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .025em;
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
      box-shadow: 0 4px 14px rgba(212,168,83,.25);
    }
    .badge-live .pulse {
      position: relative;
      width: 6px;
      height: 6px;
    }
    .badge-live .pulse::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: #01162b;
      opacity: .5;
      animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
    }
    .badge-live .pulse::after {
      content: "";
      position: relative;
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 9999px;
      background: #01162b;
    }
    .chip {
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      padding: 2px 8px;
      font-size: 10px;
      font-weight: 600;
      color: rgba(255,255,255,.7);
    }
    .chip.gold {
      border-color: var(--gold-border);
      background: var(--gold-soft);
      color: var(--gold-light);
      font-weight: 500;
    }
    .now-title {
      margin: 0;
      width: 100%;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    @media (min-width: 640px) {
      .now-title { width: auto; font-size: 15px; }
    }
    .player-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #000;
      overflow: hidden;
      isolation: isolate;
      cursor: default;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .player-wrap.is-fs {
      aspect-ratio: auto;
      width: 100%;
      height: 100%;
      background: #000;
    }
    .player-wrap video#video {
      width: 100%;
      height: 100%;
      display: block;
      background: #000;
      object-fit: contain;
    }
    .player-wrap.is-idle .player-controls {
      opacity: 0;
      pointer-events: none;
      transform: translateY(6px);
    }
    .player-wrap.is-idle { cursor: none; }
    .player-wrap.is-paused .player-overlay,
    .player-wrap.is-idle.is-paused .player-overlay {
      opacity: 1;
      pointer-events: auto;
    }
    .player-overlay {
      position: absolute;
      inset: 0;
      z-index: 6;
      display: grid;
      place-items: center;
      background: radial-gradient(60% 50% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.55));
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease;
    }
    .player-big-btn {
      width: 72px;
      height: 72px;
      border: 0;
      border-radius: 9999px;
      display: grid;
      place-items: center;
      cursor: pointer;
      color: #01162b;
      background: linear-gradient(145deg, #e8c872, #d4a853 50%, #b8923f);
      box-shadow:
        0 0 0 1px rgba(255,255,255,.12),
        0 12px 36px rgba(0,0,0,.45),
        0 0 40px rgba(212,168,83,.25);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .player-big-btn:hover {
      transform: scale(1.06);
      box-shadow:
        0 0 0 1px rgba(255,255,255,.18),
        0 16px 42px rgba(0,0,0,.5),
        0 0 48px rgba(212,168,83,.35);
    }
    .player-big-btn i { font-size: 22px; margin-left: 3px; }
    .player-loading {
      position: absolute;
      inset: 0;
      z-index: 8;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: rgba(0,0,0,.45);
      color: rgba(255,255,255,.85);
      font-size: 13px;
      font-weight: 600;
    }
    .player-loading[hidden] { display: none !important; }
    .player-spinner {
      width: 40px;
      height: 40px;
      border-radius: 9999px;
      border: 3px solid rgba(255,255,255,.15);
      border-top-color: var(--gold);
      animation: playerSpin .8s linear infinite;
    }
    @keyframes playerSpin {
      to { transform: rotate(360deg); }
    }
    .player-error {
      position: absolute;
      inset: 0;
      z-index: 9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 24px;
      text-align: center;
      background: rgba(1,22,43,.88);
      color: #fff;
    }
    .player-error[hidden] { display: none !important; }
    .player-error i { font-size: 28px; color: #e8c872; }
    .player-error p { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); max-width: 280px; }
    .player-error .btn-gold {
      margin-top: 4px;
      border: 0;
      border-radius: 10px;
      padding: 10px 18px;
      font-weight: 700;
      cursor: pointer;
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
    }
    .player-controls {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 7;
      opacity: 1;
      transform: translateY(0);
      transition: opacity .28s ease, transform .28s ease;
    }
    .player-controls-fade {
      position: absolute;
      inset: auto 0 0 0;
      height: 120px;
      background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
      pointer-events: none;
    }
    .player-controls-inner {
      position: relative;
      padding: 12px 14px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    @media (min-width: 640px) {
      .player-controls-inner { padding: 14px 18px 16px; }
    }
    .player-live-row {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .player-live-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      border-radius: 9999px;
      padding: 3px 9px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .06em;
      color: #fff;
      background: #c62828;
      box-shadow: 0 0 0 1px rgba(255,255,255,.08);
    }
    .player-live-tag .pulse {
      position: relative;
      width: 6px;
      height: 6px;
    }
    .player-live-tag .pulse::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: #fff;
      opacity: .45;
      animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
    }
    .player-live-tag .pulse::after {
      content: "";
      position: relative;
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 9999px;
      background: #fff;
    }
    .pc-quality-wrap { position: relative; flex-shrink: 0; }
    .pc-quality-btn {
      width: auto;
      min-width: 44px;
      padding: 0 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .03em;
    }
    .pc-quality-btn[hidden] { display: none !important; }
    .quality-menu {
      position: absolute;
      right: 0;
      bottom: calc(100% + 8px);
      min-width: 148px;
      padding: 6px;
      border-radius: 12px;
      background: rgba(10, 34, 56, .96);
      border: 1px solid rgba(255,255,255,.1);
      box-shadow: 0 12px 32px rgba(0,0,0,.5);
      z-index: 8;
    }
    .quality-menu[hidden] { display: none !important; }
    .quality-menu button {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      border: 0;
      background: transparent;
      color: rgba(255,255,255,.88);
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      text-align: left;
    }
    .quality-menu button:hover { background: rgba(255,255,255,.06); }
    .quality-menu button.active {
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
    }
    .player-now-label {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      font-weight: 600;
      color: rgba(255,255,255,.9);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .player-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .pc-btn {
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #fff;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.08);
      transition: background .15s ease, color .15s ease, transform .15s ease;
    }
    .pc-btn:hover {
      background: rgba(212,168,83,.18);
      border-color: var(--gold-border);
      color: var(--gold-light);
    }
    .pc-btn:active { transform: scale(.96); }
    .pc-volume {
      width: 0;
      opacity: 0;
      max-width: 96px;
      height: 4px;
      accent-color: var(--gold);
      cursor: pointer;
      transition: width .2s ease, opacity .2s ease;
    }
    .player-actions:hover .pc-volume,
    .pc-volume:focus {
      width: 88px;
      opacity: 1;
    }
    @media (max-width: 639px) {
      .pc-volume { display: none; }
    }
    .pc-spacer { flex: 1; }
    .pc-status {
      display: none;
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,.55);
      margin-right: 4px;
    }
    @media (min-width: 640px) {
      .pc-status { display: inline; }
    }
    .watermark {
      position: absolute;
      top:16px;right:16px;
      width: 120px;
      opacity:0.9;
      pointer-events: none;
      z-index: 5;
      user-select: none;
      display:block;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
      transition: opacity .25s ease;
    }
    .player-wrap.is-idle .watermark { opacity: .55; }
    .watermark img {
      width: 100%;
      height: auto;
      display: block;
      filter: drop-shadow(0 1px 3px rgba(0,0,0,.55));
    }
    .empty {
      text-align: center;
      color: rgba(255,255,255,.45);
      padding: 40px 16px;
    }
    .empty strong {
      display: block;
      color: rgba(255,255,255,.7);
      margin-bottom: 6px;
      font-size: 14px;
    }
    .empty span { font-size: 12px; }
    .chat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255,255,255,.06);
      padding: 12px 16px;
    }
    .chat-msgs {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .chat-msg {
      border-radius: 12px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
      padding: 8px 10px;
      font-size: 12px;
      line-height: 1.35;
    }
    .chat-msg .u {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      font-size: 10px;
      font-weight: 600;
      color: var(--gold-light);
      margin-bottom: 2px;
    }
    .chat-msg .m { color: rgba(255,255,255,.8); word-break: break-word; }
    .chat-msg.staff {
      background: rgba(62, 207, 142, 0.1);
      border-color: rgba(62, 207, 142, 0.28);
    }
    .chat-msg.staff .u { color: #3ecf8e; }
    .chat-msg.staff .m { color: #c8f7dc; }
    .staff-badge {
      display: inline-flex;
      align-items: center;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      padding: 1px 5px;
      border-radius: 5px;
      background: rgba(62, 207, 142, 0.22);
      color: #9ff0c4;
      border: 1px solid rgba(62, 207, 142, 0.35);
    }
    .chat-foot {
      border-top: 1px solid rgba(255,255,255,.06);
      padding: 12px;
    }
    .chat-form {
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      padding: 6px 8px;
    }
    .chat-form:focus-within {
      border-color: var(--gold-border);
      box-shadow: 0 0 0 1px rgba(212,168,83,.12);
    }
    .chat-form input {
      flex: 1;
      min-width: 0;
      height: 32px;
      border: 0;
      background: transparent;
      color: #fff;
      outline: none;
      padding: 0 8px;
      font-size: 13px;
    }
    .chat-form input::placeholder { color: rgba(255,255,255,.35); }
    .send-btn {
      width: 32px;
      height: 32px;
      border: 0;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
    }
    .send-btn:hover { filter: brightness(1.1); }
    .mobile-tabs-wrap { display: none; }
    @media (max-width: 1023px) { .mobile-tabs-wrap { display: block; } }
    .mobile-tabs {
      display: flex;
      gap: 8px;
      padding: 4px;
      border-radius: 14px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
    }
    .mobile-tabs button {
      flex: 1;
      border: 0;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: rgba(255,255,255,.55);
    }
    .mobile-tabs button.active {
      color: #01162b;
      background: linear-gradient(135deg, #e8c872, #d4a853 45%, #b8923f);
    }
.preroll{position:absolute;inset:0;z-index:20;background:#000;display:flex;align-items:center;justify-content:center;}
.preroll[hidden]{display:none!important;}
.preroll video,.preroll img{width:100%;height:100%;object-fit:contain;background:#000;}
.preroll-unmute{
  position:absolute;left:12px;bottom:12px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(255,255,255,.2);border-radius:8px;
  padding:8px 14px;font-weight:700;cursor:pointer;
  background:rgba(0,0,0,.65);color:#fff;backdrop-filter:blur(8px);
}
.preroll-unmute[hidden]{display:none!important;}
.preroll-unmute:hover{background:rgba(212,168,83,.25);border-color:var(--gold-border);color:var(--gold-light);}
.skip-btn{position:absolute;right:12px;bottom:12px;z-index:2;border:0;border-radius:8px;padding:8px 14px;font-weight:700;cursor:pointer;background:linear-gradient(135deg,#e8c872,#d4a853 45%,#b8923f);color:#01162b;}
.skip-btn:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.3);}
.popup{position:fixed;top:0;left:0;right:0;bottom:0;inset:0;width:100%;height:100%;min-height:100dvh;z-index:80;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;}
.popup[hidden]{display:none!important;}
.popup-card{position:relative;margin:auto;width:fit-content;max-width:min(520px,92vw);max-height:85vh;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:#0a2238;box-shadow:0 20px 60px rgba(0,0,0,.5);display:flex;flex-direction:column;align-items:center;justify-content:center;}
.popup-link{display:flex;align-items:center;justify-content:center;line-height:0;text-decoration:none;max-width:100%;width:100%;height:100%;}
.popup-card img,.popup-card video{display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;margin:auto;}
.popup-card [hidden],.popup-card img[hidden],.popup-card video[hidden]{display:none!important;}
.popup-close{position:absolute;top:8px;right:10px;z-index:2;width:32px;height:32px;border:0;border-radius:8px;background:rgba(0,0,0,.55);color:#fff;font-size:22px;cursor:pointer;}
.match-time{flex-shrink:0;border-radius:6px;padding:2px 6px;font-size:10px;font-weight:700;background:linear-gradient(135deg,#e8c872,#d4a853 45%,#b8923f);color:#01162b;}
.promo.has-media {
  padding: 0;
  background: #000;
}
.promo.has-media .promo-inner {
  position: absolute;
  inset: 0;
  padding: 0;
  gap: 0;
  display: block;
  height: auto;
}
.promo.has-media img,
.promo.has-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Sol / sağ banner: kutunun içinde kalsın, kanal listesinin üstüne taşmasın */
.promo.has-media:not(.main) {
  flex: 0 0 auto;
  height: auto;
  max-height: 148px;
  overflow: hidden;
  background: #000;
}
.promo.has-media:not(.main) .promo-inner {
  position: static;
  inset: unset;
  display: block;
  height: auto;
  max-height: 148px;
}
.promo.has-media:not(.main) img,
.promo.has-media:not(.main) video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 148px;
  object-fit: contain;
  object-position: center;
}
.chat-msg .mod{margin-left:6px;font-size:10px;color:var(--gold-light);cursor:pointer;border:0;background:transparent;}

/* Pseudo fullscreen fallback (mobile browsers without Fullscreen API) */
.is-pseudo-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
  background: #000;
}
.is-pseudo-fs video { width: 100%; height: 100%; object-fit: contain; }
body.no-scroll-fs { overflow: hidden; }
