/* =========================================================
   5GMAXFILMES — VISUAL CINEMA RED v1 (CORRIGIDO)
   Apenas visual (CSS puro)
   Seguro para TV / Mobile / Desktop
========================================================= */

/* =========================================================
   VARIÁVEIS
========================================================= */
:root {
  --bg-main: #0b0f19;
  --bg-soft: rgba(255,255,255,0.05);
  --bg-glass: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.08);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.45);

  --red-main: #e50914;
  --red-soft: rgba(229,9,20,0.35);

  --text-main: #ffffff;
  --text-soft: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.55);
}

/* =========================================================
   BASE
========================================================= */
body {
  background: radial-gradient(circle at top, #131826, var(--bg-main));
  color: var(--text-main);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-soft);
}

/* =========================================================
   SECTION TITLE — CONSOLIDADO
========================================================= */
.sectionTitle {
  padding: 18px var(--wrap-px, 20px) 4px;
  max-width: 1600px;
  margin: 26px auto 12px;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;

  position: relative;
}

.sectionTitle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);

  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-main), transparent);
}

@media (min-width: 1280px) {
  .sectionTitle {
    font-size: 22px;
  }
}

/* =========================================================
   CARDS — BASE + REFINO CINEMA
========================================================= */
.card,
.post,
.movie,
.serie {
  position: relative;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );

  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;

  transition: transform .25s ease,
              box-shadow .25s ease,
              border .25s ease;
}

.card:hover,
.post:hover,
.movie:hover,
.serie:hover {
  transform: scale(1.04);
  border-color: var(--red-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* Foco TV */
.card:focus-visible,
.post:focus-visible,
.movie:focus-visible,
.serie:focus-visible {
  outline: none;
  border-color: var(--red-main);
  box-shadow:
    0 0 0 2px rgba(229,9,20,0.45),
    0 20px 45px rgba(0,0,0,0.7);
}

/* =========================================================
   IMAGENS DOS CARDS
========================================================= */
.card img,
.post img,
.movie img,
.serie img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   CARD INFO OVERLAY — ÚNICO
========================================================= */
.card .info,
.post .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 12px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.5),
    transparent
  );
}

.card .info h3,
.post .info h3 {
  font-size: 15px;
  margin: 0;
  color: var(--text-main);

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

.card .info p,
.post .info p {
  font-size: 13px;
  color: var(--text-soft);
}

/* =========================================================
   BADGES / TARJAS
========================================================= */
.badge,
.tarja,
.label {
  background: var(--red-main);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: .4px;
  box-shadow: 0 4px 12px rgba(229,9,20,0.4);
}

/* =========================================================
   CARROSSEL
========================================================= */
.carousel,
.carrossel {
  position: relative;
  padding: 10px 0;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main), transparent);
}
.carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main), transparent);
}

/* =========================================================
   BOTÕES
========================================================= */
button,
.btn {
  background: linear-gradient(135deg, var(--red-main), #b20710);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229,9,20,0.5);
}

/* =========================================================
   PLAYER MODAL (APENAS VISUAL)
========================================================= */
.player,
.player-modal,
#playerContainer {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

/* =========================================================
   EPISÓDIOS (VISUAL)
========================================================= */
.episodio,
.episode-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 8px;
  transition: background .2s ease, border .2s ease;
}

.episodio.active,
.episode-item.active {
  border-color: var(--red-main);
  background: rgba(229,9,20,0.15);
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   MOBILE — SEGURANÇA
========================================================= */
@media (max-width: 768px) {
  .card:hover {
    transform: none;
  }
}

/* =========================================================
   PLAYER — FIX TV / FIRE STICK (VÍDEO MINIMIZADO)
========================================================= */

/* Remove efeitos que quebram o vídeo */
#playerContainer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Garantia extra: nunca transformar o container */
#playerContainer {
  transform: none !important;
}

/* Se existir estado minimizado */
#playerContainer.minimized {
  transform: none !important;
  opacity: 1 !important;
}


/* =========================================================
   PLAYER — TEMPORADAS (DESTAQUE CORRETO)
   Seguro para TV / Fire Stick / Mobile
========================================================= */

/* container das temporadas */
#tempList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;               /* espaço entre T1, T2, T3 */
  justify-content: center;
}

/* botão de temporada (estado normal) */
.tempBtn {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

/* hover (desktop / mobile) */
.tempBtn:hover {
  border-color: rgba(229,9,20,0.6);
}

/* temporada ATIVA */
.tempBtnActive {
  background: transparent !important;
  color: #e50914 !important;
  border-color: #e50914 !important;
  box-shadow: 0 0 10px rgba(229,9,20,0.55);
}

/* foco TV / controle remoto */
.tempBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.6);
}

/* mobile: botões um pouco maiores para toque */
@media (max-width: 768px) {
  .tempBtn {
    padding: 8px 16px;
    font-size: 15px;
  }
}


/* ================= SINOPSE LATERAL ================= */
#sinopsePanel {
    position: fixed;
    top: 168px;
    right: 48px;
    width: 220px; /* 🔥 ainda mais fino */
    height: calc(100vh - 84px);

    /* 🔥 fundo quase invisível */
    background: transparent;
    backdrop-filter: none;
    border-left: none;

    z-index: 700;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

#sinopsePanel.active {
    opacity: 1;
    transform: translateX(0);
}

.sinopse-content {
    padding: 12px;
    overflow-y: auto;
    max-height: 100%;
}

/* 🔥 IMAGEM DO POST */
#sinopseImg {
    width: 100%;
    max-width: 150px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.75);
}

/* TÍTULO */
#sinopseTitulo {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e60000; /* 🔥 vermelho */
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
/* TEXTO */
#sinopseTexto {
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}


/* ================= TRAILER LATERAL (ESQUERDA) ================= */
#trailerPanel {
    position: fixed;
    top: 168px;              /* alinha com a sinopse */
    left: 48px;
    width: 360px;
    height: calc(100vh - 200px);

    background: transparent;
    backdrop-filter: none;

    z-index: 700;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

#trailerPanel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* conteúdo interno */
.trailer-content {
    height: 100%;
}

.trailer-frame {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,.75);
}

/* placeholder */
.trailer-placeholder {
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* iframe e video */
#trailerHolder iframe,
#trailerHolder video {
    width: 100%;
    height: 100%;
    border: none;
}


/* BOTÃO ATIVAR SOM (CARD) */
.soundBtn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;

  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 700;

  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform .15s ease, background .15s ease;
}

.soundBtn:hover {
  background: rgba(229,9,20,0.85);
  transform: scale(1.05);
}


/* ===============================
   BOTÃO TRAILER — CLIQUE REAL
================================*/
.trailerBtn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 50;               /* 🔥 acima da imagem */
  pointer-events: auto;      /* 🔥 garante clique */

  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);

  cursor: pointer;
  user-select: none;

  transition: transform .15s ease, background .15s ease;
}

.trailerBtn:hover {
  background: #e50914;
  transform: translateX(-50%) scale(1.05)

.cItem img,
.cThumb {
  pointer-events: none; /* 🔥 libera clique no botão */

}

