:root{
  --bg-color: #000;
  --bg-card: #171717;
  --border: #252525;
  --hover: #353535;
  --text-color-invert: #000;
  --text-color: #fff;
  --semi-transparent: #000000ad;
}

[data-theme="dark"] {
  --bg-color: #000;
  --bg-card: #171717;
  --border: #252525;
  --hover: #353535;
  --text-color-invert: #000;
  --text-color: #fff;
  --semi-transparent: #000000ad;

  --activate-bg-color: #252525;
  --activate-color: #fff;
}

[data-theme="light"] {
  --bg-color: #f0f0f0;
  --bg-card: #dedede;
  --border: #c7c7c7;
  --hover: #c0c0c0;
  --text-color-invert: #fff;
  --text-color: #000;
  --semi-transparent: #a7a7a7ce;

  --activate-bg-color: #c7c7c7;
  --activate-color: #000;
}

[data-theme="red"] {
  --bg-color: #210f10;
  --bg-card: #312020;
  --border: #4d2d2d;
  --hover: #453434;
  --text-color-invert: #000;
  --text-color: #f7d4d5;
  --semi-transparent: #000000ad;

  --activate-bg-color: rgba(255, 0, 0, 0.123);
  --activate-color: #ff0000;
}

[data-theme="green"] {
  --bg-color: #101d10;
  --bg-card: #202e20;
  --border: #354335;
  --hover: #344234;
  --text-color-invert: #072f07;
  --text-color: #d5f0d5;
  --semi-transparent: rgba(16, 29, 16, 0.7);

  --activate-bg-color: #06b9001f;
  --activate-color: #1aad1a;
}

.theme-btn.active {
  outline: 2px solid var(--text-color);
  border-radius: 55px;
}

.theme-btn {
  border: 1px solid var(--hover);
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  background-color: var(--border);
  cursor: pointer;
  margin-bottom: 7px;
}

.theme-btn:hover{
  border-color: var(--hover);
  background-color: var(--hover);
}

.theme-btn img {
  width: 50px;
  height: 50px;
  margin-bottom: -3px;
  object-fit: contain;
  filter: brightness(999);
}

.dark-theme img, .light-theme img{
  padding: 8px;
  filter: invert(1);
}

[data-theme="light"] .light-theme img {
  filter: invert(0);
}

[data-theme="light"] .theme-btn img {
  filter: brightness(0)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent !important;
}

body {
  background-color: var(--bg-color);
  height: 100vh;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: #252525;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #353535;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(50px);
  color: var(--text-color);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-section img {
  height: 50px;
}

[data-theme="light"] .header-section img{
  filter: invert(1);
}

.header-left nav {
  display: flex;
  gap: 4px;
}

.header-left nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: medium;
  display: flex;
  padding: 12px 16px;
  border-radius: 13px;
  transition: background 0.2s;
  font-weight: 500;
}

.header-left nav img{
  filter: brightness(999);
  border-radius: 50px;
  border: 1px solid var(--hover);
  padding: 1px;
}

.header-left nav a i {
  margin-right: 4px;
}

.header-right a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 14px;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.2s;
}

.header-left nav a:hover {
  background: var(--hover);
  color: var(--text-color);
}

.header-right a:hover {
  background: var(--hover);
}

.header-right a {
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.active {
  background-color: var(--activate-bg-color) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--activate-color) !important;
  font-weight: 700 !important;
  pointer-events: none;
}

@media (max-width: 800px) {
  .header-left {
    display: none;
  }

  .header-section img {
    height: 45px;
  }

  .account-btn {
    display: none;
  }
}

.bottom-menu {
  position: fixed;
  bottom: 00px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: var(--bg-color);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  height: 60px;
}
.bottom-menu-item {
  flex: 1;
  text-align: center;
  color: var(--text-color);
  border-radius: 15px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s;
}

.bottom-menu-item img{
  filter: brightness(999);
  width: 30px !important;
  height: 30px !important;
}

.bottom-menu-item i {
  font-size: 22px;
}
.bottom-menu-item.active {
  background-color: var(--hover);
}

.bottom-menu-item:hover {
  background-color: var(--border);
}

@media (min-width: 800px) {
  .bottom-menu {
    display: none;
  }
}
#body-content {
  padding: 0px 20px 80px 20px;
  max-width: 1220px;
  width: 100%;
  margin: 80px auto;
  gap: 40px;
}

.itens-section {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  border-radius: 15px;
  height: auto;
  padding: 30px 10px;
  margin: -30px -10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 800px) {
  .itens-section {
    padding: 0px;
    margin: 0px;
  }

  .item-content:hover {
    box-shadow: none !important;
    transform: scale(1) !important;
    z-index: 1 !important;
  }
}

.item-wrapper {
  width: 277px;
  height: 157px;
  flex: 0 0 auto;
  position: relative;
}

.item-content {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 10px;
  background-color: var(--bg-card);
  transition: all 0.2s;
  position: relative;
}

.item-content:hover {
  box-shadow: 0px 0px 0px 2px var(--text-color);
  transform: scale(1.06);
  z-index: 2;
}

@media (max-width: 600px) {
  .item-wrapper {
    width: 140px;
    height: 200px;
  }
}

.itens-section::-webkit-scrollbar {
  display: none;
}

.carousel-container {
  position: relative;
  width: 101%;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--border);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 100;
}

@media (max-width: 800px) {
  .nav-button {
    display: none;
  }
}

.nav-button-left {
  left: 10px;
}

.nav-button-right {
  right: 20px;
}

.nav-button:hover {
  background-color: var(--hover);
  border-color: var(--hover);
  transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  display: none;
}

.nav-button:disabled:hover {
  background-color: var(--bg-card);
  border-color: var(--hover);
  transform: translateY(-50%) scale(1);
}

@media (max-width: 600px) {
  .nav-button {
    width: 40px;
    height: 40px;
  }

  .nav-button svg {
    width: 20px;
    height: 20px;
  }
}

.item-wrapper {
  position: relative;
}

.item-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #00000099;
  color: white;
  font-size: large;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  backdrop-filter: blur(10px);
  font-weight: 700;
  border-radius: 50%;
}

.item-label-alert {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(221, 1, 1);
  color: var(--text-color);
  font-size: small;
  padding: 4px 10px;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  backdrop-filter: blur(10px);
  font-weight: 700;
  border-radius: 0px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .item-label-alert {
    font-size: xx-small;
    padding: 5px 5px;
    width: 70%;
  }
}

/* === GRID PRINCIPAL === */
.top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 25px;
}

/* === CARD DO EPISÓDIO === */
.episode-card {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  transition: 0.2s;
  overflow: hidden;
  border-radius: 10px;
}

.episode-card:hover {
  box-shadow: 0px 0px 0px 2px var(--text-color);
  scale: 1.05;
  transition: 0.2s;
}

.episode-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: 0.3s;
}

/* === TÍTULO DO EPISÓDIO SOBREPOSTO === */
.top-grid .episode-card h3 {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
  padding: 5px 8px;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: small;
  line-height: 1.4;
  color: var(--text-color);
  background: var(--semi-transparent);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  width: fit-content;
}

/* === TÍTULO DA SEÇÃO === */
.section-area-title span {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  margin-left: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--text-color);
  border-radius: 0.3125rem;
}

/* === BADGE DE RANKING === */
.rank-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--semi-transparent);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

/* === CONTADOR DE VIEWS 24H === */
.views-24h {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color);
  background: var(--semi-transparent);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
}

.views-24h i {
  font-size: 0.9375rem;
}

/* === MENSAGEM DE DADOS VAZIOS === */
.no-data {
  padding: 3.75rem 1.25rem;
  color: #666;
  text-align: center;
}

.no-data i {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 2.5rem;
  opacity: 0.5;
}

/* === RESPONSIVIDADE MOBILE === */
@media (max-width: 768px) {
  .top-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }

  .top-grid::-webkit-scrollbar {
    display: none;
  }

  .top-grid > * {
    flex: 0 0 auto;
    min-width: 250px;
    max-width: 250px;
    scroll-snap-align: start;
  }

  .episode-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .episode-card:hover {
    box-shadow: none;
    scale: 1;
    transition: 0.2s;
  }

  /* Título menor no mobile */
  .top-grid .episode-card h3 {
    bottom: 0.55rem;
    left: 0.55rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
    max-width: calc(100% - 1.5rem);
  }

  /* Ajustes badges no mobile */
  .rank-badge {
    top: 0.5rem;
    left: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
  }

  .views-24h {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    gap: 0.25rem;
  }

  .views-24h i {
    font-size: 0.75rem;
  }
}

/* === MELHORIAS DE ACESSIBILIDADE === */
@media (prefers-reduced-motion: reduce) {
  .top-grid {
    scroll-behavior: auto;
  }

  .episode-card {
    transition: none;
  }
}

.footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border);
  color: var(--text-color);
  text-align: center;
  padding: 40px 10px;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 790px) {
  .footer {
    padding-bottom: 100px;
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  color: gray;
  transition: color 0.2s, transform 0.2s;
  border: 1px solid gray;
  border-radius: 50px;
  padding: 13px;
  display: flex;
  transition: 0.2s;
}

.social-links a:hover {
  color: var(--text-color);
  transform: scale(1.15);
  border-color: var(--border);
  background-color: var(--border);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .footer p {
    font-size: 0.9rem;
  }
}

/* Container dos cards */
#cardsContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1250px;
  margin: 0 auto;
}

/* Separador de episódios */
.episode-separator {
  margin: 24px 0 16px 0;
}

.episode-separator h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  text-align: center;
  margin: 0;
}

/* Card do episódio */
.card {
  display: flex;
  gap: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 160px;
  border-radius: 10px;
  background-color: var(--bg-card);
  transition: .2s;
}

.card:hover {
  background-color: var(--border);
}

/* Imagem do card */
.card-img {
  width: 345px;
  min-width: 200px;
  height: 195px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Informações do card */
.card-info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Isso já centraliza verticalmente */
  padding: 16px 16px 16px 0;
  flex: 1;
  gap: 5px;
}

/* estilo normal (celular) — fica abaixo da imagem */
.card-subtitle {
  font-size: 14px;
  color: gray;
}

/* 💻 estilo para DESKTOP — fica sobre a imagem */
@media (min-width: 768px) {
  .card {
    position: relative;
  }

  .card-subtitle {
    color: gray;
    font-weight: 500;
    font-size: medium;
    margin-top: -3px;
    margin-bottom: 3px;
  }
}

.card-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 345px;
  min-width: 200px;
  height: 195px;
  overflow: hidden;
}

.card-img::before {
  content: "▶";
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  border: 3px solid white;
  backdrop-filter: blur(20px);
  width: 70px;
  height: 70px; /* 👈 adiciona altura igual à largura */
  top: 50%;
  left: 50%;
  line-height: 0;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 38px; /* ligeiramente menor pra caber bem */
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.card:hover .card-img::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 600px) {
  .card-img::before {
    width: 50px;
    height: 50px; /* 👈 ajusta altura igual à largura */
    font-size: 28px; /* ligeiramente menor pra caber bem */
  }
}

.card-title {
  font-size: x-large;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.card-synopsis {
  color: gray;
  font-size: small;
  transition: 0.4s all;
}

.icon-btn {
  border: 1px solid var(--border);
  width: 100px;
  border-radius: 10px;
  background-color: var(--bg-card);
  color: var(--text-color);
  cursor: pointer;
}

.icon-btn:hover {
  background-color: var(--border);
}

.custom-dropdown {
  position: relative;
  padding-top: 20px;
  margin-bottom: 30px;
  max-width: 370px;
  display: flex;
  gap: 10px;
}

#dropdownToggle {
  width: 100%;
  font-weight: 600;
  padding: 18px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  font-family: "Montserrat", sans-serif;
  transition: background 0.2s;
  text-align: center; /* Garante centralização do texto */
}

#dropdownToggle:hover {
  background: var(--border);
}

#dropdownToggle::after {
  content: "";
  width: 20px;
  margin-left: 15px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}

[data-theme="light"] #dropdownToggle::after{
  filter: invert(1);
}

/* Overlay escuro */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--semi-transparent);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.dropdown-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Menu bottom sheet */
#dropdownMenu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 50vh;
  max-width: 600px;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  margin: auto;
}

#dropdownMenu.open {
  transform: translateY(0);
}

/* Header do menu */
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid var(--border);
}

.dropdown-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin: auto;
  font-family: "Montserrat", sans-serif;
}

.dropdown-close {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.dropdown-close:hover {
  background: var(--border);
}

/* Container dos itens */
.dropdown-items {
  overflow-y: auto;
}

.dropdown-item {
  padding: 18px 20px;
  cursor: pointer;
  font-size: large;
  transition: background 0.2s;
  color: var(--text-color);
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.dropdown-item:hover {
  background: var(--border);
}

.dropdown-item.active {
  background: var(--activate-bg-color) important;
  color: var(--activate-color) !important;
  font-weight: 600;
}

/* Scrollbar customizada */
.dropdown-items::-webkit-scrollbar {
  width: 10px;
}

.dropdown-items::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-items::-webkit-scrollbar-thumb {
  background: #353535;
  border-radius: 4px;
}

.dropdown-items::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  #dropdownMenu {
    max-height: 52vh;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  #cardsContainer {
    padding: 0px;
    gap: 10px;
  }

  .card-synopsis {
    display: none;
  }

  .card {
    gap: 12px;
    min-height: auto;
  }

  .card-img {
    width: 120px;
    min-width: 165px !important;
    height: 95px !important;
  }

  .card-info {
    padding: 12px 12px 12px 0;
  }

  .card-title {
    font-size: 1rem !important;
    line-height: auto !important;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .card-img {
    width: 100px;
    min-width: 100px;
    height: 56px;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-subtitle {
    font-size: 0.75rem;
  }
}

#body-login {
  padding: 0px 20px 0px 20px;
  max-width: 1220px;
  width: 100%;
  margin: 100px auto;
  gap: 40px;
  justify-content: center;
}

.infos-acess-area {
  justify-content: center;
  height: 100%;
  max-width: 450px;
  height: auto;
  margin: auto;
  width: 100%;
  color: var(--text-color);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.register-info {
  text-align: center;
}

.register-info h1 {
  font-size: x-large;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 40px;
}

.register-info p {
  font-size: medium;
  color: #ccc;
  margin-bottom: 40px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0px 40px 40px 40px;
}

form input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--text-color);
  font-size: medium;
  outline: none;
  transition: border 0.2s;
  font-family: "Montserrat", sans-serif;
}

form input:focus {
  border: 1px solid var(--text-color);
}

form button {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--text-color);
  font-size: medium;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, border 0.2s;
  font-family: "Montserrat", sans-serif;
}

form button:hover {
  background: var(--hover);
  border: 1px solid var(--hover);
}

form button:active {
  background: var(--border);
  border: 1px solid var(--border);
}

.redirect-text {
  text-align: center;
  color: gray;
  font-size: medium;
  font-weight: 500;
  padding: 40px;
}

.redirect-text a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.redirect-text a:hover {
  text-decoration: underline;
  color:gray;
}

.continue-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  color: white;
  font-size: 14px;
  padding: 5px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  pointer-events: none;
}

.continue-badge::before {
  content: "▶";
  font-size: 12px;
  border: 1px solid white;
  border-radius: 50px;
  padding: 5px 8px;
}

@media (max-width: 600px) {
  .continue-badge {
    display: none;
  }
}
.functions-extra-list {
  display: flex;
  padding-top: 10px;
  gap: 10px;
  flex-wrap: nowrap; /* impede quebra, útil pra rolar pro lado */
  margin-bottom: 20px;
  overflow-x: auto; /* rolagem horizontal */
  overflow-y: hidden; /* desativa vertical */
  scroll-behavior: smooth; /* rolagem suave */
  padding-bottom: 5px; /* espaço para não cortar sombra */
}

/* 🔹 Estilo da barra de rolagem (WebKit) */
.functions-extra-list::-webkit-scrollbar {
  display: none;
}

.functions-extra-list a {
  text-decoration: none;
  color: gray;
  font-size: 0.95rem;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  white-space: nowrap; /* impede quebra de texto */
}

.functions-extra-list a:hover {
  background: var(--border);
  color: var(--text-color);
}

.functions-extra-list a i {
  margin-right: 8px;
}

/* 🔹 Ajustes para mobile */
@media (max-width: 768px) {
  .functions-extra-list {
    gap: 6px;
    padding-bottom: 3px;
  }

  .functions-extra-list a {
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 10px;
  }

  .functions-extra-list::-webkit-scrollbar {
    height: 4px; /* barra menor no mobile */
  }
}

.card-hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Garante que o vídeo fique por cima da imagem quando visível */
.card-img {
  position: relative;
  overflow: hidden;
}

/* Container dos cards recentes */
#recentEpisodesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* Card individual */
.recent-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: visible;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.recent-card:hover {
  transform: scale(1.05);
  z-index: 99;
}

/* Imagem do card */
.recent-card-img {
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio 16:9 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.recent-card:hover .recent-card-img {
  box-shadow: 0 0 0 2px var(--text-color);
}

/* Conteúdo do card */
.recent-card-content {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

/* Título do episódio */
.recent-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta informações (subtitle + tempo) */
.recent-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #999;
}

/* Subtitle do episódio */
.recent-card-subtitle {
  font-weight: 500;
  color: gray;
}

/* Separador entre subtitle e tempo */
.recent-card-separator {
  color: gray;
}

/* Tempo relativo */
.recent-card-time {
  color: gray;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
  #recentEpisodesContainer {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
  }

  /* Remove scroll vertical */
  #recentEpisodesContainer::-webkit-scrollbar {
    display: none;
  }

  .recent-card {
    flex: 0 0 auto;
    width: 250px;
    height: auto;
  }

  .recent-card:hover {
    transform: scale(1);
  }

  .recent-card-img:hover,
  .recent-card-img {
    box-shadow: none !important;
  }

  .recent-card-img {
    width: 100%;
    height: 140px;
    padding-top: 0;
  }

  .recent-card-content {
    justify-content: center;
  }

  .recent-card-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .recent-card-meta {
    font-size: 13px;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Responsivo - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  #recentEpisodesContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recent-card-img {
  position: relative;
}

.new-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background-color: rgb(221, 1, 1);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  font-size: small;
  border-radius: 8px;
  z-index: 2;
  text-transform: uppercase;
}
