  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

  :root {
      --bg: #0a0a0b;
      --accent: #26ADF7;
      --accent-dim: #155e85;
      --text: #f5f3f0;
      --text-dim: #b8b4ae;
      --track: rgba(255, 255, 255, 0.22);
      --panel: rgba(10, 10, 11, 0.72);
  }

  * {
      box-sizing: border-box;
  }

  html,
  body {
      height: 100%;
      margin: 0;
      background: #050506;
      font-family: 'Inter', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .container-video-player-tv {
      position: fixed;
      width: 100dvw;
      height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      display: none;
      z-index: 9999999;
  }

  .player {
      position: fixed;
      width: 100dvw;
      height: 100dvh;
      background: #000;
      border-radius: 0px;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
      outline: none;
      user-select: none;
      -webkit-user-select: none;
  }

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





  .video-player-tv-topo-orvelay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 26px;
      background: linear-gradient(to bottom,
              rgba(0, 0, 0, 0.8) 0%,
              rgba(0, 0, 0, 0.66) 12%,
              rgba(0, 0, 0, 0.55) 26%,
              rgba(0, 0, 0, 0.4) 42%,
              rgba(0, 0, 0, 0.25) 58%,
              rgba(0, 0, 0, 0.12) 74%,
              rgba(0, 0, 0, 0.04) 88%,
              transparent 50%);
      pointer-events: none;
      opacity: 0;
      z-index: 9;
  }





  /* ---------- Loading spinner ---------- */
  .spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 52px;
      height: 52px;
      margin: -26px 0 0 -26px;
      border: 4px solid rgba(255, 255, 255, 0.15);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease;
      z-index: 5;
  }

  .player.buffering .spinner {
      opacity: 1;
  }

  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

  /* ---------- Top bar (title) ---------- */
  .top-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 22px 28px;
      display: flex;
      align-items: center;
      gap: 16px;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity .28s ease, transform .28s ease;
      z-index: 4;
      pointer-events: none;
  }

  .player.show-ui .top-bar {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
  }

  .back-btn {
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      color: var(--text);
      cursor: pointer;
      border-radius: 50%;
      transition: background .15s ease;
      flex-shrink: 0;
  }

  .back-btn:hover {
      background: rgba(255, 255, 255, 0.12);
  }

  .title-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
  }

  .title-main {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 26px;
      letter-spacing: 0.5px;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .title-sub {
      font-size: 12.5px;
      color: var(--text-dim);
      font-weight: 500;
      letter-spacing: 0.3px;
  }

  /* ---------- Center click / play-pause flash ---------- */
  .click-catcher {
      position: absolute;
      inset: 0;
      z-index: 2;
      cursor: pointer;
  }

  .flash-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 74px;
      height: 74px;
      margin: -37px 0 0 -37px;
      background: rgba(0, 0, 0, 0.55);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      z-index: 6;
  }

  .flash-icon svg {
      width: 34px;
      height: 34px;
      fill: var(--text);
  }

  .flash-icon.animate {
      animation: flashPop .55s ease forwards;
  }

  @keyframes flashPop {
      0% {
          opacity: 0;
          transform: scale(0.7);
      }

      30% {
          opacity: 1;
          transform: scale(1.08);
      }

      70% {
          opacity: 1;
          transform: scale(1);
      }

      100% {
          opacity: 0;
          transform: scale(1);
      }
  }

  /* ---------- Roku-style pause overlay ---------- */
  .pause-info {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 118px;
      padding: 0 28px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 3;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .3s ease, transform .3s ease;
      pointer-events: none;
  }

  .player.is-paused.show-ui .pause-info {
      opacity: 1;
      transform: translateY(0);
  }

  .pause-info .pill {
      align-self: flex-start;
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(0, 0, 0, 0.55);
      border: 1px solid rgba(255, 255, 255, 0.15);
      padding: 5px 12px 5px 9px;
      border-radius: 20px;
      font-size: 11.5px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-dim);
      font-weight: 600;
  }

  .pause-info .pill svg {
      width: 13px;
      height: 13px;
      fill: var(--accent);
  }

  .pause-info .big-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 44px;
      letter-spacing: 0.5px;
      color: var(--text);
      line-height: 1;
      text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  }

  .pause-info .meta-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13.5px;
      color: var(--text-dim);
      font-weight: 500;
  }

  .pause-info .meta-row .dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: var(--text-dim);
  }

  /* ---------- Bottom controls ---------- */
  .controls-player-tv {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 14px 24px 18px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
      z-index: 4;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .28s ease, transform .28s ease;
      pointer-events: none;
  }

  .player.show-ui .controls-player-tv {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
  }

  /* progress bar */
  .progress-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
  }

  .time-label {
      font-size: 12.5px;
      color: var(--text-dim);
      font-variant-numeric: tabular-nums;
      min-width: 44px;
      text-align: center;
      font-weight: 500;
  }

  .progress-wrap {
      position: relative;
      flex: 1;
      height: 18px;
      display: flex;
      align-items: center;
      cursor: pointer;
  }

  .progress-track {
      position: relative;
      width: 100%;
      height: 4px;
      background: var(--track);
      border-radius: 2px;
      overflow: visible;
      transition: height .12s ease;
  }

  .progress-wrap.tv-focused {
      outline: none !important;
  }

  .progress-wrap.tv-focused .progress-track {
      outline: none !important;
      height: 6px;
  }

  .progress-wrap:hover .progress-track {
      height: 6px;
  }

  .progress-buffered {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background: rgba(255, 255, 255, 0.35);
      border-radius: 2px;
  }

  .progress-played {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background: var(--accent);
      border-radius: 2px;
  }

  .progress-handle {
      position: absolute;
      top: 50%;
      left: 0%;
      width: 13px;
      height: 13px;
      margin-left: -6.5px;
      background: var(--accent);
      border-radius: 50%;
      transform: translateY(-50%) scale(0);
      transition: transform .12s ease;
      box-shadow: 0 0 0 4px rgba(38, 174, 247, 0.2);
  }

  .progress-wrap:hover .progress-handle,
  .progress-wrap.dragging .progress-handle {
      transform: translateY(-50%) scale(1);
  }

  /* buttons row */
  .btn-row {
      display: flex;
      align-items: center;
      gap: 4px;
  }

  .btn-row .spacer {
      flex: 1;
  }

  .ctrl-btn {
      background: transparent;
      border: none;
      color: var(--text);
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 6px;
      transition: background .15s ease, transform .1s ease;
      flex-shrink: 0;
  }

  .ctrl-btn:hover {
      background: rgba(255, 255, 255, 0.14);
  }

  .ctrl-btn:active {
      transform: scale(0.92);
  }

  .ctrl-btn svg {
      width: 20px;
      height: 20px;
      fill: var(--text);
  }

  .play-btn svg {
      width: 23px;
      height: 23px;
  }

  .now-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-dim);
      margin-left: 6px;
      letter-spacing: 0.2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 220px;
  }

  /* volume */
  .volume-group {
      display: flex;
      align-items: center;
      gap: 2px;
  }

  .volume-slider-wrap {
      width: 0;
      overflow: hidden;
      transition: width .18s ease;
      display: flex;
      align-items: center;
  }

  .volume-group:hover .volume-slider-wrap,
  .volume-group.active .volume-slider-wrap {
      width: 78px;
  }

  .volume-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 70px;
      height: 3px;
      border-radius: 2px;
      background: var(--track);
      outline: none;
      margin-left: 4px;
      cursor: pointer;
  }

  .volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--text);
      cursor: pointer;
  }

  .volume-slider::-moz-range-thumb {
      width: 11px;
      height: 11px;
      border: none;
      border-radius: 50%;
      background: var(--text);
      cursor: pointer;
  }

  /* rewind/forward badge */
  .skip-badge {
      position: absolute;
      font-size: 9px;
      font-weight: 700;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: var(--text);
      pointer-events: none;
  }

  .ctrl-btn.skip {
      position: relative;
  }

  /* fullscreen icon swap handled via class */
  .icon-alt {
      display: none;
  }

  .is-active .icon-default {
      display: none;
  }

  .is-active .icon-alt {
      display: inline;
  }

  /* keyboard focus visibility */
  .player:focus-visible {
      box-shadow: 0 0 0 3px var(--accent), 0 30px 80px rgba(0, 0, 0, 0.6);
  }

  .ctrl-btn:focus-visible,
  .back-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
  }

  .hint {
      text-align: center;
      color: #6b6a68;
      font-size: 12px;
      margin-top: 16px;
      font-family: 'Inter', sans-serif;
  }

  @media (max-width:640px) {
      .title-main {
          font-size: 19px;
      }

      .pause-info .big-title {
          font-size: 30px;
      }

      .now-title {
          display: none;
      }

      .top-bar {
          padding: 14px 16px;
      }

      .controls {
          padding: 10px 14px 14px;
      }

      .pause-info {
          bottom: 96px;
          padding: 0 16px;
      }
  }





  .container-next-ep {
      position: fixed;
      top: 78%;
      right: 60px;
      transform: translateY(-50%);
      display: none;
  }

  .next-ep-show {
      display: block;
  }

  .card-next-ep {
      height: 92px;
      width: 250px;
      background: #181818;
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      flex-direction: row;
      box-shadow: 0 12px 35px rgba(0, 0, 0, .45);
  }

  .tv-focused {
      outline: 3px solid #ffffff62;
  }

  .card-next-ep.tv-focused {
      outline: 3px solid #fff;
      transform: scale(1.03);
  }


  .header-next-ep {
      padding: 10px;
      text-align: left;
      font-size: 0.7em;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .wrapper-thumb-next-ep {
      position: relative;
      width: 1000px;
      aspect-ratio: 16/9;
      overflow: hidden;
  }

  .wrapper-thumb-next-ep .thumb-next-ep {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
  }

  .runtime-next-ep {
      position: absolute;
      right: 7px;
      bottom: 7px;
      background: rgba(0, 0, 0, .85);
      color: #fff;
      font-size: 0.65em;
      font-weight: 500;
      padding: 2px 6px;
      border-radius: 4px;
  }

  .content-next-ep {
      padding: 6px;
  }

  .title-next-ep {
      font-size: 0.8em;
      font-weight: 700;
      margin-bottom: 4px;
      line-height: 1.3;
  }

  .synopsis-next-ep {
      color: #bdbdbd;
      font-size: 0.75em;
      line-height: 1.6;

      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }








  /* PLAYER TRAILER */
  .video-container-trailer {
      position: fixed !important;
      top: 0 !important;
      width: 100% !important;
      height: 100% !important;
      /*     top: 50% !important; */
      margin-bottom: 10% !important;
      overflow: hidden;
      display: flex;
      display: none;
      justify-content: center;
      /* centraliza horizontalmente */
      align-items: center;
      /* centraliza verticalmente */
      flex-shrink: 0 !important;
      z-index: 2;
      background: #000;
      /* preenche as barras do letterbox */
      transform: scaleY(0.65) translateY(-15%);
  }

  .video-container-trailer #trailer-player {
      position: relative !important;
      width: 100% !important;
      height: 100% !important;
      border: 0 !important;
      transform: translateZ(0) !important;
      will-change: transform !important;
  }

  /* o elemento real (video ou iframe) que o video.js cria dentro */
  .video-container-trailer #trailer-player video,
  .video-container-trailer #trailer-player iframe,
  .video-container-trailer .vjs-tech {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      /* a chave: mantém proporção, sem cortar */
  }



  .hero-trailer-backdrop {
      position: absolute;
      top: 0;
      width: 100dvw !important;
      height: 100dvh !important;
      background-color: rgb(0, 0, 0);
      z-index: 1;
  }