:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #e0e0e0;
  --accent: #bb86fc;
  --accent-dark: #9b6ed6;
  --accent-glow: #d4b3ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  padding: 16px;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

h1 {
  color: var(--accent);
  font-size: 1.8rem;
}

/* Back Button Styles */
.back-button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(187, 134, 252, 0.35);
}

.back-button:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(187, 134, 252, 0.5);
}

.back-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(187, 134, 252, 0.3);
}

/* Floating version – uncomment if you prefer bottom-right instead */
.back-button.floating {
  /* position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999; */
}

/* Rest of your original styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.player-area {
  position: relative;
  width: 100%;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  padding-top: 56.25%;
}

.player-area iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#lockedOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#lockedOverlay button {
  margin-top: 20px;
  padding: 14px 32px;
  font-size: 1.1rem;
  background: var(--accent);
  color: black;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

#clickBlocker {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  background: transparent;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px;
}

.video-box {
  background: var(--surface);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}

.video-box.active {
  border-color: var(--accent);
  background: #2a1e38;
}

.video-box:hover {
  background: #252525;
}

.video-box h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #ddd;
}

.video-box p {
  font-size: .85rem;
  color: #aaa;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .playlist {
    max-height: 50vh;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
}