/* =======================
   Reset and base styles
   ======================= */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(135deg, #a2b9ff, #004080);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  user-select: none;
  overflow: hidden;
  color: #fff;
}

/* =======================
   Desktop styles
   ======================= */
#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  background: url('wallpaper.jpg') no-repeat center center / cover;
  cursor: default;
}

/* Desktop icons */
.icon {
  width: 70px;
  text-align: center;
  margin: 10px;
  color: white;
  font-size: 12px;
  cursor: default;
  user-select: none;
  display: inline-block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  image-rendering: pixelated;
  text-shadow:
    1px 1px 0 #00000088,
    -1px -1px 0 #00000088,
    1px -1px 0 #00000088,
    -1px 1px 0 #00000088;
}

.icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.7));
}

/* Icon selected highlight */
.icon.selected {
  outline: 2px solid #3399ff;
  outline-offset: -2px;
  background: rgba(51, 153, 255, 0.3);
  border-radius: 4px;
}

/* Selection box */
#selection-box {
  position: absolute;
  border: 1px dashed #3399ff;
  background-color: rgba(51, 153, 255, 0.2);
  display: none;
  pointer-events: none;
  z-index: 1000;
}

/* =======================
   Window styles
   ======================= */
.window {
  position: absolute;
  width: 320px;
  height: 220px;
  background: rgba(255, 255, 255, 0.50); /* semi-transparent white */
  backdrop-filter: blur(6px); /* the glass blur effect */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2),
    0 4px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  color: #000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: text;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9000;
  /* allow windows to exceed 95% cap; individual windows can still set sizes inline */
  max-width: none;
  max-height: none;
  
  /* New for focus opacity */
  opacity: 0.85; /* default less opaque */
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.window.focused {
  opacity: 1; /* fully opaque when focused */
  background: rgba(255, 255, 255, 0.85) !important;
}

.window.active {
  box-shadow:
    0 0 0 2px #3399ff,
    0 0 10px rgba(0, 100, 200, 0.6),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

.window-header {
  background: linear-gradient(to bottom, #6da4f7, #3b66b0);
  padding: 4px 8px;
  height: 22px; /* reduced height */
  color: white;
  font-weight: bold;
  font-size: 12px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.7),
    0 1px 2px rgba(0,0,0,0.5);
}

/* Window title text */
.window-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

/* Close button */
.window-header button {
  background: linear-gradient(to bottom, #f66 0%, #c00 100%);
  border: 1px solid #800;
  color: white;
  font-weight: bold;
  font-size: 14px;
  width: 42px;
  height: 24px;
  line-height: 20px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 0;
}

.window-header button:hover {
  background: linear-gradient(to bottom, #ff8888, #cc0000);
  box-shadow: 0 0 4px rgba(255,0,0,0.7);
}

/* Window content */
.window-content {
  padding: 20px;
  overflow: auto;
  flex-grow: 1;
  font-size: 13px;
  color: #000;
}

/* =======================
   Taskbar styles
   ======================= */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 40px;
  background: linear-gradient(
    to top,
    rgba(40, 40, 40, 0.7) 0%,  /* dark base */
    rgba(70, 70, 70, 0.6) 30%,  /* mid tone */
    rgba(120, 120, 120, 0.45) 70%, /* lighter highlight */
    rgba(180, 180, 180, 0.3) 100% /* top glass highlight */
  );
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.15),  /* subtle top highlight */
    inset 0 -1px 4px rgba(0,0,0,0.4),       /* inner shadow bottom */
    0 2px 6px rgba(0,0,0,0.7);              /* outer shadow */
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  padding: 0 8px;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 10000;
  backdrop-filter: blur(12px);  /* glassy blur */
  -webkit-backdrop-filter: blur(12px);
}

/* Optional: subtle glossy highlight bar near top */
#taskbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.3),
    rgba(255,255,255,0)
  );
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  z-index: 10001;
}

/* Start button (orb-only version) */
#start-button {
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 10;
  transition: filter 0.2s ease, background-color 0.2s ease;
}

#start-button:hover {
  filter: brightness(1.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Start orb image */
#start-button img.start-orb {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 50%;
  /* Revert to original colors (no forced black) */
  filter: none;
}

/* Taskbar apps container */
#taskbar-apps {
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 5px;
  overflow-x: auto;
}

/* Taskbar icons */
.taskbar-icon {
  width: 52px;
  height: 39px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 0 4px rgba(0, 0, 0, 0.5);
  position: relative;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  user-select: none;
}

/* Taskbar icon glow on hover */
.taskbar-icon:hover {
  box-shadow:
    0 0 8px 3px #3399ff,
    0 0 10px 6px rgba(51, 153, 255, 0.5);
  background-color: rgba(51, 153, 255, 0.1);
}

/* Taskbar icon images */
.taskbar-icon img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  user-select: none;
}

/* =======================
   Start menu styles
   ======================= */
/* Start menu (Refined Windows 7 style) */
#start-menu {
  position: fixed;
  bottom: 40px;
  left: 5px;
  width: 260px;
    /* More transparent background */
  background: linear-gradient(
    to bottom,
    rgba(42, 68, 130, 0.6),
    rgba(16, 32, 64, 0.7) 
  );
  
  /* Stronger blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px 10px 0 0; /* only top corners rounded */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 8px 0;
  display: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 10001;
  color: white;
}

/* Optional glassy top highlight */
#start-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  pointer-events: none;
}

/* Show start menu */
#start-menu:not(.hidden) {
  display: block;
}

/* User section (top) */
.start-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.start-header .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  margin-right: 10px;
  image-rendering: pixelated;
}

.start-header .username {
  font-weight: bold;
  font-size: 14px;
  color: white;
  text-shadow: 0 0 3px #000;
}

/* Menu items */
#start-menu ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

#start-menu li {
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 13px;
  user-select: none;
  text-shadow: 0 0 2px black;
  border-radius: 4px;
}

#start-menu li:hover {
  background: rgba(70, 130, 180, 0.35);
}

/* =======================
   Clock styles
   ======================= */
#clock {
  width: 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: white;
  user-select: none;
  margin-left: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* =======================
   Text selection styling
   ======================= */
::selection {
  background: #3399ff;
  color: white;
}

/* =======================
   Link styling inside windows
   ======================= */
.window-content a {
  color: #0066cc;
  text-decoration: underline;
}

.window-content a:hover {
  color: #004080;
}

/* =======================
   Prevent text anti-aliasing on smaller font sizes
   ======================= */
.small-pixel-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  font-size: 11px;
  user-select: text;
}

body, #start-menu, .window {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
}

#login-screen {
  position: fixed;
  inset: 0;
  background: #0f2c4d;
  z-index: 2147483647; /* max z-index */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", sans-serif;
  color: white;
  pointer-events: all;
}

.login-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #d2eaf5 0%, #60a0c2 30%, #0f2c4d 100%);
  background-image: url('loginwallpaper.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.8);
  z-index: -1;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-box:hover {
  transform: scale(1.02);
}

.login-avatar {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 2px solid white;
  margin-bottom: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.login-name {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.login-footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.login-footer .win-logo {
  height: 80px;
  width: 140px;
}

.window-content::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.window-content::-webkit-scrollbar-track {
  background: #e1e1e1;
  border: 1px solid #cfcfcf;
}

.window-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #a6a6a6, #7a7a7a);
  border: 1px solid #6e6e6e;
  border-radius: 8px;
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #8e8e8e, #5f5f5f);
  border: 1px solid #5a5a5a;
}

/* Firefox */
.window-content {
  scrollbar-width: thin;
  scrollbar-color: #7a7a7a #e1e1e1;
}

.window.no-padding .window-content {
  padding: 0 !important;
}

/* Centered loading message */
#loading-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Pulsing dot animation */
#loading-message .dot {
  animation: pulseDot 1.5s infinite;
  opacity: 0;
  display: inline-block;
}

#loading-message .dot:nth-child(2) {
  animation-delay: 0.2s;
}
#loading-message .dot:nth-child(3) {
  animation-delay: 0.4s;
}
#loading-message .dot:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes pulseDot {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

/* Hide login content initially */
body.loading .login-box,
body.loading .login-footer {
  display: none;
}

/* Optional: loading cursor placeholder */
body.loading {
  cursor: progress; /* Replace with custom cursor later */
}
body.loading * {
  cursor: progress !important;
}

/* Album cover thumbnail */
.album-cover {
  image-rendering: auto !important;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease;
}

.album-cover:hover {
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.8); /* red glow */
}

/* Album modal styles */
#album-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#album-modal:not(.hidden) {
  pointer-events: auto;
  opacity: 1;
}

/* Backdrop with blur that fades in/out smoothly */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* fade from transparent */
  cursor: zoom-out;
  transition: background 0.3s ease;
}

#album-modal:not(.hidden) .modal-backdrop {
  background: rgba(0, 0, 0, 0.6); /* fade to dark */
}

.modal-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

#album-modal:not(.hidden) .modal-backdrop::before {
  opacity: 1;
}

/* Modal content with zoom animation */
.modal-content {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#album-modal:not(.hidden) .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Image wrapper to isolate spacing from modal content */
.modal-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Full-size album image */
.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  image-rendering: auto !important;
}

/* Download button container */
.modal-buttons {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Download button (Aero style) */
.download-btn {
  background: linear-gradient(to bottom, #d0e8ff, #80bfff);
  border: 1px solid #369;
  color: #003366;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: inset 0 1px white, 0 2px 4px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: linear-gradient(to bottom, #ffffff, #a4d2ff);
}

/* Close button (Aero-style, red) */
.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #f66, #c00);
  color: white;
  font-weight: bold;
  font-size: 20px;
  border: 1px solid #800;
  box-shadow: inset 0 1px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
}

.close-btn:hover {
  background: linear-gradient(to bottom, #ff8888, #cc0000);
  box-shadow: 0 0 8px rgba(255,0,0,0.6);
}

.goodtrip-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.goodtrip-left {
  min-width: 150px;
  width: 40%;
  max-width: 70%;
  background: rgba(0, 0, 0, 0.1);
  padding: 12px;
  box-sizing: border-box;
}

.goodtrip-right {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  overflow: auto;
  box-sizing: border-box;
}

.goodtrip-separator {
  width: 18px;
  cursor: ew-resize;
  background: linear-gradient(to bottom, #f2f2f2, #cfcfcf);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px rgba(0, 0, 0, 0.3),
    1px 0 rgba(255, 255, 255, 0.2),
    -1px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.goodtrip-separator::before {
  content: '⇔';
  font-size: 22px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 1px #fff;
  pointer-events: none;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .goodtrip-layout,
  .demodisc-layout {
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }

  .goodtrip-left,
  .demodisc-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto;
    min-height: 200px;
  }

  .goodtrip-separator,
  .demodisc-separator {
    width: 100%;
    height: 18px;
    cursor: ns-resize;
  }

  .goodtrip-separator::before,
  .demodisc-separator::before {
    content: '⇕';
  }

  .goodtrip-right,
  .demodisc-right {
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .left-inner {
    padding: 10px;
  }

  /* Removed mobile .window width/height override to let JS helper control size */

  /* Hide GOODTRIP left cassette area on mobile and make right pane full */
  .goodtrip-left,
  .goodtrip-separator {
    display: none !important;
  }
  .goodtrip-right {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto;
  }
}

.cassette-inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-width: 280px;
}

.cassette-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.7));
}

.cassette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.platform-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.platform-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.platform-icon:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6)) brightness(1.1);
}

/* Aero-style demodisc controls */
.demodisc-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.demodisc-controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078d7, #005a9e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
}

.demodisc-controls button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.demodisc-controls button:hover {
  background: linear-gradient(135deg, #0086f0, #0066b3);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.demodisc-controls button:hover::after {
  left: 100%;
}

.demodisc-controls button:active {
  background: linear-gradient(135deg, #005a9e, #004275);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}

.demodisc-controls button:focus {
  outline: 1px solid #0078d7;
  outline-offset: 2px;
}

.demodisc-controls button#demodisc-rewind,
.demodisc-controls button#demodisc-forward {
  background: none;
  box-shadow: none;
  color: #666;
  font-size: 20px;
  width: auto;
  height: auto;
  padding: 4px 8px;
}

.demodisc-controls button#demodisc-rewind:hover,
.demodisc-controls button#demodisc-forward:hover {
  color: #0078d7;
  background: none;
  box-shadow: none;
}

.demodisc-controls button#demodisc-rewind:active,
.demodisc-controls button#demodisc-forward:active {
  color: #005a9e;
  transform: none;
}

.demodisc-controls button#demodisc-rewind::after,
.demodisc-controls button#demodisc-forward::after {
  display: none;
}

/* =======================
   Windows 7 hand cursor only
   ======================= */
/* Replace the default hand wherever pointer is used (without altering other roles) */
[style*="cursor: pointer"], [style*="cursor:pointer"],
a, button, input[type="button"], input[type="submit"], label[for],
[role="button"], [onclick],
.taskbar-icon, .platform-icon, .download-btn, .close-btn, #start-button,
/* Full-area clickable containers for consistent hand across cards */
.login-box, .login-box *,
.product-item, .product-item *,
.store-filter-btn, .store-filter-btn *,
.release-item, .release-item *,
/* Whodunit door clickable area */
.whodunit-door, .whodunit-door * {
  cursor: url('Cursors/windows7_link.cur'), pointer !important;
}

/* Explicit exceptions so native cursors win where appropriate */
.goodtrip-separator, .goodtrip-separator * { cursor: ew-resize !important; }
.demodisc-separator, .demodisc-separator * { cursor: ns-resize !important; }
.window-header { cursor: move !important; }

/* Preserve album modal zoom cursors */
.album-cover { cursor: zoom-in !important; }
.modal-backdrop { cursor: zoom-out !important; }


/* =======================
   iPod Classic mini player (namespaced)
   ======================= */
.ipod-wrap { display:flex; align-items:center; justify-content:center; padding:10px; }
.ipod {
  width: 320px; height: 520px; border-radius: 24px; background: linear-gradient(#fefefe, #e9e9e9);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid #d0d0d0; position: relative; padding: 18px 18px 110px 18px; box-sizing: border-box;
  color:#222; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.ipod-screen {
  height: 220px; border-radius: 8px; background: #0b0b0b; color:#e8e8e8; padding:12px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 18px rgba(0,0,0,0.7);
  display:grid; grid-template-rows: auto 1fr auto; gap:8px; overflow:hidden; position: relative;
}
.ipod-status { font-size:12px; color:#a6c8ff; display:flex; justify-content:space-between; align-items:center; }
.ipod-main { display:grid; grid-template-columns: 80px 1fr; gap:10px; align-items:center; }
.ipod-art { width:80px; height:80px; background:#222; border-radius:4px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.5); }
.ipod-art img { width:100%; height:100%; object-fit:cover; display:block; }
.ipod-meta { min-width:0; }
.ipod-title { font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ipod-artist { font-size:12px; color:#b9c7d6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ipod-progress { display:grid; grid-template-columns: 38px 1fr 38px; align-items:center; gap:8px; }
.ipod-bar { height:6px; background:#2a2a2a; border-radius:3px; overflow:hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.7); cursor: pointer; }
.ipod-bar-fill { height:100%; width:0%; background: linear-gradient(#6ec1ff, #3b89d9); }
.ipod-time { font-size:10px; color:#aab; text-align:center; }
.ipod-wheel { position:absolute; left:0; right:0; bottom:12px; height:180px; display:flex; align-items:center; justify-content:center; }
.wheel {
  width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #f6f6f6, #e4e4e4);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.15);
  position: relative;
}
.wheel-btn { position:absolute; font-size:12px; color:#333; user-select:none; cursor:pointer; }
.btn-menu { top:18px; left:0; right:0; text-align:center; font-weight:700; }
.btn-prev { left:18px; top:50%; transform:translateY(-50%); }
.btn-next { right:18px; top:50%; transform:translateY(-50%); }
.btn-play { bottom:18px; left:0; right:0; text-align:center; }
.wheel-center {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(#fafafa, #e9e9e9);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
  display:flex; align-items:center; justify-content:center; font-weight:700; color:#333; cursor:pointer;
}
.ipod-list { position:absolute; inset:0; background:#0c0c0c; color:#e6eef6; overflow:auto; display:none; }
.ipod-list-item { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.06); cursor:pointer; display:flex; gap:10px; align-items:center; }
.ipod-list-item:hover { background:rgba(255,255,255,0.05); }
.ipod-list-item.active { background:rgba(90,150,255,0.22); }
.ipod-list-art { width:36px; height:36px; border-radius:4px; overflow:hidden; flex:0 0 auto; }
.ipod-list-art img { width:100%; height:100%; object-fit:cover; display:block; }
.ipod-empty { font-size:12px; color:#bbc; padding:14px; }

