/* =============================================
   DiziNovelas TV – Carousel + Channel Grid styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
  font-family: "Montserrat", sans-serif;
}

a {
  text-decoration: none;
  color: rgb(255 255 255 / 60%);
}

a:hover {
  color: white;
}

/* ── CAROUSEL ── */
.dntv-carousel-wrapper {
  position: relative;
  max-width: 960px;
  margin: auto;
  padding: 0 40px;
}

.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel {
  display: flex;
  gap: 12px;
  padding: 8px 4px;
}

/* ── CHANNEL CARD (shared by carousel + grid) ── */
.poster-channel {
  flex-shrink: 0;
  width: 180px;
  min-width: 180px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.poster-channel:hover {
  opacity: 0.88;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.75);
}

.poster-channel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Logo area — fixed height, dark bg so all logos look good */
.poster-channel .poster__logo {
  width: 100%;
  height: 110px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.poster-channel .poster__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Text area */
.poster-channel .poster__desc {
  width: 100%;
  padding: 10px 10px 12px;
  text-align: center;
  box-sizing: border-box;
}

.poster__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster__subtitle {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 400;
}

/* ── CAROUSEL BUTTONS ── */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.prev { left: 2px; }
.next { right: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .dntv-carousel-wrapper {
    padding: 0 36px;
  }
  .poster-channel {
    width: 150px;
    min-width: 150px;
  }
  .poster-channel .poster__logo {
    height: 90px;
  }
  .poster__title {
    font-size: 13px;
  }
  .desktop {
    display: none;
  }
}

@media (max-width: 500px) {
  .poster-channel {
    width: 130px;
    min-width: 130px;
  }
  .poster-channel .poster__logo {
    height: 76px;
  }
  .poster__title {
    font-size: 12px;
  }
  .desktop {
    display: none;
  }
}
