/* ===================== */
/*   BrowseIt (File Explorer)   */
/* ===================== */
.file-explorer {
  display: flex;
  height: 100%;
}

.fe-sidebar {
  width: 180px;
  border-right: 1px solid var(--os-border);
  padding: 8px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.fe-folder {
  padding: 6px 12px;
  font-size: var(--font-sm);
  color: var(--os-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.1s;
}

.fe-folder:hover {
  background: var(--os-highlight);
}

.fe-folder.active {
  background: var(--os-highlight);
  color: var(--os-text-bright);
}

.fe-folder .folder-arrow {
  font-size: 8px;
  transition: transform 0.15s;
  width: 10px;
}

.fe-folder .folder-arrow.expanded {
  transform: rotate(90deg);
}

.fe-folder-children {
  padding-left: 16px;
  display: none;
}

.fe-folder-children.expanded {
  display: block;
}

.fe-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fe-navbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--os-border);
  font-size: var(--font-sm);
}

.fe-navbar button {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--os-text);
  font-size: var(--font-sm);
}

.fe-navbar button:hover {
  background: rgba(255,255,255,0.06);
}

.fe-navbar button:disabled {
  opacity: 0.3;
  cursor: default;
}

.fe-path {
  flex: 1;
  padding: 4px 8px;
  background: var(--os-bg);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: var(--font-xs);
  color: var(--os-text);
  border: 1px solid var(--os-border);
}

.fe-file-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.fe-header {
  display: grid;
  grid-template-columns: 24px 1fr 70px 100px;
  gap: 8px;
  padding: 6px 8px;
  font-size: var(--font-xs);
  color: var(--os-accent);
  border-bottom: 1px solid var(--os-border);
  cursor: pointer;
}

.fe-file {
  display: grid;
  grid-template-columns: 24px 1fr 70px 100px;
  gap: 8px;
  padding: 6px 8px;
  font-size: var(--font-sm);
  color: var(--os-text);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}

.fe-file:hover {
  background: rgba(255,255,255,0.04);
}

.fe-file.selected {
  background: var(--os-highlight);
}

.fe-file .file-icon {
  font-size: 16px;
}

.fe-file .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-file .file-size,
.fe-file .file-date {
  font-size: var(--font-xs);
  color: #888;
}

/* ===================== */
/*   MailDrop (Email)    */
/* ===================== */
.email-client {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.email-tabs {
  display: flex;
  border-bottom: 1px solid var(--os-border);
  flex-shrink: 0;
}

.email-tab {
  padding: 8px 16px;
  font-size: var(--font-sm);
  color: var(--os-text);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.email-tab:hover {
  background: rgba(255,255,255,0.04);
}

.email-tab.active {
  color: var(--os-text-bright);
  border-bottom-color: var(--os-accent);
}

.email-tab .tab-count {
  margin-left: 4px;
  font-size: var(--font-xs);
  color: var(--os-accent);
}

.email-body-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.email-list {
  width: 240px;
  border-right: 1px solid var(--os-border);
  overflow-y: auto;
  flex-shrink: 0;
}

.email-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42,42,74,0.5);
  cursor: pointer;
  transition: background 0.1s;
}

.email-item:hover {
  background: rgba(255,255,255,0.03);
}

.email-item.selected {
  background: var(--os-highlight);
}

.email-item.unread .ei-from {
  font-weight: 600;
  color: var(--os-text-bright);
}

.email-item.unread::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--os-accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.ei-from {
  font-size: var(--font-sm);
  color: var(--os-text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ei-subject {
  font-size: var(--font-xs);
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ei-date {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

.email-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.email-content .ec-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--os-border);
}

.email-content .ec-field {
  font-size: var(--font-sm);
  color: var(--os-text);
  margin-bottom: 4px;
}

.email-content .ec-field strong {
  color: var(--os-text-bright);
}

.email-content .ec-subject {
  font-size: var(--font-lg);
  color: var(--os-text-bright);
  font-weight: 500;
  margin-top: 8px;
}

.email-content .ec-body {
  font-size: var(--font-md);
  color: var(--os-text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.email-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #555;
  font-size: var(--font-sm);
}

/* ===================== */
/*   Murmur (Chat)       */
/* ===================== */
.chat-app {
  display: flex;
  height: 100%;
}

.chat-contacts {
  width: 160px;
  border-right: 1px solid var(--os-border);
  padding: 8px 0;
  flex-shrink: 0;
}

.chat-contacts .contacts-header {
  padding: 8px 12px;
  font-size: var(--font-xs);
  color: var(--os-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chat-contact {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-contact:hover {
  background: rgba(255,255,255,0.04);
}

.chat-contact.selected {
  background: var(--os-highlight);
}

.chat-contact .contact-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-status.online {
  background: var(--os-success);
  box-shadow: 0 0 4px var(--os-success);
}

.contact-status.offline {
  background: #555;
}

.chat-contact .contact-name {
  font-size: var(--font-sm);
  color: var(--os-text);
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--os-border);
  font-size: var(--font-md);
  color: var(--os-text-bright);
  font-weight: 500;
}

.chat-header .typing-indicator {
  font-size: var(--font-xs);
  color: var(--os-accent);
  font-weight: 400;
  display: none;
}

.chat-header .typing-indicator.visible {
  display: inline;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: var(--font-sm);
  line-height: 1.5;
}

.chat-msg.sent {
  align-self: flex-end;
  background: var(--os-accent);
  color: var(--os-text-bright);
  border-bottom-right-radius: 4px;
}

.chat-msg.received {
  align-self: flex-start;
  background: var(--os-border);
  color: var(--os-text);
  border-bottom-left-radius: 4px;
}

.chat-msg .msg-time {
  font-size: 10px;
  color: rgba(200,200,212,0.5);
  margin-top: 4px;
}

.chat-msg.system-msg {
  align-self: center;
  background: none;
  color: #555;
  font-size: var(--font-xs);
  font-style: italic;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--os-border);
}

.chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  background: var(--os-bg);
  border: 1px solid var(--os-border);
  border-radius: 20px;
  color: var(--os-text);
  font-family: var(--font-system);
  font-size: var(--font-sm);
}

.chat-input-area input:focus {
  border-color: var(--os-accent);
}

.chat-input-area input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chat-input-area .send-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--os-accent);
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.15s;
}

.chat-input-area .send-btn:hover {
  background: var(--os-accent-hover);
}

.chat-input-area .send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: var(--font-sm);
}

/* ===================== */
/*   NoteIt (Notepad)    */
/* ===================== */
.notepad-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notepad-menu {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--os-border);
  flex-shrink: 0;
}

.notepad-menu button {
  padding: 6px 14px;
  font-size: var(--font-sm);
  color: var(--os-text);
}

.notepad-menu button:hover {
  background: rgba(255,255,255,0.04);
}

.notepad-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.notepad-lines {
  width: 40px;
  padding: 12px 4px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  color: #444;
  line-height: 1.6;
  overflow: hidden;
  border-right: 1px solid var(--os-border);
  flex-shrink: 0;
}

.notepad-textarea {
  flex: 1;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  color: var(--os-text);
  background: transparent;
  line-height: 1.6;
  tab-size: 4;
}

.notepad-textarea:focus {
  outline: none;
}

.notepad-textarea[readonly] {
  cursor: default;
}

.notepad-status {
  padding: 4px 12px;
  border-top: 1px solid var(--os-border);
  font-size: var(--font-xs);
  color: #555;
  flex-shrink: 0;
}

/* ===================== */
/*   WaveForm (Media Player) */
/* ===================== */
.media-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  gap: 20px;
}

.mp-title {
  font-size: var(--font-md);
  color: var(--os-text-bright);
  font-family: var(--font-mono);
}

.mp-visualizer {
  width: 100%;
  height: 120px;
  border: 1px solid var(--os-border);
  border-radius: 4px;
  overflow: hidden;
}

.mp-visualizer canvas {
  width: 100%;
  height: 100%;
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mp-controls button {
  font-size: 20px;
  color: var(--os-text);
  padding: 4px;
  transition: color 0.15s;
}

.mp-controls button:hover {
  color: var(--os-text-bright);
}

.mp-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mp-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--os-border);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.mp-progress-fill {
  height: 100%;
  background: var(--os-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s;
}

.mp-progress-knob {
  width: 12px;
  height: 12px;
  background: var(--os-text-bright);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  left: 0%;
}

.mp-time {
  font-size: var(--font-xs);
  color: #888;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.mp-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-volume-icon {
  font-size: 16px;
  color: var(--os-text);
}

.mp-volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--os-border);
  border-radius: 2px;
  outline: none;
}

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

.mp-transcript {
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: var(--font-xs);
  color: var(--os-text);
  line-height: 1.6;
  padding: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  display: none;
}

.mp-transcript.visible {
  display: block;
}

/* ===================== */
/*   Terminal            */
/* ===================== */
.terminal-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
}

.terminal-output {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  line-height: 1.6;
  color: #a0f0a0;
}

.terminal-output .term-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-output .term-line.error {
  color: var(--os-error);
}

.terminal-output .term-line.system {
  color: var(--os-accent);
}

.terminal-output .term-line.warning {
  color: #c0c040;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 0 12px 12px;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  color: #a0f0a0;
}

.terminal-input-line .prompt {
  white-space: pre;
}

.terminal-input-line input {
  flex: 1;
  color: #a0f0a0;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  caret-color: #a0f0a0;
}

.terminal-login {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  color: #a0f0a0;
}

.terminal-login input {
  color: #a0f0a0;
  font-family: var(--font-mono);
  font-size: var(--font-sm);
  caret-color: #a0f0a0;
  -webkit-text-security: disc;
}

/* ===================== */
/*   Image Viewer        */
/* ===================== */
.image-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  background: #0a0a10;
}

.image-viewer .iv-canvas {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-viewer .iv-caption {
  margin-top: 12px;
  font-size: var(--font-sm);
  color: #888;
  font-style: italic;
}

/* CSS Art - Family Photo */
.css-family-photo {
  width: 300px;
  height: 200px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #4a7ab5 0%, #6a9ad5 40%, #3a8a3a 60%, #2a6a2a 100%);
  filter: sepia(0.2) saturate(0.9);
}

.css-family-photo::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 35%;
  width: 30px;
  height: 60px;
  background: #2a2a3a;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.css-family-photo::after {
  content: '';
  position: absolute;
  bottom: 30%;
  right: 35%;
  width: 28px;
  height: 55px;
  background: #3a2a3a;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

/* CSS Art - Lab Setup */
.css-lab-setup {
  width: 300px;
  height: 200px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 100%);
}

/* CSS Art - LUCID Screenshot */
.css-lucid-screenshot {
  width: 300px;
  height: 200px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a15;
}

/* ===================== */
/*   LUCID App           */
/* ===================== */
.lucid-app {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #0a0a2a;
  overflow: hidden;
}

.lucid-pattern {
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(
    circle at center,
    #0a0a2a 0px,
    #0a0a2a 20px,
    #1a1a4a 20px,
    #1a1a4a 40px
  );
  animation: lucid-pulse 2s ease-in-out infinite;
}

@keyframes lucid-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.3); }
}

/* ===================== */
/*   Achievements        */
/* ===================== */
.achievements-panel {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--os-border);
}

.achievement-item .ach-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.achievement-item .ach-info {
  flex: 1;
}

.achievement-item .ach-name {
  font-size: var(--font-md);
  color: var(--os-text-bright);
  font-weight: 500;
  margin-bottom: 2px;
}

.achievement-item .ach-desc {
  font-size: var(--font-xs);
  color: #888;
}

.achievement-item.earned .ach-icon {
  color: #d4a03a;
}

.achievement-item.earned .ach-status {
  color: var(--os-success);
  font-size: var(--font-xs);
}

.achievement-item.locked .ach-icon {
  color: #444;
}

.achievement-item.locked .ach-name,
.achievement-item.locked .ach-desc {
  color: #555;
}

.achievements-counter {
  text-align: center;
  padding: 12px;
  font-size: var(--font-sm);
  color: var(--os-accent);
}

/* Achievement Popup */
.achievement-popup {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--os-window-bg);
  border: 1px solid #d4a03a;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9850;
  box-shadow: 0 4px 20px rgba(212,160,58,0.2);
  animation: ach-in 0.4s ease-out;
}

.achievement-popup .ap-icon {
  font-size: 24px;
  color: #d4a03a;
}

.achievement-popup .ap-text .ap-label {
  font-size: var(--font-xs);
  color: #d4a03a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.achievement-popup .ap-text .ap-name {
  font-size: var(--font-md);
  color: var(--os-text-bright);
  font-weight: 500;
}

@keyframes ach-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* Musicfy              */
/* ===================== */

.musicfy-app {
  display: flex;
  height: 100%;
  background: #0a0a0f;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.musicfy-sidebar {
  width: 160px;
  background: #050508;
  border-right: 1px solid #1a1a2a;
  padding: 12px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.musicfy-logo {
  padding: 8px 14px 16px;
  font-size: var(--font-lg);
  font-weight: 600;
  color: #1db954;
  letter-spacing: 0.5px;
}

.musicfy-nav-item {
  padding: 8px 14px;
  font-size: var(--font-sm);
  color: #888;
  cursor: default;
  transition: background 0.12s;
  border-radius: 0;
}

.musicfy-nav-item:hover {
  background: rgba(255,255,255,0.04);
}

.musicfy-nav-item.active {
  color: var(--os-text-bright);
  background: rgba(255,255,255,0.06);
  border-left: 3px solid #1db954;
  padding-left: 11px;
}

/* Main area */
.musicfy-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

/* Header */
.musicfy-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 20px 16px;
  background: linear-gradient(180deg, #1a3a2a 0%, #0a0a0f 100%);
  flex-shrink: 0;
}

.musicfy-cover {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1db954 0%, #0a4a2a 50%, #191414 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.musicfy-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.musicfy-header-label {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.musicfy-header-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--os-text-bright);
}

.musicfy-header-meta {
  font-size: var(--font-xs);
  color: #888;
}

/* Track list */
.musicfy-tracklist {
  padding: 0 12px 60px;
  flex: 1;
}

.musicfy-track-header {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  font-size: var(--font-xs);
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #1a1a2a;
  margin-bottom: 4px;
}

.musicfy-track {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: var(--font-md);
  color: var(--os-text);
}

.musicfy-track:hover {
  background: rgba(255,255,255,0.06);
}

.musicfy-track.active {
  color: #1db954;
}

.musicfy-track.active .track-num {
  color: #1db954;
}

.track-num {
  width: 28px;
  text-align: center;
  color: #666;
  flex-shrink: 0;
  font-size: var(--font-sm);
}

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

.track-artist {
  width: 100px;
  color: #888;
  font-size: var(--font-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.track-duration {
  width: 44px;
  text-align: right;
  color: #666;
  font-size: var(--font-sm);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Transport bar */
.musicfy-transport {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #111118;
  border-top: 1px solid #1a1a2a;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  z-index: 2;
}

.musicfy-transport-left {
  width: 140px;
  flex-shrink: 0;
  min-width: 0;
}

.musicfy-now-title {
  font-size: var(--font-sm);
  color: var(--os-text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musicfy-now-artist {
  font-size: var(--font-xs);
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.musicfy-transport-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.musicfy-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.musicfy-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
  font-family: var(--font-system);
}

.musicfy-btn:hover {
  color: var(--os-text-bright);
  transform: scale(1.1);
}

.musicfy-play-btn {
  width: 28px;
  height: 28px;
  background: #1db954;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.musicfy-play-btn:hover {
  background: #1ed760;
  color: #000;
  transform: scale(1.08);
}

/* Progress bar */
.musicfy-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.musicfy-time {
  font-size: 10px;
  color: #666;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: center;
}

.musicfy-progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.musicfy-progress-bar:hover {
  height: 6px;
}

.musicfy-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.musicfy-progress-bar:hover .musicfy-progress-fill {
  background: #1ed760;
}

/* Repeat + Volume */
.musicfy-transport-right {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.musicfy-volume-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.musicfy-vol-icon {
  font-size: 12px;
  cursor: default;
  width: 16px;
  text-align: center;
}

.musicfy-volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.musicfy-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.musicfy-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.musicfy-volume-slider:hover::-webkit-slider-thumb {
  background: #1db954;
}

.musicfy-volume-slider:hover::-moz-range-thumb {
  background: #1db954;
}

.musicfy-repeat-btn {
  font-size: 14px;
  opacity: 0.4;
}

.musicfy-repeat-btn.repeat-active {
  color: #1db954;
  opacity: 1;
}

.musicfy-repeat-btn.repeat-active:hover {
  color: #1ed760;
}
