body {
  background: #0d0d0d;
  color: #eee;
  font-family: Arial, sans-serif;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  margin-bottom: 10px;
  color: #0af;
}

/* Unified video container */
#videoContainer {
  background: #3a3a3a;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

video {
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 10px;
  display: block;
  margin: auto;
}

/* Description pill */
#descriptionBox {
  margin-top: 15px;
  background: #1c1c1c;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 15px;
  color: #ccc;
  text-align: center;
  display: inline-block;
  max-width: 90%;
}

/* Recently Watched */
#recentContainer {
  background: #3a3a3a;
  padding: 15px;
  border-radius: 10px;
  margin-top: 25px;
}

#recentHeader {
  cursor: pointer;
  font-size: 18px;
  margin-bottom: 10px;
  color: #0af;
  display: flex;
  align-items: center;
  gap: 8px;
}

#recentRow {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
#recentRow::-webkit-scrollbar {
  display: none;
}

.recent-pill {
  width: 60px;
  height: 60px;
  background: #1c1c1c;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.recent-pill img {
  width: 70%;
  height: auto;
}

.recent-pill:hover {
  transform: scale(1.1);
}

/* 3-column grid for networks */
#channelSections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

/* NOTE: expanded stays in its column now */
/* (no grid-column override for .expanded) */

/* Group panel */
article.panel {
  background: #3a3a3a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #222;
  transition: 0.2s;
  box-sizing: border-box;
}

article.panel header {
  cursor: pointer;
  padding-bottom: 10px;
}

article.panel header h2 {
  margin: 0;
  color: #0af;
}

/* Horizontal carousel wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Arrow buttons */
.arrow-btn {
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.arrow-btn:hover {
  color: #fff;
}

/* Horizontal row */
.row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  flex-grow: 1;
}
.row::-webkit-scrollbar {
  display: none;
}

/* Channel tiles */
.channel {
  width: 150px;
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pill {
  background: #1c1c1c;
  border-radius: 50px;
  padding: 18px;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.pill img {
  width: 80%;
  height: auto;
  transition: transform 0.25s ease;
}

.channel:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.channel:hover .pill img {
  transform: scale(1.08);
}

.channel-name {
  margin-top: 8px;
  font-size: 14px;
  color: #ccc;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-playing .pill {
  border: 2px solid #0f0;
  box-shadow: 0 0 10px #0f0;
}

/* Controls */
#controls {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

select, input {
  background: #111;
  color: #eee;
  border: 1px solid #333;
  padding: 6px 10px;
  border-radius: 4px;
}

.expandCollapseBtn {
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.expandCollapseBtn:hover {
  background: #222;
}