:root {
  --pb-bg: #0a0418;
  --pb-card: #140828;
  --pb-card-2: #1a0d33;
  --pb-border: rgba(255,255,255,0.08);
  --pb-border-strong: rgba(255,255,255,0.14);
  --pb-text: #ffffff;
  --pb-muted: #9d96b8;
  --pb-purple: #a855f7;
  --pb-purple-2: #7c3aed;
  --pb-pink: #ec4899;
  --pb-blue: #38bdf8;
  --pb-cyan: #22d3ee;
  --pb-orange: #f97316;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.playbook {
  min-height: 100vh;
  padding: 80px 0 40px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(129, 64, 241, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(192,38,211,0.12), transparent 60%),
    var(--pb-bg);
}
.pb-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 30px 30px;
  padding-bottom: -30px;
  
}

.pb-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 34px;
  margin-bottom: 40px;
}
.pb-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--pb-blue);
  margin-bottom: 16px;
}
.pb-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.pb-title-grad {
    background: linear-gradient(90deg, #8e24ff, #225cff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.pb-sub {
  color: var(--pb-muted);
  font-size: 14px;
  padding-bottom: 14px;
  max-width: 260px;
  text-align: right;
}

/* Grid */
.pb-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

/* Player card */
.player-card {
  background: var(--pb-card);
  border: 1px solid var(--pb-border);
  border-radius: 18px;
  padding: 18px;
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.badge-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--pb-border-strong);
}
.badge-purple { background: rgba(168,85,247,0.18); color: #c4b5fd; border: 1px solid rgba(168,85,247,0.4); }
.badge-pink   { background: rgba(236,72,153,0.18); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.4); }
.badge-blue   { background: rgba(56,189,248,0.18); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.4); }
.badge-cyan   { background: rgba(34,211,238,0.18); color: #67e8f9; border: 1px solid rgba(34,211,238,0.4); }
.badge-orange { background: rgba(249,115,22,0.18); color: #fdba74; border: 1px solid rgba(249,115,22,0.4); }

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.player-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.tag-pink   { color: #ec4899; }
.tag-purple { color: #a855f7; }
.tag-blue   { color: #38bdf8; }
.tag-cyan   { color: #22d3ee; }
.tag-orange { color: #f97316; }
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pb-muted);
  display: inline-block;
}
.watch-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pb-purple);
  font-size: 13px;
  font-weight: 600;
}
.watch-yt:hover { color: #c4b5fd; }

.player-title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

/* Playlist sidebar */
.playlist {
  background: var(--pb-card);
  border: 1px solid var(--pb-border);
  border-radius: 18px;
  padding: 14px;
}
.season-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.25);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--pb-border);
}
.season-tab {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}
.season-tab .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--pb-muted);
}
.season-tab.active {
  background: rgba(124,58,237,0.25);
  color: #fff;
  border: 1px solid rgba(168,85,247,0.5);
}
.season-tab.active .count {
  background: rgba(168,85,247,0.4);
  color: #fff;
}

.ep-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.ep-list.hidden { display: none; }
.ep-list::-webkit-scrollbar { width: 6px; }
.ep-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ep {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.ep:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--pb-border);
}
.ep.active {
  background: rgba(124,58,237,0.15);
  border-color: rgba(168,85,247,0.45);
}
.ep.locked {
  cursor: not-allowed;
  opacity: 0.75;
}
.ep-thumb {
  width: 64px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,85,247,0.12);
  color: var(--pb-purple);
}
.ep-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ep-meta .row { display: flex; gap: 6px; align-items: center; }
.ep-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.ep-tag.pink   { color: #ec4899; }
.ep-tag.purple { color: #a855f7; }
.ep-tag.blue   { color: #38bdf8; }
.ep-tag.cyan   { color: #22d3ee; }
.ep-tag.orange { color: #f97316; }
.ep-tag.soon {
  color: #c4b5fd;
  background: rgba(168,85,247,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.ep-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pb-border);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--pb-muted);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pb-header { grid-template-columns: 1fr; }
  .pb-sub { text-align: left; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .playbook { padding: 40px 0 60px; }
  .pb-container { padding: 0 16px; }
  .player-card, .playlist { padding: 12px; }
}
