* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --blue: #4680ea;
    }

    html, body {
      width: 100%;
      height: 100%;
      min-height: 100%;
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
      color: #171c29;
    }

    body {
      overflow-x: hidden;
      background: #314755;  /* fallback for old browsers */
      background-size: 100% 100%;
      background-position: 0px 0px,0px 0px,0px 0px,0px 0px,0px 0px;
      background-image: repeating-linear-gradient(315deg, #00FFFF2E 92%, #073AFF00 100%),repeating-radial-gradient(75% 75% at 238% 218%, #00FFFF12 30%, #073AFF14 39%),conic-gradient(from 0deg at 109% 2%, #7B00FFFF 0%, #073AFF00 100%),radial-gradient(99% 99% at 21% 78%, #7B00FFFF 0%, #073AFF00 100%),radial-gradient(160% 154% at 711px -303px, #BE0404FF 0%, #073AFFFF 100%);
    }

    .wallpaper {
      position: fixed;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
    }
    
    #app {
      width: 100%;
      min-height: 100%;
      overflow: hidden;
    }

    .screen {
      height: 100vh;
      min-height: 100vh;
      padding: 10px 18px 90px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      transition: padding 0.2s ease;
      overflow: hidden;
    }

    .screen.is-fullscreen {
      padding: 0;
    }

    .window {
      width: min(1040px, calc(100vw - 120px));
      min-height: 520px;
      background: #f4f4f6;
      border-radius: 26px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.55);
      position: relative;
      z-index: 2;
      transition: width 0.2s ease, height 0.2s ease, transform 0.28s ease, border-radius 0.2s ease, top 0.2s ease, left 0.2s ease;
      will-change: transform;
    }

    .window.dragging:not(.music-window) {
      transition: none !important;
    }

    .window-shell {
      display: grid;
      grid-template-columns: 285px 1fr;
      min-height: 520px;
    }

    .sidebar {
      background: #ececef;
      border-right: 1px solid rgba(0,0,0,0.05);
      padding: 16px 16px 18px;
      position: relative;
    }

    .traffic {
      display: flex;
      gap: 8px;
      margin: 2px 0 34px 4px;
    }
    
    .traffic-btn {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 0;
      padding: 0;
      font-size: 8px;
      font-weight: 700;
      color: rgba(0,0,0,0.58);
      cursor: pointer;
      line-height: 1;
      position: relative;
    }

    .traffic-btn::before {
      opacity: 0;
      transition: opacity 0.15s ease;
    }

    .traffic-btn:hover::before {
      opacity: 1;
    }

    .traffic-btn.red::before {
      content: "×";
    }

    .traffic-btn.yellow::before {
      content: "−";
    }

    .traffic-btn.red { background: #ff5f57; }
    .traffic-btn.yellow { background: #febc2e; }
    .traffic-btn.green { background: #28c840; }

    .traffic-btn .icon {
      width: 8px;
      height: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.15s ease;
      transform: rotate(45deg);
      transform-origin: center;
      color: rgba(0,0,0,0.72);
      pointer-events: none;
    }

    .traffic-btn:hover .icon {
      opacity: 1;
    }

    .traffic-btn .icon svg {
      width: 8px;
      height: 8px;
      display: block;
    }

    .section-label {
      font-size: 11px;
      font-weight: 700;
      color: #737786;
      letter-spacing: 0.03em;
      margin: 0 0 12px 14px;
    }

    .nav-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 30px;
    }

    .nav-btn,
    .album-btn {
      border: 0;
      background: transparent;
      width: 100%;
      text-align: left;
      border-radius: 11px;
      color: #404655;
      cursor: pointer;
      transition: background 0.18s ease;
    }

    .nav-btn {
      padding: 11px 14px;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .nav-btn:hover,
    .album-btn:hover {
      background: rgba(0,0,0,0.03);
    }

    .nav-btn.active {
      background: var(--blue);
      color: white;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    }

    .nav-icon,
    .album-icon {
      width: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
      flex-shrink: 0;
    }

    .album-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .album-btn {
      padding: 9px 14px;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .content {
      background: #f6f6f7;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .content-header {
      height: 74px;
      border-bottom: 1px solid rgba(0,0,0,0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px 0 28px;
      flex-shrink: 0;
      cursor: grab;
      user-select: none;
    }

    .content-header:active {
      cursor: grabbing;
    }

    .content-title h1 {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 2px;
      color: #181d2a;
    }

    .content-title p {
      font-size: 13px;
      color: #6f7583;
    }

    .search-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 0;
      background: #f2f2f4;
      box-shadow: 0 5px 10px rgba(0,0,0,0.06);
      cursor: default;
      position: relative;
      flex-shrink: 0;
      pointer-events: none;
    }

    .search-btn::before {
      content: "";
      position: absolute;
      width: 13px;
      height: 13px;
      border: 2px solid #5f6573;
      border-radius: 50%;
      left: 11px;
      top: 9px;
    }

    .search-btn::after {
      content: "";
      position: absolute;
      width: 9px;
      height: 2px;
      background: #5f6573;
      border-radius: 3px;
      transform: rotate(45deg);
      right: 10px;
      bottom: 11px;
    }

    .songs-list {
      padding: 8px 0 8px;
    }

    .song-row {
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr) 52px;
      align-items: center;
      gap: 12px;
      padding: 14px 26px;
      cursor: pointer;
      user-select: none;
      transition: background 0.14s ease;
      border-radius: 14px;
      margin: 0 10px 4px;
    }

    .song-row:hover {
      background: rgba(0,0,0,0.025);
    }

    .song-row.active {
      background: #4680ea;
    }

    .song-row.active .song-title,
    .song-row.active .song-meta,
    .song-row.active .song-duration {
      color: white;
    }

    .song-cover {
      width: 34px;
      height: 34px;
      border-radius: 7px;
      overflow: hidden;
      background: #0f172a;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    }

    .song-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .song-cover.logo {
      background: #000;
      color: white;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.04em;
    }

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

    .song-title {
      font-size: 15px;
      font-weight: 500;
      line-height: 1.2;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #171c29;
    }

    .song-meta {
      font-size: 11px;
      color: #6f7583;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .song-duration {
      font-size: 12px;
      color: #6f7583;
      text-align: right;
      justify-self: end;
      white-space: nowrap;
    }

    .player-bar {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 12px 18px 18px;
      padding: 14px 16px;
      border-radius: 18px;
      background: #efeff2;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 16px rgba(0,0,0,0.06);
    }

    .player-bar.visible {
      display: flex;
    }

    .player-left {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
      flex: 1;
    }

    .player-cover {
      width: 42px;
      height: 42px;
      border-radius: 9px;
      overflow: hidden;
      background: #0f172a;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .player-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .player-meta {
      min-width: 0;
    }

    .player-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #171c29;
    }

    .player-subtitle {
      font-size: 11px;
      color: #6f7583;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

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

    .player-controls button {
      border: 0;
      background: transparent;
      font-size: 20px;
      color: #8d919c;
      cursor: pointer;
    }

    .player-progress {
      flex: 1;
      max-width: 260px;
    }

    .player-progress-bar {
      width: 100%;
      height: 7px;
      border-radius: 999px;
      background: #d9dbe1;
      overflow: hidden;
    }

    .player-progress-fill {
      width: 14px;
      height: 100%;
      border-radius: 999px;
      background: #3d82f6;
    }

    .dock {
      position: fixed;
      left: 50%;
      bottom: 12px;
      transform: translateX(-50%);
      padding: 10px 10px;
      border-radius: 20px;
      background: rgba(28, 28, 30, 0.75);
      backdrop-filter: blur(20px) saturate(1.2);
      -webkit-backdrop-filter: blur(20px) saturate(1.2);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow:
        0 16px 30px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.12);
      z-index: 100;
      transition: transform 0.25s ease, opacity 0.25s ease, bottom 0.25s ease;
    }
    
    .dock.hidden-in-fullscreen {
      transform: translateX(-50%) translateY(120px);
      opacity: 0;
      pointer-events: none;
    }

    .screen.is-fullscreen + .dock.hidden-in-fullscreen {
      transform: translateX(-50%) translateY(120px);
    }

    .dock-inner {
      display: flex;
      align-items: flex-end;
      gap: 10px;
    }

    .dock-divider {
      width: 1px;
      height: 34px;
      background: rgba(120,120,125,0.35);
      margin: 0 3px;
      border-radius: 999px;
      flex-shrink: 0;
    }

    .dock-item {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      height: 40px;
      flex-shrink: 0;
      cursor: pointer;
    }

    .dock-app {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 5px 10px rgba(0,0,0,0.18);
      position: relative;
      overflow: visible;
      flex-shrink: 0;
      transform-origin: bottom center;
      transition: transform 0.18s ease;
      background: transparent;
    }

    .dock-app img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      border-radius: 11px;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
      box-shadow: 0 5px 10px rgba(0,0,0,0.18);
    }

    .dock-item:hover .dock-app {
      transform: scale(1.02);
    }

    .dock-tooltip {
      position: absolute;
      left: 50%;
      bottom: 54px;
      transform: translateX(-50%) translateY(8px);
      padding: 7px 10px;
      border-radius: 10px;
      background: rgba(38, 38, 42, 0.92);
      color: white;
      font-size: 12px;
      line-height: 1;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.16s ease, transform 0.16s ease;
      box-shadow: 0 10px 20px rgba(0,0,0,0.22);
      z-index: 999;
    }

    .dock-tooltip::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -5px;
      width: 10px;
      height: 10px;
      background: rgba(38, 38, 42, 0.92);
      transform: translateX(-50%) rotate(45deg);
      border-radius: 2px 0px 2px 0px;
      background: linear-gradient(-45deg, rgba(38, 38, 42, 0.92) 0%, rgba(38, 38, 42, 0.92) 50%, transparent 50%, transparent 100%);
    }

    .dock-item:hover .dock-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .dock-indicator {
      position: absolute;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(255,255,255,0.95);
      left: 50%;
      transform: translateX(-50%);
      bottom: -7px;
      z-index: 2;
    }

    .dock-item.is-running .dock-app::after {
      content: "";
      position: absolute;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(255,255,255,0.95);
      left: 50%;
      transform: translateX(-50%);
      bottom: -7px;
      z-index: 2;
    }

    @media (max-width: 1200px) {
      .window {
        width: calc(100vw - 40px);
      }

      .window-shell {
        grid-template-columns: 240px 1fr;
      }
    }

    @media (max-width: 900px) {
      .screen {
        padding: 18px 10px 130px;
      }

      .screen.is-fullscreen {
        padding: 0;
      }

      .window {
        width: calc(100vw - 20px);
        min-height: auto;
      }

      .window-shell {
        grid-template-columns: 1fr;
      }

      .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
      }

      .song-row {
        grid-template-columns: 56px minmax(0, 1fr) 56px;
        padding: 16px 18px;
      }

      .dock {
        width: calc(100vw - 22px);
        overflow-x: auto;
      }
    }
    
    
    #music_component 
    
.music-screen {
  padding: 42px 18px 90px;
}

.music-window {
  width: min(1020px, calc(100vw - 120px));
  min-height: 630px;
  background: #18181b;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  overflow: hidden;
}

.music-layout {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 630px;
}

.music-sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
}

.music-main {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 30%),
    #1a1a1d;
  color: #f3f3f5;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.music-topbar {
  height: 78px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 16px 0 18px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.music-topbar:active {
  cursor: grabbing;
}

.music-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #f3f3f5;
}

.music-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.music-view-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #d3d4d8;
  font-size: 14px;
}

.music-search {
  height: 34px;
  min-width: 178px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #9fa3ab;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.music-search-icon {
  font-size: 13px;
  opacity: 0.9;
}

.desktop-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  padding: 0 14px;
  background: rgba(28,28,30,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
  user-select: none;
}

.desktop-menu-left,
.desktop-menu-right {
  min-width: 0;
  display: flex;
  align-items: center;
}

.desktop-menu-left {
  gap: 14px;
  overflow: hidden;
}

.desktop-menu-right {
  justify-content: flex-end;
  gap: 9px;
  flex: 1;
  overflow: hidden;
}

.desktop-menu-app {
  font-weight: 500;
}

.desktop-menu-owner {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
}

.desktop-menu-owner:hover {
  color: #fff;
}

.desktop-menu-apple {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.desktop-menu-apple svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.desktop-status-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
  flex: 0 0 auto;
}

.desktop-status-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.desktop-status-location,
.desktop-status-weather,
.desktop-status-timezone,
.desktop-status-date,
.desktop-status-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-status-weather,
.desktop-status-timezone {
  color: rgba(255,255,255,0.68);
  font-weight: 400;
}

.desktop-status-time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .desktop-menu-left span:not(.desktop-menu-apple):not(.desktop-menu-app):not(.desktop-menu-owner),
  .desktop-status-timezone,
  .desktop-status-location {
    display: none;
  }
}

.about-overlay {
  position: fixed;
  inset: 0;
  padding: 28px;
  background: rgba(0,0,0,0.12);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.about-overlay[hidden] {
  display: none;
}

.about-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 56px));
  overflow: hidden;
  border-radius: 22px;
  background: #1f2024;
  border: 1px solid rgba(255,255,255,0.16);
  color: #f5f5f7;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-overlay.is-open .about-window {
  transform: translate(-50%, -50%) scale(1);
}

.about-window.is-dragging {
  transition: none;
  cursor: grabbing;
}

.about-window-header {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.about-window-header:active {
  cursor: grabbing;
}

.about-window-header h2 {
  grid-column: 2;
  font-size: 17px;
  font-weight: 500;
  color: #f5f5f7;
}

.about-traffic {
  display: flex;
  gap: 8px;
  align-items: center;
}

.about-traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  display: block;
}

.about-traffic-btn.red {
  background: #ff5f57;
  cursor: pointer;
}

.about-traffic-btn.muted {
  background: rgba(255,255,255,0.22);
}

.about-window-body {
  overflow: hidden;
  padding: 36px 46px 28px;
  text-align: center;
}

.about-mark {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.44), transparent 24%),
    linear-gradient(135deg, #2f8de4, #17375f);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

.about-mark span {
  color: #fff;
  font-size: 38px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.about-window-body h3 {
  font-size: 34px;
  line-height: 1;
  font-weight: 760;
  color: #f5f5f7;
  margin-bottom: 8px;
}

.about-subtitle {
  color: rgba(245,245,247,0.58);
  font-size: 15px;
  line-height: 1.35;
  margin: 0 auto 30px;
  max-width: 340px;
}

.about-copy {
  text-align: center;
  color: rgba(245,245,247,0.78);
  font-size: 14px;
  line-height: 1.58;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-window-body footer {
  margin-top: 28px;
  color: rgba(245,245,247,0.42);
  font-size: 13px;
}

.mail-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mail-overlay[hidden] {
  display: none;
}

.mail-overlay.is-open {
  opacity: 1;
  pointer-events: none;
}

.mail-window {
  position: absolute;
  top: 84px;
  left: 84px;
  width: min(920px, calc(100vw - 96px));
  height: min(650px, calc(100vh - 140px));
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42);
  color: #f5f5f7;
  pointer-events: auto;
  transform: translateY(10px) scale(0.985);
  transition:
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-overlay.is-open .mail-window {
  transform: translateY(0) scale(1);
}

.mail-window.is-maximized {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.mail-window.is-dragging {
  transition: none;
}

.mail-window-header {
  height: 58px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.mail-window-header:active {
  cursor: grabbing;
}

.mail-traffic {
  display: flex;
  gap: 10px;
  align-items: center;
  grid-column: 1;
}

.mail-window-title {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #f3f3f5;
  pointer-events: none;
}

.mail-window-title::before {
  content: "";
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
}

.mail-traffic-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: rgba(0,0,0,0.62);
  line-height: 1;
  padding: 0;
}

.mail-traffic-btn::before {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mail-window-header:hover .mail-traffic-btn::before,
.mail-window-header:hover .mail-traffic-btn .icon {
  opacity: 1;
}

.mail-traffic-btn.red {
  background: #ff5f57;
}

.mail-traffic-btn.red::before {
  content: "×";
}

.mail-traffic-btn.yellow {
  background: #febc2e;
}

.mail-traffic-btn.yellow::before {
  content: "−";
}

.mail-traffic-btn.green {
  background: #28c840;
}

.mail-traffic-btn .icon {
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: rotate(45deg);
  transform-origin: center;
  color: rgba(0,0,0,0.72);
  pointer-events: none;
}

.mail-traffic-btn .icon svg {
  width: 8px;
  height: 8px;
  display: block;
}

.mail-form {
  height: calc(100% - 58px);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  background: #1f1f21;
  min-height: 0;
}

.mail-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mail-row label,
.mail-message-label,
.mail-captcha-wrap label {
  color: rgba(255,255,255,0.62);
  font-size: 16px;
  font-weight: 600;
}

.mail-row input,
.mail-body-wrap textarea,
.mail-captcha-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  font: inherit;
  outline: none;
}

.mail-row input {
  height: 100%;
  font-size: 16px;
}

.mail-row input::placeholder,
.mail-body-wrap textarea::placeholder,
.mail-captcha-wrap input::placeholder {
  color: rgba(255,255,255,0.34);
}

.mail-body-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 18px;
  min-height: 0;
}

.mail-message-label {
  font-size: 15px;
}

.mail-body-wrap textarea {
  resize: none;
  min-height: 0;
  height: 100%;
  line-height: 1.55;
  font-size: 15px;
}

.mail-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  min-height: 0;
}

.mail-captcha-wrap {
  display: grid;
  grid-template-columns: auto auto 92px;
  align-items: center;
  gap: 10px;
}

.mail-captcha-wrap label {
  font-size: 14px;
}

.mail-captcha-question {
  height: 36px;
  min-width: 84px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mail-captcha-wrap input {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  font-size: 14px;
}

.mail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mail-status {
  min-height: 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}

.mail-status.is-error {
  color: #ff8f8f;
}

.mail-send-btn {
  border: 0;
  border-radius: 10px;
  height: 36px;
  min-width: 88px;
  padding: 0 18px;
  background: #0a84ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.mail-send-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.mail-form .is-invalid {
  box-shadow: inset 0 -2px 0 #ff8f8f;
}

.note-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.note-overlay[hidden] {
  display: none;
}

.note-overlay.is-open {
  opacity: 1;
  pointer-events: none;
}

.note-window {
  position: absolute;
  top: 74px;
  left: 74px;
  width: min(1220px, calc(100vw - 104px));
  height: min(720px, calc(100vh - 128px));
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  color: #f5f5f7;
  pointer-events: auto;
  transform: translateY(10px) scale(0.985);
  transition:
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.note-overlay.is-open .note-window {
  transform: translateY(0) scale(1);
}

.note-window-header {
  height: 58px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.note-window-header:active {
  cursor: grabbing;
}

.note-traffic {
  display: flex;
  gap: 10px;
  align-items: center;
}

.note-window-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #f3f3f5;
  pointer-events: none;
}

.note-window-title::before {
  content: "";
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
}

.note-traffic-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: rgba(0,0,0,0.62);
  line-height: 1;
  padding: 0;
}

.note-traffic-btn::before {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.note-window-header:hover .note-traffic-btn::before,
.note-window-header:hover .note-traffic-btn .icon {
  opacity: 1;
}

.note-traffic-btn.red {
  background: #ff5f57;
}

.note-traffic-btn.red::before {
  content: "×";
}

.note-traffic-btn.yellow {
  background: #febc2e;
}

.note-traffic-btn.yellow::before {
  content: "−";
}

.note-traffic-btn.green {
  background: #28c840;
}

.note-traffic-btn .icon {
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: rotate(45deg);
  transform-origin: center;
  color: rgba(0,0,0,0.72);
  pointer-events: none;
}

.note-traffic-btn .icon svg {
  width: 8px;
  height: 8px;
  display: block;
}

.note-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  height: calc(100% - 58px);
  min-height: 0;
  background: #1c1d21;
}

.note-sidebar {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 42%),
    #24252a;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 14px;
  min-width: 0;
}

.note-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-collection-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cbd2dc;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.note-collection-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(2px);
}

.note-collection-item.active {
  background: linear-gradient(180deg, rgba(255,184,0,0.98), rgba(255,170,0,0.98));
  color: #171717;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.note-collection-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.note-collection-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.note-collection-label {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.note-collection-count {
  font-size: 14px;
  opacity: 0.72;
}

.note-main {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  min-width: 0;
  min-height: 0;
  background: #1f2024;
}

.note-list-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: #202126;
}

.note-list-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.note-list-title {
  font-size: 17px;
  font-weight: 700;
  color: #f6f7fb;
}

.note-list-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
}

.note-list {
  overflow-y: auto;
  padding: 10px 10px 14px;
}

.note-list-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 16px 14px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.note-list-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(2px);
}

.note-list-item.active {
  background: linear-gradient(180deg, rgba(255,184,0,0.98), rgba(255,170,0,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.note-list-item-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f3f4f6;
}

.note-list-item-preview {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #9ca3af;
}

.note-list-item.active .note-list-item-title,
.note-list-item.active .note-list-item-preview {
  color: #181818;
}

.note-detail-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 30%),
    #1d1e22;
  display: block;
  padding: 36px 44px;
}

.note-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8f96a3;
  font-size: 18px;
  text-align: center;
}

.note-empty-state[hidden] {
  display: none;
}

.note-detail {
  width: min(720px, 100%);
  max-height: 100%;
  overflow-y: auto;
}

.note-detail-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  color: #f8fafc;
}

.note-detail-meta {
  margin-top: 12px;
  font-size: 14px;
  color: #9ca3af;
}

.note-detail-body {
  margin-top: 28px;
}

.note-detail-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.72;
  color: #d8dde6;
}

@media (max-width: 980px) {
  .note-window {
    top: 54px;
    left: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 84px);
    min-height: 0;
  }

  .note-layout {
    grid-template-columns: 230px 1fr;
  }

  .note-main {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 820px) {
  .mail-window {
    top: 54px;
    left: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 84px);
    min-height: 0;
  }

  .mail-row {
    grid-template-columns: 88px 1fr;
  }

  .mail-footer {
    grid-template-columns: 1fr;
  }

  .mail-captcha-wrap {
    grid-template-columns: auto 1fr 88px;
  }

  .mail-actions {
    justify-items: stretch;
  }
}

.music-grid-wrap {
  flex: 1;
  min-height: 0;
  padding: 18px 18px 98px;
  overflow-y: auto;
  overflow-x: hidden;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.music-empty-state {
  height: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #8f949c;
  font-size: 15px;
  font-weight: 600;
}

.album-card {
  min-width: 0;
}

.album-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  margin-bottom: 8px;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-name {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f6;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-artist {
  font-size: 13px;
  color: #9fa3ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-nav-section + .music-nav-section {
  margin-top: 14px;
}

.music-nav-title {
  font-size: 11px;
  font-weight: 700;
  color: #8f949c;
  margin: 0 8px 8px;
}

.music-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.music-nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d8d9dd;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-align: left;
}

.music-nav-item.active {
  background: rgba(255,255,255,0.08);
  color: #ff6b6b;
}

.music-nav-item.child {
  margin-left: 18px;
  width: calc(100% - 18px);
  color: #aeb2ba;
  font-size: 12px;
  opacity: 0.86;
}

.music-nav-item.child .music-nav-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  opacity: 0.68;
}

.music-nav-item.child.active {
  color: #ff6b6b;
  opacity: 1;
}

.music-nav-icon {
  width: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.music-user {
  margin-top: auto;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #d8d9dd;
  font-size: 13px;
}

.music-user-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.music-player {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 36px));
  height: 48px;
  border-radius: 24px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}

.music-player-left,
.music-player-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-player-right {
  justify-content: flex-end;
}

.music-player button {
  border: 0;
  background: transparent;
  color: #efefef;
  font-size: 14px;
  opacity: 0.95;
}

.music-player-center {
  display: flex;
  justify-content: center;
}

.music-player-logo {
  font-size: 20px;
  color: rgba(255,255,255,0.92);
}

.music-sidebar .traffic {
  margin: 2px 0 18px 4px;
}

.music-sidebar .traffic-btn .icon {
  color: rgba(0,0,0,0.72);
}

.music-sidebar .traffic-btn.green .icon svg {
  width: 8px;
  height: 8px;
}

@media (max-width: 980px) {
  .music-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .music-sidebar {
    display: none;
  }

  .music-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .music-player {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px 14px;
    gap: 8px;
  }

  .music-player-left,
  .music-player-right {
    justify-content: center;
  }
}

.music-window {
  width: min(980px, calc(100vw - 140px));
  height: min(600px, calc(100vh - 56px));
  min-height: 600px;
  max-height: calc(100vh - 44px);
  background: #18181b;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  overflow: hidden;
  will-change: left, top, transform;
}

.music-layout {
  display: grid;
  grid-template-columns: 172px 1fr;
  height: 100%;
  min-height: 0;
}

.music-main {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 30%),
    #1a1a1d;
  color: #f3f3f5;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.music-nav-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-nav-icon iconify-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: block;
  color: red;
}

.music-nav-icon img {
  filter: brightness(0) invert(1);
}

.music-nav-item.active .music-nav-icon img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(95%) saturate(1819%) hue-rotate(334deg);
}

.music-user-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.music-user-avatar svg {
  width: 18px;
  height: 18px;
  color: white;
  display: block;
}

.music-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-grid-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 18px 132px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.music-grid-wrap.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.music-window {
  transition:
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.32s ease,
    top 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
}

.music-window.dragging {
  transition:
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.32s ease,
    top 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease;
}

.music-nav-item {
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-nav-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.music-nav-icon img {
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.album-card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.album-card:hover {
  transform: translateY(-3px);
}

.album-cover {
  transition: outline-color 0.22s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-card.is-playing .album-cover {
  box-shadow: 0 12px 28px rgba(70,128,234,0.28);
}

.music-main .song-row {
  background: rgba(255,255,255,0);
  color: #f4f4f6;
  transition:
    background 0.24s ease,
    color 0.24s ease,
    outline-color 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-main .song-row:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.music-main .song-title {
  color: #f4f4f6;
  transition: color 0.22s ease;
}

.music-main .song-meta,
.music-main .song-duration {
  color: #a3a7af;
  transition: color 0.22s ease;
}

.music-main .song-row.active .song-title,
.music-main .song-row.active .song-meta,
.music-main .song-row.active .song-duration {
  color: #fff;
}

.music-player {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: auto;
  height: auto;
  transform: none;
  display: grid;
  grid-template-columns: 44px minmax(120px, 0.72fr) auto minmax(260px, 1.6fr) 104px;
  gap: 12px 18px;
  align-items: center;
  background: rgba(34,34,38,0.74);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px;
  padding: 16px 22px;
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.12);
  z-index: 5;
  transition:
    background 0.26s ease,
    box-shadow 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.music-player-artwork {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  transition: background 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-artwork-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  color: #f4f4f6;
  font-size: 24px;
  font-weight: 700;
}

.song-cover .music-artwork-placeholder {
  font-size: 14px;
}

.music-player-meta {
  min-width: 0;
}

.music-player-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease;
}

.music-player-artist {
  font-size: 12px;
  color: #aab3c2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease;
}

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

.music-player .music-control-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #dce7f7;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.2s ease;
}

.music-player .music-control-btn:hover {
  color: #ffffff;
  transform: scale(1.08);
}

.music-player .music-control-btn svg,
.music-volume-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.music-player .music-control-btn.play {
  width: 30px;
  height: 30px;
  color: #f5f7fb;
  background: transparent;
  box-shadow: none;
}

.music-player .music-control-btn.play svg {
  width: 21px;
  height: 21px;
}

.music-player-progress-wrap {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.music-player-progress-wrap span {
  font-size: 12px;
  color: #e5edf8;
  font-variant-numeric: tabular-nums;
}

#progressBar,
#volumeBar {
  width: 100%;
  height: 5px;
  accent-color: rgba(245,247,251,0.92);
  cursor: pointer;
}

#progressBar:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.music-player-volume {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #dce7f7;
}

.music-volume-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #dce7f7;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.18s ease, transform 0.2s ease;
}

.music-volume-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.screen.is-fullscreen .music-player {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.screen.is-fullscreen .music-window {
  max-height: 100vh;
}

@media (max-width: 900px) {
  .music-grid-wrap {
    padding-bottom: 170px;
  }

  .music-player {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .music-player-progress-wrap {
    grid-column: 1 / -1;
  }

  .music-player-volume {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: end;
    width: 100%;
  }

  .music-player-artwork {
    width: 48px;
    height: 48px;
  }
}

.album-card {
  cursor: pointer;
}

.album-card.is-playing .album-cover,
.song-row.active {
  outline: 2px solid #4680ea;
  outline-offset: 0;
}
