.main-container {
  display: flex;
  height: 100vh;
  padding: 20px; /* new - gives breathing room */
  box-sizing: border-box;
}





.left-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 160px; /* was 80px - lowered it */
  height: calc(100vh - 40px); /* adjusted for main-container padding */
  margin-right: 40px; /* new - space from albums */
}





.right-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 40px; /* same vertical alignment as left */
  height: calc(100vh - 40px);
}





.card {
  background-color: #1c1c1c;
  padding: 20px 30px 30px; /* reduced top padding */
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}


.artist-info h2 {
  font-size: 2rem;
  margin-bottom: 5px; /* reduced from 15px */
}


.artist-info .chain {
  font-style: italic;
  margin-bottom: 20px;
  color: #ccc;
}

.artist-info .error {
  color: #ff4d4f;
  margin-bottom: 20px;
}

.artist-info input[type="text"] {
  width: 95%;
  padding: 12px 20px; /* reduce padding to match button height */
  height: 20px;        /* match height to button */
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: #2a2a2a;
  color: white;
}


.artist-info button {
  background-color: #1db954;
  border: none;
  padding: 0 20px;
  height: 50px;
  width: 100%;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}


.artist-info button:hover {
  background-color: #1ed760;
}

.album-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.album-scroll-container {
  overflow-y: auto;
  max-height: 80vh; /* increased from 70vh to extend album list */
  padding-right: 8px;
  padding-top: 10px; /* space from album title */
}






.album-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
}

.album-card img {
  width: 100%;
  border-radius: 12px;
}

.album-name {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  color: white;
}

.tracklist {
  display: none;
  margin-top: 10px;
  padding-left: 15px;
  font-size: 0.95rem;
}

body.home {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: url('/static/bg.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}


.center-content {
  text-align: center;
}

.title {
  font-size: 64px;
  font-weight: 700;
  color: #1DB954;
  margin-bottom: 0.5em;
}

.subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 2em;
}

.start-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.start-form input {
  width: 300px;
  max-width: 80%;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  background-color: #2a2a2a;
  color: white;
}

.start-button {
  width: 400px;
  max-width: 90%;
  padding: 14px;
  font-size: 20px;
  font-weight: bold;
  background-color: #1DB954;
  color: black;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.start-button:hover {
  background-color: #1ed760;
  transform: scale(1.03);
}



.top-right-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.icon-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.icon-button:hover {
  color: #fff;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #121212;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1f1f1f;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #357ABD;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: #cfcfcf;
    text-align: center;
}

.artist-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.artist-options form {
    display: flex;
    flex-direction: column;
}

.artist-options button {
    margin-top: 8px;
}
#albumSidebar {
  position: fixed;
  top: 80px;
  right: 0;
  width: 300px;
  max-height: 80vh;
  background-color: #1e1e1e;
  border-left: 2px solid #333;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

#albumContent {
  padding: 10px;
  display: none;
  height: 100%;
}

#albumToggle {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid #444;
}

.album-scroll-container {
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 8px;
}

.album-card {
  background-color: #292929;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  color: #fff;
}

.album-card img {
  width: 100%;
  border-radius: 6px;
}

.album-name {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: bold;
}

.tracklist {
  display: none;
  font-size: 0.85rem;
  text-align: left;
  padding-left: 10px;
  margin-top: 6px;
}

body.choose-artist-body {
  background-color: #0f0f0f;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}


.center-box {
  background-color: #1a1a1a;
  border-radius: 20px;
  padding: 40px;
  width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.song-preview {
  display: flex;
  align-items: center;
  background-color: #141414;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.album-cover {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-right: 20px;
}

.song-title {
  font-size: 24px;
  font-weight: 700;
  color: #00FF5B;
  margin: 0;
}

.byline {
  color: #ccc;
  margin: 5px 0 0;
}

.chain {
  font-style: italic;
  color: #aaa;
  margin: 10px 0 20px;
}

.radio-option {
  font-size: 16px;
  margin: 8px 0;
}

.start-button {
  margin-top: 20px;
  background-color: #00FF5B;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  color: black;
  transition: background 0.3s ease;
}

.start-button:hover {
  background-color: #00cc4c;
}

body.win-body {
  background-color: #0f0f0f;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.center-box {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  text-align: center;
  max-width: 800px;
  width: 90%;
}

.win-title {
  color: #00FF66;
  font-size: 3em;
  margin-bottom: 20px;
}

.step-summary {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.chain-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.chain-artist {
  background-color: #2a2a2a;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1em;
}

.chain-arrow {
  font-size: 1.5em;
  color: #00FF66;
}

.start-button {
  background-color: #00FF66;
  color: black;
  padding: 12px 24px;
  font-size: 1em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.start-button:hover {
  background-color: #00cc55;
}

/* Mobile-only layout changes */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    height: auto; /* allow natural height instead of forcing full screen */
  }

  .left-panel {
    margin-right: 0; /* remove gap between panels */
    padding-top: 40px; /* reduce extra space on mobile */
    height: auto;
  }

  .right-panel {
    padding-top: 20px;
    height: auto;
  }

  .album-scroll-container {
    max-height: none; /* allow full list to scroll with page */
    overflow-y: visible;
  }
  input[type="text"] {
        width: 80%;       /* shrink to 80% of screen */
        max-width: 250px; /* cap max size */
        display: block;
        margin: 0 auto;   /* center it */
        font-size: 16px;  /* avoid zoom on iOS */
    }
}

