:root {
  --pb-bg: #0a0418;
  --pb-card: #140828;
  --pb-border: rgba(255,255,255,0.08);
  --pb-muted: #9d96b8;
  --pb-purple: #a855f7;
  --pb-blue: #38bdf8;
  --pb-pink: #ec4899;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--pb-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.company-logo {
  position: absolute;
  top: 14px;
  left: 28px;
  z-index: 10;
}

.company-logo img {
  height: 85px;
  width: auto;
}

.playbook {
  min-height: 100vh;
  padding: 70px 0 45px;
  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: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.pb-header {
  text-align: center;
  margin-bottom: 34px;
}

.pb-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-title-grad {
  background: linear-gradient(90deg, #8e24ff, #225cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pb-heading-content {
  max-width: 850px;
  margin: 16px auto 0;
  color: #d8c9ff;
  font-size: 17px;
  line-height: 1.7;
}

.pb-grid {
  display: grid;
  grid-template-columns: 1fr 315px;
  gap: 22px;
  align-items: start;
}

.player-card,
.playlist {
  background: var(--pb-card);
  border: 1px solid var(--pb-border);
  border-radius: 14px;
}

.player-card {
  padding: 14px;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-bottom {
  margin-top: 12px;
}

.watch-yt {
  display: inline-flex;
  color: var(--pb-purple);
  font-size: 13px;
  font-weight: 600;
}

.player-title {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 700;
}

.playlist {
  padding: 12px;
}

.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: 10px;
  border: 1px solid var(--pb-border);
}

.season-tab {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  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);
}

.ep-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.ep-list.hidden {
  display: none;
}

.ep {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
}

.ep:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--pb-border);
}

.ep.active {
  background: rgba(124,58,237,0.18);
  border-color: rgba(168,85,247,0.55);
}

.ep-thumb {
  width: 54px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ep-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ep-tag.pink {
  color: #ff3ea5;
}

.ep-tag.blue {
  color: #29b6ff;
}

.ep.active .ep-tag.pink {
  color: #ff4db2;
  text-shadow: 0 0 10px rgba(255, 62, 165, 0.4);
}

.ep.active .ep-tag.blue {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.ep-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .company-logo img {
    height: 70px;
  }

  .playbook {
    padding-top: 90px;
  }

  .pb-grid {
    grid-template-columns: 1fr;
  }

  .ep-list {
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .company-logo {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    justify-content: flex-start;
    
  }

  .company-logo img {
    height: 70px;
  }

  .playbook {
    padding: 28px 0 40px;
  }

  .pb-container {
    padding: 0 14px;
  }

  .pb-title {
    font-size: 27px;
  }

  .pb-heading-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .player-title {
    font-size: 18px;
  }

  .ep-list {
    max-height: none;
    overflow-y: visible;
  }

  .ep-title {
    white-space: normal;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .company-logo img {
    height: 54px;
  }

  .pb-title {
    font-size: 24px;
  }

  .pb-heading-content {
    font-size: 13px;
  }

  .season-tabs {
    grid-template-columns: 1fr;
  }

  .player-title {
    font-size: 16px;
  }
}