.songs-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  min-height: 500px;
}

.songs-player-wrapper {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.songs-player {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.player-info {
  margin-bottom: 1.5rem;
}

.player-info h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: var(--ink, #e0e0e0);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.player-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.songs-custom-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  width: 100%;
}

.songs-control-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink, #e0e0e0);
  border-radius: 4px;
  min-width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 0.35rem;
}

.songs-control-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
}

.songs-control-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.songs-control-btn.is-active {
  border-color: var(--ink, #e0e0e0);
  background: rgba(255, 255, 255, 0.15);
}

#songs-video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
  z-index: 0;
}

video {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  outline: none;
  display: block;
}

.songs-video-container {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.songs-thumbnail-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.songs-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.songs-thumbnail-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.songs-thumbnail-wrapper::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: rgba(0, 0, 0, 0.8);
  z-index: 3;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.songs-thumbnail-wrapper:hover::after {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.songs-thumbnail-wrapper:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
}

audio::-webkit-media-controls-panel {
  background-color: rgba(255, 255, 255, 0.1);
}

audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-play-button {
  color: var(--ink, #e0e0e0);
}

audio::-webkit-media-controls-volume-slider {
  accent-color: var(--ink, #e0e0e0);
}

.songs-playlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 575px;
}

.songs-playlist h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: var(--ink, #e0e0e0);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.5rem;
}

.playlist-items::-webkit-scrollbar {
  width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.playlist-group {
  margin-top: 0;
  display: contents;
}

.playlist-group:first-child {
  margin-top: 0;
}

.playlist-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.75rem 0.6rem 0.5rem 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.playlist-group-items {
  display: contents;
}

.playlist-item {
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--ink, #e0e0e0);
}

.playlist-item-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.playlist-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-item-text {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 0.85rem;
  color: var(--ink, #e0e0e0);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: visible;
}

.playlist-item-title-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.playlist-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.playlist-item-author {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.1rem 0 0 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-poem-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.playlist-poem-link:visited,
.playlist-poem-link:hover,
.playlist-poem-link:focus {
  color: rgba(255, 255, 255, 0.5);
}

.playlist-poem-link svg {
  display: block;
}

.playlist-share-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.15s ease;
  padding: 0;
}

.playlist-share-btn:hover {
  color: var(--ink, #e0e0e0);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.playlist-share-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .songs-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .songs-playlist {
    max-height: 400px;
  }

  .songs-player-wrapper {
    order: 2;
  }

  .songs-playlist {
    order: 1;
  }
}
