.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 16px;
  background: #000;
}

.player-shell .player {
  display: block;
  transition: opacity 0.2s, filter 0.2s;
}

.player-shell.is-locked .player {
  opacity: 0.22;
  filter: blur(2px);
}

.episode-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(140, 101, 255, 0.35), transparent 48%), rgba(5, 6, 13, 0.82);
  backdrop-filter: blur(5px);
}

.episode-gate[hidden] {
  display: none;
}

.episode-gate h3 {
  margin: 8px 0 4px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.episode-gate p {
  max-width: 560px;
  margin: 0 0 20px;
  color: #d7dbe7;
}

.gate-episode {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-wrap .episodes {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 16px 0 2px;
}

.player-wrap .episode {
  min-width: 0;
  padding: 9px 7px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.player-wrap .episode:hover {
  border-color: #59617e;
}

.player-wrap .episode.active {
  box-shadow: 0 0 0 2px rgba(255, 59, 107, 0.12);
}

.locked-episode {
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.download-episode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--cyan);
}

.download-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .player-wrap .episodes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .player-shell {
    min-height: 220px;
  }

  .episode-gate {
    padding: 18px;
  }

  .player-wrap .episodes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .player-wrap .episode {
    padding: 8px 4px;
    font-size: 11px;
  }

  .episode-prefix {
    display: none;
  }
}
