.sea-player {
  --sea-bg: rgba(10, 20, 35, 0.86);
  --sea-border: rgba(124, 225, 245, 0.45);
  --sea-text: #dff8ff;
  --sea-muted: #8ed7e6;
  --sea-glow: rgba(137, 227, 245, 0.32);
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--sea-border);
  border-radius: 14px;
  backdrop-filter: blur(5px);
  background: linear-gradient(165deg, rgba(12, 26, 44, 0.92), rgba(9, 17, 29, 0.88));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  color: var(--sea-text);
  font-family: "Poppins", sans-serif;
}

.sea-player__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sea-player__avatar-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--sea-border);
  background: radial-gradient(circle at 30% 30%, #98efff 0%, #4cb3d8 55%, #0f283d 100%);
  box-shadow: 0 0 0 3px rgba(80, 164, 193, 0.18);
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.sea-player__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 85%;
}

.sea-player__panel {
  flex: 1 1 auto;
  min-width: 0;
}

.sea-player__meta {
  margin-top: 4px;
  line-height: 1.2;
}

.sea-player__title {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-player__artist {
  margin: 2px 0 0;
  color: var(--sea-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-player__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sea-player__btn {
  height: 30px;
  min-width: 30px;
  border: 1px solid rgba(136, 222, 241, 0.45);
  border-radius: 8px;
  background: rgba(16, 35, 59, 0.9);
  color: var(--sea-text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sea-player__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 240, 254, 0.7);
  box-shadow: 0 0 0 3px rgba(137, 227, 245, 0.14);
}

.sea-player__btn:active {
  transform: translateY(0);
}

.sea-player__btn--cassette {
  width: 42px;
  padding: 0;
}

.sea-player__cassette {
  width: 24px;
  height: 16px;
  display: block;
}

.sea-player__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
  background: rgba(142, 215, 230, 0.55);
}

.sea-player.is-playing .sea-player__status-dot {
  background: #7af2a7;
  box-shadow: 0 0 0 6px rgba(122, 242, 167, 0.12);
}

.sea-player.is-playing .sea-player__avatar {
  animation: seaBob 2.4s ease-in-out infinite;
}

.sea-player.is-playing .sea-player__cassette {
  animation: cassetteSpin 1.9s linear infinite;
  transform-origin: 50% 50%;
}

.sea-player__progress {
  margin-top: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(131, 200, 218, 0.24);
  overflow: hidden;
}

.sea-player__progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #75def2, #b9f6ff);
  box-shadow: 0 0 8px var(--sea-glow);
}

@keyframes seaBob {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-1.2deg); }
  50% { transform: translateY(-1px) rotate(0.8deg); }
  75% { transform: translateY(-3px) rotate(-0.6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes cassetteSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .sea-player {
    left: 12px;
    bottom: 12px;
    width: 220px;
  }
}

