/* =====================================================================
   macOS MONO - BLACK & WHITE EDITION
   Clean, minimalist Apple macOS aesthetic in pure monochrome
   ===================================================================== */

:root {
  --bg-desktop: #000000;
  --bg-bar: rgba(18, 18, 18, 0.72);
  --bg-dock: rgba(24, 24, 24, 0.65);
  --bg-window: rgba(20, 20, 22, 0.88);
  --bg-window-body: #0d0d0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);
  --border-active: #ffffff;

  --text-main: #ffffff;
  --text-dim: #99999f;
  --text-muted: #5e5e66;

  --traffic-close: #ffffff;
  --traffic-min: rgba(255, 255, 255, 0.6);
  --traffic-max: rgba(255, 255, 255, 0.35);

  --font-system: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-dock: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-light);
  --shadow-window: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-light);
  --shadow-window-focused: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--border-medium);
}

/* ----------------- THEMES ----------------- */
body.theme-cyber {
  --bg-desktop: #000000;
  --bg-bar: rgba(10, 10, 10, 0.9);
  --bg-dock: rgba(14, 14, 14, 0.85);
  --bg-window: rgba(12, 12, 14, 0.96);
  --border-light: rgba(255, 255, 255, 0.25);
  --border-medium: #ffffff;
}

body.theme-slate {
  --bg-desktop: #111215;
  --bg-bar: rgba(22, 24, 28, 0.78);
  --bg-dock: rgba(30, 32, 38, 0.75);
  --bg-window: rgba(26, 28, 34, 0.92);
  --bg-window-body: #16171c;
}

body.theme-light {
  --bg-desktop: #e5e5ea;
  --bg-bar: rgba(245, 245, 247, 0.82);
  --bg-dock: rgba(255, 255, 255, 0.75);
  --bg-window: rgba(255, 255, 255, 0.94);
  --bg-window-body: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.04);
  --border-light: rgba(0, 0, 0, 0.12);
  --border-medium: rgba(0, 0, 0, 0.35);
  --border-active: #000000;
  --text-main: #1d1d1f;
  --text-dim: #6e6e73;
  --text-muted: #86868b;
  --traffic-close: #000000;
  --traffic-min: rgba(0, 0, 0, 0.55);
  --traffic-max: rgba(0, 0, 0, 0.3);
  --shadow-dock: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-light);
  --shadow-window: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-light);
  --shadow-window-focused: 0 25px 55px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-medium);
}

/* ----------------- BASE RESET ----------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-desktop);
  color: var(--text-main);
  font-family: var(--font-system);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.hidden {
  display: none !important;
}

/* Background canvas */
.wallpaper-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(110%) brightness(80%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#wallpaper-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#wallpaper-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* =====================================================================
   macOS HELLO / WELCOME SCREEN
   ===================================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease, visibility 0.6s;
}

.boot-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  visibility: hidden;
}

.hello-container {
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  animation: helloIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes helloIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hello-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.hello-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apple-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.hello-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.hello-text {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a5;
  margin-bottom: 32px;
}

.hello-text strong {
  color: #ffffff;
  font-weight: 600;
}

.hello-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hello-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

/* =====================================================================
   macOS PIN CODE LOCK SCREEN
   ===================================================================== */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.lock-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
  visibility: hidden;
}

.lock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
  animation: helloIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-fallback-avatar {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.lock-user-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.lock-os-tag {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.lock-input-wrap {
  position: relative;
  width: 220px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2px 6px 2px 14px;
  backdrop-filter: blur(20px);
  transition: all 0.2s ease;
}

.lock-input-wrap:focus-within {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.lock-input-wrap.shake {
  animation: shake 0.4s ease-in-out;
  border-color: #ff5555;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.lock-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 2px;
}

.lock-submit-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lock-submit-btn:hover {
  background: #ffffff;
  color: #000000;
}

.lock-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
}

.lock-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  color: #ffffff;
}

.menu-mini-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

/* =====================================================================
   macOS TOP MENU BAR
   ===================================================================== */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 28px;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-apple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.menu-apple-btn:hover {
  opacity: 0.7;
}

.menu-app-name {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.menu-items {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-item {
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s;
}

.menu-item:hover {
  color: var(--text-main);
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.menu-icon-btn:hover {
  color: var(--text-main);
}

.menu-clock {
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--text-main);
  padding-left: 4px;
}

/* Apple Dropdown */
.apple-dropdown {
  position: fixed;
  top: 32px;
  left: 12px;
  width: 200px;
  background: var(--bg-bar);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.12s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* =====================================================================
   DESKTOP & RIGHT SIDE FILES
   ===================================================================== */
.desktop {
  position: relative;
  z-index: 5;
  width: 100vw;
  height: calc(100vh - 28px);
  margin-top: 28px;
  overflow: hidden;
}

.desktop-files {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.mac-file {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}

.mac-file:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mac-file:focus,
.mac-file.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-medium);
  outline: none;
}

.mac-icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  color: #ffffff;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease;
}

.mac-file:hover .mac-icon-tile {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.mac-icon-tile svg {
  width: 22px;
  height: 22px;
}

.mac-file-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-main);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================================
   macOS FLOATING DOCK
   ===================================================================== */
.dock-container {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.mac-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-dock);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  box-shadow: var(--shadow-dock);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.dock-item:hover {
  transform: translateY(-8px) scale(1.15);
  background: rgba(255, 255, 255, 0.14);
}

.dock-icon svg {
  width: 22px;
  height: 22px;
}

.dock-dot {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  background: var(--text-main);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dock-item.running .dock-dot {
  opacity: 1;
}

.dock-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
  margin: 0 4px;
}

/* =====================================================================
   macOS WINDOWS (Traffic Lights & Chrome)
   ===================================================================== */
.windows-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.os-window {
  position: absolute;
  min-width: 320px;
  min-height: 220px;
  background: var(--bg-window);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.15s ease, height 0.15s ease;
  animation: macWindowIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes macWindowIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.os-window.focused {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-window-focused);
}

.os-window.minimized {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.os-window.maximized {
  border-radius: 0;
  border-width: 0;
}

/* macOS Window Header */
.window-header {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  cursor: grab;
  position: relative;
}

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

/* macOS Traffic Light Buttons */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  color: transparent;
}

.traffic-dot.close {
  background: #ffffff;
}

.traffic-dot.minimize {
  background: rgba(255, 255, 255, 0.6);
}

.traffic-dot.maximize {
  background: rgba(255, 255, 255, 0.35);
}

.traffic-lights:hover .traffic-dot {
  color: #000000;
}

.traffic-dot.close:hover {
  background: #ffffff;
}

/* Centered Window Title (macOS style) */
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  pointer-events: none;
}

.os-window.focused .window-title {
  color: var(--text-main);
}

/* Window Content Body */
.window-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  background: var(--bg-window-body);
  user-select: auto;
}

/* Resize Handles */
.resize-handle {
  position: absolute;
  pointer-events: auto;
}
.resize-handle.r { top: 0; right: 0; width: 6px; height: 100%; cursor: ew-resize; }
.resize-handle.b { bottom: 0; left: 0; width: 100%; height: 6px; cursor: ns-resize; }
.resize-handle.rb { bottom: 0; right: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 5; }

/* =====================================================================
   CLEAN APP LAYOUTS (Games, Safari, Settings, Notes, Calc, About)
   ===================================================================== */

/* 1. GAMES HUB */
.games-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.games-app-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.games-header-info h2 {
  font-size: 16px;
  font-weight: 600;
}

.games-header-info p {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-add-game {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 12px;
  border-radius: 16px;
  transition: opacity 0.15s;
}

.btn-add-game:hover {
  opacity: 0.85;
}

.games-body-scroll {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.game-thumb,
.game-preview-box {
  height: 110px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.game-preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-preview-thumb-img {
  transform: scale(1.08);
}

.game-preview-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #181926 0%, #1e1e2e 50%, #11111b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-preview-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
}

.game-preview-cartridge-icon {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  z-index: 1;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-preview-cartridge-icon {
  transform: scale(1.15);
  stroke: #ffffff;
}

.game-preview-initials {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Dark Mode SoundCloud Player Embed */
#sc-player-iframe {
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(1.1);
  background: #0f1015 !important;
  border: none !important;
  border-radius: 8px !important;
}

.game-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.game-card:hover .game-preview-overlay {
  opacity: 1;
  pointer-events: auto;
}

.preview-quick-play {
  padding: 8px 18px;
  background: #ffffff;
  color: #000000;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.game-card:hover .preview-quick-play {
  transform: translateY(0);
}

.preview-quick-play:hover {
  background: #e0e0e0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-weight: 600;
  z-index: 5;
}

.game-details {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
  flex: 1;
}

.game-play-btn {
  width: 100%;
  padding: 7px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.game-play-btn:hover {
  opacity: 0.85;
}

/* Modal for Adding Custom Game */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  width: 90%;
  max-width: 380px;
  background: var(--bg-window);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-window);
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 12px;
}

.modal-input:focus {
  outline: none;
  border-color: #ffffff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.modal-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.modal-btn.cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.modal-btn.primary {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

/* Game Viewport Container */
.game-viewport-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000000;
}

.game-viewport-toolbar {
  height: 32px;
  background: #111;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-dim);
}

.game-viewport-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #000;
}

/* Built-in Arcades */
.arcade-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  background: #050505;
}

.arcade-canvas-wrap {
  position: relative;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.arcade-canvas {
  display: block;
  background: #000000;
}

.arcade-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
}

.arcade-controls-hint {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
}

/* 2. SAFARI / BROWSER */
.browser-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-window-body);
}

.browser-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.browser-nav-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-dim);
}

.browser-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.browser-nav-btn svg {
  width: 14px;
  height: 14px;
}

.browser-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.browser-address-bar:focus-within {
  border-color: #ffffff;
}

.browser-address-bar svg {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
}

.browser-address-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-main);
}

.browser-go-btn {
  padding: 3px 8px;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.browser-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.browser-home-page {
  position: absolute;
  inset: 0;
  background: var(--bg-window-body);
  color: var(--text-main);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  text-align: center;
}

.browser-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin-top: 24px;
}

.quick-link-chip {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-link-chip:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

/* 3. SETTINGS APP */
.settings-app {
  display: flex;
  height: 100%;
}

.settings-sidebar {
  width: 160px;
  border-right: 1px solid var(--border-light);
  padding: 14px 8px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
}

.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.settings-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-weight: 600;
}

.settings-nav-item svg {
  width: 14px;
  height: 14px;
}

.settings-content {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
}

.settings-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.settings-section-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.theme-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(0, 0, 0, 0.2);
}

.theme-card:hover {
  border-color: var(--border-medium);
}

.theme-card.active {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.theme-preview-box {
  height: 50px;
  border-radius: 5px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.theme-card-name {
  font-size: 12px;
  font-weight: 600;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .25s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ffffff;
}

input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #000000;
}

/* 4. WALLPAPERS APP */
.wallpapers-app {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wallpaper-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(0, 0, 0, 0.2);
}

.wallpaper-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.wallpaper-card.active {
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.wallpaper-preview {
  height: 90px;
  background: #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-dim);
}

.wallpaper-card-info {
  padding: 8px 10px;
}

.wallpaper-card-title {
  font-size: 12px;
  font-weight: 600;
}

.wallpaper-card-desc {
  font-size: 10px;
  color: var(--text-dim);
}

/* 5. NOTEPAD APP */
.notepad-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notepad-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-dim);
}

.notepad-btn {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 11px;
}

.notepad-btn:hover {
  background: #ffffff;
  color: #000000;
}

.notepad-textarea {
  flex: 1;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
}

/* 6. CALCULATOR APP */
.calculator-app {
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0c;
}

.calc-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: right;
}

.calc-history {
  font-size: 11px;
  color: var(--text-dim);
  min-height: 16px;
}

.calc-current {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

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

.calc-key {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.12s;
}

.calc-key:hover {
  background: rgba(255, 255, 255, 0.14);
}

.calc-key.op {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.calc-key.equal {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

/* 7. ABOUT THIS MAC */
.about-app {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.about-logo {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #ffffff;
}

.about-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.about-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.about-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-box strong {
  color: #ffffff;
}

/* =====================================================================
   EMERGENCY TEACHER PANIC CLOAK (GOOGLE DOCS DISGUISE)
   ===================================================================== */
.panic-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #f8f9fa;
  color: #202124;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.docs-fake-nav {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.docs-icon {
  font-size: 28px;
}

.docs-title {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
}

.docs-menu {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #5f6368;
  margin-top: 2px;
}

.docs-restore-btn {
  margin-left: auto;
  padding: 6px 14px;
  background: #1a73e8;
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.docs-restore-btn:hover {
  background: #1557b0;
}

.docs-fake-toolbar {
  height: 38px;
  background: #edf2fc;
  border-bottom: 1px solid #d3d3d3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 12px;
  color: #444746;
}

.fake-tool {
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 3px;
}

.fake-tool:hover {
  background: rgba(0, 0, 0, 0.05);
}

.docs-paper-container {
  flex: 1;
  background: #f0f4f9;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.docs-paper {
  width: 100%;
  max-width: 816px;
  min-height: 1056px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
  padding: 72px;
  font-size: 14px;
  line-height: 1.7;
  color: #202124;
  outline: none;
}

.docs-paper h1 {
  font-size: 20px;
  margin-bottom: 8px;
}

.docs-paper h2 {
  font-size: 15px;
  color: #5f6368;
  margin-bottom: 14px;
  font-weight: normal;
}

/* =====================================================================
   macOS SPOTLIGHT SEARCH
   ===================================================================== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding-top: 14vh;
}

.spotlight-box {
  width: 90%;
  max-width: 580px;
  background: var(--bg-window);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-light);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  overflow: hidden;
  animation: macWindowIn 0.15s ease-out;
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.spotlight-input-row svg {
  color: var(--text-dim);
}

.spotlight-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-main);
  font-family: inherit;
}

.spotlight-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.spotlight-item-icon {
  font-size: 20px;
  width: 28px;
  display: flex;
  justify-content: center;
}

.spotlight-item-name {
  font-weight: 600;
  font-size: 13px;
}

.spotlight-item-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}

/* Games Filter & Search Bar */
.games-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.games-search-input {
  flex: 1;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}

.games-search-input:focus {
  border-color: #ffffff;
}

.filter-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  transition: all 0.12s;
}

.filter-chip:hover,
.filter-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* =====================================================================
   MOVIES & CINEMA APP
   ===================================================================== */
.movies-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: radial-gradient(circle at 50% 0%, #151928 0%, #0a0b10 65%, #050608 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* Glassmorphism Navigation Bar */
.movies-navbar {
  padding: 12px 20px;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 20;
}

.movies-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.movies-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #c7c7cc 50%, #8e8e93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.movies-brand-text h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
}

.movies-brand-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.movies-search-wrap {
  flex: 1;
  max-width: 360px;
  position: relative;
  display: flex;
  align-items: center;
}

.movies-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: all 0.2s ease;
  outline: none;
}

.movies-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.movies-search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.movies-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Category Filter Chips Bar */
.movies-categories-bar {
  padding: 10px 20px;
  background: rgba(10, 11, 16, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.movies-categories-bar::-webkit-scrollbar {
  display: none;
}

.movie-cat-chip {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.movie-cat-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.movie-cat-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

/* Scrollable Container */
.movies-main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 40px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Cinematic Hero Showcase Banner */
.movies-hero-banner {
  position: relative;
  min-height: 280px;
  margin: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 25%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
}

.movies-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 13, 0.95) 0%, rgba(8, 9, 13, 0.75) 50%, rgba(8, 9, 13, 0.2) 100%),
              linear-gradient(0deg, rgba(8, 9, 13, 0.98) 0%, transparent 60%);
  z-index: 1;
}

.movies-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  max-width: 580px;
}

.movies-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-tag-trend {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.hero-tag-quality {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tag-rating {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #ffffff;
}

.movies-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 8px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.movies-hero-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.movies-hero-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movies-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-play-btn {
  padding: 9px 20px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.hero-play-btn:hover {
  transform: scale(1.04);
  background: #f1f5f9;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.45);
}

.hero-info-btn {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hero-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Movie Catalog Grid & Section Headers */
.movies-section-header {
  padding: 16px 20px 10px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.movies-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.movies-count-badge {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.cinema-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* Premium Cinema Movie Card */
.cinema-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cinema-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255,255,255,0.18);
  background: rgba(255, 255, 255, 0.06);
}

.cinema-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #11131a;
  overflow: hidden;
}

.cinema-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cinema-card:hover .cinema-poster-img {
  transform: scale(1.06);
}

.cinema-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.cinema-card-quality {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cinema-card-rating {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.cinema-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(9, 10, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.cinema-card:hover .cinema-hover-overlay {
  opacity: 1;
}

.cinema-hover-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.5);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.cinema-card:hover .cinema-hover-play-btn {
  transform: scale(1);
}

.cinema-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cinema-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-card-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AdShield Status Indicator */
.adshield-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.adshield-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: adshield-glow 2s infinite ease-in-out;
}

@keyframes adshield-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* =====================================================================
   MUSIC & SONGS APP
   ===================================================================== */
.music-app {
  display: flex;
  height: 100%;
  background: #08080a;
}

.music-player-panel {
  width: 320px;
  border-right: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.music-album-art {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.music-album-art svg {
  width: 60px;
  height: 60px;
  opacity: 0.7;
}

.music-track-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.music-track-artist {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.music-scrubber {
  width: 100%;
  margin-bottom: 8px;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.music-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.music-time-display {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.music-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.music-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.15s;
}

.music-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.music-ctrl-btn.play {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #000000;
}

.music-ctrl-btn.play:hover {
  transform: scale(1.05);
}

.music-playlist-panel {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.music-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  margin-bottom: 4px;
}

.music-playlist-item:hover,
.music-playlist-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.music-playlist-item.active {
  border: 1px solid var(--border-medium);
}

.music-item-index {
  font-size: 11px;
  color: var(--text-dim);
  width: 20px;
  font-family: var(--font-mono);
}

.music-item-info {
  flex: 1;
}

.music-item-name {
  font-size: 13px;
  font-weight: 600;
}

.music-item-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.music-item-duration {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Proxy Banner in Safari */
.proxy-toolbar-addon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 11px;
}

.proxy-select {
  background: #000000;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 11px;
  outline: none;
}

.wallpaper-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================================
   macOS SPOTLIGHT SEARCH
   ===================================================================== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding-top: 14vh;
}

.spotlight-box {
  width: 90%;
  max-width: 580px;
  background: var(--bg-window);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-light);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  overflow: hidden;
  animation: macWindowIn 0.15s ease-out;
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.spotlight-input-row svg {
  color: var(--text-dim);
}

.spotlight-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-main);
  font-family: inherit;
}

.spotlight-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.spotlight-item-icon {
  font-size: 20px;
  width: 28px;
  display: flex;
  justify-content: center;
}

.spotlight-item-name {
  font-weight: 600;
  font-size: 13px;
}

.spotlight-item-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
}

/* Games Filter & Search Bar */
.games-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.games-search-input {
  flex: 1;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}

.games-search-input:focus {
  border-color: #ffffff;
}

.filter-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  transition: all 0.12s;
}

.filter-chip:hover,
.filter-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* =====================================================================
   MOVIES & CINEMA APP
   ===================================================================== */
.movies-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: radial-gradient(circle at 50% 0%, #151928 0%, #0a0b10 65%, #050608 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* Glassmorphism Navigation Bar */
.movies-navbar {
  padding: 12px 20px;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 20;
}

.movies-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.movies-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #c7c7cc 50%, #8e8e93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.movies-brand-text h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
}

.movies-brand-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.movies-search-wrap {
  flex: 1;
  max-width: 360px;
  position: relative;
  display: flex;
  align-items: center;
}

.movies-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  transition: all 0.2s ease;
  outline: none;
}

.movies-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.movies-search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.movies-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Category Filter Chips Bar */
.movies-categories-bar {
  padding: 10px 20px;
  background: rgba(10, 11, 16, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.movies-categories-bar::-webkit-scrollbar {
  display: none;
}

.movie-cat-chip {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.movie-cat-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.movie-cat-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

/* Scrollable Container */
.movies-main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 40px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Cinematic Hero Showcase Banner */
.movies-hero-banner {
  position: relative;
  min-height: 280px;
  margin: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 25%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
}

.movies-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 13, 0.95) 0%, rgba(8, 9, 13, 0.75) 50%, rgba(8, 9, 13, 0.2) 100%),
              linear-gradient(0deg, rgba(8, 9, 13, 0.98) 0%, transparent 60%);
  z-index: 1;
}

.movies-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  max-width: 580px;
}

.movies-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-tag-trend {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.hero-tag-quality {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-tag-rating {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #ffffff;
}

.movies-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 8px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.movies-hero-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.movies-hero-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movies-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-play-btn {
  padding: 9px 20px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.hero-play-btn:hover {
  transform: scale(1.04);
  background: #f1f5f9;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.45);
}

.hero-info-btn {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hero-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Movie Catalog Grid & Section Headers */
.movies-section-header {
  padding: 16px 20px 10px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.movies-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.movies-count-badge {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.cinema-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* Premium Cinema Movie Card */
.cinema-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cinema-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255,255,255,0.18);
  background: rgba(255, 255, 255, 0.06);
}

.cinema-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #11131a;
  overflow: hidden;
}

.cinema-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cinema-card:hover .cinema-poster-img {
  transform: scale(1.06);
}

.cinema-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.cinema-card-quality {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cinema-card-rating {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.cinema-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(9, 10, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.cinema-card:hover .cinema-hover-overlay {
  opacity: 1;
}

.cinema-hover-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.5);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.cinema-card:hover .cinema-hover-play-btn {
  transform: scale(1);
}

.cinema-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cinema-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-card-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* AdShield Status Indicator */
.adshield-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.adshield-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: adshield-glow 2s infinite ease-in-out;
}

@keyframes adshield-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* =====================================================================
   MUSIC & SONGS APP
   ===================================================================== */
.music-app {
  display: flex;
  height: 100%;
  background: #08080a;
}

.music-player-panel {
  width: 320px;
  border-right: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.music-album-art {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.music-album-art svg {
  width: 60px;
  height: 60px;
  opacity: 0.7;
}

.music-track-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.music-track-artist {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.music-scrubber {
  width: 100%;
  margin-bottom: 8px;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.music-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.music-time-display {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.music-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.music-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.15s;
}

.music-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.music-ctrl-btn.play {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #000000;
}

.music-ctrl-btn.play:hover {
  transform: scale(1.05);
}

.music-playlist-panel {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.music-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  margin-bottom: 4px;
}

.music-playlist-item:hover,
.music-playlist-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.music-playlist-item.active {
  border: 1px solid var(--border-medium);
}

.music-item-index {
  font-size: 11px;
  color: var(--text-dim);
  width: 20px;
  font-family: var(--font-mono);
}

.music-item-info {
  flex: 1;
}

.music-item-name {
  font-size: 13px;
  font-weight: 600;
}

.music-item-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.music-item-duration {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Proxy Banner in Safari */
.proxy-toolbar-addon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 11px;
}

.proxy-select {
  background: #000000;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 11px;
  outline: none;
}

.wallpaper-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Finder Catalog Navigation */
.finder-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.finder-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.finder-nav-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

/* Music Hub & Cinema additions */
.music-row-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.music-cat-btn:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.server-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* YouTube & Video Portals */
.yt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.yt-quick-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}





/* ==========================================================================
   fR0st MUSIC STUDIO (VINYL & APPLE MUSIC GLASS) STYLES
   ========================================================================== */
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-studio-app input[type="range"] {
  accent-color: #00ffcc;
}

.music-studio-app input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ffcc;
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.8);
  cursor: pointer;
}

#studio-grid-container::-webkit-scrollbar {
  width: 6px;
}

#studio-grid-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* ===== Centered Desktop Logo + Clock Widget ===== */
.desktop-center-widget{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; user-select:none; text-align:center; text-shadow:0 2px 18px rgba(0,0,0,0.55);}
.dcw-logo{width:96px; height:96px; border-radius:22px; overflow:hidden; margin-bottom:14px; box-shadow:0 8px 32px rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; color:#fff;}
.dcw-logo img{width:100%; height:100%; object-fit:cover;}
.dcw-title{font-size:26px; font-weight:700; letter-spacing:0.5px; color:#fff; margin-bottom:2px;}
.dcw-time{font-size:64px; font-weight:200; letter-spacing:-1px; color:#fff; line-height:1.05; font-variant-numeric:tabular-nums;}
.dcw-date{font-size:15px; font-weight:500; color:rgba(255,255,255,0.75); margin-top:4px;}
@media(max-width:600px){.dcw-time{font-size:44px;} .dcw-logo{width:72px;height:72px;}}

/* Universal scroll safety (touch/trackpad) */
.games-body-scroll, .movies-main-scroll, .window-body, .browser-home-page, .settings-content, .notepad-textarea {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* ===== Account Sign-in Screen ===== */
.account-screen{position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 50% 30%, #1a1a1f 0%, #050506 80%);}
.account-screen.hidden{display:none;}
.account-card{width:340px; max-width:90vw; background:rgba(20,20,24,0.92); border:1px solid rgba(255,255,255,0.12); border-radius:18px; padding:32px 28px; box-shadow:0 20px 60px rgba(0,0,0,0.6); text-align:center; backdrop-filter:blur(20px);}
.account-logo{width:72px; height:72px; border-radius:18px; overflow:hidden; margin:0 auto 14px; border:1px solid rgba(255,255,255,0.15); box-shadow:0 8px 24px rgba(0,0,0,0.5);}
.account-logo img{width:100%; height:100%; object-fit:cover;}
.account-title{font-size:22px; font-weight:700; color:#fff; letter-spacing:0.3px;}
.account-subtitle{font-size:12.5px; color:rgba(255,255,255,0.55); margin:4px 0 20px;}
.account-form{display:flex; flex-direction:column; gap:10px;}
.account-input{width:100%; padding:11px 14px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:10px; color:#fff; font-size:13px; outline:none; box-sizing:border-box;}
.account-input:focus{border-color:#fff; background:rgba(255,255,255,0.1);}
.account-btn{width:100%; padding:11px 14px; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; transition:opacity 0.15s, transform 0.1s;}
.account-btn.primary{background:#fff; color:#000;}
.account-btn:hover{opacity:0.9;}
.account-btn:active{transform:scale(0.98);}
.account-error{font-size:12px; color:#ff6b6b; min-height:16px; font-weight:600;}
.account-switch{font-size:12px; color:rgba(255,255,255,0.55); margin-top:4px;}
.account-switch a{color:#fff; font-weight:700; text-decoration:none; margin-left:4px;}
.account-guest{display:inline-block; margin-top:16px; font-size:11.5px; color:rgba(255,255,255,0.45); text-decoration:none;}
.account-guest:hover{color:#fff;}
.account-picker{margin-top:6px;}
.account-picker-label{font-size:11px; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,0.4); margin-bottom:8px;}
.account-picker-item{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); margin-bottom:8px; cursor:pointer; transition:background 0.15s;}
.account-picker-item:hover{background:rgba(255,255,255,0.12);}
.account-picker-avatar{width:32px; height:32px; border-radius:50%; background:#fff; color:#000; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;}
.account-picker-name{font-size:13px; font-weight:600; color:#fff;}
