@font-face {
  font-family: 'Poppins';
  src: url('./Fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'Poppins';
  src: url('./Fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
}

:root {
  --bg: #0f0f0f;
  --fg: #fff;
  --accent: #d4ff00;
  --radio-blue: #004a98;
  --soft-orange: #ffb27a;
  --page-width: calc(70vw + 10rem);
  --gutter: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
a img {
  pointer-events: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ── Cabecera ── */
.top-row,
.top-row-2,
.back-row,
.header-banner-141,
.wrap {
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 30px;
  margin-bottom: 1rem;
}
.top-row img {
  height: auto;
  display: block;
}
.asset-185 { width: 50%; margin-right: 20px; }
.asset-175 { width: 25%; }
.asset-174 { width: 3%; }
.asset-176 { width: 21%; }

.top-row-2 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.top-row-2-line {
  height: 3px;
  background: var(--fg);
}
.top-row-2-line.left { flex: 3; }
.top-row-2-line.right { flex: 1; }
.top-row-2 img {
  width: 50%;
  height: auto;
  display: block;
  position: relative;
  top: 8px;
}

.header-banner-141 {
  display: block;
  margin-bottom: 1rem;
}
.header-banner-141 img {
  width: 100%;
  height: auto;
  display: block;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.back-row-line {
  flex: 1;
  height: 3px;
  background: var(--fg);
}
.back-btn {
  background: var(--fg);
  color: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.back-btn:hover { opacity: 0.8; }

#error {
  color: #ff4444;
  display: none;
}

/* ── Bloques ── */
.block {
  padding: 3rem 0;
  border-top: 3px solid var(--fg);
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.block-title-img {
  height: 3.5rem;
  width: auto;
  display: block;
}
.block-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.block-logo {
  height: 3.5rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.block-text-img {
  width: 60%;
  height: auto;
  display: block;
  margin-top: 1.5rem;
}
.block-text-img.wide {
  width: 70%;
  margin-top: 0;
}

.block-text {
  max-width: 60%;
  margin-top: 1.5rem;
  color: var(--soft-orange);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  text-wrap: pretty;
}
.block-text.wide {
  max-width: 75%;
  margin-top: 0;
  font-size: 2.4rem;
}
.block-text a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Barra de texto editable */
.text-bar {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Ràdio ── */
.radio-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: var(--radio-blue);
  border-radius: 24px;
}
.radio-play-btn {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border: 3px solid var(--fg);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.radio-play-btn svg { width: 100%; height: 100%; display: block; }
.radio-play-btn:hover { transform: scale(1.06); opacity: 0.85; }
.radio-vol-icon { display: flex; align-items: center; flex-shrink: 0; }
.radio-vol-icon svg { width: 2rem; height: 2rem; }

.radio-vol {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.radio-vol::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
.radio-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}
.radio-vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}
.radio-vol:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* ── Grid pòdcast ── */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem var(--gutter);
  margin-top: 2.5rem;
}
.slot { min-width: 0; }
.podcast-grid .carousel-track-container { aspect-ratio: 307 / 227; }
.podcast-grid .carousel-track { height: 100%; }
.podcast-grid .carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Xarxes ── */
.social .block-header {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social .social-icons {
  margin-left: auto;
  margin-right: auto;
}
.social-title {
  text-align: center;
}
.social-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  width: 70%;
}
.social-icons img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.social-icons a:last-child img { width: 80%; }

/* ── Skeleton ── */
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2b2b2b 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.5s infinite;
  border-radius: 8px;
}
.sk-img {
  width: 100%;
  aspect-ratio: 307 / 227;
}
.sk-radio {
  width: 100%;
  height: 7rem;
  border-radius: 24px;
}
.sk-line {
  width: 70%;
  height: 1.1rem;
}
.sk-line.short { width: 40%; }
.sk-text-img {
  width: 100%;
  aspect-ratio: 1024 / 686;
}
.sk-title {
  width: 40%;
  height: 1rem;
  margin: 0.75rem auto 0;
}

/* ── Carousel ── */
.carousel h2 {
  font-size: 1.3rem;
  margin-top: 0.75rem;
  text-align: center;
}
.carousel-wrapper {
  position: relative;
  width: 100%;
}
.carousel-track-container {
  overflow: hidden;
  border-radius: 8px;
  cursor: grab;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel-card {
  flex: 0 0 100%;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
}
.carousel-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--fg); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel-btn img { width: 1rem; display: block; }
.carousel-btn:hover { opacity: 0.75; transform: translateY(-50%) scale(1.1); }
.carousel-btn.next { right: -1.5rem; }
.carousel-btn.prev { left: -1.5rem; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root {
    --page-width: 90%;
    --gutter: 2.5rem;
  }
  .top-row, .top-row-2 { gap: 0.6rem; }
  .asset-185 { width: 40%; margin-right: 0; }
  .asset-175 { width: 22%; }
  .asset-176 { width: 18%; }
  .top-row-2 img { width: 40%; }
  .back-row { font-size: 1rem; }
  .back-btn { font-size: 0.8rem; padding: 0.25rem 0.6rem; }
  .block { padding: 2.25rem 0; }
  .block-title { font-size: 2rem; }
  .block-title-img, .block-logo { height: 2.75rem; }
  .block-text-img { width: 75%; }
  .block-text-img.wide { width: 85%; }
  .block-text { max-width: 80%; font-size: 1.6rem; }
  .block-text.wide { max-width: 90%; font-size: 1.9rem; }
  .social-icons { width: 85%; gap: 24px; }
}

/* ── Mòbil ── */
@media (max-width: 600px) {
  :root {
    --page-width: 100%;
    --gutter: 1rem;
  }
  .top-row, .top-row-2, .back-row, .header-banner-141, .wrap {
    padding: 0 1rem;
  }
  .top-row { gap: 0.4rem; }
  .asset-185 { width: 40%; }
  .asset-175 { width: 24%; }
  .asset-174 { width: 5%; }
  .asset-176 { width: 20%; }
  .top-row-2 img { width: 45%; position: static; }

  .back-row { font-size: 0.7rem; gap: 0.5rem; }
  .back-row-line { height: 2px; }
  .back-btn { font-size: 0.7rem; padding: 0.2rem 0.5rem; }

  .block { padding: 1.75rem 0; border-top-width: 2px; }
  .block-header { margin-bottom: 1.25rem; gap: 1rem; }
  .block-title { font-size: 1.35rem; }
  .block-title-img, .block-logo { height: 1.9rem; }
  .block-text-img { width: 100%; margin-top: 1.25rem; }
  .block-text-img.wide { width: 100%; }
  .block-text { max-width: none; margin-top: 1.25rem; font-size: 1.25rem; }
  .block-text.wide { max-width: none; margin-top: 0; font-size: 1.45rem; }

  .text-bar { padding: 0.75rem 1rem; font-size: 0.95rem; }

  .radio-bar { gap: 0.75rem; padding: 0.9rem 1.1rem; border-radius: 18px; }
  .radio-play-btn { width: 3.25rem; height: 3.25rem; border-width: 2px; }
  .radio-vol-icon svg { width: 1.5rem; height: 1.5rem; }
  .radio-vol::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8.5px; }
  .radio-vol::-moz-range-thumb { width: 20px; height: 20px; }
  .sk-radio { height: 5rem; border-radius: 18px; }

  .podcast-grid { margin-top: 1.5rem; row-gap: 1.25rem; }
  .carousel h2 { font-size: 0.8rem; }
  .carousel-btn { display: none; }

  .social-icons { width: 100%; gap: 14px; }
}

/* Contenido de WordPress dentro de la barra de texto */
.text-bar > * + * { margin-top: 0.6em; }
.text-bar a { color: var(--accent); }
.text-bar img { max-width: 100%; height: auto; }
