/* === Desktop Shell === */
body {
  margin: 0;
  overflow: hidden;
  height: 100vh;
}

#desktop {
  background: #008080;
  width: 100%;
  height: calc(100vh - 30px);
  position: relative;
}

/* === Desktop Icons === */
.desktop-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.desktop-icon {
  width: 64px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.desktop-icon img {
  width: 32px;
  height: 32px;
}

.desktop-icon span {
  display: block;
  color: #fff;
  text-shadow: 1px 1px #000;
  font-size: 11px;
  margin-top: 4px;
}

.desktop-icon:hover span {
  background: #000080;
}

.desktop-icon:active {
  opacity: 0.8;
}

/* === Windows === */
.window {
  position: absolute;
  display: none;
  width: 700px;
  height: 500px;
  min-width: 400px;
  min-height: 300px;
  overflow: hidden;
  resize: both;
}

.window.open {
  display: block;
}

.window.maximized {
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  resize: none;
}

.window .title-bar {
  cursor: grab;
  user-select: none;
}

.window .title-bar:active {
  cursor: grabbing;
}

.window .window-body {
  overflow: auto;
  height: calc(100% - 28px);
}

/* === Taskbar === */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: silver;
  border-top: 2px solid #fff;
  padding: 0 2px;
  gap: 2px;
  font-size: 11px;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.start-button img {
  width: 16px;
  height: 16px;
}

.taskbar-windows {
  display: flex;
  flex: 1;
  gap: 2px;
  overflow: hidden;
  align-items: center;
  padding: 0 2px;
}

.taskbar-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: silver;
  border: 2px outset #fff;
  flex-shrink: 0;
}

.taskbar-btn.active {
  border-style: inset;
  background: #ccc;
}

.taskbar-btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.taskbar-clock {
  padding: 2px 8px;
  border: 1px inset #fff;
  height: 20px;
  display: flex;
  align-items: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-left: auto;
}

/* === Window Body Flex (status bar sticks to bottom) === */
.window .window-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* === Shared Status Bar === */
.win-statusbar {
  background: #c0c0c0;
  font-size: 10px;
  padding: 2px 4px;
  border-top: 1px solid #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  flex-shrink: 0;
}

.win-statusbar span {
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 1px 6px;
  display: inline-block;
}

/* === Netscape Navigator Interior === */
.netscape-menubar {
  background: #c0c0c0;
  font-size: 11px;
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.netscape-menubar span {
  margin-right: 12px;
  cursor: default;
}

.netscape-toolbar {
  background: #c0c0c0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.netscape-toolbar button {
  width: 50px;
  font-size: 10px;
  flex-shrink: 0;
  font-family: inherit;
}

.netscape-toolbar input {
  flex: 1;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  font-size: 10px;
  padding: 1px 4px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

#about-window {
  width: 800px;
  height: auto;
  min-width: 490px;
  min-height: 490px;
}

#about-window .window-body {
  background: #000;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.netscape-body {
  background: #000;
  color: #fff;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  text-align: center;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ns-content-area {
  flex: 1;
  overflow-y: auto;
}

/* Top welcome bar */
.ns-top-bar {
  background: #006600;
  color: #ffff00;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  padding: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.ns-mobile-warning {
  display: none;
  background: #ffff00;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 9px;
  padding: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  animation: flash-green-black 0.6s steps(1) infinite;
}

@keyframes flash-green-black {
  0% { color: #00cc00; }
  50% { color: #000000; }
}

/* Title block */
.ns-title-block {
  background: #000;
  padding: 20px 16px 12px;
  border-bottom: 3px solid #00cc00;
  text-align: center;
}

.netscape-body .band-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 48px;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #ffff00 0%, #66ff00 40%, #00cc00 70%, #004400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0 #000);
  -webkit-text-stroke: 1px #009900;
  margin: 0;
}

.ns-tagline {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  color: #ffff00;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Solid green HR */
.ns-hr-solid {
  height: 2px;
  background: #00cc00;
}

/* Blinkies bar */
.ns-blinkies-bar {
  background: #111;
  padding: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid #333;
}

/* Content area — table layout */
.ns-content-area {
  background: #000;
  padding: 12px 20px;
}

.ns-content-area table {
  width: 100%;
  border-collapse: collapse;
  background: #000;
}

.ns-content-area td {
  vertical-align: top;
  padding: 8px;
  background: #000;
}

.ns-left-col {
  width: 55%;
  text-align: left;
}

.ns-right-col {
  width: 45%;
  text-align: center;
}

.ns-desc {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}

.ns-desc .prompt {
  color: #009900;
}

/* Photo box */
.ns-photo-box {
  border: 2px solid #00cc00;
  background: #111;
  padding: 2px;
}

.ns-photo-box img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
}

.ns-photo-caption {
  font-size: 8px;
  color: #999;
  font-family: 'Courier New', monospace;
  padding: 2px;
  text-align: center;
  background: #111;
}

/* Bottom links */
.ns-bottom-links {
  background: #111;
  padding: 6px;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: #666;
  border-top: 1px solid #333;
  flex-shrink: 0;
  margin-top: auto;
  text-align: center;
}

.ns-bottom-links a {
  color: #00ff00;
  text-decoration: underline;
}

.ns-counter {
  color: #ffff00;
}

/* Status bar */
.netscape-statusbar {
  background: #c0c0c0;
  font-size: 10px;
  display: flex;
  padding: 2px 4px;
  gap: 4px;
  border-top: 1px solid #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  flex-shrink: 0;
}

.netscape-statusbar span {
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 1px 6px;
}

/* === News / Outlook Express Interior === */
#news-window {
  width: 550px;
  height: 450px;
}

.inbox-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: #fff;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  color: #000;
}

.inbox-toolbar {
  background: #c0c0c0;
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
  display: flex;
  gap: 3px;
}

.inbox-toolbar button {
  font-size: 9px;
  padding: 1px 6px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.inbox-list {
  border-bottom: 2px solid #808080;
  overflow-y: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.inbox-headers {
  display: flex;
  background: #c0c0c0;
  font-size: 10px;
  font-weight: bold;
  border-bottom: 1px solid #808080;
  position: sticky;
  top: 0;
}

.inbox-headers span {
  padding: 2px 6px;
  border-right: 1px solid #808080;
}

.col-icon { width: 20px; text-align: center; flex-shrink: 0; }
.col-from { width: 90px; flex-shrink: 0; }
.col-subject { flex: 1; }
.col-date { width: 70px; flex-shrink: 0; }

.inbox-row {
  display: flex;
  font-size: 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.inbox-row:hover { background: #e0e0ff; }
.inbox-row.active { background: #000080; color: #fff; }
.inbox-row.unread { font-weight: bold; }

.inbox-row span {
  padding: 2px 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inbox-preview {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
}

.preview-header { margin-bottom: 4px; }
.preview-from { font-size: 10px; color: #666; }
.preview-subject { font-size: 13px; font-weight: bold; margin: 2px 0; }
.preview-date { font-size: 9px; color: #999; }
.preview-hr { border: none; height: 1px; background: #ccc; margin: 6px 0; }
.preview-body { font-size: 11px; line-height: 1.6; }
.preview-link { color: #0000cc; text-decoration: underline; font-size: 10px; }

.preview-img {
  max-width: 150px;
  border: 1px solid #ccc;
  image-rendering: pixelated;
  float: left;
  margin: 0 10px 6px 0;
}

/* === Virus Popup === */
#virus-popup {
  width: auto !important;
  min-width: 0 !important;
  max-width: 350px;
  height: auto !important;
  min-height: 0 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  resize: none;
}

#virus-popup .window-body {
  flex-grow: 0 !important;
}

.virus-body {
  display: flex;
  gap: 12px;
  padding: 12px !important;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
}

.virus-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.red-x {
  width: 32px;
  height: 32px;
  background: #cc0000;
  border-radius: 50%;
  position: relative;
}

.red-x::before,
.red-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 4px;
  background: #fff;
}

.red-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.red-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.virus-title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 6px;
}

.virus-msg {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.virus-buttons {
  display: flex;
  gap: 6px;
}

.virus-buttons button {
  font-size: 10px;
  padding: 3px 10px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  cursor: pointer;
}

#video-window {
  width: 360px;
  height: auto;
}

#video-window video {
  display: block;
}

#contact-window {
  width: 420px;
  height: 530px;
}

/* === MSN Messenger Interior === */
.msn-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.msn-header {
  background: linear-gradient(180deg, #4b8bc8, #3a7ab8);
  padding: 8px 12px;
  color: #fff;
}

.msn-header .msn-logo {
  font-size: 16px;
}

.msn-header .msn-logo img {
  width: 20px;
  height: 20px;
}

.msn-header .msn-title {
  font-weight: bold;
  font-size: 14px;
}

.msn-header .msn-status {
  font-size: 12px;
  opacity: 0.8;
}

.msn-email {
  background: #e8f0f8;
  padding: 6px 12px;
  font-size: 10px;
  color: #336;
  border-bottom: 1px solid #b8c8d8;
}

.msn-contacts {
  flex: 1;
  background: #fff;
  padding: 4px 0;
  overflow-y: auto;
}

.msn-group {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #336;
}

.msn-group::before {
  content: '▼';
  font-size: 8px;
  margin-right: 4px;
}

.msn-contact {
  padding: 4px 12px 4px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msn-contact:hover {
  background: #e8f0ff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00cc00;
  flex-shrink: 0;
}

.contact-avatar {
  width: 28px;
  height: 28px;
  background: #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: 13px;
  font-weight: bold;
}

.contact-msg {
  font-size: 11px;
  color: #666;
  font-style: italic;
}

.contact-detail {
  font-size: 11px;
  color: #888;
}

.contact-detail a {
  color: #0000cc;
  text-decoration: underline;
}

.msn-bottom {
  background: linear-gradient(180deg, #d8e4f0, #c0d0e0);
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.msn-bottom button {
  font-size: 11px;
}

/* === Outlook Calendar Interior === */
.outlook-body {
  display: flex;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.mini-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: bold;
  color: #000;
}

.mini-cal-nav button {
  font-size: 7px;
  padding: 0 2px;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.mini-cal-nav span {
  font-size: 10px;
}

.cal-tabs {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 0;
}

.cal-tab {
  font-size: 10px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  border: none;
  background: #c0c0c0;
  border-right: 1px solid #808080;
  color: #000;
}

.cal-tab.active {
  background: #fff;
  font-weight: bold;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}

.cal-sidebar {
  width: 160px;
  background: #f0f0f0;
  border-right: 1px solid #c0c0c0;
  padding: 6px;
  flex-shrink: 0;
}

.mini-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  text-align: center;
}

.mini-cal caption {
  font-weight: bold;
  font-size: 10px;
  padding-bottom: 4px;
  color: #000080;
}

.mini-cal th {
  color: #000080;
  padding: 1px;
}

.mini-cal td {
  padding: 1px 2px;
  cursor: default;
}

.mini-cal td.show {
  background: #000080;
  color: #fff;
}

.mini-cal td.festival {
  background: #cc0000;
  color: #fff;
}

.cal-legend {
  margin-top: 8px;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.cal-legend .dot.show {
  background: #000080;
}

.cal-legend .dot.festival {
  background: #cc0000;
}

.cal-main {
  flex: 1;
  overflow-y: auto;
}

.cal-month-header {
  background: #e8e8e8;
  padding: 3px 8px;
  font-weight: bold;
  color: #000080;
  border-bottom: 1px solid #c0c0c0;
}

.cal-entry {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 4px 8px;
  align-items: flex-start;
  gap: 8px;
}

.cal-entry:hover {
  background: #f0f0ff;
}

.cal-date {
  width: 80px;
  flex-shrink: 0;
}

.cal-date .day {
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  line-height: 1;
}

.cal-date .month {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
}

.cal-date .weekday {
  font-size: 9px;
  color: #999;
}

.cal-icon {
  width: 12px;
  height: 12px;
  background: #000080;
  border-radius: 2px;
  margin-top: 2px;
  flex-shrink: 0;
}

.cal-icon.festival {
  background: #cc0000;
}

.cal-details .venue {
  font-weight: bold;
}

.ticket-link {
  color: #000080;
  text-decoration: none;
}

.ticket-link:hover {
  text-decoration: underline;
}

.cal-details .city {
  color: #444;
}

.cal-details .country {
  color: #888;
  font-size: 10px;
}


#music-window {
  width: 520px;
  height: auto;
}

/* === Music Explorer Interior === */
.music-explorer {
  background: #fff;
  color: #000;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.music-addr {
  background: #c0c0c0;
  padding: 2px 6px;
  font-size: 10px;
  border-bottom: 1px solid #808080;
}

.music-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.music-file-list {
  width: 200px;
  border-right: 1px solid #c0c0c0;
  overflow-y: auto;
  flex-shrink: 0;
}

.music-file {
  padding: 3px 8px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.music-file:hover {
  background: #e0e0ff;
}

.music-file.active {
  background: #000080;
  color: #fff;
}

.file-icon {
  flex-shrink: 0;
}

.file-icon img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.music-detail {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow-y: auto;
}

.detail-cover {
  width: 150px;
  height: 150px;
  border: 1px solid #c0c0c0;
  object-fit: cover;
  image-rendering: pixelated;
}

.detail-title {
  font-size: 13px;
  font-weight: bold;
}

.detail-meta {
  font-size: 10px;
  color: #666;
}

.bc-player {
  border: 0;
  width: 100%;
  max-width: 300px;
  height: 42px;
}

.detail-links {
  font-size: 10px;
}

.detail-links a {
  color: #0000cc;
  text-decoration: underline;
}

#merch-window {
  width: 450px;
  height: 700px;
}

/* === eBay Merch Store Interior === */
.ebay-body {
  background: #fff;
  color: #000;
  font-size: 11px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  overflow-y: auto;
  flex: 1;
  height: 100%;
}

.ebay-banner {
  background: #ffffcc;
  border-bottom: 2px solid #cc9900;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ebay-banner .logo {
  font-size: 18px;
  font-weight: bold;
}

.ebay-banner .cart {
  font-size: 11px;
  cursor: default;
}

.ebay-nav {
  background: #e8e8e8;
  padding: 3px 10px;
  border-bottom: 1px solid #ccc;
}

.ebay-nav button {
  background: none;
  border: none;
  font-size: 11px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  color: #0000cc;
  text-decoration: underline;
  cursor: pointer;
  margin-right: 10px;
  padding: 2px 4px;
}

.ebay-nav button:hover {
  color: #cc0000;
}

.ebay-nav button.active {
  font-weight: bold;
  text-decoration: underline;
  color: #000;
}

.ebay-search {
  padding: 6px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 4px;
  align-items: center;
}

.ebay-search input {
  border: 1px solid #999;
  padding: 2px 6px;
  width: 200px;
  font-size: 11px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.ebay-search .search-btn {
  background: #0064d2;
  color: #fff;
  border: 1px solid #004a9e;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.ebay-search .search-btn:hover {
  background: #0053b8;
}

.ebay-results {
  padding: 4px 10px;
  font-size: 10px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.ebay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.ebay-item {
  border: 1px solid #ddd;
  padding: 6px;
  background: #fff;
  text-align: center;
}

.ebay-item:hover {
  border-color: #0064d2;
}

.item-img {
  width: 100%;
  height: 80px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

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

.item-title {
  font-size: 10px;
  color: #0000cc;
  text-decoration: underline;
  font-weight: bold;
  text-align: left;
  margin: 4px 0 2px;
}

.item-price {
  font-size: 12px;
  font-weight: bold;
  color: #e53238;
  text-align: left;
}

.item-status {
  font-size: 9px;
  color: #666;
  text-align: left;
}

.buy-btn {
  display: inline-block;
  background: #0064d2;
  color: #fff;
  border: 1px solid #004a9e;
  padding: 2px 8px;
  font-size: 9px;
  margin-top: 4px;
  text-decoration: none;
  cursor: pointer;
}

.buy-btn:hover {
  background: #0053b8;
}

.sold-out-badge {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  padding: 1px 6px;
  font-size: 9px;
  margin-top: 4px;
}

.ebay-item.sold-out {
  opacity: 0.7;
}

.ebay-statusbar {
  background: #c0c0c0;
  font-size: 11px;
  display: flex;
  padding: 2px 4px;
  border-top: 1px solid #808080;
}

.ebay-statusbar span {
  border: 1px inset #c0c0c0;
  padding: 1px 6px;
  flex: 1;
}

/* Mobile nav - hidden on desktop */
#mobile-nav { display: none; }

@media (max-width: 768px) {
  /* Show mobile nav */
  #mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 4px 6px;
    justify-content: space-between;
    align-items: center;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    box-sizing: border-box;
    width: 100%;
  }
  .mobile-logo {
    font-weight: bold;
    font-size: 10px;
    color: #000;
    flex-shrink: 0;
  }
  .mobile-buttons {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-left: 6px;
  }
  .mobile-buttons button {
    font-size: 8px;
    padding: 2px 0;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }

  /* Hide desktop elements */
  .desktop-icons { display: none; }
  #taskbar { display: none; }

  /* Desktop becomes scrollable */
  body { overflow-x: hidden; overflow-y: auto; height: auto; }
  #desktop {
    height: auto;
    overflow: visible;
    padding: 4px;
    padding-top: 36px; /* space for fixed nav */
    width: 100%;
    box-sizing: border-box;
  }

  /* Hide video easter egg on mobile */
  #video-window { display: none !important; }

  /* Windows become stacked cards — ALL visible on mobile regardless of open/close state */
  .window,
  #about-window,
  #tour-window,
  #music-window,
  #merch-window,
  #contact-window,
  #news-window {
    position: static !important;
    display: block !important;
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 4px;
    overflow: hidden;
    box-sizing: border-box;
  }

  #virus-popup {
    display: none !important;
  }

  #virus-popup.virus-visible {
    display: block !important;
    width: auto !important;
    position: fixed !important;
    max-width: 90vw;
    min-width: 0 !important;
    height: auto !important;
    margin-bottom: 4px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .window-body {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Force all inner elements to respect parent */
  .window * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .window table {
    table-layout: fixed;
    width: 100% !important;
  }

  .window img {
    max-width: 100%;
    height: auto;
  }

  .window iframe {
    max-width: 100%;
  }

  /* Prevent any horizontal overflow */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Hide window controls on mobile */
  .window .title-bar-controls { display: none; }
  #virus-popup .title-bar-controls { display: flex; }
  /* Disable dragging cursor on mobile */
  .window .title-bar { cursor: default; }

  /* Force all inner content to respect width */
  .window-body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* About: stack table into simple blocks */
  .netscape-toolbar { display: none; }
  .netscape-menubar { display: none; }
  .ns-top-bar { font-size: 8px; }
  .ns-title-block { padding: 12px 8px 8px; }
  .ns-content-area { padding: 8px; }
  .ns-content-area table { display: none; }
  .ns-content-area::after { display: none; }

  /* Replace table with mobile-friendly stacked content */
  .ns-content-area::before {
    content: none;
  }

  /* Show mobile-only about content */
  .ns-mobile-content { display: block !important; }

  /* Mobile desktop warning */
  .ns-mobile-warning { display: block !important; }
  .netscape-body {
    overflow: hidden !important;
  }
  .netscape-body .band-title {
    font-size: 24px !important;
    letter-spacing: 2px !important;
    -webkit-text-stroke: 0 !important;
  }
  .ns-tagline {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .ns-desc {
    font-size: 10px;
    word-break: break-word;
  }
  .ns-bottom-links {
    word-break: break-word;
    font-size: 8px;
  }
  .ns-blinkies-bar {
    flex-wrap: wrap;
  }
  .netscape-statusbar,
  .win-statusbar {
    display: none;
  }

  /* Tour: hide sidebar */
  .cal-sidebar { display: none; }
  .outlook-body { height: auto !important; }
  .cal-main { overflow-y: visible; }

  /* Music: stack file list above detail */
  .music-content { flex-direction: column; }
  .music-file-list {
    width: 100% !important;
    max-height: 150px;
    overflow-y: auto;
    border-right: none !important;
    border-bottom: 1px solid #c0c0c0;
  }
  .music-detail { padding: 8px; }
  .bc-player { max-width: 100%; }

  /* Merch: 2 columns */
  .ebay-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ebay-item.sold-out { display: none !important; }
  .ebay-banner { flex-wrap: wrap; font-size: 10px; }
  .ebay-nav { overflow-x: auto; white-space: nowrap; }

  /* Contact: full width */
  .msn-contact { padding-left: 12px !important; }

  /* Video window */
  #video-window { width: 100% !important; }
}
