:root {
  --primary-color: #ff3c3c;
  --text-color: #e0e0e0;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

a {
  color: var(--text-color);
}

/* Fonte e fundo geral */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: var(--text-color);
  padding: 20px;
}

/* Cabeçalho */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: var(--primary-color); /* vermelho principal */
  font-size: 2.5rem;
  text-shadow: 1px 1px 5px #000;
}

header h2 {
  color: #999;
  font-size: 1.2rem;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Botões principais */
.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botões padrão */
button {
  background-color: #1e1e1e;
  color: #eee;
  border: 1px solid var(--primary-color);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button:hover {
  background-color: #2a2a2a;
  border-color: #2979ff; /* azul ao passar o mouse */
  color: #fff;
  transform: scale(1.03);
}

/* Botões de canal */
.channel-options {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.channel-group {
  display: none;
}

.channel-options.active {
  display: flex;
}

/* Player container */
#playerContainer {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border: 2px solid #444;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 90vh;
}

#player {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  border-radius: 12px;
}

/* Botões de controle */
.control-buttons {
  position: sticky;
  text-align: center;
  margin-top: 20px;
  bottom: 0px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.control-buttons button {
  margin: 0 10px;
}

/* Estilo para o seletor */
.iframe-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  margin-bottom: 20px;
}

.iframe-selector label {
  font-size: 1.1rem;
  margin-right: 10px;
  color: var(--text-color);
}

.iframe-selector select {
  background-color: #1e1e1e;
  color: var(--text-color);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}

.iframe-selector select:hover {
  border-color: #2979ff;
}

/* Estilo para o texto (Escolha) e (beta) */
.gray-option,
.tag {
  color: #999;
}

/* Corrige a aparência das opções no dropdown no Chrome */
.iframe-selector option {
  background-color: #1e1e1e;
  color: var(--text-color);
}

/* Estilo para opções dentro do <select> com span (requer JS para funcionar corretamente no Firefox) */
.iframe-selector option:disabled {
  color: #999;
}

.text-selec {
  color: var(--text-color);
}
/* Scrollbar escura */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff1a1a;
}

/* Responsivo */
@media (max-width: 768px) {
  .buttons,
  .channel-options {
    align-items: center;
  }

  button {
    width: 45%;
  }
}

.tutorial {
  background-color: rgba(18, 18, 18, 0.97);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  height: 75vh;
  width: 75vw;
  position: absolute;
  top: 12.5vh;
  display: none;
  transform: scale(0);
  transform-origin: center;
  animation: expandir 0.5s ease-out forwards;
}

.no-animation {
  animation: none !important;
}

@keyframes expandir {
  from {
    transform: scaleY(0) scaleX(0);
  }
  to {
    transform: scaleY(1) scaleX(1);
  }
}

.tutorial button {
  position: relative;
  left: 15px;
  top: 15px;
  padding: 4px;
}

/* chatGPT */
.fullscreen-icon {
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 10px;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #ff1a1a;
}

.fullscreen-icon::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.fullscreen-icon::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* ======================== Lock icon ======================== */
.lock {
  display: inline-flex;
  vertical-align: middle;
  flex-direction: column;
  font-size: inherit;
  height: 1em;
  padding: 0 0.1em;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.lock::before {
  content: "";
  display: block;
  width: 0.4em;
  height: 0.45em;
  box-sizing: border-box;
  border: 0.1em solid currentColor;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  border-bottom: 0;
  clip-path: polygon(0 100%, 0 0, 100% 0, 100% 70%, 50% 70%, 50% 100%);
  margin-bottom: -0.15em;
  transition: margin 0.2s cubic-bezier(0.7, -0.5, 0.84, 0),
    transform 0.2s cubic-bezier(0.7, -0.5, 0.84, 0);
  transition-delay: 0.2s, 0s;
  transform-origin: 0.05em center;
}

.lock::after {
  content: "";
  display: block;
  width: 0.5em;
  height: 0.45em;
  border: solid currentColor 0.2em;
  border-top-width: 0.2em;
  border-bottom-width: 0.15em;
  border-radius: 0.05em;
  box-sizing: border-box;
}

/* ======================== States ======================== */
.interactionOFF {
  scale: 1;
  background: transparent;
}

.interactionON {
  scale: 1.05;
  /* background: var(--primary-color); */
}

.interactionON .lock::before {
  margin-bottom: -0.03em;
  transform: rotateY(180deg);
  transition-delay: 0s, 0.2s;
}

/* ======================== Styling ======================== */
#interactionBtn {
  /* font-size: var(--size); */
  display: flex;
  color: var(--primary-color);
  align-items: end;
  /* border: var(--primary-color) solid 0.15em; */
  padding: 0.15em 0.8em;
  border-radius: 0.1em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.7, 0, 0.84, 0);
  font-weight: 900;
  /* box-shadow: 0px 5px 15px 15px rgba(0 0 0 / 0.15), 0px -5px 5px 5px rgba(0 0 0 / 0.15); */
  margin-left: 10px;
  margin-bottom: 10px;
}

#interactionBtn .lock {
  font-size: 1.5em;
}

/* TUTORIAL */
/* melhore esse parte a baixo do css */

.texto {
  display: none;
}

.texto.ativo {
  display: block;
}

/* Estilo interno da janela tutorial */
.tutorial .geral,
.tutorial .texto {
  padding: 20px;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tutorial .geral p,
.tutorial .texto p {
  margin-bottom: 12px;
}

.tutorial .nota {
  color: #ccc;
  font-style: italic;
  font-size: 0.95rem;
}

.tutorial .aviso {
  color: #ff3c3c;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Ícones embutidos simulados (ajustar com JS ou classes reais) */
.i-iniciar::before {
  content: "▶ Iniciar";
  color: var(--primary-color);
  font-weight: bold;
}

.i-interacaoON::before {
  content: "🔓 Interação ON";
  color: var(--primary-color);
  font-weight: bold;
}

.i-interacaoOFF::before {
  content: "🔒 Interação OFF";
  color: #999;
}

/* Botão de fechar tutorial */
.fechar-tutorial {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  color: var(--primary-color);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fechar-tutorial:hover {
  transform: scale(1.2);
  color: #ff1a1a;
}

.i-warn::before {
  content: "⚠";
  color: orange;
}

.playerTVALT.ativo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.i-lockON::before {
  content: "🔓";
  color: var(--primary-color);
  font-size: 1.2em;
}

.i-lockOFF::before {
  content: "🔒";
  color: #999;
  font-size: 1.2em;
}
