.channel-layout {
  display: flex;
  min-height: 100vh;
  > * {
    flex-basis: 100%;
  }
}
.channel-list-wrapper {
  h1 {
    font-size: 1.75rem;
  }
  padding: var(--space-sm);
}
.channel {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--color-background-card);
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 250ms;
  border: var(--border-width) solid var(--color-background-card);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  &[data-playing="true"] {
    border-color: var(--color-link-default);
  }
}
.play-channel {
  all: unset;
  cursor: pointer;
  height: 100%;
  background: var(--color-background);
}
.channel-title {
  font-weight: 800;
}
.channel-category {
  color: var(--color-ui);
  font-size: 0.9rem;
  font-weight: 600;
}
.label {
  color: var(--color-ui);
  margin: var(--space-sm) 0 0.25rem 0;
}
.player-wrapper {
  background: var(--color-background-intense);
  padding: var(--space-sm);
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}
.sticky {
  position: sticky;
  top: var(--space-sm);
}
/*
Style for the new audio player
*/
#player {
  width: 100%;
  margin-bottom: var(--space-sm);
}
/*
================================
Mobile-Friendly & Responsive Rules
================================
*/
@media (max-width: 800px) {
  .channel-layout {
    /* Stack the main columns vertically on mobile */
    flex-direction: column;
  }

  .player-wrapper {
    /* Move the player to the top of the screen */
    order: 1;
  }

  .channel-list-wrapper {
    /* Move the channel list below the player */
    order: 2;
  }

  .sticky {
    /* The player doesn't need to be sticky in a stacked layout */
    position: static;
  }

  #channel-search {
    /* Make the search bar easier to use on mobile */
    width: 100%;
  }
}
/*
================================
Now Playing Metadata
================================
*/
#now-playing-meta {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  min-height: 4rem;
  /* MODIFICATION: Use flexbox for layout */
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* MODIFICATION: Style for the new album art image */
#album-art-img {
  width: 5rem;
  height: 5rem;
  border-radius: var(--border-radius);
  object-fit: cover;
  display: none; /* Hidden by default */
}

#song-title {
  font-weight: bold;
  font-size: 1.1rem;
}

#song-artist {
  color: var(--color-ui-intense);
}
.channel-title {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.explicit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-background-intense);
  border-radius: 3px;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
}

/*
================================
Desktop Layout Rules
================================
*/
@media (min-width: 901px) {
  /* Two-column grid for the channel list */
  .channel-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .channel-list .channel {
    margin: 0;
  }

  /* NEW: Set the wrapper widths to a 2/3 and 1/3 split */
  .channel-layout > .channel-list-wrapper {
    flex-basis: 66.667%;
  }

  .channel-layout > .player-wrapper {
    flex-basis: 33.333%;
  }
}
/* Channel Number Styles */
.channel-number {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ui);
  margin-bottom: 0.2rem;
}