#gui {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  backdrop-filter: blur(3px) saturate(140%);
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  box-shadow: 0 0 70px rgba(168, 85, 247, 0.08), 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 0.94rem;
  font-weight: 300;
}

.gui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.gui-header h1 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 1.3rem;
  color: var(--accent-2);
  text-shadow: 0 0 16px rgba(129, 140, 248, 0.35);
}

.gui-nav {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.gui-nav a {
  color: var(--fg-dim);
}

.gui-nav a:hover {
  color: var(--accent);
}

#gui section {
  margin-bottom: 2.5rem;
}

#gui h2 {
  color: var(--accent);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
}

#gui ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#gui li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.track-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-duration {
  color: var(--fg-dim);
}

.empty-note {
  color: var(--fg-dim);
  margin: 0 0 0.75rem;
}

.empty-note a {
  color: var(--accent-2);
}

.notify-form {
  display: flex;
  gap: 0.6rem;
  max-width: 360px;
}

.notify-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  padding: 0.4em 0.7em;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.85rem;
}

.notify-form input:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 780px) {
  #gui {
    margin: 3.5rem 1rem 1.5rem;
    padding: 1.25rem 1.25rem;
  }

  .gui-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .gui-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  /* The five-across row (thumb/title/duration/play/download) has no room
     on a phone -- duration is the least essential piece here, so it's the
     one that goes rather than trying to shrink everything proportionally. */
  .track-duration {
    display: none;
  }

  #gui li {
    flex-wrap: wrap;
  }

  .notify-form {
    flex-direction: column;
    max-width: none;
  }
}
