 :root {
     --bg: #0a0a0b;
     --accent: #149dff;
     ;
     --accent-dim: #155e85;
     --text: #f5f3f0;
     --text-dim: #b8b4ae;
     --track: rgb(55, 55, 55);
     --panel: rgba(10, 10, 11, 0.72);
 }


 .container-video-player-tv {
     position: fixed;
     width: 100vw;
     height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     display: none;
     background-color: transparent;
     z-index: 99;
 }

 .subtitle-overlay {
     position: absolute;
     bottom: 16%;
     text-align: center;
     color: #fff;
     font-size: 1em;
     display: flex;
     flex-shrink: 0;
     flex-direction: row;
     width: 100%;
     height: auto;
     left: 50%;
     transform: translateX(-50%);
     justify-content: center;
     align-items: center;
     /* background-color: #000000; */
     pointer-events: none;
     z-index: 500;
     white-space: pre-line;
     display: none;
 }

 .btn-skip-intro {
     position: absolute;
     right: 24px;
     bottom: 164px;
     background-color: var(--accent);
     color: #F9F9F9;
     width: 110px;
     height: 40px;
     border-radius: 6px;
     z-index: 50;
     pointer-events: auto;
     font-size: 0.85em;
     font-weight: 600;
     display: none;
 }

 .btn-skip-intro svg {
     color: #F9F9F9;
     width: 24px;
     height: 24px;
     opacity: 1;
     transform: rotate(0deg);
 }

 .btn-skip-intro.tv-focused {
     outline: 2px solid #c5c5c5;
     outline-offset: 2px;
     /* ou o estilo que você já usa nos outros botões */
     transform: scale(1.05);
 }

 .btn-skip-intro.visible {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 3px;
 }

 .player {
     position: relative;
     display: flex;
     flex-shrink: 0;
     width: 100%;
     height: 100%;
     background-color: rgb(0, 0, 0);
     border-radius: 0px;
     outline: none;
     user-select: none;
     -webkit-user-select: none;
     min-width: 100%;
     min-height: 100%;
     inset: 0;
     overflow: hidden;
 }

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





 .video-player-tv-topo-orvelay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     padding: 30px;
     background: linear-gradient(to bottom,
             rgb(0, 0, 0) 0%,
             rgba(0, 0, 0, 0.815) 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: 20px;
     display: flex;
     flex-shrink: 0;
     align-items: center;
     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-top-bar-group {
     display: none;
     flex-direction: row;
     width: 100%;
     flex-shrink: 0;
     align-items: center;
     gap: 16px;
     z-index: 4;
     pointer-events: none;
     opacity: 0;
 }

 .player-top-bar-group.show {
     pointer-events: auto;
     display: flex;
     animation: topBarGroupShow 1.1s ease forwards;
 }

 @keyframes topBarGroupShow {
     0% {
         opacity: 0;
     }

     100% {
         opacity: 1;
     }
 }

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


 .player-age-rating-container {
     position: relative;
     display: flex;
     align-items: center;
     gap: 12px;
     height: 40px;
     width: 100%;
 }

 .age-rating-bar {
     display: inline-block;
     width: 3px;
     height: 0;
     background: var(--accent);
     border-radius: 2px;
     flex-shrink: 0;
     transform-origin: center bottom;
 }

 .player-age-rating-container p {
     margin: 0;
     font-size: 14px;
     font-weight: 500;
     color: #EBEBEB;
     white-space: nowrap;
     opacity: 0;
 }

 .player-age-rating-container .badge {
     height: 0;
     width: 0;
     border-radius: 2px !important;
     padding: 12px;
     flex-shrink: 0;
     opacity: 0;
     transform: scale(0);
 }

 .player-age-rating-container .badge span {
     display: flex;
     justify-content: center;
     align-items: center;
     line-height: 0.2;
     position: relative;
     letter-spacing: -2px;
     margin-left: -2px;
     font-size: 16px;
     font-family: "Bebas Neue", sans-serif !important;
     font-weight: 500;
     font-style: normal;
     border-radius: 2px;
     transform: scaleY(0.8);
     transform-origin: top;
 }

 .back-btn {
     width: auto;
     height: auto;
     display: flex;
     align-items: center;
     justify-content: center;
     background: transparent;
     border: none;
     color: var(--text);
     cursor: pointer;
     pointer-events: auto;
     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;
     flex: 1 1 auto;
 }

 .title-main {
     font-family: 'Inter', sans-serif;
     font-size: 26px;
     color: white;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .top-bar-hours {
     font-family: 'Inter', sans-serif;
     font-size: clamp(16px, 2.9vw, 20px);
     color: white;
 }

 .title-sub {
     font-size: 12.5px;
     color: rgba(255, 255, 255, 0.85);
     font-weight: 500;
     letter-spacing: 0.3px;
 }


 .top-bar .badge {
     height: 0;
     width: 0;
     padding: 8px 10px;
     border-radius: 3px;
 }

 .top-bar #top-bar-age-rating-text {
     display: flex;
     justify-content: center;
     align-items: center;
     line-height: 0.2;
     position: relative;
     letter-spacing: -1.5px;
     margin-left: -1.5px;
     font-size: 15px;
     font-family: "Bebas Neue", sans-serif !important;
     font-weight: 500;
     font-style: normal;
     border-radius: 2px;
     transform: scaleY(0.8);
     transform-origin: top;
 }

 .top-bar-hours,
 .top-bar .badge,
 #top-bar-release-year {
     flex-shrink: 0;
     white-space: nowrap;
 }



 /* ---------- 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);
     }
 }



 .player-bottom-bar-group {
     position: relative;
     width: 100%;
     height: auto;
     display: flex;
     justify-content: space-between;
     align-items: flex-end;
     bottom: 10px;
 }

 .pause-info {
     position: relative;
     width: 100%;
     height: auto;
     /*  box-sizing: border-box; */
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     gap: 10px;
     z-index: 10;
     opacity: 0;
     transition: opacity .3s ease;
     pointer-events: none;
 }

 .player.is-paused.show-ui .pause-info {
     opacity: 1;
 }

 .pause-info .big-title {
     display: none;
     font-family: 'Inter', sans-serif;
     font-size: 34px;
     color: #F9F9F9;
     line-height: 1;
     text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
 }

 .pause-info .bottom-bar-logo {
     display: none;
     max-width: 260px;
     max-height: 60px;
     width: auto;
     height: auto;
     object-fit: contain;
     object-position: left center;
     align-self: flex-start;
     margin: 0;
 }

 .pause-info .bottom-bar-sinopse {
     display: flex;
     width: 300px;
     font-size: clamp(12px, 2vw, 13.5px);
     display: -webkit-box;
     -webkit-line-clamp: 6;
     line-clamp: 6;
     -webkit-box-orient: vertical;
     overflow: hidden;
     color: rgba(255, 255, 255, 0.8);
 }


 .container-subtitle-controls {
     width: auto;
     height: auto;
     position: relative;
     z-index: 100;
     pointer-events: auto;
     display: none;
 }

 .container-subtitle-controls.open {
     display: flex;
 }

 .custom-select-trigger {
     background: #313131;
     color: #f5f3f0;
     padding: 6px;
     border-radius: 0 0 6px 6px;
     border: none;
     font-size: 0.8em;
 }

 .custom-select {
     position: relative;
 }

 .custom-select-options {
     position: relative;
     list-style: none;
     background: #222222;
     color: #c5c5c5;
     padding: 6px;
     max-height: 180px;
     width: 100%;
     border-radius: 6px 6px 0 0;
     font-size: 0.8em;
     display: flex;
     flex-direction: column;
     gap: 10px;
     overflow: hidden;
     overflow-y: auto;
 }

 .custom-select-options::-webkit-scrollbar {
     display: none;
 }


 /* ---------- Bottom controls ---------- */
 .controls-player-tv {
     position: absolute;
     width: auto;
     height: auto;
     left: 0;
     right: 0;
     bottom: 0;
     padding: 0px 20px 14px 20px;
     z-index: 4;
     opacity: 0;
     transition: opacity .28s ease;
     pointer-events: none;
 }

 .controls-player-tv::before {
     position: absolute;
     left: 0;
     right: 0;
     bottom: 0;
     content: "";
     width: 100%;
     height: 150%;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
     z-index: -1;
     transition: opacity .28s ease;
     pointer-events: none;
 }

 .player.show-ui .controls-player-tv {
     opacity: 1;
     pointer-events: auto;
 }


 .controls-player-container {
     position: relative;
 }


 /* 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.185);
     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 */
 .ctrl-btn:focus-visible,
 .back-btn:focus-visible {
     outline: none;
 }


 @media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
     .title-main {
         font-size: 19px;
     }

     .top-bar-hours {
         font-size: 17px !important;
     }

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

     .now-title {
         display: none;
     }

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

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

     .pause-info .bottom-bar-logo {
         width: 196px !important;
         height: 40px !important;
     }

     .pause-info .bottom-bar-sinopse {
         font-size: 12px;
         width: 240px !important;
         -webkit-line-clamp: 4;
         line-clamp: 4;
     }

     .controls-player-tv::before {
         height: 100%;
     }
 }


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

     .top-bar-hours {
         font-size: 17px !important;
     }

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

     .now-title {
         display: none;
     }

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

     .pause-info .bottom-bar-logo {
         width: 196px !important;
         height: 40px !important;
         object-fit: contain;
         object-position: left center;
         align-self: flex-start;
         margin-left: 0;
         margin-right: auto;
     }

     .pause-info .bottom-bar-sinopse {
         width: 240px !important;
         -webkit-line-clamp: 4;
         line-clamp: 4;
     }

     .controls-player-tv::before {
         height: 100%;
     }
 }




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

 .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: 2px solid #ffffff2f;
 }

 .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: #00000000;
     /* 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;
 }

 /* 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: rgba(0, 0, 0, 0);
     z-index: 1;
 }





 @media only screen and (max-width: 780px) {
     .tv-focused {
         outline: none;
     }
 }