.playbook {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 82px 8%;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 35, 127, 0.18), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(21, 155, 222, 0.14), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(184, 59, 247, 0.1), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #fbf7ff 46%, #f7fcff 100%);
  color: #000000;
  font-family: "Roboto", Arial, sans-serif;
  box-sizing: border-box;
  isolation: isolate;
}

.playbook *,
.playbook *::before,
.playbook *::after {
  box-sizing: border-box;
}

/* Animated grid background */
.playbook::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 35, 127, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 155, 222, 0.075) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.4;
  animation: playbookGridMove 18s linear infinite;
  pointer-events: none;
  z-index: -3;
}

/* Large floating glow */
.playbook::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -190px;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 35, 127, 0.18), transparent 66%);
  filter: blur(8px);
  animation: playbookGlowFloat 9s ease-in-out infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes playbookGridMove {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 58px 58px, 58px 58px;
  }
}

@keyframes playbookGlowFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-34px, 24px) scale(1.08);
  }
}

/* Container */
.pb-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
}

/* Decorative light beam */
.pb-container::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 120px;
  left: -240px;
  top: 130px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 35, 127, 0.12),
    rgba(21, 155, 222, 0.11),
    transparent
  );
  transform: rotate(-18deg);
  filter: blur(4px);
  animation: playbookBeamMove 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Decorative orbit */
.pb-container::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: 50px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at center,
      transparent 44%,
      rgba(21, 155, 222, 0.12) 45%,
      transparent 60%
    ),
    conic-gradient(
      from 40deg,
      rgba(99, 35, 127, 0.18),
      transparent 28%,
      rgba(21, 155, 222, 0.18),
      transparent 58%,
      rgba(99, 35, 127, 0.12),
      transparent
    );
  mask: radial-gradient(circle, transparent 48%, #000 49%);
  -webkit-mask: radial-gradient(circle, transparent 48%, #000 49%);
  animation: playbookOrbitReverse 18s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes playbookBeamMove {
  0%,
  100% {
    transform: translateX(0) rotate(-18deg);
    opacity: 0.6;
  }

  50% {
    transform: translateX(80px) rotate(-18deg);
    opacity: 1;
  }
}

@keyframes playbookOrbitReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Header */
.pb-header {
  position: relative;
  max-width: 900px;
  margin: 0 auto 46px;
  text-align: center;
}

.pb-header::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 160px;
  left: -120px;
  top: -52px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 35, 127, 0.18);
  background:
    radial-gradient(circle, transparent 52%, rgba(99, 35, 127, 0.07) 53%, transparent 70%),
    conic-gradient(
      from 120deg,
      rgba(99, 35, 127, 0.34),
      transparent 22%,
      rgba(21, 155, 222, 0.34),
      transparent 52%,
      rgba(99, 35, 127, 0.24),
      transparent 78%,
      rgba(21, 155, 222, 0.28)
    );
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  animation: playbookSpin 16s linear infinite;
  pointer-events: none;
}

.pb-header::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -48px;
  top: -28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(99, 35, 127, 0.15), rgba(21, 155, 222, 0.12));
  border: 1px solid rgba(99, 35, 127, 0.2);
  box-shadow: 0 22px 55px rgba(99, 35, 127, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: rotate(18deg);
  animation: playbookGlassFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.pb-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  font-family: "Roboto", Arial, sans-serif;
  color: #000000;
  letter-spacing: -0.4px;
}



.pb-title-grad {
  color: #000000;
  font-family: "Roboto", Arial, sans-serif;
}

@keyframes playbookGlassFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(18deg);
  }

  50% {
    transform: translate(-16px, 18px) rotate(30deg);
  }
}

@keyframes playbookSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Layout */
.pb-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 34px;
  align-items: start;
}

/* Soft central glow behind both blocks */
.pb-grid::before {
  content: "";
  position: absolute;
  inset: 40px 8%;
  border-radius: 44px;
  background:
    radial-gradient(circle at 35% 30%, rgba(99, 35, 127, 0.09), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(21, 155, 222, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent);
  border: 1px solid rgba(99, 35, 127, 0.1);
  pointer-events: none;
  z-index: -1;
}

/* Cards */
.player-card,
.playlist {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid #000000;
  border-radius: 28px;
  padding: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 80px rgba(67, 26, 88, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Card shine */
.player-card::before,
.playlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.76) 50%,
      transparent 62%,
      transparent 100%
    );
  background-size: 240% 100%;
  background-position: -160% 0;
  opacity: 0.55;
  animation: playbookCardShine 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.player-card::after,
.playlist::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(99, 35, 127, 0.08);
  pointer-events: none;
}

@keyframes playbookCardShine {
  0%,
  55% {
    background-position: -160% 0;
  }

  100% {
    background-position: 160% 0;
  }
}

/* Player */
.player-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
  border: 1.8px solid #000000;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.18),
    0 0 0 8px rgba(99, 35, 127, 0.06);
}

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

.player-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.watch-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
}

.watch-yt::before {
  content: "▶";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #63237f, #159bde);
  box-shadow: 0 10px 24px rgba(99, 35, 127, 0.22);
}

.watch-yt:hover {
  color: #63237f;
  transform: translateY(-2px);
}

.player-title {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  color: #080606;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 650;
  line-height: 1.3;
  word-break: normal;
}

/* Playlist */
.playlist {
  padding: 18px;
}

/* Tabs */
.season-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(99, 35, 127, 0.07);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.season-tab {
  width: 100%;
  border: 1.5px solid transparent;
  padding: 12px 14px;
  border-radius: 13px;
  background: transparent;
  color: rgba(8, 6, 6, 0.78);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  font-family: "Roboto", Arial, sans-serif;
  white-space: nowrap;
}

.season-tab:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.68);
}

.season-tab.active {
  background: linear-gradient(135deg, #63237f, #159bde);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(99, 35, 127, 0.22);
}

/* Episode List */
.ep-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ep-list::-webkit-scrollbar {
  width: 6px;
}

.ep-list::-webkit-scrollbar-track {
  background: rgba(99, 35, 127, 0.07);
  border-radius: 20px;
}

.ep-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #63237f, #159bde);
  border-radius: 20px;
}

.ep {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 17px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  overflow: hidden;
}

.ep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 35, 127, 0.08), rgba(21, 155, 222, 0.05));
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
}

.ep:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 35, 127, 0.32);
  box-shadow: 0 14px 32px rgba(99, 35, 127, 0.12);
}

.ep:hover::before {
  opacity: 1;
}

.ep.active {
  background: rgba(99, 35, 127, 0.1);
  border-color: rgba(99, 35, 127, 0.42);
  box-shadow: 0 16px 36px rgba(99, 35, 127, 0.14);
}

.ep-thumb {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 52px;
  border-radius: 11px;
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

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

/* Important for ellipsis */
.ep-meta {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.ep-tag {
  display: block;
  margin-bottom: 5px;
  color: #63237f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-title {
  display: block;
  width: 100%;
  color: #130d0d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.playlist-footer {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(99, 35, 127, 0.16);
  text-align: center;
  color: rgba(15, 10, 10, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

/* Small Desktop / Tablet */
@media (max-width: 1100px) {
  .playbook {
    padding: 72px 6%;
  }

  .pb-container::before,
  .pb-container::after {
    display: none;
  }

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

  .pb-grid::before {
    inset: 20px 4%;
  }

  .playlist {
    max-width: 100%;
  }

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

/* Tablet */
@media (max-width: 768px) {
  .playbook {
    padding: 62px 22px;
    min-height: auto;
  }

  .playbook::after,
  .pb-header::before,
  .pb-header::after {
    display: none;
  }

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

  .pb-title {
    font-size: clamp(28px, 7vw, 38px);
  }

  .player-card,
  .playlist {
    padding: 14px;
    border-radius: 22px;
  }

  .player-frame {
    border-radius: 16px;
  }

  .pb-grid {
    gap: 22px;
  }

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

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

/* Mobile */
@media (max-width: 520px) {
  .playbook {
    padding: 54px 16px;
  }

  .pb-title {
    font-size: 30px;
    line-height: 1.15;
  }

  .player-card,
  .playlist {
    padding: 12px;
    border-radius: 19px;
  }

  .player-frame {
    border-radius: 14px;
  }

  .player-bottom {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .watch-yt {
    font-size: 12px;
  }

  .watch-yt::before {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

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

  .season-tabs {
    gap: 6px;
    padding: 5px;
    border-radius: 15px;
  }

  .season-tab {
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 11px;
  }

  .ep-list {
    max-height: 360px;
    gap: 9px;
  }

  .ep {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
    border-radius: 14px;
  }

  .ep-thumb {
    width: 70px;
    height: 44px;
    border-radius: 8px;
  }

  .ep-tag {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .ep-title {
    font-size: 12.5px;
    line-height: 1.25;
  }

  .playlist-footer {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
  .playbook {
    padding: 50px 12px;
  }

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

  .player-card,
  .playlist {
    padding: 10px;
  }

  .season-tab {
    font-size: 11px;
    padding: 9px 6px;
  }

  .ep {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
  }

  .ep-thumb {
    width: 62px;
    height: 40px;
  }

  .ep-title {
    font-size: 12px;
  }
}