/* Reset básico para TVs antigas */

@import url("https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap");

.play-regular {
  font-family: "Play", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.play-bold {
  font-family: "Play", sans-serif;
  font-weight: 700;
  font-style: normal;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  /* Usar viewport height para cobrir toda a altura */
  overflow: hidden;
  font-family: Arial, sans-serif;
  -webkit-text-size-adjust: none;

  /* Background configurado para cobrir 100% da largura */
  background: #000 url("/data/login/back_new.png") no-repeat center center;
  background-size: 100% auto;
  /* Largura 100%, altura automática (mantém proporção) */

  /* Fallback para browsers antigos */
  -webkit-background-size: 100% auto;
  -moz-background-size: 100% auto;
  -o-background-size: 100% auto;
}

.selected {
  background-color: rgba(22, 92, 95, 0.8);
}

/* Container principal */
#tv-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.3s;
}

/* Elemento de vídeo */
#tv-video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #000;
}

/* Banner SVG */
#tv-banner {
  position: absolute;
  left: 1rem;
  width: 20%;
  z-index: 20;
  transition: opacity 0.3s;
}

#tv-banner img {
  width: 100%;
}

/* Controles */
#tv-controls {
  position: absolute;
  right: 1rem;
  width: auto;
  z-index: 20;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.tv-btn-menu {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  margin-left: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 0rem 0rem 1rem 1rem;
  box-shadow: 0.1rem 0.1rem 0.3rem 0.1rem #ffffff;
  cursor: pointer;
}

.tv-btn-menu:hover {
  background-color: rgba(0, 158, 163, 0.8);
}

/* Menu */
#tv-genero {
  position: absolute;
  right: -1vw;
  top: 8vh;
  width: 20vw;
  z-index: 20;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

#tv-genero img {
  width: 5rem;
  padding: 0rem 1rem 0rem 1rem;
}

.tv-btn-genero {
  background-color: rgba(0, 0, 0, 0.8);
  width: 90%;
  height: 6rem;
  display: flex;
  margin: 0 0 1rem 0;
  border-radius: 2rem 0rem 0rem 2rem;
  box-shadow: 0.5rem 0.3rem 0.9rem 0.1rem #ffffff;
  align-items: center;
  /* border-bottom: 2rem antiquewhite; */
}

.tv-btn-genero:hover {
  background-color: rgba(0, 158, 163, 0.8);
}

.tv-btn-genero span {
  font-size: 1.5rem;
  transition: 300ms;
  text-transform: uppercase;
  text-align: start;
  color: #ffffff;
}

#tv-thumbs {
  position: absolute;
  display: flex;
  z-index: 20;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 79vw;
  position: fixed;
  left: 0rem;
  padding: 1rem;
  overflow: auto;
  transition: 300ms;
  opacity: 95%;
  border-radius: 0rem 2rem 2rem 0rem;
  background-color: rgba(0, 0, 0, 0.8);
  height: -webkit-fill-available;
}

#tv-thumbs-musical,
#tv-thumbs-odonto,
#tv-thumbs-estetica,
#tv-thumbs-medica,
#tv-thumbs-variedades,
#tv-thumbs-infantil,
#tv-thumbs-institucional {
  display: flex;
  flex-wrap: wrap;
}

.btn-thumbs {
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  width: 24vw;
  height: 8vh;
  border-radius: 2rem;
  box-shadow: 0.1rem 0.1rem 0.5rem 0.1rem #ffffff;
  margin: 0.5rem;
  padding: 0.5rem;
}

.btn-thumbs:hover {
  outline: 0;
  background-color: rgba(0, 158, 163, 0.8);
}

.selected {
  outline: 0;
  background-color: rgba(0, 158, 163, 0.8);
}

.btn-thumbs img {
  width: 5rem;
  padding: 0rem 1rem 0rem 1rem;
}

.btn-thumbs span {
  font-size: 1rem;
  color: #ffffff;
  transition: 300ms;
  text-transform: uppercase;
  margin-left: 1rem;
}

/* Área de descrição */
#tv-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
  min-height: 80px;
  background-color: rgba(41, 41, 41, 0.8);
  color: #ffffff;
  border-radius: 15rem 15rem 0rem 0rem;
  z-index: 10;
  display: table;
  table-layout: fixed;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.tv-left {
  width: 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Arial";
  text-transform: lowercase;
}

.tv-left img {
  margin: 0.3rem;
  height: 4rem;
}

.tv-right {
  width: 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Arial";
  text-transform: lowercase;
}

.tv-right img {
  margin: 0.3rem;
  height: 4rem;
}

.tv-center {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-radius: 15rem 15rem 0rem 0rem;
  height: 100%;
  font-family: "Arial";
  text-transform: uppercase;
}

.tv-text {
  width: 90%;
  text-align: center;
}

#tv-upper-title {
  font-size: 1.8rem;
}

/* Classes para mostrar/ocultar controles */
.tv-ui-hidden {
  opacity: 0;
  pointer-events: none;
}

.tv-ui-visible {
  opacity: 1;
  pointer-events: all;
}

/* Estado de fullscreen personalizado */
.tv-custom-fullscreen {
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 9999 !important;
  background: #000 !important;
}

.tv-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 24px;
  color: #ffffff;
}

.select_player {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 100%;
}

.select_player .horizontal {
  background-color: var(--cor2);
  flex: 1;
  padding: 1rem;
}

.select_player .vertical {
  background-color: var(--cor4);
  flex: 1;
  padding: 1rem;
}

.select_player img {
  border-radius: 1rem;
  width: -webkit-fill-available;
  width: 100%;
}

.tv-form {
  display: flex;
  width: 100%;
  padding: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0rem;
}

.tv-login-box {
  width: 75%;
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 1rem 1.2rem #000000;
  height: 35rem;
}

.tv-qrcode {
  width: 25%;
  background-color: #ffffffe7;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 1rem 1.2rem #000000;
  height: 35rem;
  text-align: center;
}

.tv-qrcode img {
  width: 100%;
}

.tv-login-box form {
  margin-top: 2rem;
}

.tv-login-box h1 {
  text-align: center;
  margin-bottom: 0rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.tv-input-group {
  width: 100%;
  margin-bottom: 15px;
}

.tv-input {
  width: 90%;
  padding: 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 1rem;
  background-color: #000000;
  color: white;
  outline: 2px solid transparent;
  transition: outline 0.2s;
}

.tv-input:focus {
  outline: 2px solid #000000;
}

.tv-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.tv-img-logo {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 16px #000000;
  align-items: center;
}

.tv-remember {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.tv-login-btn {
  background-color: rgb(40, 133, 137);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 90%;
  margin: 1rem 0rem 2rem 0rem;
  text-align: center;
  text-decoration: none;
}

.tv-login-btn:hover,
.tv-login-btn:focus {
  background-color: rgb(0, 247, 255);
  color: #000000;
}

.tv-warning-btn {
  display: none;
  background-color: rgb(255, 0, 0);
  color: #ffffff;
  border: none;
  padding: 1rem;
  font-size: 1.3rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 90%;
  margin-top: 1rem;
  text-align: center;
}

.tv-warning-btn:hover,
.tv-warning-btn:focus {
  background-color: rgb(254, 165, 165);
  color: rgb(0, 0, 0);
}

.tv-footer {
  display: none;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.tv-register {
  color: #00f7ff;
  cursor: pointer;
}

/* Estilo para foco navegável (importante para TVs) */
.tv-input:focus,
.tv-login-btn:focus,
.tv-register:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.tv-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 2rem;
  height: 2rem;
  border: 3px solid #000000;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  margin-right: 5px;
}

.tv-remember input[type="checkbox"]:checked {
  background-color: #000000;
}

.tv-remember input[type="checkbox"]:checked::after {
  content: "✓";
  color: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.tv-logo {
  width: 100%;
  align-items: center;
  margin-top: 1rem;
}

.tv-logo img {
  height: 100px;
}

.tv-logo p {
  color: #ffffff;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  body,
  html {
    background: #ee00ff url("/data/login/back_new.png") no-repeat top;
  }

  .tv-form {
    width: 90%;
  }

  .tv-qrcode {
    display: none;
  }

  .tv-login-box {
    height: 100%;
  }

  .tv-login-box h1 {
    font-size: 1.2rem;
  }

  .tv-input-group {
    width: 100%;
    margin-bottom: 1rem;
  }

  .tv-input {
    font-size: 1rem;
  }

  .tv-remember {
    font-size: 1rem;
  }

  #tv-genero {
    top: 15vh;
    right: -5vw;
    width: 35vw;
  }

  .tv-btn-genero {
    height: 2.6rem;
    margin: 0 0 0.5rem 0;
  }

  #tv-genero img {
    width: 2rem;
  }

  .tv-btn-genero {
    height: 2.3rem;
  }

  #tv-thumbs {
    width: 64vw;
  }

  .btn-thumbs {
    width: 28vw;
    height: 2vh;
  }

  .btn-thumbs img {
    width: 1.3rem;
  }

  #tv-upper-title {
    font-size: 1.2rem;
  }

  .tv-left img {
    margin: 0.3rem;
    height: 3rem;
  }

  .tv-right img {
    margin: 0.3rem;
    height: 3rem;
  }
}

@media screen and (max-width: 500px) {
  body,
  html {
    background: #22ff00 url("/data/login/back_new.png") no-repeat top;
  }

  .tv-form {
    width: 90vw;
  }

  .tv-login-box {
    width: 85%;
    height: 63vh;
  }

  .tv-btn-menu {
    width: 3rem;
    height: 3rem;
  }

  #tv-genero {
    top: 8vh;
    right: -18px;
    width: 65vw;
  }

  #tv-thumbs {
    width: 90vw;
    top: 4rem;
  }

  .btn-thumbs {
    width: 80vw;
    height: 2vh;
  }
}
