@import url('/css/style.css');

/* Gekko-themed music player — matches desktop theme */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}

/* Playlist pane */
.gekko-playlist {
  flex: 1;
  overflow-y: auto;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.gekko-playlist-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.gekko-search-icon {
  font-size: 10px;
  color: var(--accent);
}

.gekko-search {
  width: 150px;
  background: #3b4252;
  border: 1px solid var(--accent);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 6px;
  outline: none;
  border-radius: 3px;
}

.i3-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 110, 180, 0.3);
}

.i3-search::placeholder {
  color: #4c566a;
}

.gekko-playlist-items {
  flex: 1;
  overflow-y: auto;
  background: var(--panel);
}

.gekko-track-row {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 2px 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  color: var(--fg);
}

.gekko-track-row:hover {
  background: #111116;
  border-color: var(--accent);
}

.gekko-track-row.playing {
  background: var(--accent);
  font-weight: bold;
  color: #000000;
}

.gekko-row-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid var(--rule);
  background: #3b4252;
  flex-shrink: 0;
  margin-right: 6px;
}

.gekko-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gekko-row-info {
  flex: 1;
  min-width: 0;
}

.gekko-row-title {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gekko-row-artist {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim);
}

.gekko-row-duration {
  width: 40px;
  text-align: right;
  font-size: 9px;
  color: var(--dim);
}

.gekko-msg {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.gekko-msg.show { display: flex; }

.gekko-empty {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
  padding: 20px;
}

.gekko-empty.show { display: flex; }

/* Player */
.gekko-player {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.gekko-album-art {
  width: 120px;
  height: 120px;
  border: 1px solid var(--rule);
  background: #111116;
  margin: 0 auto 16px;
  overflow: hidden;
}

.gekko-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gekko-track-info {
  text-align: center;
  margin-bottom: 20px;
}

.gekko-track-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.gekko-track-artist {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gekko-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.gekko-btn {
  width: 32px;
  height: 32px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: "DejaVu Sans Mono", monospace;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.gekko-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gekko-btn:active {
  background: #111116;
}

.gekko-btn.active {
  background: var(--accent);
  color: #000000;
}

.gekko-volume-slider {
  width: 80px;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  outline: none;
  margin-left: 4px;
}

.gekko-volume-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
}

.gekko-volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  cursor: pointer;
  appearance: none;
}

/* Progress bar */
.gekko-progress-bar {
  height: 20px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  color: var(--fg);
}

.gekko-time-left,
.gekko-time-right {
  width: 34px;
  text-align: center;
  font-family: var(--mono);
}

.gekko-progress-track {
  flex: 1;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  margin: 0 8px;
  cursor: pointer;
  position: relative;
}

.gekko-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
}

/* Scrollbar */
.gekko-playlist-items::-webkit-scrollbar {
  width: 10px;
}
.gekko-playlist-items::-webkit-scrollbar-track {
  background: var(--bg);
}
.gekko-playlist-items::-webkit-scrollbar-thumb {
  background: var(--rule);
  border: 2px solid var(--bg);
}
