  :root {
      --bg: #181818;
      --StreamingText: #e5e5e5;
      --line: #333;
      --header-line: #670000;
      --accent: #670000;
      --danger: #ef4444;
      --ok: #22c55e;
    }

    * { box-sizing: border-box; }
    .wrap { max-width: 980px; margin: 24px auto; padding: 0 16px; }
    h1 {
      font-size: 20px;
      margin: 8px 0 16px;
      color: var(--StreamingText);
      border-bottom: 2px solid var(--header-line);
      padding-bottom: 8px;
    }

    .player {
      position: relative;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .player.fullscreen { border-radius: 0; }
    video { width: 100%; height: auto; display: block; background: #000;border-radius: 12px; }

    .controlsBG {
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 100px;
      background: linear-gradient(180deg, rgba(24,24,24,0) 0%, rgba(24,24,24,0.9) 50%, rgba(24,24,24,1) 100%);
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .controlsOverlay {
      position: absolute;
      left: 0; right: 0; bottom: 0;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      opacity: 1;
      transition: opacity 0.3s ease;
    }
    .hideControls .controlsOverlay,.hideControls .controlsBG { opacity: 0; pointer-events: none; }

    .grp { display: flex; gap: 8px; align-items: center; }
    .grp .btn i{
      display:inline-block;
      width: 24px;
    }
    .grp .btn{
      text-indent: 16px;
      position: relative;
    }
    .grp .btn::after{
      position: absolute;
      content:'';
      left:8px;
      top: 10px;
      width: 12px;
      height: 12px;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
    }
    .grp .btn#btnFS[data-active=false]::after{
      background-image:url(../images/player-fullscreen.svg);
    }
    .grp .btn#btnFS[data-active=true]::after{
      background-image:url(../images/player-minimize.svg);
    }
    .grp .btn#btnPlay[data-active=false]::after{
      background-image:url(../images/player-play.svg);
    }
    .grp .btn#btnPlay[data-active=true]::after{
      background-image:url(../images/player-pause.svg);
    }
    .grp .btn#btnMute[data-active=false]::after{
      background-image:url(../images/player-sound.svg);
    }
    .grp .btn#btnMute[data-active=true]::after{
      background-image:url(../images/player-sound-mute.svg);
    }
    .grp .btn#btnMute::after{
      width: 15px;
      height: 15px;
      top: 8px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(34,34,34,0.9);
      color: var(--StreamingText);
      cursor: pointer;
      user-select: none;
      backdrop-filter: blur(6px);
    }
    .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
    .btn-toggle[data-active="true"] {
      /* background: rgba(103,0,0,0.9);
      border-color: var(--accent); */
    }

    .selectWrap { position: relative; }
    .selectWrap:after {
      content: "▾";
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: var(--StreamingText);
      opacity: 0.85;
    }
    .select {
      appearance: none;
      padding: 8px 34px 8px 10px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(34,34,34,0.9);
      color: var(--StreamingText);
    }

    .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* font-weight: 700; */
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 85%);
    color: rgb(243, 44, 44);
    border: 1px solid #67000000;
    }
    .live-pill[hidden]{
      display: none;
    }
    .live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgb(243, 44, 44);
    box-shadow: 0 0 0 6px rgba(103, 0, 0, 0.15);
    margin-right: 5px;
    }
    #liveState{
      font-size: 10pt;
    }
    .tag {
      font-size: 12px;
      color: var(--StreamingText);
      background: rgba(255,255,255,0.1);
      border: 1px solid var(--line);
      padding: 4px 8px;
      border-radius: 999px;
    }

    .overlayPlay {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
    }
    .overlayPlay button {
      font-size: 16px;
      background: rgba(24,24,24,0.9);
      color: var(--StreamingText);
      border: 0px solid var(--accent);
      padding: 12px 18px;
      border-radius: 999px;
      cursor: pointer;
    }
    .overlayPlay[hidden] { display: none; }

    .muted { color: #aaa; font-size: 14px; }
    .ratioBox{ position:relative; width:100%; }
    .ratioBox::before{ content:""; display:block; padding-top:56.25%; }
    .mediaBox{ position:absolute; inset:0; }

    video{ width:100%; height:100%; display:block; background:#000; object-fit:contain; }

    .player.fullscreen .ratioBox::before{ padding-top:0; }
    .player.fullscreen .mediaBox{ position:static; }
    .ratioBox{ position:relative; width:100%; }
    .ratioBox::before{ content:""; display:block; padding-top:56.25%; }
    .mediaBox{ position:absolute; inset:0; }
    .poster{ position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat; filter:brightness(.9); }
    video{ width:100%; height:100%; display:block; background:#000; object-fit:contain; }
    .player.fullscreen .ratioBox::before{ padding-top:0; }
    .player.fullscreen .mediaBox{ position:static; }
    .btn .txt{ display:inline; }
    @media (max-width: 600px){
      .player,video{
        border-radius: 0px;
      }
      .btn .txt,#liveState{ display:none; }
      .select{ padding-right:28px; max-width: 120px; }
      #capTag{ display:none; }
      .live-dot{margin-right: 0px;}
      .live-pill{padding: 5px 5px;text-align: center;margin-top:2px;}
    }