:root {
  --bg: #17120f;
  --bg-soft: #1d1612;

  --sidebar: #5a351f;
  --sidebar-dark: #422819;

  --panel: #261d18;
  --panel-soft: #30241d;
  --panel-hover: #38291f;

  --accent: #e99a3d;
  --accent-light: #ffb85d;
  --accent-soft: rgba(233, 154, 61, 0.12);

  --text: #f5e7cc;
  --text-soft: #c8b79a;
  --muted: #8f806c;

  --green: #79a66b;
  --red: #d76b55;

  --border: rgba(245, 231, 204, 0.09);
  --border-strong: rgba(245, 231, 204, 0.16);

  --sidebar-width: 250px;
  --mini-height: 84px;

  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 25% 0%, rgba(107, 65, 40, 0.13), transparent 35%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #2a170b;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #594435;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #70523d;
}

/* =========================================================
   APP
   ========================================================= */

.app-shell {
  min-height: 100vh;
}

.content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 34px 34px calc(var(--mini-height) + 40px);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;

  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;

  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-dark));
  border-right: 1px solid rgba(255, 220, 170, 0.12);
  box-shadow: 5px 0 28px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 5px 24px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 3px solid #3b2417;

  background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent));
  color: #2b190d;

  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 900;

  box-shadow:
    0 0 0 2px rgba(255, 190, 101, 0.16),
    0 5px 13px rgba(0, 0, 0, 0.25);
}

.brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.14em;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #cfb995;
  font-size: 10px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-btn {
  width: 100%;
  height: 46px;

  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;

  padding: 0 12px;

  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #ddc9aa;
  text-align: left;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.nav-btn span {
  color: #cda16d;
}

.nav-btn b {
  font-size: 12px;
}

.nav-btn em {
  min-width: 21px;
  padding: 2px 6px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.2);
  color: #cbb898;

  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff0d7;
  background: linear-gradient(90deg, rgba(233, 154, 61, 0.20), rgba(233, 154, 61, 0.08));
  border-color: rgba(255, 181, 92, 0.24);
  box-shadow: inset 3px 0 var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guild-box,
.user-box {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;

  border-radius: 10px;
  border: 1px solid rgba(255, 235, 205, 0.07);
  background: rgba(21, 14, 10, 0.34);
}

.guild-box strong,
.user-box strong {
  display: block;
  font-size: 11px;
}

.guild-box small,
.user-box small {
  display: block;
  margin-top: 2px;
  color: #aa9779;
  font-size: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #665b4e;
}

.status-dot.online,
.connection-pill .status-dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(121, 166, 107, 0.5);
}

.avatar-fallback {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--accent);
  color: #2a180c;

  font-family: Georgia, serif;
  font-weight: 800;
}

.user-copy {
  min-width: 0;
  flex: 1;
}

.user-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.logout {
  color: #a79172;
  text-decoration: none;
  font-size: 17px;
}

.logout:hover {
  color: var(--accent-light);
}

/* =========================================================
   VIEWS / HEADERS
   ========================================================= */

.mobile-header {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-heading {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.view-heading h1 {
  margin: 3px 0 0;
  font-family: Georgia, serif;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.view-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.connection-pill {
  display: flex;
  align-items: center;
  gap: 7px;

  padding: 7px 11px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 10px;
}

/* =========================================================
   PLAYER
   ========================================================= */

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.hero-card {
  min-width: 0;
  min-height: 330px;

  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: linear-gradient(135deg, #4c301f, var(--panel) 43%);
  box-shadow: var(--shadow);
}

.cover-wrap {
  position: relative;

  width: 310px;
  min-height: 330px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  background: #211812;
}

/* Pochette carrée et centrée, comme le mini-player */
.hero-cover {
  width: 230px;
  height: 230px;
  flex: 0 0 230px;

  object-fit: cover;
  object-position: center center;

  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cover-placeholder {
  width: 230px;
  height: 230px;
  flex: 0 0 230px;

  display: grid;
  place-items: center;

  border-radius: 10px;
  background: radial-gradient(circle, #644126, #2a1f18 72%);
  color: rgba(255, 188, 97, 0.45);

  font-family: Georgia, serif;
  font-size: 60px;
}

/* Les barres restent posées sur le coin bas-gauche de la pochette carrée */
.playing-bars {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-105px);

  height: 29px;
  display: flex;
  align-items: end;
  gap: 3px;

  padding: 7px 9px;

  border-radius: 7px;
  background: rgba(19, 13, 10, 0.78);
}

.playing-bars:not(.active) {
  display: none;
}

.playing-bars i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-light);
  animation: bobber-bars 0.7s ease-in-out infinite alternate;
}

.playing-bars i:nth-child(2) {
  animation-delay: 0.16s;
}

.playing-bars i:nth-child(3) {
  animation-delay: 0.28s;
}

.playing-bars i:nth-child(4) {
  animation-delay: 0.08s;
}

@keyframes bobber-bars {
  from { height: 5px; }
  to { height: 17px; }
}

.hero-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 30px 34px;
}

.now-label {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero-copy h2 {
  margin: 9px 0 6px;
  overflow: hidden;

  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.3vw, 35px);
  font-weight: 500;
  line-height: 1.1;

  text-overflow: ellipsis;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* =========================================================
   PROGRESS / RANGE
   ========================================================= */

.progress-wrap {
  margin-top: 25px;
}

.progress {
  width: 100%;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;

  border-radius: 999px;
  background: #5b483b;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;

  border-radius: 50%;
  border: 2px solid #3b2618;

  background: var(--accent-light);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;

  border-radius: 50%;
  border: 2px solid #3b2618;

  background: var(--accent-light);
}

/* =========================================================
   TRANSPORT / ICONS
   ========================================================= */

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.icon-control,
.play-control {
  display: grid;
  place-items: center;

  padding: 0;

  border-radius: 50%;
  border: 1px solid var(--border);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.icon-control {
  width: 37px;
  height: 37px;
  background: #2b211b;
  color: var(--text-soft);
}

.icon-control:hover {
  color: var(--accent-light);
  background: #392a21;
  border-color: rgba(233, 154, 61, 0.32);
}

.icon-control.active,
.repeat-control.active {
  color: var(--accent-light);
  background: var(--accent-soft);
  border-color: rgba(233, 154, 61, 0.40);
}

.play-control {
  width: 54px;
  height: 54px;

  background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent));
  color: #2a170b;

  border: 3px solid #4d301e;

  font-size: 18px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.play-control:hover {
  transform: scale(1.04);
}

/* SVG shuffle/repeat */
.control-icon {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.mini-icon .control-icon {
  width: 15px;
  height: 15px;
}

/* =========================================================
   VOLUME
   ========================================================= */

.volume-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  margin-top: 19px;

  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   CARDS / PANELS
   ========================================================= */

.up-next-card,
.add-card,
.panel,
.saved-playlist {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.up-next-card {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
}

.add-card {
  margin-top: 18px;
  padding: 19px;
  border-radius: var(--radius);
}

.panel {
  padding: 18px;
  border-radius: var(--radius);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row h3,
.panel h3 {
  margin: 3px 0 0;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

/* =========================================================
   UP NEXT
   ========================================================= */

.up-next-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.up-next-item {
  min-width: 0;
  height: 55px;

  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  padding: 5px;

  border: 1px solid rgba(245, 231, 204, 0.04);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.up-next-item:hover {
  background: rgba(233, 154, 61, 0.05);
}

.up-next-item img,
.up-next-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;

  border-radius: 6px;
  background: #3a2a20;
}

.up-next-thumb {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.up-next-info {
  min-width: 0;
}

.up-next-info strong,
.queue-info strong,
.search-info strong {
  display: block;
  overflow: hidden;

  color: var(--text-soft);

  white-space: nowrap;
  text-overflow: ellipsis;
}

.up-next-info strong {
  font-size: 10px;
}

.up-next-info small,
.queue-info small {
  display: block;
  margin-top: 3px;
  overflow: hidden;

  color: var(--muted);

  white-space: nowrap;
  text-overflow: ellipsis;
}

.up-next-info small {
  font-size: 8px;
}

.queue-index {
  color: #806f5a;
  font-size: 9px;
}

/* =========================================================
   FORMS
   ========================================================= */

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

input[type="text"],
select {
  min-width: 0;
  padding: 11px 12px;

  color: var(--text);
  background: #18130f;

  border: 1px solid var(--border);
  border-radius: 8px;
}

input[type="text"]::placeholder {
  color: #706455;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: rgba(233, 154, 61, 0.44);
  box-shadow: 0 0 0 3px rgba(233, 154, 61, 0.07);
}

select option {
  background: #201812;
}

.playlist-target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;

  margin-top: 9px;

  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-btn,
.secondary-btn,
.danger-btn,
.text-btn,
.small-btn,
.icon-btn,
.ghost-btn {
  border-radius: 8px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    filter 0.15s ease;
}

.primary-btn {
  padding: 10px 15px;
  border: 0;

  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  color: #29170c;
  font-weight: 800;
}

.primary-btn:hover {
  filter: brightness(1.06);
}

.secondary-btn {
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: #34281f;
  color: var(--text-soft);
}

.secondary-btn:hover {
  background: #403026;
}

.danger-btn {
  padding: 9px 12px;
  border: 1px solid rgba(215, 107, 85, 0.23);
  background: rgba(215, 107, 85, 0.08);
  color: #e58c79;
}

.text-btn {
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.small-btn {
  padding: 7px 9px;
  border: 1px solid var(--border);
  background: #31251e;
  color: var(--text-soft);
  font-size: 9px;
}

.small-btn:hover {
  background: #3e2e24;
}

.small-btn.danger {
  color: #e18470;
}

.icon-btn {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  background: #2b211b;
  color: var(--text-soft);
}

.icon-btn:hover {
  background: #392a21;
}

.icon-btn.danger {
  color: #df7f69;
}

.ghost-btn {
  width: 38px;
  height: 38px;

  border: 1px solid var(--border);
  background: #2a211b;
  color: var(--text);
}

/* =========================================================
   ACTION MESSAGE
   ========================================================= */

.action-message {
  margin-bottom: 14px;
  padding: 10px 12px;

  border-radius: 8px;
  border: 1px solid rgba(233, 154, 61, 0.18);

  background: rgba(233, 154, 61, 0.08);
  color: var(--text-soft);

  font-size: 11px;
}

.action-message.error {
  border-color: rgba(215, 107, 85, 0.2);
  background: rgba(215, 107, 85, 0.08);
  color: #e89b88;
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.search-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.search-item {
  min-width: 0;

  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;

  padding: 7px;

  border: 1px solid var(--border);
  border-radius: 9px;
  background: #211913;
}

.search-item img {
  width: 90px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.search-info {
  min-width: 0;
}

.search-info strong {
  font-size: 11px;
}

.search-info span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.search-actions {
  display: flex;
  gap: 6px;
}

/* =========================================================
   QUEUE
   ========================================================= */

.heading-actions {
  display: flex;
  gap: 8px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-row {
  min-width: 0;
  min-height: 61px;

  display: grid;
  grid-template-columns: 27px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  padding: 6px 8px;

  border: 1px solid rgba(245, 231, 204, 0.045);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.queue-row:hover {
  background: rgba(233, 154, 61, 0.045);
}

.queue-thumb {
  width: 48px;
  height: 48px;

  object-fit: cover;

  border-radius: 6px;
  background: #392a20;
}

.queue-info {
  min-width: 0;
}

.queue-info strong {
  font-size: 11px;
}

.queue-info small {
  font-size: 9px;
}

.queue-actions {
  display: flex;
  gap: 5px;
}

/* =========================================================
   PLAYLISTS
   ========================================================= */

.playlist-create-panel {
  margin-bottom: 16px;
}

.playlist-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.saved-playlist {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
}

.saved-playlist-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.saved-playlist-header h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.saved-playlist-header .muted {
  display: block;
  grid-column: 1;
  color: var(--muted);
  font-size: 9px;
}

.playlist-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 5px;
}

.playlist-tracks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 13px;
}

.playlist-track {
  min-width: 0;

  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;

  padding: 6px 7px;

  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

/* =========================================================
   SETTINGS
   ========================================================= */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.repeat-options {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}

.repeat-option {
  flex: 1;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: #2a201a;
  color: var(--text-soft);
}

.repeat-option.active {
  color: var(--accent-light);
  background: var(--accent-soft);
  border-color: rgba(233, 154, 61, 0.4);
}

.help-text {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.info-list {
  margin-top: 12px;
}

.info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 8px 0;

  border-bottom: 1px solid var(--border);
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
  font-size: 10px;
}

.info-list strong {
  color: var(--text-soft);
  font-size: 10px;
}

/* =========================================================
   ROLES
   ========================================================= */

.role-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 8px;

  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);

  color: var(--text-soft);
  font-size: 10px;
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
  min-height: 130px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: var(--muted);
  text-align: center;
}

.empty-state span {
  margin-bottom: 6px;
  color: #6f5945;
  font-size: 29px;
}

.empty-state strong {
  color: var(--text-soft);
  font-size: 11px;
}

.empty-state p {
  margin: 4px 0 0;
  font-size: 9px;
}

.empty.compact {
  padding: 9px;
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
   MINI PLAYER
   ========================================================= */

.mini-player {
  position: fixed;

  left: calc(var(--sidebar-width) + 18px);
  right: 18px;
  bottom: 14px;

  z-index: 40;

  height: var(--mini-height);

  display: grid;
  grid-template-columns:
    minmax(190px, 1fr)
    minmax(320px, 1.35fr)
    minmax(140px, 0.55fr);
  align-items: center;
  gap: 18px;

  padding: 10px 15px;

  border: 1px solid rgba(255, 222, 180, 0.13);
  border-radius: 13px;

  background: linear-gradient(135deg, #51321f, #2a2019 45%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(12px);
}

.mini-track {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-track img,
#miniCoverPlaceholder {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;

  object-fit: cover;

  border-radius: 6px;
}

#miniCoverPlaceholder {
  display: grid;
  place-items: center;
  background: #644027;
  color: var(--accent-light);
}

.mini-track > div:last-child {
  min-width: 0;
}

.mini-track strong {
  display: block;
  overflow: hidden;

  color: var(--text);
  font-size: 10px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-track small {
  display: block;
  margin-top: 2px;
  overflow: hidden;

  color: var(--muted);
  font-size: 8px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-center {
  min-width: 0;
}

.mini-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 7px;
}

.mini-icon {
  width: 27px;
  height: 27px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: var(--text-soft);

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mini-icon:hover,
.mini-icon.active {
  color: var(--accent-light);
  background: rgba(233, 154, 61, 0.07);
}

.mini-play {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 2px solid #4c2e1c;
  border-radius: 50%;

  background: var(--accent);
  color: #28170c;
}

.mini-progress-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;

  color: var(--muted);
  font-size: 8px;
}

.mini-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;

  color: var(--muted);
  font-size: 10px;
}

/* =========================================================
   DISABLED
   ========================================================= */

button:disabled,
.control-only:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .player-layout {
    grid-template-columns: 1fr;
  }

  .up-next-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .hero-card {
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 300px;
  }

  .cover-wrap {
    width: 260px;
    min-height: 300px;
  }

  .hero-cover,
  .cover-placeholder {
    width: 210px;
    height: 210px;
    flex-basis: 210px;
  }

  .playing-bars {
    bottom: 45px;
    transform: translateX(-95px);
  }

  .mini-player {
    grid-template-columns:
      minmax(180px, 1fr)
      minmax(280px, 1.3fr);
  }

  .mini-volume {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    width: 240px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 76px 15px calc(var(--mini-height) + 30px);
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 45;

    height: 61px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 15px;

    background: rgba(37, 27, 20, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
  }

  .mobile-header .brand {
    padding: 0;
  }

  .mobile-header .brand-mark {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    font-size: 18px;
  }

  .hero-card {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 270px;
  }

  .cover-wrap {
    width: 220px;
    min-height: 270px;
  }

  .hero-cover,
  .cover-placeholder {
    width: 180px;
    height: 180px;
    flex-basis: 180px;
  }

  .playing-bars {
    bottom: 42px;
    transform: translateX(-80px);
  }

  .hero-copy {
    padding: 22px;
  }

  .mini-player {
    left: 9px;
    right: 9px;
    bottom: 8px;

    height: 72px;

    grid-template-columns: minmax(0, 1fr) auto;

    padding: 8px 10px;
  }

  .mini-center {
    display: flex;
    align-items: center;
  }

  .mini-progress-line,
  .mini-volume {
    display: none;
  }
}

@media (max-width: 620px) {
  .view-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-heading h1 {
    font-size: 32px;
  }

  .connection-pill {
    display: none;
  }

  .hero-card {
    display: block;
  }

  .cover-wrap {
    width: 100%;
    min-height: 260px;
  }

  .hero-cover,
  .cover-placeholder {
    width: 220px;
    height: 220px;
    flex-basis: 220px;
  }

  .playing-bars {
    bottom: 30px;
    transform: translateX(-100px);
  }

  .hero-copy {
    padding: 21px;
  }

  .search-bar,
  .playlist-create-form,
  .playlist-target {
    grid-template-columns: 1fr;
  }

  .up-next-list {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .queue-row {
    grid-template-columns: 22px 42px minmax(0, 1fr);
  }

  .queue-thumb {
    width: 42px;
    height: 42px;
  }

  .queue-actions {
    grid-column: 3;
    margin-top: 4px;
  }

  .search-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .search-item img {
    width: 72px;
    height: 44px;
  }

  .search-actions {
    grid-column: 2;
  }

  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .saved-playlist-header {
    display: block;
  }

  .playlist-actions {
    margin-top: 8px;
  }

  .mini-track img,
  #miniCoverPlaceholder {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .mini-icon {
    display: none;
  }
}

/* =========================================================
   BOBBER LANDING PAGE
   ========================================================= */

.landing-body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(233, 154, 61, 0.16),
      transparent 42%
    ),
    var(--bg);
}

.landing {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}


/* HERO */

.landing-hero {
  min-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 80px 20px;
}

.landing-logo {
  width: 112px;
  height: 112px;

  margin-bottom: 25px;
}

.landing-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  filter:
    drop-shadow(0 14px 25px rgba(0, 0, 0, 0.35));
}

.landing-hero h1 {
  margin: 8px 0 12px;

  color: var(--text);

  font-family: Georgia, serif;
  font-size: clamp(60px, 10vw, 105px);
  font-weight: 500;

  letter-spacing: 0.08em;
}

.landing-description {
  max-width: 620px;

  margin: 0;

  color: var(--text-soft);

  font-size: 17px;
  line-height: 1.65;
}


/* ACTIONS */

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 20px;

  border-radius: 10px;

  text-decoration: none;
  font-size: 13px;
  font-weight: 800;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.landing-primary {
  background:
    linear-gradient(
      145deg,
      var(--accent-light),
      var(--accent)
    );

  color: #29170c;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.landing-primary:hover {
  transform: translateY(-2px);
}

.landing-secondary {
  color: var(--text-soft);

  background: var(--panel);

  border: 1px solid var(--border);
}

.landing-secondary:hover {
  background: var(--panel-hover);
}


/* SECTIONS */

.landing-section {
  padding: 80px 0 110px;
}

.landing-section-heading {
  margin-bottom: 35px;

  text-align: center;
}

.landing-section-heading h2,
.landing-session-info h2 {
  margin: 7px 0 0;

  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 45px);
  font-weight: 500;
}


/* STEPS */

.landing-steps {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 13px;
}

.landing-step {
  min-height: 210px;

  padding: 22px;

  border-radius: var(--radius);

  border: 1px solid var(--border);

  background:
    linear-gradient(
      145deg,
      var(--panel-soft),
      var(--panel)
    );

  box-shadow: var(--shadow);
}

.step-number {
  display: block;

  margin-bottom: 35px;

  color: var(--accent);

  font-family: Georgia, serif;
  font-size: 27px;
}

.landing-step h3 {
  margin: 0 0 9px;

  color: var(--text);

  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}

.landing-step p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.6;
}


/* SESSION */

.landing-session-info {
  display: grid;

  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(280px, 0.7fr);

  align-items: center;

  gap: 50px;

  margin-bottom: 100px;

  padding: 40px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      #4a2d1d,
      var(--panel) 55%
    );

  box-shadow: var(--shadow);
}

.landing-session-info p {
  max-width: 600px;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.65;
}

.landing-session-info code,
.landing-step code {
  color: var(--accent-light);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
}

.session-example {
  min-width: 0;

  padding: 20px;

  border-radius: 11px;

  background: #16110e;

  border: 1px solid var(--border);
}

.session-example span {
  display: block;

  margin-bottom: 9px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.session-example code {
  display: block;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 11px;
}


/* FOOTER */

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 25px 0 40px;

  color: var(--muted);

  font-size: 10px;
}

.landing-footer img {
  width: 24px;
  height: 24px;

  object-fit: contain;
}


/* RESPONSIVE */

@media (max-width: 850px) {
  .landing-steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .landing-session-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .landing {
    width: min(100% - 24px, 1100px);
  }

  .landing-actions {
    width: 100%;

    flex-direction: column;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-session-info {
    padding: 25px;
  }
}