/* ============================================================
   WINDOWS.CSS — Window chrome and app-specific styles
   Frutiger Aero — Thick gradients, real Vista chrome
   ============================================================ */

/* ---- Base window ---- */
.window {
  position: absolute;
  min-width: 320px;
  min-height: 220px;
  border-radius: 10px 10px 8px 8px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(175deg,
      rgba(30,70,165,0.16) 0%,
      rgba(8,42,115,0.22) 30%,
      rgba(0,26,82,0.28) 100%
    );
  backdrop-filter: blur(16px) saturate(200%) brightness(110%);
  -webkit-backdrop-filter: blur(16px) saturate(200%) brightness(110%);
  border: 1px solid rgba(255,255,255,0.28);
  border-top-color: rgba(200,230,255,0.55);
  box-shadow:
    0 0 0 1px rgba(80,160,255,0.18),
    0 24px 72px rgba(0,10,55,0.78),
    0 8px 28px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.22) inset;
  overflow: hidden;
}
.window.window-opening {
  animation: window-open 0.28s var(--ease-spring);
}

.window.active {
  border-top-color: rgba(130,210,255,0.88);
  border-left-color: rgba(80,170,255,0.45);
  border-right-color: rgba(80,170,255,0.45);
  box-shadow:
    0 0 0 1px rgba(64,196,232,0.38),
    0 0 0 2px rgba(0,120,220,0.18),
    0 26px 80px rgba(0,10,65,0.82),
    0 8px 28px rgba(0,0,0,0.50),
    0 0 50px rgba(0,100,220,0.22),
    0 1px 0 rgba(255,255,255,0.28) inset;
}

/* ---- Title bar — the defining Vista gradient ---- */
.win-titlebar {
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  position: relative;

  /* Inactive: subtle muted glass */
  background:
    linear-gradient(180deg,
      rgba(140,185,240,0.14) 0%,
      rgba(80,140,220,0.12) 22%,
      rgba(40,100,195,0.14) 48%,
      rgba(20,70,175,0.18) 72%,
      rgba(10,50,150,0.22) 100%
    );
  border-bottom: 1px solid rgba(40,100,220,0.18);
}

.window.active .win-titlebar {
  /* Active: vivid Vista blue — transparent enough to see wallpaper through */
  background:
    linear-gradient(180deg,
      rgba(210,238,255,0.30) 0%,
      rgba(100,175,255,0.26) 16%,
      rgba(30,115,245,0.28) 38%,
      rgba(0,72,215,0.34) 65%,
      rgba(0,42,175,0.40) 100%
    );
  border-bottom-color: rgba(80,210,255,0.50);
}

/* Titlebar top specular highlight */
.win-titlebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.00) 100%
  );
  pointer-events: none; z-index: 1;
}

/* Titlebar bottom glow line */
.win-titlebar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100,200,255,0.55) 30%,
    rgba(180,240,255,0.80) 50%,
    rgba(100,200,255,0.55) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.win-icon {
  font-size: 16px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.60));
  flex-shrink: 0;
  position: relative; z-index: 2;
}

.win-title {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.70),
    0 0 14px rgba(64,196,232,0.45);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  position: relative; z-index: 2;
}

.window:not(.active) .win-title { color: rgba(255,255,255,0.70); }

/* ---- Window control buttons ---- */
.win-controls { display: flex; gap: 5px; flex-shrink: 0; position: relative; z-index: 2; }

.win-btn {
  width: 23px; height: 23px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
  transition: all 0.14s;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow:
    0 1px 4px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.14);
  position: relative; overflow: hidden;
}

.win-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%);
  border-radius: inherit; pointer-events: none;
}

.win-btn:hover {
  transform: scale(1.18);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.win-btn-close {
  background: radial-gradient(circle at 38% 32%, #ff9090, #e03030, #980000);
  color: rgba(255,255,255,0.90);
}
.win-btn-close:hover {
  background: radial-gradient(circle at 38% 32%, #ffaaaa, #ff4040, #cc0000);
  box-shadow: 0 0 14px rgba(255,50,50,0.80), inset 0 1px 0 rgba(255,255,255,0.65);
}

.win-btn-min {
  background: radial-gradient(circle at 38% 32%, #ffe590, #dda820, #966800);
  color: rgba(0,0,0,0.70);
}
.win-btn-min:hover {
  background: radial-gradient(circle at 38% 32%, #fff0a0, #ffd040, #c88000);
  box-shadow: 0 0 14px rgba(255,200,0,0.80), inset 0 1px 0 rgba(255,255,255,0.65);
}

.win-btn-max {
  background: radial-gradient(circle at 38% 32%, #90ee90, #28b828, #006000);
  color: rgba(255,255,255,0.90);
}
.win-btn-max:hover {
  background: radial-gradient(circle at 38% 32%, #a8f8a8, #44d844, #008800);
  box-shadow: 0 0 14px rgba(0,220,0,0.80), inset 0 1px 0 rgba(255,255,255,0.65);
}

/* ---- Window body ---- */
.win-content {
  flex: 1;
  overflow: auto;
  position: relative;
}

/* Window inner border top (the subtle Vista inset line) */
.win-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,0.06);
  z-index: 1; pointer-events: none;
}

.win-statusbar {
  height: 23px;
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: rgba(140,200,255,0.70);
  background:
    linear-gradient(180deg, rgba(0,20,70,0.55) 0%, rgba(0,10,45,0.65) 100%);
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
}

/* ---- Resize handles ---- */
.resize-handle { position: absolute; z-index: 100; }
.resize-handle.n  { top: 0; left: 6px; right: 6px; height: 4px; cursor: ns-resize; }
.resize-handle.s  { bottom: 0; left: 6px; right: 6px; height: 4px; cursor: ns-resize; }
.resize-handle.e  { right: 0; top: 6px; bottom: 6px; width: 4px; cursor: ew-resize; }
.resize-handle.w  { left: 0; top: 6px; bottom: 6px; width: 4px; cursor: ew-resize; }
.resize-handle.ne { top: 0; right: 0; width: 10px; height: 10px; cursor: nesw-resize; }
.resize-handle.nw { top: 0; left: 0; width: 10px; height: 10px; cursor: nwse-resize; }
.resize-handle.se { bottom: 0; right: 0; width: 10px; height: 10px; cursor: nwse-resize; }
.resize-handle.sw { bottom: 0; left: 0; width: 10px; height: 10px; cursor: nesw-resize; }

/* ============================
   EXPLORER / FILE MANAGER
   ============================ */
.explorer-toolbar {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: linear-gradient(180deg,
    rgba(60,120,220,0.32) 0%,
    rgba(10,55,160,0.40) 45%,
    rgba(0,28,95,0.52) 100%
  );
  border-bottom: 1px solid rgba(80,160,255,0.22);
  position: relative;
}
.explorer-toolbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 100%);
  pointer-events: none;
}

.explorer-addr {
  flex: 1; padding: 4px 10px;
  background: linear-gradient(180deg, rgba(0,8,35,0.65) 0%, rgba(0,15,50,0.55) 100%);
  border: 1px solid rgba(64,196,232,0.32);
  border-top-color: rgba(0,10,40,0.60);
  border-radius: 4px;
  color: rgba(160,220,255,0.90);
  font-size: 12px; font-family: var(--font-main);
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35) inset;
}

.explorer-sidebar {
  width: 145px; flex-shrink: 0;
  padding: 6px;
  background: rgba(0,12,50,0.40);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
}

.explorer-sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 5px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.80);
  transition: all 0.12s;
}

.explorer-sidebar-item:hover {
  background: linear-gradient(90deg, rgba(64,196,232,0.18) 0%, transparent 100%);
  color: white; padding-left: 12px;
}

.explorer-sidebar-item.active {
  background: linear-gradient(90deg, rgba(64,196,232,0.28) 0%, rgba(64,196,232,0.08) 100%);
  color: white; border-left: 2px solid rgba(64,196,232,0.80);
}

.explorer-breadcrumb {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  color: rgba(140,200,255,0.70);
  background: rgba(0,15,55,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breadcrumb-part {
  color: rgba(160,220,255,0.85);
  font-weight: 600;
  transition: color 0.12s;
}
.breadcrumb-part:hover { color: white; }
.breadcrumb-sep { color: rgba(100,160,255,0.40); font-size: 10px; }

.explorer-view {
  flex: 1; display: flex; flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px; padding: 12px;
  overflow-y: auto;
}

.file-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  width: 82px; padding: 8px 4px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all 0.14s;
  position: relative;
}

.file-item:hover {
  background: linear-gradient(180deg, rgba(64,196,232,0.18) 0%, rgba(0,100,180,0.12) 100%);
  border-color: rgba(64,196,232,0.35);
  box-shadow: 0 4px 14px rgba(0,150,214,0.22), 0 1px 0 rgba(255,255,255,0.10) inset;
}

.file-item.selected {
  background: linear-gradient(180deg, rgba(0,150,214,0.28) 0%, rgba(0,100,180,0.20) 100%);
  border-color: rgba(64,196,232,0.60);
}

.file-icon {
  font-size: 38px;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,0.55));
  transition: transform 0.18s var(--ease-spring);
}

.file-item:hover .file-icon { transform: translateY(-3px) scale(1.10); }

.file-name {
  font-size: 11px; font-weight: 600;
  text-align: center; word-break: break-all;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.80);
  line-height: 1.3;
}

/* List view */
.file-item-list {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px; border-radius: 5px;
  width: 100%; border: 1px solid transparent;
  transition: all 0.12s;
}

.file-item-list:hover {
  background: linear-gradient(90deg, rgba(64,196,232,0.16) 0%, transparent 100%);
  border-color: rgba(64,196,232,0.20);
}

.file-item-list .file-icon { font-size: 20px; }
.file-item-list .file-name { font-size: 12px; flex: 1; text-align: left; }

.drive-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(0,40,100,0.10) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.18);
  margin: 6px 10px; transition: all 0.14s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.drive-item:hover {
  background: linear-gradient(135deg, rgba(64,196,232,0.14) 0%, rgba(0,80,180,0.14) 100%);
  border-color: rgba(64,196,232,0.38);
  box-shadow: 0 4px 18px rgba(0,150,214,0.28), 0 1px 0 rgba(255,255,255,0.14) inset;
}

.drive-icon { font-size: 34px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)); }
.drive-info { flex: 1; }
.drive-name { font-size: 13px; font-weight: 700; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.drive-space { font-size: 11px; color: rgba(140,200,255,0.65); margin-top: 2px; }
.drive-bar { height: 7px; background: rgba(0,0,0,0.30); border-radius: 4px; margin-top: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.drive-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-sky), var(--green-bright));
  box-shadow: 0 0 6px rgba(0,200,128,0.50);
  position: relative;
}
.drive-bar-fill::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, transparent 100%);
  border-radius: inherit;
}

/* ============================
   BROWSER
   ============================ */
.browser-toolbar {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  background: linear-gradient(180deg,
    rgba(55,115,215,0.34) 0%,
    rgba(10,50,155,0.42) 45%,
    rgba(0,26,90,0.54) 100%
  );
  border-bottom: 1px solid rgba(80,160,255,0.22);
  position: relative;
}
.browser-toolbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 100%);
  pointer-events: none;
}

.browser-nav-btn {
  width: 29px; height: 29px; border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(0,40,100,0.18) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.78);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset;
}
.browser-nav-btn:hover {
  background: linear-gradient(180deg, rgba(64,196,232,0.22) 0%, rgba(0,100,200,0.22) 100%);
  color: white; border-color: rgba(64,196,232,0.45);
}

.browser-url-bar {
  flex: 1; padding: 5px 12px;
  background: linear-gradient(180deg, rgba(0,8,35,0.70) 0%, rgba(0,15,50,0.60) 100%);
  border: 1px solid rgba(64,196,232,0.32);
  border-top-color: rgba(0,10,40,0.65);
  border-radius: 14px;
  color: rgba(160,220,255,0.92);
  font-size: 12px; font-family: var(--font-main);
  outline: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35) inset;
}
.browser-url-bar:focus {
  border-color: rgba(64,196,232,0.75);
  box-shadow: 0 2px 5px rgba(0,0,0,0.28) inset, 0 0 0 3px rgba(64,196,232,0.20);
}

/* URL wrap — lock icon + input + spinner */
.browser-url-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}
.browser-url-wrap .browser-url-bar {
  width: 100%;
  padding-left: 28px;
}
.browser-lock {
  position: absolute;
  left: 9px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  line-height: 1;
}

/* Spinning loading indicator */
.browser-spinner {
  position: absolute;
  right: 10px;
  width: 13px; height: 13px;
  border: 2px solid rgba(64,196,232,0.25);
  border-top-color: rgba(64,196,232,0.90);
  border-radius: 50%;
  animation: browser-spin 0.7s linear infinite;
  pointer-events: none;
}
@keyframes browser-spin {
  to { transform: rotate(360deg); }
}

/* Go button */
.browser-go-btn {
  padding: 5px 13px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(64,196,232,0.28) 0%, rgba(0,100,180,0.32) 100%);
  border: 1px solid rgba(64,196,232,0.38);
  border-top-color: rgba(140,220,255,0.45);
  color: rgba(200,240,255,0.92);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  transition: all 0.12s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset;
}
.browser-go-btn:hover {
  background: linear-gradient(180deg, rgba(100,220,255,0.38) 0%, rgba(0,140,220,0.42) 100%);
  border-color: rgba(64,196,232,0.65);
  color: white;
}

/* Favorites bar */
.browser-favbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  background: linear-gradient(180deg,
    rgba(20,60,160,0.28) 0%,
    rgba(0,20,80,0.38) 100%
  );
  border-bottom: 1px solid rgba(80,160,255,0.14);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.browser-favbar::-webkit-scrollbar { display: none; }

.browser-fav-btn {
  padding: 3px 10px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(170,215,255,0.80);
  font-size: 11px;
  white-space: nowrap;
  transition: all 0.12s;
}
.browser-fav-btn:hover {
  background: rgba(64,196,232,0.14);
  border-color: rgba(64,196,232,0.30);
  color: rgba(220,245,255,0.95);
}

/* Status bar */
.browser-statusbar {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg,
    rgba(0,20,70,0.60) 0%,
    rgba(0,10,45,0.70) 100%
  );
  border-top: 1px solid rgba(80,160,255,0.14);
  font-size: 10px;
  color: rgba(140,200,255,0.55);
  font-family: var(--font-main);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-content { flex: 1; width: 100%; border: none; background: white; display: block; }

/* ============================
   NOTEPAD
   ============================ */
.notepad-menubar {
  display: flex; gap: 0;
  background: linear-gradient(180deg,
    rgba(50,110,210,0.36) 0%,
    rgba(8,45,148,0.46) 45%,
    rgba(0,24,86,0.56) 100%
  );
  border-bottom: 1px solid rgba(80,160,255,0.22);
  padding: 0 4px;
  position: relative;
}
.notepad-menubar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 100%);
  pointer-events: none;
}

.notepad-menu-item {
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: rgba(200,230,255,0.82);
  border-radius: 4px;
  transition: all 0.10s;
}
.notepad-menu-item:hover {
  background: linear-gradient(180deg, rgba(64,196,232,0.20) 0%, rgba(0,80,180,0.16) 100%);
  color: white;
}

.notepad-textarea {
  width: 100%; height: 100%; padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(0,8,32,0.90) 0%, rgba(0,12,42,0.85) 100%);
  border: none;
  color: rgba(180,230,255,0.95);
  font-family: 'Courier New', monospace;
  font-size: 13px; resize: none; outline: none;
  line-height: 1.65; caret-color: rgba(64,196,232,0.90);
}

/* ============================
   PAINT
   ============================ */
.paint-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  background: linear-gradient(180deg,
    rgba(55,115,215,0.34) 0%,
    rgba(10,50,155,0.42) 45%,
    rgba(0,26,90,0.54) 100%
  );
  border-bottom: 1px solid rgba(80,160,255,0.22);
  flex-wrap: wrap;
  position: relative;
}
.paint-toolbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 100%);
  pointer-events: none;
}

.paint-tool-btn {
  width: 32px; height: 32px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(0,40,100,0.14) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.26);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s; color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.paint-tool-btn:hover { background: linear-gradient(180deg, rgba(64,196,232,0.25) 0%, rgba(0,100,200,0.20) 100%); border-color: rgba(64,196,232,0.50); }
.paint-tool-btn.active {
  background: linear-gradient(180deg, rgba(0,100,200,0.40) 0%, rgba(64,196,232,0.30) 100%);
  border-color: rgba(64,196,232,0.70);
  box-shadow: 0 0 10px rgba(64,196,232,0.35), 0 -1px 0 rgba(255,255,255,0.10) inset;
}

.paint-size-slider { width: 75px; accent-color: var(--blue-light); }

.paint-colors { display: flex; gap: 4px; flex-wrap: wrap; }
.paint-color-swatch {
  width: 20px; height: 20px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.22); transition: transform 0.10s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.20) inset, 0 2px 4px rgba(0,0,0,0.35);
}
.paint-color-swatch:hover { transform: scale(1.20); border-color: white; }
.paint-color-swatch.active { border-color: white; border-width: 2px; box-shadow: 0 0 8px rgba(255,255,255,0.55); }

.paint-canvas { display: block; width: 100%; height: 100%; background: white; }

/* ============================
   MEDIA PLAYER — WMP11 BLOB SKIN
   ============================ */

/* Override the window frame to become the chrome blob */
/* ============================
   MEDIA PLAYER v2
   ============================ */
.wmp2 {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}

/* Stage: visualizer + spinning disc */
.wmp2-stage {
  position: relative; flex-shrink: 0; height: 155px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,12,55,0.97) 0%, rgba(0,6,30,0.99) 100%);
  border-bottom: 1px solid rgba(64,196,232,0.18);
}
.wmp2-vis {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* Spinning disc */
.wmp2-disc {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%,
    rgba(255,255,255,0.92) 0%,
    rgba(170,225,255,0.85) 12%,
    rgba(40,150,255,0.82) 35%,
    rgba(0,70,200,0.90) 62%,
    rgba(0,25,90,0.96) 100%
  );
  border: 2px solid rgba(255,255,255,0.28);
  box-shadow:
    0 0 28px rgba(0,140,255,0.55),
    0 0 60px rgba(0,90,200,0.25),
    inset 0 2px 6px rgba(255,255,255,0.45),
    inset 0 -2px 5px rgba(0,0,0,0.40);
}
.wmp2-disc.playing {
  animation: wmp2-spin 9s linear infinite;
}
@keyframes wmp2-spin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
.wmp2-disc-hole {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,240,255,0.95), rgba(160,210,255,0.70));
  box-shadow: 0 0 8px rgba(64,196,232,0.90), inset 0 1px 2px rgba(255,255,255,0.90);
}

/* Track info */
.wmp2-info {
  padding: 12px 20px 4px; text-align: center; flex-shrink: 0;
}
.wmp2-title {
  font-size: 14px; font-weight: 800; color: rgba(220,240,255,0.96);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(64,196,232,0.50);
}
.wmp2-artist {
  font-size: 11px; color: rgba(120,185,255,0.58); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Progress */
.wmp2-seek-wrap { padding: 6px 20px 0; flex-shrink: 0; }
.wmp2-seek {
  height: 5px; border-radius: 3px; cursor: pointer;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: visible; position: relative;
}
.wmp2-seek-fill {
  height: 100%; width: 0%; border-radius: 3px; position: relative;
  background: linear-gradient(90deg, var(--blue-sky), var(--green-bright));
  box-shadow: 0 0 8px rgba(0,200,150,0.55);
  transition: width 0.5s linear;
}
.wmp2-seek-head {
  position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: white; box-shadow: 0 0 7px rgba(64,196,232,0.90);
}
.wmp2-times {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 10px; color: rgba(120,185,255,0.45);
}

/* Controls */
.wmp2-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 20px; flex-shrink: 0;
}
.wmp2-btn-sm {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(160,210,255,0.60); font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.wmp2-btn-sm:hover { background: rgba(64,196,232,0.22); border-color: rgba(64,196,232,0.45); color: white; }
.wmp2-btn-sm.active { color: var(--green-light); border-color: rgba(0,220,140,0.50); background: rgba(0,220,140,0.14); }

.wmp2-btn-nav {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(165deg, rgba(225,242,255,0.82) 0%, rgba(145,195,240,0.72) 45%, rgba(85,140,210,0.66) 100%);
  border: 1.5px solid rgba(255,255,255,0.55); border-bottom-color: rgba(80,130,190,0.44);
  color: rgba(10,35,90,0.90); font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
  box-shadow: 0 3px 10px rgba(0,20,80,0.35), inset 0 1px 0 rgba(255,255,255,0.80);
}
.wmp2-btn-nav:hover {
  background: linear-gradient(165deg, rgba(140,215,255,0.92) 0%, rgba(30,135,240,0.82) 50%, rgba(0,80,215,0.76) 100%);
  color: white; box-shadow: 0 0 16px rgba(64,196,232,0.60), 0 3px 10px rgba(0,20,80,0.35), inset 0 1px 0 rgba(255,255,255,0.80);
}
.wmp2-btn-nav:active { transform: scale(0.92); }

.wmp2-btn-play {
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; font-size: 19px;
  background: linear-gradient(165deg, rgba(185,228,255,0.94) 0%, rgba(30,145,248,0.87) 45%, rgba(0,82,225,0.82) 100%);
  border: 2px solid rgba(255,255,255,0.60); border-bottom-color: rgba(40,100,205,0.50);
  color: white; display: flex; align-items: center; justify-content: center; transition: all 0.13s;
  box-shadow: 0 0 26px rgba(0,130,255,0.62), 0 5px 16px rgba(0,20,80,0.50), inset 0 1px 0 rgba(255,255,255,0.85);
}
.wmp2-btn-play:hover {
  box-shadow: 0 0 38px rgba(64,196,232,0.92), 0 5px 16px rgba(0,20,80,0.50), inset 0 1px 0 rgba(255,255,255,0.85);
  transform: scale(1.05);
}
.wmp2-btn-play:active { transform: scale(0.94); }

/* Volume */
.wmp2-vol-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px 10px; flex-shrink: 0;
}
.wmp2-vol-ico { font-size: 15px; opacity: 0.55; width: 20px; text-align: center; }
.wmp2-vol-range { flex: 1; accent-color: var(--blue-light); cursor: pointer; }

/* Playlist */
.wmp2-playlist {
  flex: 1; overflow-y: auto; min-height: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,4,20,0.30);
}
.wmp2-pl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; cursor: pointer; font-size: 12px;
  color: rgba(180,215,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.10s; white-space: nowrap; overflow: hidden;
}
.wmp2-pl-row:hover { background: rgba(64,196,232,0.14); color: white; }
.wmp2-pl-row.active {
  background: linear-gradient(90deg, rgba(64,196,232,0.26) 0%, rgba(64,196,232,0.05) 100%);
  color: white; font-weight: 700;
}
.wmp2-pl-num { width: 20px; text-align: right; color: rgba(100,155,255,0.32); font-size: 10px; flex-shrink: 0; }
.wmp2-pl-dur { color: rgba(120,185,255,0.38); font-size: 11px; flex-shrink: 0; }
.wmp2-pl-badge { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(0,200,128,0.20); color: var(--green-light); flex-shrink: 0; }

/* ============================
   PHOTO VIEWER
   ============================ */
.photo-main {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden; background: #000005; position: relative;
}
.photo-main img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; transition: opacity 0.35s;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.80);
}
.photo-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px;
  background: linear-gradient(180deg, rgba(0,15,55,0.60) 0%, rgba(0,8,38,0.75) 100%);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.photo-btn {
  padding: 5px 16px; border-radius: 5px; font-size: 12px; font-weight: 700;
  color: white;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(0,40,100,0.20) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.28);
  transition: all 0.12s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset;
}
.photo-btn:hover {
  background: linear-gradient(180deg, rgba(64,196,232,0.25) 0%, rgba(0,100,200,0.25) 100%);
  border-color: rgba(64,196,232,0.45);
}
.photo-counter { font-size: 12px; color: rgba(140,200,255,0.65); min-width: 60px; text-align: center; }

/* ============================
   MSN MESSENGER
   ============================ */
.msn-header {
  padding: 12px 14px;
  background: linear-gradient(180deg,
    rgba(0,180,100,0.38) 0%,
    rgba(0,130,80,0.30) 40%,
    rgba(0,80,50,0.22) 100%
  );
  border-bottom: 1px solid rgba(0,200,128,0.25);
  display: flex; align-items: center; gap: 10px;
}

.msn-user-orb {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    rgba(255,255,255,0.88) 0%, var(--green-light) 22%,
    var(--green-bright) 44%, var(--green-dark) 100%
  );
  box-shadow: 0 0 12px rgba(0,200,128,0.65), inset 0 1px 2px rgba(255,255,255,0.50);
  flex-shrink: 0; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(0,220,140,0.40);
}

.msn-username { font-size: 14px; font-weight: 800; color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.msn-status { font-size: 11px; color: var(--green-light); text-shadow: 0 0 8px rgba(0,200,128,0.60); }
.msn-status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 6px rgba(0,200,128,0.80);
  margin-right: 4px;
}

.msn-contacts { flex: 1; overflow-y: auto; }
.msn-contacts-group-header {
  padding: 6px 14px; font-size: 10px; font-weight: 800;
  color: rgba(100,180,255,0.55); text-transform: uppercase; letter-spacing: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,10,40,0.30);
}

.msn-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; transition: all 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.msn-contact:hover {
  background: linear-gradient(90deg, rgba(64,196,232,0.14) 0%, transparent 100%);
  padding-left: 18px;
}

.msn-contact-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.40);
  border: 1.5px solid rgba(255,255,255,0.20);
  position: relative;
}

.msn-contact-avatar .status-badge {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(0,20,60,0.90);
}
.status-online  { background: #00dd80; box-shadow: 0 0 5px rgba(0,220,128,0.80); }
.status-away    { background: #ffaa00; box-shadow: 0 0 5px rgba(255,180,0,0.70); }
.status-busy    { background: #ff4444; box-shadow: 0 0 5px rgba(255,60,60,0.70); }
.status-offline { background: #555; }

.msn-contact-info { flex: 1; min-width: 0; }
.msn-contact-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.90); }
.msn-contact-message { font-size: 11px; color: rgba(140,200,255,0.55); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chat window */
.msn-chat-area {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,10,40,0.40) 0%, rgba(0,5,28,0.55) 100%);
  display: flex; flex-direction: column; gap: 10px;
}

.chat-msg {
  display: flex; gap: 9px; align-items: flex-end;
  animation: bubble-pop 0.25s var(--ease-spring);
}
.chat-msg.outgoing { flex-direction: row-reverse; }

.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.20);
}

.chat-bubble {
  max-width: 65%; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30);
  position: relative;
}

.chat-msg.incoming .chat-bubble {
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(80,140,255,0.14) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.90);
  border-bottom-left-radius: 3px;
}

.chat-msg.outgoing .chat-bubble {
  background: linear-gradient(135deg, rgba(0,180,120,0.35) 0%, rgba(0,140,90,0.30) 100%);
  border: 1px solid rgba(0,220,140,0.30);
  border-top-color: rgba(0,220,140,0.50);
  color: rgba(220,255,240,0.95);
  border-bottom-right-radius: 3px;
}

.chat-sender { font-size: 10px; font-weight: 800; margin-bottom: 3px; opacity: 0.65; }
.chat-time { font-size: 10px; opacity: 0.45; margin-top: 3px; }

.msn-chat-input-area {
  display: flex; gap: 8px; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,15,55,0.55) 0%, rgba(0,8,38,0.65) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: flex-end;
}

.msn-input {
  flex: 1; padding: 7px 12px;
  background: linear-gradient(180deg, rgba(0,8,35,0.70) 0%, rgba(0,15,50,0.60) 100%);
  border: 1px solid rgba(64,196,232,0.32); border-top-color: rgba(0,10,40,0.65);
  border-radius: 8px; color: rgba(200,235,255,0.95);
  font-family: var(--font-main); font-size: 13px;
  resize: none; outline: none; min-height: 36px; max-height: 80px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35) inset;
}
.msn-input:focus {
  border-color: rgba(64,196,232,0.75);
  box-shadow: 0 2px 5px rgba(0,0,0,0.28) inset, 0 0 0 3px rgba(64,196,232,0.18);
}

.msn-send-btn {
  padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: white;
  background:
    linear-gradient(180deg,
      rgba(60,220,140,0.55) 0%,
      rgba(0,180,100,0.65) 45%,
      rgba(0,120,70,0.75) 100%
    );
  border: 1px solid rgba(0,220,140,0.50);
  border-top-color: rgba(120,255,200,0.55);
  box-shadow: 0 0 12px rgba(0,200,128,0.35), 0 1px 0 rgba(255,255,255,0.30) inset;
  transition: all 0.14s;
}
.msn-send-btn:hover {
  background:
    linear-gradient(180deg,
      rgba(80,240,160,0.65) 0%,
      rgba(0,210,120,0.75) 45%,
      rgba(0,150,90,0.82) 100%
    );
  box-shadow: 0 0 20px rgba(0,220,140,0.70);
  transform: translateY(-1px);
}

/* ============================
   ABOUT / RECYCLE / GENERIC
   ============================ */
.about-content { padding: 24px; text-align: center; }
.about-title {
  font-size: 26px; font-weight: 900;
  background: linear-gradient(135deg, white 0%, var(--blue-light) 45%, var(--green-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 12px rgba(64,196,232,0.45));
  margin-bottom: 5px;
}
.about-version { font-size: 12px; color: rgba(140,200,255,0.50); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.about-credits { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 2; }
.about-easter-hint {
  margin-top: 18px; padding: 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(64,196,232,0.10) 0%, rgba(0,100,180,0.10) 100%);
  border: 1px solid rgba(64,196,232,0.22);
  font-size: 12px; color: rgba(140,200,255,0.82); font-style: italic; line-height: 1.8;
}

/* ============================
   AI STREAMING CHAT
   ============================ */
.ai-streaming {
  min-height: 18px;
}

@keyframes ai-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.ai-cursor-blink {
  display: inline-block;
  color: var(--blue-light);
  animation: ai-blink 0.75s ease-in-out infinite;
  font-weight: 300;
  margin-left: 1px;
}
}
