/* =============================================================================
   fancast.css — FanCast podcast page styles
   Sections: #hero, #casts, pagination
   ============================================================================= */

/* ── HERO ───────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 600px; max-height: 800px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% 0;
  will-change: transform;
}
.hero-bg picture,
.hero-bg img,
.hero-bg video {
  display: block;
  width: 100%; height: 100%;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-youtube {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-poster {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-ov {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 1;
}
.hero-cnt {
  position: absolute;
  bottom: 80px; left: var(--pp);
  max-width: 845px;
  z-index: 2;
}
.hero-eye {
  font-size: 16px; font-weight: 700; color: white;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 19px;
  opacity: 0; transform: translateY(20px);
  animation: castFu .7s .3s forwards;
}
.hero-ttl {
  font-size: 48px; font-weight: 900; color: white;
  line-height: 1.15;
  opacity: 0; transform: translateY(20px);
  animation: castFu .7s .5s forwards;
}
@keyframes castFu { to { opacity: 1; transform: translateY(0); } }

/* ── PODCAST GRID ───────────────────────────────────────────────────────────── */
#casts { background: white; }


.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cast-card {
  aspect-ratio: 384 / 520; border-radius: var(--rl);
  overflow: hidden; position: relative;
  background: var(--g01); cursor: pointer;
}
.cast-card__img {
  position: absolute; inset: 0;
  z-index: 1;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.cast-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cast-card:hover .cast-card__img { transform: scale(1.05); }
.cast-card__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 15%, rgba(0,0,0,.9) 100%);
}
.cast-card__media {
  position: absolute;
  z-index: 3;
  border: 0; background: #000;
}
.cast-card__media--iframe {
  inset: 0;
  width: 100%; height: 100%;
}
.cast-card__media--audio {
  left: 24px; right: 24px;
  bottom: 112px;
  width: calc(100% - 48px);
  height: 48px;
  background: transparent;
}
/* microphone button */
.cast-card__mic {
  position: absolute;
  top: calc(50% - 42px); left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
  cursor: pointer; z-index: 5; padding: 0;
}
.cast-card__mic[disabled] { opacity: .45; cursor: not-allowed; }
.cast-card:hover .cast-card__mic {
  background: rgba(255,255,255,.85);
  transform: translateX(-50%) scale(1.1);
}
.cast-card__play-icon {
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--preto);
  margin-left: 5px;
}
.cast-card__pause-icon {
  display: none;
  width: 18px; height: 24px;
  border-left: 6px solid var(--preto);
  border-right: 6px solid var(--preto);
}
.cast-card.is-playing .cast-card__mic {
  top: 24px; right: 24px; left: auto;
  transform: none;
  width: 48px; height: 48px;
}
.cast-card.is-playing .cast-card__play-icon { display: none; }
.cast-card.is-playing .cast-card__pause-icon { display: block; }
.cast-card.is-playing--youtube .cast-card__img,
.cast-card.is-playing--youtube .cast-card__overlay,
.cast-card.is-playing--youtube .cast-card__tag,
.cast-card.is-playing--youtube .cast-card__content,
.cast-card.is-playing--embed .cast-card__img,
.cast-card.is-playing--embed .cast-card__overlay,
.cast-card.is-playing--embed .cast-card__tag,
.cast-card.is-playing--embed .cast-card__content {
  opacity: 0;
  pointer-events: none;
}
/* duration tag */
.cast-card__tag {
  position: absolute; top: 24px; left: 32px;
  z-index: 4;
  background: var(--v); color: white;
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--r);
  transition: transform var(--t);
}
.cast-card:hover .cast-card__tag { transform: translateY(-2px); }
/* bottom content */
.cast-card__content {
  z-index: 4;
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  transition: transform var(--t);
}
.cast-card:hover .cast-card__content { transform: translateY(-4px); }
.cast-card__title {
  font-size: 32px; font-weight: 700; color: white;
  line-height: 1.2; margin-bottom: 15px;
}
.cast-card__views { font-size: 16px; font-weight: 300; color: white; }

/* ── PAGINATION ─────────────────────────────────────────────────────────────── */
.cast-pag {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px;
}
.cast-pag-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 400; color: var(--preto);
  transition: background var(--t), color var(--t); cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.cast-pag-btn:hover { background: var(--g02); }
.cast-pag-btn.active { background: var(--ve); color: white; font-weight: 700; }
.cast-pag-nav {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--g03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: none;
  transition: border-color var(--t), background var(--t);
}
.cast-pag-nav:hover { border-color: var(--preto); background: var(--g02); }
.cast-pag-nav svg { width: 16px; height: 16px; color: var(--preto); }
.cast-pag-ell { font-size: 14px; color: var(--preto); padding: 0 4px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-ttl  { font-size: 36px; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-menu, .nav-acts .btn-portal, .nav-acts .btn-srch { display: none; }
}
@media (max-width: 640px) {
  .hero-ttl  { font-size: 32px; }

  .cast-grid { grid-template-columns: 1fr; }
  .cast-card__title { font-size: 24px; }
}
