/* ==========================================================================
   Gollowers — GOLLOWERS TV
   ========================================================================== */

body.go-tv {
  --tv-bg: #FAFAF8;
  --tv-surface: #FFFFFF;
  --tv-text: #141416;
  --tv-muted: #6B6B72;
  --tv-border: #E6E4DF;
  background: var(--tv-bg);
  color: var(--tv-text);
}

[data-theme="dark"] body.go-tv {
  --tv-bg: #0B0B0C;
  --tv-surface: #141416;
  --tv-text: #F6F1EA;
  --tv-muted: #A0A0A8;
  --tv-border: #2A2A2E;
}

.go-tv__container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.go-tv-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--go-orange);
  font-family: var(--go-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.go-tv-title {
  margin: 0 0 16px;
  color: var(--tv-text);
  font-family: var(--go-font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.go-tv-intro {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--tv-muted);
  font-size: 17px;
  line-height: 1.65;
}

.go-tv-intro p:last-child {
  margin-bottom: 0;
}

/* Portada */
.go-tv-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--tv-border);
}

.go-tv-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.go-tv-hero__copy {
  min-width: 0;
}

.go-tv-hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: var(--tv-surface);
  box-shadow: 0 18px 40px rgba(11, 11, 12, 0.12);
}

.go-tv-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 578;
  object-fit: cover;
}

.go-tv-hero--archive {
  padding-bottom: 32px;
}

.go-tv-hero--archive .go-tv-title {
  font-size: clamp(40px, 5vw, 72px);
}

.go-tv-list {
  padding: 48px 0 96px;
}

.go-tv-heading {
  margin: 0;
  color: var(--tv-text);
  font-family: var(--go-font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

/* Grilla de episodios */
.go-episodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.go-episode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: var(--tv-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.go-episode:hover {
  border-color: var(--go-orange);
  transform: translateY(-2px);
}

.go-episode__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B0B0C;
}

.go-episode__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.go-episode:hover .go-episode__media img {
  transform: scale(1.03);
}

.go-episode__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.72);
  transform: translate(-50%, -50%);
}

.go-episode__play::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #FFFFFF;
  content: "";
  transform: translate(-40%, -50%);
}

.go-episode__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.go-episode__cat {
  color: var(--go-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.go-episode__cat:hover {
  color: var(--go-orange-dark);
}

.go-episode__title {
  margin: 0;
  color: var(--tv-text);
  font-family: var(--go-font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.go-episode__title a {
  color: inherit;
  text-decoration: none;
}

.go-episode__title a:hover {
  color: var(--go-orange);
}

.go-episode__date {
  margin-top: auto;
  color: var(--tv-muted);
  font-size: 12px;
}

.go-episode--featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}

.go-episode--featured .go-episode__media {
  aspect-ratio: 16 / 9;
}

.go-episode--featured .go-episode__body {
  justify-content: center;
  gap: 12px;
  padding: 32px;
}

.go-episode--featured .go-episode__title {
  font-size: clamp(30px, 3.4vw, 46px);
}

.go-episode--featured .go-episode__date {
  margin-top: 8px;
}

/* Paginación */
.go-tv .navigation.pagination {
  display: flex;
  justify-content: center;
}

.go-tv .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.go-tv .page-numbers {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: var(--tv-surface);
  color: var(--tv-text);
  font-weight: 700;
  text-decoration: none;
}

.go-tv .page-numbers:hover {
  border-color: var(--tv-text);
}

.go-tv .page-numbers.current {
  border-color: var(--go-orange);
  background: var(--go-orange);
  color: var(--go-on-orange);
}

.go-tv .page-numbers:focus-visible {
  outline: 2px solid var(--go-purple);
  outline-offset: 2px;
}

.go-tv-empty {
  margin: 32px 0 48px;
  padding: 64px 24px;
  border: 1px dashed var(--tv-border);
  border-radius: 4px;
  color: var(--tv-muted);
  text-align: center;
}

/* Entrada individual */
.go-single__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 140px 0 48px;
  background: #0B0B0C center / cover no-repeat;
  color: #F6F1EA;
}

.go-single__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.75) 45%, rgba(11, 11, 12, 0.98) 100%);
}

.go-single__hero-inner {
  position: relative;
  z-index: 1;
}

.go-single__back {
  display: block;
  margin-bottom: 20px;
  color: rgba(246, 241, 234, 0.85);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.go-single__back:hover {
  color: var(--go-white);
}

.go-single__title {
  max-width: 20ch;
  margin: 0 0 12px;
  color: #F6F1EA;
  font-family: var(--go-font-display);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.go-single__meta {
  margin: 0;
  color: rgba(246, 241, 234, 0.8);
  font-size: 13px;
}

.go-single__video {
  position: relative;
  z-index: 2;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: -72px auto 48px;
  overflow: hidden;
  border: 4px solid var(--tv-bg);
  border-radius: 4px;
  background: #000000;
}

.go-single__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.go-single__body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.go-single__content {
  color: var(--tv-text);
  font-size: 17px;
  line-height: 1.75;
}

.go-single__content > *:first-child {
  margin-top: 0;
}

.go-single__content p {
  margin: 0 0 24px;
}

.go-single__content h2,
.go-single__content h3 {
  margin: 40px 0 16px;
  color: var(--tv-text);
  font-family: var(--go-font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.go-single__content a {
  color: var(--go-orange);
}

.go-single__content img,
.go-single__content iframe {
  max-width: 100%;
}

.go-single__content .wp-block-embed {
  margin: 0 0 32px;
}

.go-single__content .wp-block-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.go-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--tv-border);
}

.go-single__tags a {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  color: var(--tv-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.go-single__tags a:hover {
  border-color: var(--go-orange);
  color: var(--go-orange);
}

.go-related {
  margin-top: 72px;
}

.go-related h2 {
  margin: 0 0 24px;
  color: var(--tv-text);
  font-family: var(--go-font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.go-related .go-episodes {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .go-tv-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .go-tv-hero__media {
    order: -1;
  }

  .go-episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .go-episode--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .go-tv__container {
    width: min(100% - 32px, 1280px);
  }

  .go-tv-hero {
    padding: 40px 0 32px;
  }

  .go-tv-hero__inner {
    gap: 24px;
  }

  .go-tv-title {
    font-size: clamp(40px, 12vw, 60px);
  }

  .go-tv-list {
    padding: 32px 0 64px;
  }

  .go-episodes {
    grid-template-columns: 1fr;
  }

  .go-episode--featured {
    display: flex;
    grid-column: 1 / -1;
  }

  .go-episode--featured .go-episode__media {
    aspect-ratio: 16 / 9;
  }

  .go-episode--featured .go-episode__body {
    padding: 18px 20px 20px;
  }

  .go-single__hero {
    min-height: 360px;
    padding: 110px 0 32px;
  }

  .go-single__title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .go-single__video {
    margin: -40px auto 32px;
    border-width: 0;
    border-radius: 0;
  }

  .go-single__body {
    padding: 8px 0 64px;
  }

  .go-related {
    margin-top: 48px;
  }
}

/* Búsqueda y 404 */
.go-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin: 8px 0 0;
}

.go-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: var(--tv-surface);
  color: var(--tv-text);
  font-size: 15px;
}

.go-search-results {
  display: grid;
  gap: 16px;
  margin: 32px 0 48px;
}

.go-search-result {
  padding: 20px 24px;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: var(--tv-surface);
}

.go-search-result h2 {
  margin: 0 0 8px;
  font-family: var(--go-font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.go-search-result h2 a {
  color: var(--tv-text);
  text-decoration: none;
}

.go-search-result p {
  margin: 0 0 12px;
  color: var(--tv-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Página Nosotros */
.go-tv .elementor-section-boxed > .elementor-container {
  max-width: 1290px;
}

.go-tv .go-btn .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid var(--go-orange);
  border-radius: 4px;
  background: var(--go-orange);
  color: var(--go-on-orange);
  font-family: var(--go-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.go-tv .go-btn--secondary .elementor-button {
  background: transparent;
  border-color: var(--go-ink);
  color: var(--go-ink);
}

.go-tv .go-btn .elementor-button:hover,
.go-tv .go-btn .elementor-button:focus-visible {
  background: var(--go-purple);
  border-color: var(--go-purple);
  color: var(--go-white);
}

.go-about-copy {
  max-width: 760px;
}

.go-about-copy p {
  margin: 0 0 20px;
  color: var(--tv-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Eyebrows y titulares de TV/Nosotros legibles en claro */
.go-tv .go-tv-hero .go-tv-eyebrow {
  color: var(--go-orange-dark);
}

[data-theme="dark"] .go-tv .go-tv-hero .go-tv-eyebrow {
  color: var(--go-orange);
}

.go-single__hero .go-tv-eyebrow {
  color: var(--go-orange) !important;
}

.go-tv .go-tv-title .elementor-heading-title,
.go-tv .go-tv-heading .elementor-heading-title {
  color: var(--tv-text) !important;
}

.go-tv .go-btn .elementor-button {
  width: auto !important;
}

.go-tv .go-episode__cat,
.go-tv .go-episode__link {
  color: var(--go-orange-dark);
}

[data-theme="dark"] .go-tv .go-episode__cat,
[data-theme="dark"] .go-tv .go-episode__link {
  color: var(--go-orange);
}

.go-tv .go-tv-title .elementor-heading-title {
  font-family: var(--go-font-display);
  font-size: clamp(48px, 7vw, 96px) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.go-tv .go-tv-heading .elementor-heading-title {
  font-family: var(--go-font-display);
  font-size: clamp(30px, 3vw, 44px) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

/* El wrapper de los botones de Elementor no hereda el estilo de botón */
.go-tv .elementor-widget-button.go-btn {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.go-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
