/* ============================================
   VARIÁVEIS GLOBAIS
   ============================================ */
:root {
  --color-gold: #F5C542;
  --color-gold-bright: #FFD81C;
  --color-green: #21eb3a;
  --color-gray: gray;
  --color-white: #ffffff;
  --color-black: #000000;
  --bg-overlay-dark: rgba(0, 0, 0, 0.4);
  --bg-overlay-darker: rgba(0, 0, 0, 0.8);
}

/* ============================================
   REGRAS DE PRIVACIDADE E WIDGETS
   ============================================ */
/* Oculta reCAPTCHA no fundo da página */
.grecaptcha-badge {
  visibility: hidden;
}

/* ============================================
   YOUTUBE & VIDEO PLAYER STYLES
   ============================================ */
.vjs-youtube .vjs-iframe-blocker { display: none; }
.vjs-youtube .vjs-user-inactive .vjs-iframe-blocker { display: block; }
.vjs-youtube .vjs-poster { background-size: cover; }
.vjs-youtube-mobile .vjs-big-play-button { display: none; }

/* Configurações globais de vídeo */
video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Esconde controlos internos em browsers Webkit / Gecko */
video::-webkit-media-controls-enclosure { overflow: hidden; }
video::-webkit-media-controls-panel { width: calc(100% + 30px); }
video::-webkit-media-controls-playback-speed-button,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-download-button,
.video-element::-moz-full-screen-button {
  display: none !important;
}

/* ============================================
   CLASSES DE UTILIDADE GERAL
   ============================================ */
.hidden { display: none !important; }

.ColorGray { color: var(--color-gray); }
.ColorWhite { color: var(--color-white); }
.ColorRed { color: red; }

.textbold { font-weight: 800; }
.textUnderline { text-decoration: underline; }

.BoxInputAPL { color: var(--color-black); background-color: var(--color-white); }
.container_max { max-width: 2400px; }

/* Form Elements Placeholder */
input::placeholder {
  color: #000000;
  opacity: 1;
  font-weight: bold; /* Corrigido de font-style: bold */
}

.form-control::placeholder {
  color: #888888;
  opacity: 1;
  font-style: italic;
}

/* ============================================
   CONTAINERS DE VÍDEO & THUMBNAILS
   ============================================ */
.wrestler-video-thumbnail {
  width: 14em;
  min-width: 12em;
  height: 9em;
}

.video-container {
  position: relative;
  display: inline-block;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container .video-thumbnail,
.video-container video,
.video-container .video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container img.video-thumbnail {
  height: auto;
  display: block;
}

.video-container .video-element {
  background-color: var(--color-black);
}

/* Loading Spinner */
.video-container.is-waiting::after {
  content: "";
  position: absolute;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ÍCONES DE SOBREPOSIÇÃO (PLAY / VIEW)
   ============================================ */
.play-button-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.play-button-video::before {
  content: '▶';
  color: var(--color-white);
  font-size: 30px;
  line-height: 1;
  margin-left: 5px;
}

.play-button-video:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Estilo Base Agrupado para Ícones Circulares */
.view-icon,
.play-icon {
  position: absolute;
  background-color: var(--bg-overlay-dark);
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.view-icon:hover,
.play-icon:hover {
  background-color: var(--bg-overlay-darker);
  transform: scale(1.1);
}

.view-icon {
  top: 10px;
  left: 10px;
  font-size: 24px;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
}

.play-icon {
  top: 15px;
  right: 15px;
  font-size: 20px;
  width: 50px;
  height: 50px;
}

.play-icon_big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 50%;
  background-color: var(--bg-overlay-dark);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 4em;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  z-index: 10;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.play-icon_big:hover {
  background-color: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Mobile Icon Adjustments */
@media (max-width: 480px) {
  .play-icon,
  .view-icon {
    font-size: 20px;
    width: 60px;
    height: 60px;
    top: 5px;
  }
  .play-icon { right: 5px; }
  .view-icon { left: 5px; }
}

/* ============================================
   PREÇOS & BOTÕES DE COMPRA
   ============================================ */
.price-and-button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.button-container {
  margin-left: 15px;
  flex-shrink: 0;
}

.price-container {
  flex-grow: 1;
}

.btn-price {
  background-color: #fcc233;
  color: var(--color-black);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease-in-out;
}

.btn-price_green {
  background-color: var(--color-green);
  color: var(--color-black);
}

.btn-price:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.btn-price:active {
  transform: translateY(0);
  filter: brightness(0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CARTÕES & BADGES (PROMO / LATEST FIGHT)
   ============================================ */
.sale-card {
  border: 2px solid var(--color-gold) !important;
  border-radius: 4px;
  box-sizing: border-box;
}

.lastfight-card {
  border: 2px solid var(--color-green) !important;
  border-radius: 4px;
  box-sizing: border-box;
}

.sale-thumbnail {
  position: relative;
}

.sale-thumbnail::after {
  content: attr(data-sale-price);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 0.25em 0.5em;
  /*font-size: clamp(9px, 1vw + 6px, 16px);*/
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
  border-radius: 2px;
  pointer-events: none;
  white-space: pre-wrap;
  text-align: center;
}

.sale-thumbnail_green::after {
  background: var(--color-green);
  color: var(--color-black);
}

.sale-thumbnail_mini::after {
  top: 5px;
  left: 5px;
}

.price-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 4px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  border-radius: 2px;
  pointer-events: none;
}

.price-badge-overlay .new-price {
  color: var(--color-black);
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .sale-thumbnail::after {
    top: 6px;
    left: 6px;
  }
}

/* ============================================
   AJUSTES EXCLUSIVOS DESKTOP / LAPTOP (min-width: 992px)
   ============================================ */
@media (min-width: 992px) {
  .cta-zone {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin: 8px 0;
  }

  .cta-zone .btn {
    min-width: 260px !important;
    padding: 14px 24px !important;
    font-size: 1.05rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .cta-zone .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  .cta-zone .btn s {
    font-size: 0.85em;
    opacity: 0.7;
    margin-right: 6px;
  }

  .info-block {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .fighters-names {
    font-size: 1.35rem !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 4px !important;
  }

  .video-title {
    font-size: 1.05rem !important;
    opacity: 0.9;
    margin-bottom: 10px !important;
  }

  .fighters-data {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  .fighters-data .ColorWhite { font-size: 0.95rem; }
  .fighters-data .ColorGray { font-size: 0.9rem; }
  
  
  .cast-box.only-badge {
    border: none !important;
    box-shadow: none !important;
  }

  /* Estilos agregados para cards e badges em desktop */
  .lastfight-card,
  .sale-card {
    position: relative;
    border-radius: 8px;
  }

  .sale-thumbnail_green,
  .lastfight-card {
    border: 3px solid var(--color-green) !important;
    box-shadow: 0 0 18px rgba(33, 235, 58, 0.35);
  }

  .sale-card:not(.lastfight-card) {
    border: 3px solid var(--color-gold-bright) !important;
    box-shadow: 0 0 18px rgba(255, 216, 28, 0.35);
  }

  /* Badge unificado para Desktop */
  .sale-thumbnail_green::after{
    content: attr(data-sale-price);
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }

  .sale-thumbnail_green::after,
  .lastfight-card::after {
    background: var(--color-green);
    color: var(--color-black);
  }

  .sale-card:not(.lastfight-card)::after {
    background: var(--color-gold-bright);
    color: var(--color-black);
  }

  .cast-box {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }

  .cast-box:hover {
    transform: translateY(5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  }

  .cast-box video,
  .cast-box img {
    border-radius: 10px;
  }
}