/* ===== Shared app chrome ===== */
.app-shell {
  display: flex;
  height: 100%;
  min-height: 0;
}

.app-nav {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-solid);
  padding: 12px 8px;
  overflow-y: auto;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 13px;
}

.app-nav-item:hover {
  background: var(--bg-hover);
}

.app-nav-item.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-weight: 600;
}

.app-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 24px;
  background: var(--bg-card);
}

.app-main h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-main .subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 13px;
}

.card {
  background: var(--bg-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-row:first-child {
  padding-top: 0;
}

.card-row .meta {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 40px;
  height: 20px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  background: #888;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle span::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle input:checked + span {
  background: var(--accent);
}

.toggle input:checked + span::before {
  transform: translateX(20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--bg-solid);
  transition: background 0.12s ease;
}

.btn:hover {
  background: var(--bg-hover);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: #c42b1c;
  color: #fff;
  border-color: transparent;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.swatch.active {
  border-color: var(--text);
  outline: 2px solid var(--bg-card);
  outline-offset: -4px;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.wallpaper-opt {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.wallpaper-opt.active {
  border-color: var(--accent);
}

/* ===== Store ===== */
.store-hero {
  background: linear-gradient(120deg, var(--accent), #6366f1 60%, #8b5cf6);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.store-hero h2 {
  color: #fff;
  margin-bottom: 6px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.store-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--bg-solid);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card-icon {
  font-size: 40px;
}

.store-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.store-card p {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

/* ===== Explorer ===== */
.explorer {
  display: flex;
  height: 100%;
}

.explorer-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-solid);
  padding: 8px;
  overflow-y: auto;
}

.explorer-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
}

.explorer-side-item:hover,
.explorer-side-item.active {
  background: var(--bg-hover);
}

.explorer-side-item.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.explorer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-solid);
  flex-wrap: wrap;
}

.explorer-nav-btns {
  display: flex;
  gap: 4px;
}

.explorer-nav-btns .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.explorer-search {
  flex: 1;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  outline: none;
}

.explorer-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.explorer-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
}

.bc-item {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.bc-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.bc-item.current {
  color: var(--text);
  font-weight: 600;
}

.bc-sep {
  color: var(--text-secondary);
  opacity: 0.6;
  padding: 0 2px;
}

.explorer-empty {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  padding: 32px 16px;
  text-align: center;
}

.explorer-files.list-view {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-template-columns: none;
}

.explorer-files.list-view .explorer-item {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  gap: 10px;
  text-align: left;
}

.explorer-files.list-view .explorer-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.explorer-files.list-view .explorer-item-name {
  flex: 1;
  text-align: left;
  font-size: 13px;
}

.explorer-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: right;
}

.explorer-path {
  flex: 1;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-files {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  align-content: start;
}

.explorer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: default;
}

.explorer-item:hover {
  background: var(--bg-hover);
}

.explorer-item.selected {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.explorer-item-icon {
  font-size: 32px;
}

.explorer-item-name {
  font-size: 12px;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

.explorer-status {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-solid);
}

/* ===== Word ===== */
.word-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.word-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-solid);
  align-items: center;
}

.word-ribbon .sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.ribbon-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ribbon-btn:hover {
  background: var(--bg-hover);
}

.ribbon-btn.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.word-page-wrap {
  flex: 1;
  overflow: auto;
  background: #e5e5e5;
  padding: 24px;
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .word-page-wrap {
  background: #1a1a1a;
}

.word-page {
  width: min(720px, 100%);
  min-height: 900px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: var(--shadow-md);
  padding: 72px 64px;
  outline: none;
  line-height: 1.6;
  font-size: 15px;
  user-select: text;
}

.word-page:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
}

/* ===== Excel ===== */
.excel-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.excel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-solid);
  align-items: center;
}

.excel-fx {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.excel-fx-label {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  width: 20px;
  text-align: center;
}

.excel-fx input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  user-select: text;
}

.excel-fx input:focus {
  border-color: var(--accent);
}

.excel-sheet-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
}

.excel-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.excel-table th,
.excel-table td {
  border: 1px solid var(--border);
  min-width: 80px;
  height: 24px;
  padding: 0;
  font-size: 12px;
}

.excel-table th {
  background: var(--bg-solid);
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 2;
}

.excel-table th.corner {
  left: 0;
  z-index: 3;
  min-width: 40px;
  width: 40px;
}

.excel-table th.row-hdr {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 40px;
  width: 40px;
  background: var(--bg-solid);
}

.excel-table td {
  background: var(--bg-card);
}

.excel-table td.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.excel-table td input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 2px 6px;
  background: transparent;
  font: inherit;
  color: inherit;
  user-select: text;
}

.excel-status {
  padding: 4px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-solid);
  display: flex;
  gap: 16px;
}

/* ===== Games ===== */
.game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px;
  height: 100%;
  overflow: auto;
  background: var(--bg-card);
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.game-status {
  font-weight: 600;
  font-size: 15px;
}

/* Minesweeper */
.ms-board {
  display: inline-grid;
  gap: 2px;
  background: #7a7a7a;
  padding: 4px;
  border-radius: 4px;
  user-select: none;
}

.ms-cell {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  cursor: pointer;
  padding: 0;
}

.ms-cell.revealed {
  border: 1px solid #808080;
  background: #d0d0d0;
  cursor: default;
}

.ms-cell.mine {
  background: #e81123;
  color: #000;
}

.ms-cell.flag {
  color: #c00;
}

.ms-cell.n1 { color: #0000ff; }
.ms-cell.n2 { color: #008000; }
.ms-cell.n3 { color: #ff0000; }
.ms-cell.n4 { color: #000080; }
.ms-cell.n5 { color: #800000; }
.ms-cell.n6 { color: #008080; }
.ms-cell.n7 { color: #000; }
.ms-cell.n8 { color: #808080; }

/* Tic-Tac-Toe */
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(300px, 100%);
}

.ttt-cell {
  aspect-ratio: 1;
  font-size: 48px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--bg-solid);
  border: 2px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
}

.ttt-cell:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.ttt-cell:disabled {
  cursor: default;
}

/* Solitaire */
.solitaire {
  width: 100%;
  max-width: 900px;
}

.sol-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sol-stock-waste,
.sol-foundations {
  display: flex;
  gap: 8px;
}

.sol-card,
.sol-slot {
  width: 72px;
  height: 100px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  flex-shrink: 0;
}

.sol-card {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sol-card.red { color: #c42b1c; }
.sol-card.black { color: #111; }
.sol-card.face-down {
  background: linear-gradient(145deg, #1e3a8a, #1d4ed8);
  color: transparent;
  border: 2px solid #93c5fd;
}

.sol-card.selected {
  outline: 3px solid #fbbf24;
  outline-offset: 1px;
}

.sol-tableau {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sol-col {
  flex: 1;
  min-width: 72px;
  min-height: 120px;
  position: relative;
}

.sol-col .sol-card,
.sol-col .sol-slot {
  margin-bottom: -70px;
}

.sol-col .sol-card:last-child,
.sol-col .sol-slot:last-child {
  margin-bottom: 0;
}

.sol-empty {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.1);
}

.game-wrap.solitaire-bg {
  background: linear-gradient(160deg, #14532d, #166534 50%, #15803d);
  color: #fff;
}

.game-wrap.solitaire-bg .game-status {
  color: #fff;
}

.game-wrap.solitaire-bg .btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ===== Music Player ===== */
.music-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-solid), var(--bg-card));
  padding: 20px;
  gap: 12px;
  overflow: hidden;
}

.music-now {
  display: flex;
  align-items: center;
  gap: 16px;
}

.music-art {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: linear-gradient(145deg, var(--accent), #6366f1 60%, #a855f7);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.music-art.playing {
  animation: music-pulse 1.4s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

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

.music-title {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.music-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  min-width: 36px;
}

.music-seek,
.music-vol {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.music-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.12s ease, transform 0.12s ease;
}

.music-ctrl:hover {
  background: var(--bg-hover);
}

.music-ctrl.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-card));
}

.music-ctrl.music-play {
  width: 56px;
  height: 56px;
  font-size: 22px;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.music-ctrl.music-play:hover {
  background: var(--accent-hover);
}

.music-vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}

.music-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.music-list-title {
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.music-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}

.music-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  transition: background 0.12s ease;
}

.music-track:hover {
  background: var(--bg-hover);
}

.music-track.active {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.music-track-idx {
  width: 22px;
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.music-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-track-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-track-artist {
  font-size: 11px;
  color: var(--text-secondary);
}

.music-track-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-solid);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.music-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Calculator (bonus utility) */
.calc-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px;
  gap: 8px;
}

.calc-display {
  background: var(--bg-solid);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: right;
  font-size: 32px;
  font-weight: 500;
  min-height: 64px;
  word-break: break-all;
  user-select: text;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}

.calc-grid button {
  border-radius: var(--radius-md);
  background: var(--bg-solid);
  font-size: 18px;
  min-height: 48px;
}

.calc-grid button:hover {
  background: var(--bg-hover);
}

.calc-grid button.op {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-solid));
  color: var(--accent);
  font-weight: 600;
}

.calc-grid button.eq {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .app-shell {
    flex-direction: column;
  }
  .app-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }
  .app-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .explorer {
    flex-direction: column;
  }
  .explorer-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .word-page {
    padding: 32px 20px;
  }
  .sol-card, .sol-slot {
    width: 56px;
    height: 80px;
    font-size: 11px;
  }
  .sol-col .sol-card,
  .sol-col .sol-slot {
    margin-bottom: -56px;
  }
}

/* ===== SoundCloud Light ===== */
.sc-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 85, 0, 0.22), transparent 50%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  color: #f2f2f2;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.sc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 85, 0, 0.25);
  flex-shrink: 0;
}

.sc-profile {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.sc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff5500;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
  flex-shrink: 0;
  background: #222;
}

.sc-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 28px;
}

.sc-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sc-handle {
  font-size: 13px;
  color: #ff5500;
  margin-bottom: 6px;
}

.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #b0b0b0;
}

.sc-stats span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-status {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
}

.sc-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.sc-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #ff5500;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-btn:hover {
  filter: brightness(1.08);
}

.sc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sc-btn-ghost {
  background: transparent;
  color: #ff5500;
  border: 1px solid rgba(255, 85, 0, 0.55);
}

.sc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 8px;
  gap: 10px;
  overflow: hidden;
}

.sc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.sc-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.sc-tab:hover {
  border-color: rgba(255, 85, 0, 0.45);
}

.sc-tab.active {
  background: #ff5500;
  color: #111;
  border-color: #ff5500;
  font-weight: 700;
}

.sc-search {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  flex-shrink: 0;
}

.sc-search:focus {
  border-color: #ff5500;
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}

.sc-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.sc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.sc-row:hover {
  background: rgba(255, 85, 0, 0.08);
  border-color: rgba(255, 85, 0, 0.2);
}

.sc-row.active {
  background: rgba(255, 85, 0, 0.16);
  border-color: rgba(255, 85, 0, 0.45);
}

.sc-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.sc-row-idx {
  width: 28px;
  text-align: right;
  font-size: 11px;
  color: #777;
  flex-shrink: 0;
}

.sc-row-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.sc-row-art-fallback {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.sc-row-meta {
  min-width: 0;
  flex: 1;
}

.sc-row-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-row-sub {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-row-dur {
  font-size: 11px;
  color: #888;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 6px;
}

.sc-play-mini,
.sc-share {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #eee;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.sc-play-mini:hover,
.sc-share:hover {
  border-color: #ff5500;
  color: #ff5500;
}

.sc-share {
  color: #ffb37a;
}

.sc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 4px;
  flex-shrink: 0;
}

.sc-page-info {
  font-size: 11px;
  color: #888;
}

.sc-empty {
  padding: 32px 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.sc-about {
  padding: 12px 8px;
  line-height: 1.55;
  font-size: 14px;
  overflow: auto;
}

.sc-about .sc-muted,
.sc-muted {
  color: #888;
  font-size: 12px;
}

.sc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sc-player-bar {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 85, 0, 0.3);
  background: #0d0d0d;
  padding: 8px 10px 10px;
}

.sc-player-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff5500;
  margin-bottom: 6px;
}

.sc-widget {
  width: 100%;
  height: 120px;
  border: 0;
  border-radius: 8px;
  background: #111;
}
