/* Player Container */
.player-container {
  background-color: #121212;
  color: #FFFFFF;
  font-family: 'CircularSp', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Player Content - Card Style */
.player-content {
  padding: 16px;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Album Art */
.album-art-section {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
  max-width: 200px;
}

.album-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  aspect-ratio: 1;
  object-fit: cover;
}

.album-image:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

/* Track Details */
.track-details {
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.song-title {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #FFFFFF;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.artist-name {
  font-size: 0.85em;
  font-weight: 400;
  margin: 0;
  color: #B3B3B3;
}

/* Progress Bar */
.player-progress-bar {
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.progress-time {
  font-size: 0.7em;
  color: #B3B3B3;
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}

.progress-time:first-child {
  text-align: right;
}

.progress-time:last-child {
  text-align: left;
}

.progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: #4d4d4d;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
  margin-top: -4px;
}

.progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
  border: none;
}

.progress-bar::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #1DB954 0%, #1DB954 var(--progress, 0%), #4d4d4d var(--progress, 0%), #4d4d4d 100%);
}

/* Player Controls (PREV, PLAY, NEXT) */
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.control-button {
  background: transparent;
  border: none;
  color: #B3B3B3;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.control-button:hover {
  color: #fff;
  transform: scale(1.1);
}

.control-button svg {
  width: 20px;
  height: 20px;
}

.control-button.play-pause {
  background-color: #1DB954;
  color: #000;
  width: 48px;
  height: 48px;
}

.control-button.play-pause:hover {
  transform: scale(1.06);
  background-color: #1ed760;
  color: #000;
}

.control-button.play-pause svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* Feedback Buttons (GOOD, NOT FOR ME) */
.player-feedback {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.feedback-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 500px;
  border: 1px solid #727272;
  background: transparent;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-button:hover {
  border-color: #fff;
  transform: scale(1.04);
}

.feedback-button svg {
  width: 18px;
  height: 18px;
}

.feedback-button.good:hover {
  border-color: #1DB954;
  color: #1DB954;
}

.feedback-button.good.active {
  background-color: #1DB954;
  border-color: #1DB954;
  color: #000;
}

.feedback-button.not-for-me:hover {
  border-color: #b3b3b3;
}

.feedback-button.library-add:hover {
  border-color: #1DB954;
  color: #1DB954;
}

.feedback-button.library-add.active {
  background-color: #1DB954;
  border-color: #1DB954;
  color: #000;
}

/* Footer */
.player-footer {
  background-color: #181818;
  border-top: 1px solid #282828;
  padding: 16px;
  text-align: center;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.youtube-credit {
  color: #B3B3B3;
  font-size: 0.75em;
  margin: 0 0 4px 0;
}

.footer-links {
  color: #B3B3B3;
  font-size: 0.75em;
  margin: 0;
}

.footer-links a {
  color: #1DB954;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1ed760;
  text-decoration: underline;
}

/* Wide screen - horizontal layout */
@media (min-width: 900px) {
  .player-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    gap: 24px;
    padding-top: 100px;
  }

  .album-art-section {
    max-width: 240px;
    margin-bottom: 0;
  }

  .player-info-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
  }

  .track-details {
    max-width: 100%;
  }

  .player-progress-bar {
    max-width: 100%;
  }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .player-content {
    padding: 12px;
    padding-top: 72px;
  }

  .album-art-section {
    max-width: 180px;
  }

  .track-details {
    max-width: 260px;
  }

  .song-title {
    font-size: 1em;
  }

  .player-progress-bar {
    max-width: 260px;
  }

  .player-controls {
    gap: 20px;
  }

  .control-button.play-pause {
    width: 44px;
    height: 44px;
  }

  .feedback-button {
    padding: 10px 18px;
    font-size: 0.75em;
  }

  .feedback-button svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .player-content {
    padding: 8px;
    padding-top: 64px;
  }

  .album-art-section {
    max-width: 160px;
  }

  .track-details {
    max-width: 100%;
    padding: 0 8px;
  }

  .song-title {
    font-size: 0.95em;
  }

  .artist-name {
    font-size: 0.8em;
  }

  .player-progress-bar {
    max-width: 100%;
    padding: 0 8px;
  }

  .player-controls {
    gap: 16px;
  }

  .control-button.play-pause {
    width: 40px;
    height: 40px;
  }

  .control-button.play-pause svg {
    width: 18px;
    height: 18px;
  }

  .player-feedback {
    gap: 12px;
    margin-bottom: 12px;
  }

  .feedback-button {
    padding: 10px 16px;
    font-size: 0.7em;
  }

  .feedback-button svg {
    width: 14px;
    height: 14px;
  }

  .player-footer {
    padding: 12px;
  }
}

/* Lyrics & Link Section (Integrated) */
.lyrics-link-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

.youtube-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  color: #B3B3B3;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 500px;
  border: none;
  font-size: 0.75em;
  font-weight: 500;
  transition: all 0.2s;
  width: auto;
}

.youtube-link-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.youtube-link-btn:active {
  transform: translateY(0);
}

.youtube-link-btn svg {
  fill: currentColor;
  transition: fill 0.2s ease;
}

.youtube-link-btn:hover svg {
  fill: #FF0000;
  color: #FF0000;
}

.youtube-link-btn span {
  letter-spacing: 0.2px;
}
