/* === CUTE KAWAI PASTEL PURPLE THEME === */
:root {
  --pastel-purple: #d4b5ff;
  --dark-purple: #b28fd8;
  --soft-pink: #ffd1e6;
  --hot-pink: #ff6b8b;
  --nav-highlight: #e8c6ff;
  --light-purple: #f0e6ff;
  --medium-purple: #c9a8ff;
}

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
h1 {font-size: 1.5em;margin-bottom: 10px;}
p{font-size: 1em;line-height: 1.3em;margin-bottom: 10px;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
ins{background-color:#ff9;color:#000;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}

body {
  background-color: #f9f0ff;
  background-image: 
    url('https://64.media.tumblr.com/162cc3dfa5cef6c882aba5453445f0fb/tumblr_mx3y1yYFad1qcm0eto1_1280.pnj'), /* Tiled image first */
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 20px 20px, 20px 20px; /* Different sizes for each layer */
  font-family: 'Courier New', monospace;
  color: #8a7faf;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* SCANLINES */
#scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.12) 50%
    );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2147483647; /* Highest z-index */
  mix-blend-mode: overlay;
}

/* === DESKTOP === */
#desktop {
  font-family: 'Courier New', monospace;
  position: fixed;
  height: 100%;
  width: 100%;
  background: transparent;
  overflow: hidden;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* === DESKTOP ICONS IN NEW STYLE === */
#icons {
  position: absolute;
  z-index: 10;
  top: 15px;
  left: 15px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
}

/* Desktop Icon Style - Updated to match reference */
#icons a {
  display: block;
  width: 70px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding: 0;
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: black;
  transition: transform 0.2s ease;
  position: relative;
}

/* Icon box is now an image container */
.icon-box {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px auto;
  cursor: cell;
  border-radius: 10px;
  filter: grayscale(50%);
  transition: filter 0.3s ease, transform 0.2s ease;
  overflow: hidden;
  position: relative;
}

/* CUSTOM ICON CLASSES */
.icon-zero {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/6.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-one {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/1.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
  
.icon-two {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/2.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-three {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/File%20Icons/1.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-four {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/4.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-five {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/3.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-six {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/8.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-seven {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/App%20Icons/2.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-eight {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/7.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.icon-nine {
  background-image: url('https://szufladka.neocities.org/windows/desktop%20icons/Folder%20Icons/7.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hover effect for icons */
#icons a:hover .icon-box {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Caption below the box */
.icon-caption {
  display: block;
  background: white;
  padding: 2px;
  margin-top: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  color: #8a7faf;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
  word-break: break-word;
  transition: background 0.3s ease;
  line-height: 1.2;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effects */
#icons a:hover {
  transform: translateY(-2px);
}

/* Active/Selected state */
#icons a.selected .icon-caption {
  background: var(--pastel-purple);
  color: white;
}

/* === WINDOWS 98 WINDOW STYLES === */
.window {
  position: absolute;
  background: #fff;
  z-index: 1000;
  min-width: 200px;
  min-height: 150px;
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: var(--dark-purple);
  border-bottom-color: var(--dark-purple);
  box-shadow: 
    0 0 15px rgba(178, 143, 216, 0.4);
}
.window.closed {
  display: none;
}
.window.minimizedWindow {
  display: none;
}
.window.fullSizeWindow {
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 40px !important;
  border: none;
  box-shadow: none;
}
.fullSizeWindow .ui-resizable-handle {
  display: none;
}

/* === WINDOWS 98 WINDOW HEADER === */
.windowHeader {
  background: linear-gradient(90deg, var(--pastel-purple), var(--soft-pink));
  padding: 3px 6px;
  cursor: move;
  height: 18px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: white;
  font-size: 11px;
  border-bottom: 2px solid var(--pastel-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
.activeWindow .windowHeader {
  background: linear-gradient(90deg, var(--medium-purple), var(--hot-pink));
}

.windowHeader > strong {
  margin: 0;
  line-height: 15px;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  flex: 1;
}

/* === WINDOW BUTTONS ON THE RIGHT === */
.window-buttons {
  display: flex;
  gap: 2px;
}

/* === FIXED WINDOW BUTTONS === */
.winminimize, .winmaximize, .winclose {
  background: #fff;
  border: 1px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', Gadget, sans-serif;
  font-size: 11px;
  color: #000;
  cursor: pointer;
  box-shadow: none;
  text-shadow: none;
}

.winminimize:active, .winmaximize:active, .winclose:active {
  border: 1px solid;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.winminimize:hover, .winmaximize:hover {
  background: #f2e5ff;
}

.winclose:hover {
  background: var(--hot-pink);
  color: white;
}

.winminimize > span {
  border-bottom: 2px solid #000;
  width: 8px;
  height: 6px;
  display: block;
}

.winmaximize > span {
  border: 1px solid #000;
  border-top: 2px solid #000;
  width: 8px;
  height: 6px;
  display: block;
}

.winclose {
  font-size: 12px;
  line-height: 12px;
  font-weight: bold;
}

.winmaximize > span:nth-child(2) {
  display: none;
}
.fullSizeWindow .winmaximize > span:nth-child(1) {
  margin: 1px 0 0 -3px;
}
.fullSizeWindow .winmaximize > span:nth-child(2) {
  display: inline-block;
  top: 2px;
  left: 8px;
}

.wincontent {
  padding: 8px;
  min-width: 200px;
  min-height: 140px;
  background: #fff;
  font-family: 'Courier New', monospace;
  color: #8a7faf;
  font-weight: bold;
  font-size: 12px;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  margin: 0;
  overflow: auto !important; /* Remove scrollbars */
}
/* === WINDOWS 98 STYLE SCROLLBARS === */
.wincontent {
    scrollbar-width: thin;
    scrollbar-color: var(--pastel-purple) var(--light-purple);
    overflow: auto !important;
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
.wincontent::-webkit-scrollbar {
    width: 16px !important;
    background: var(--light-purple) !important;
    border-left: 2px solid var(--dark-purple) !important;
}

.wincontent::-webkit-scrollbar-track {
    background: var(--light-purple) !important;
    border: 2px solid !important;
    border-color: #ffffff var(--dark-purple) var(--dark-purple) #ffffff !important;
}

.wincontent::-webkit-scrollbar-thumb {
    background: var(--pastel-purple) !important;
    border: 2px solid !important;
    border-color: #ffffff #808080 #808080 #ffffff !important;
    min-height: 40px !important;
}

.wincontent::-webkit-scrollbar-thumb:hover {
    background: var(--medium-purple) !important;
}

.wincontent::-webkit-scrollbar-button:single-button {
    background-color: #fff !important;
    border: 2px solid !important;
    border-color: #ffffff #808080 #808080 #ffffff !important;
    display: block !important;
    height: 16px !important;
    width: 16px !important;
}

/* Up arrow */
.wincontent::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><polygon points='0,4 4,0 8,4' fill='%23000'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center 4px !important;
}

.wincontent::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
    background-color: var(--nav-highlight) !important;
}

.wincontent::-webkit-scrollbar-button:single-button:vertical:decrement:active {
    background-color: #e0e0e0 !important;
    border-color: #808080 #ffffff #ffffff #808080 !important;
}

/* Down arrow */
.wincontent::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><polygon points='0,0 4,4 8,0' fill='%23000'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center 4px !important;
}

.wincontent::-webkit-scrollbar-button:single-button:vertical:increment:hover {
    background-color: var(--nav-highlight) !important;
}

.wincontent::-webkit-scrollbar-button:single-button:vertical:increment:active {
    background-color: #e0e0e0 !important;
    border-color: #808080 #ffffff #ffffff #808080 !important;
}

/* Firefox scrollbar */
.wincontent {
    scrollbar-width: thin !important;
    scrollbar-color: var(--pastel-purple) var(--light-purple) !important;
}

/* Hide scrollbar arrows for Firefox (they don't support customizing them well) */
.wincontent {
    scrollbar-arrow-color: transparent !important;
}

/* === WINDOWS 98 TASKBAR === */
.taskbarPanel {
  display: inline-block;
  line-height: 24px;
  margin: 2px 0 0 2px;
  font-size: 12px;
  padding: 0 12px 1px 12px; /* Reduced bottom padding from 0 to 1px */
  background: #fff;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  color: #8a7faf;
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  min-width: 80px;
  text-align: left;
   vertical-align: middle; 
  flex-shrink: 0;
}
.taskbarPanel.activeTab {
  background: var(--soft-pink);
  color: #8a7faf; /* Changed from white to maintain contrast */
  border: 2px solid;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.8); /* Added text shadow for better visibility */
}
.taskbarPanel.minimizedTab {
  background: #f0e6ff;
}
.taskbarPanel.minimizedTab:hover {
  background: var(--nav-highlight);
}
.taskbarPanel.closed {
  display: none;
}

#taskbar {
  position: absolute;
  height: 30px;
  border-top: 2px solid #ffffff;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pastel-purple), var(--dark-purple));
  padding: 4px 6px 6px 6px; /* Increased bottom padding to 6px */
  display: flex;
  align-items: flex-start;
}

/* Taskbar items container - FIXED */
.taskbar-items {
  display: flex;
  flex: 1;
  overflow-x: auto;
  margin: 0 6px;
  min-width: 0;
  margin-top: 2px;
  gap: 2px;
}

/* Ensure taskbar buttons don't shrink */
.taskbarPanel {
  flex-shrink: 0;
}

/* Hide scrollbar for taskbar items but keep functionality */
.taskbar-items::-webkit-scrollbar {
  display: none;
}
.taskbar-items {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* === TIME AND DATE CLOCK IN TASKBAR === */
.taskbar-clock-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  padding: 4px 4px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
}

.taskbar-clock {
  display: block;
  margin: 0;
  padding: 0px 0px;
  border: none !important;
  pointer-events: none;
}

/* === WINDOWS 98 START BUTTON === */
.start-button {
  background: #fff;
  border: 2px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 4px 8px 4px 8px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  min-width: 60px;
  margin-top: 0px;
  flex-shrink: 0;
}

.start-button:active {
  border: 2px solid;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.start-button::before {
  content: "■";
  font-size: 14px;
  color: var(--pastel-purple);
  font-weight: bold;
}

.start-button:hover {
  background: var(--nav-highlight);
}

#templateLink {
  position: absolute;
  display: inline-block;
  bottom: 45px;
  right: 15px;
  font-weight: bold;
  font-size: 10px;
  color: var(--dark-purple);
  text-decoration: none;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pastel-purple);
  font-family: 'Courier New', monospace;
}
#templateLink:hover {
  background: var(--pastel-purple);
  color: white;
}

/* Firefox scrollbar */
.wincontent {
  scrollbar-width: thin;
  scrollbar-color: var(--pastel-purple) var(--light-purple);
}

/* === CUTE RESIZE HANDLES === */
.ui-resizable-handle {
  background: transparent;
  border: none;
}

.ui-resizable-n,
.ui-resizable-s {
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--pastel-purple), transparent);
  opacity: 0.6;
}

.ui-resizable-e,
.ui-resizable-w {
  width: 8px;
  background: linear-gradient(180deg, transparent, var(--pastel-purple), transparent);
  opacity: 0.6;
}

.ui-resizable-n:hover,
.ui-resizable-s:hover,
.ui-resizable-e:hover,
.ui-resizable-w:hover {
  background: linear-gradient(90deg, transparent, var(--soft-pink), transparent);
  opacity: 0.8;
}

/* === CUTE CORNER RESIZE HANDLE === */
.ui-resizable-se {
  width: 15px;
  height: 15px;
  background: 
    linear-gradient(135deg, transparent 0%, transparent 50%, var(--pastel-purple) 50%, var(--pastel-purple) 100%);
  border: none;
  bottom: 2px;
  right: 2px;
  cursor: nwse-resize;
  border-radius: 0 0 4px 0;
  box-shadow: 0 0 8px rgba(178, 143, 216, 0.3);
}

.ui-resizable-se:hover {
  background: 
    linear-gradient(135deg, transparent 0%, transparent 50%, var(--soft-pink) 50%, var(--soft-pink) 100%);
  box-shadow: 0 0 12px rgba(255, 107, 139, 0.4);
}

.ui-resizable-se:active {
  background: 
    linear-gradient(135deg, transparent 0%, transparent 50%, var(--hot-pink) 50%, var(--hot-pink) 100%);
}

/* Add cute corner pattern to resize handle */
.ui-resizable-se::after {
  content: "⋰";
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}



/* === CD PLAYER WINDOW - SPECIAL STYLES === */
#window4 {
  width: 320px !important;
  height: 135px !important;
  min-width: 320px !important;
  min-height: 120px !important;
  max-width: 320px !important;
  max-height: 120px !important;
  resize: none !important;
  background: var(--light-purple) !important;
  overflow: hidden !important;
  border: 2px solid !important;
  border-top-color: #ffffff !important;
  border-left-color: #ffffff !important;
  border-right-color: var(--dark-purple) !important;
  border-bottom-color: var(--dark-purple) !important;
}

/* Disable resize for CD player */
#window4.ui-resizable {
  resize: none !important;
}

#window4 .ui-resizable-handle {
  display: none !important;
}

/* CD Player content container */
#window4 .wincontent {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* === KAWAI CD PLAYER STYLES - FIXED SPACING === */
.kawaii-cd-player {
  width: 100%;
  height: 100%;
  background: var(--light-purple);
  padding: 6px 6px 6px 6px !important;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.kawaii-cd-body {
  display: flex;
  gap: 8px;
  height: calc(100% - 40px) !important;
  width: 100%;
  position: relative;
  flex: 1;
}

.kawaii-album-art {
  width: 70px !important;
  height: 70px !important;
  border: 3px solid var(--pastel-purple);
  background: var(--pastel-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    inset -1px -1px #ffffff, 
    inset 1px 1px var(--dark-purple), 
    inset -2px -2px #ffffff, 
    inset 2px 2px var(--dark-purple);
  position: relative;
  z-index: 1;
  margin-top: 1px !important;
}

.kawaii-album-art img {
  width: 66px !important;
  height: 66px !important;
  object-fit: cover;
  border: 1px solid var(--pastel-purple);
}

.kawaii-player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: calc(100% - 88px) !important;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
}

.kawaii-songtitle-window {
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  padding: 5px 5px;
  margin-bottom: 8px !important;
  margin-top: 3px !important;
  height: 20px !important;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.kawaii-songtitle {
  font-family: 'Courier New', monospace;
  font-size: 11px !important;
  font-weight: bold;
  color: #8a7faf;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  line-height: 1.2 !important;
}

.kawaii-seeking {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px !important;
  padding: 0 1px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 16px !important;
}

.kawaii-current-time, .kawaii-total-duration {
  font-family: 'Courier New', monospace;
  font-size: 9px !important;
  color: #8a7faf;
  font-weight: bold;
  min-width: 22px !important;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2 !important;
}

.kawaii-seek-slider {
  flex: 1;
  height: 10px !important;
  background: #fff;
  border: 2px solid;
  border-top-color: var(--dark-purple);
  border-left-color: var(--dark-purple);
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 0;
  margin: 0 !important;
}

.kawaii-seek-slider::-webkit-slider-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pastel-purple), var(--soft-pink));
  border: none;
}

.kawaii-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 12px;
  background: var(--hot-pink);
  border: 1px solid var(--dark-purple);
  cursor: pointer;
}

.kawaii-seek-slider::-moz-range-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pastel-purple), var(--soft-pink));
  border: none;
}

.kawaii-seek-slider::-moz-range-thumb {
  width: 8px;
  height: 12px;
  background: var(--hot-pink);
  border: 1px solid var(--dark-purple);
  cursor: pointer;
}

/* === CD PLAYER CONTROL BUTTONS - FIXED SPACING === */
.kawaii-controls-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 10 !important;
  height: 24px !important;
  min-height: 24px !important;
}

.kawaii-controls-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 auto !important;
  table-layout: fixed !important;
  display: table !important;
  height: 100% !important;
}

.kawaii-controls-table tr {
  display: table-row !important;
  width: 100% !important;
  height: 100% !important;
}

.kawaii-controls-table td {
  text-align: center !important;
  padding: 1px !important;
  width: 20% !important;
  vertical-align: middle !important;
  display: table-cell !important;
  height: 100% !important;
}

.kawaii-control-btn {
  background: #fff !important;
  border: 2px solid !important;
  border-top-color: #ffffff !important;
  border-left-color: #ffffff !important;
  border-right-color: var(--dark-purple) !important;
  border-bottom-color: var(--dark-purple) !important;
  width: 22px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-family: 'Courier New', monospace !important;
  margin: 0 auto !important;
  font-size: 8px !important;
  vertical-align: middle !important;
}

.kawaii-control-btn:active {
  border: 2px solid !important;
  border-top-color: var(--dark-purple) !important;
  border-left-color: var(--dark-purple) !important;
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

.kawaii-control-btn:hover {
  background: var(--nav-highlight) !important;
}

.kawaii-control-btn.active {
  background: var(--pastel-purple) !important;
  color: white !important;
}

.kawaii-control-img {
  width: 10px !important;
  height: 10px !important;
  display: block !important;
}

.kawaii-control-text {
  font-size: 10px !important;
  font-weight: bold !important;
  color: #8a7faf !important;
  line-height: 1 !important;
}

/* Scrolling text for long song titles */
.kawaii-songtitle span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: kawaii-scroll-text 15s linear infinite;
}

.kawaii-songtitle:hover span {
  animation-play-state: paused;
}

@keyframes kawaii-scroll-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* === WINDOW 9 - FULL IMAGE WINDOW === */
#window9 { 
  top: 100px; 
  left: 800px; 
  overflow: hidden !important;
}

/* Target the wincontent that JavaScript creates */
#window9 .wincontent {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
}

/* Image styles */
#window9 .wincontent img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Set default window size */
#window9 .wincontent {
  width: 400px;
  height: 400px;
}

/* Also add to your window positioning section */
#window9 { top: 100px; left: 800px; }

/* Demo window positioning */
#window0 { top: 400px; left: 900px;}
#window1 { top: 120px; left: 200px;}
#window2 { top: 210px; left: 80px;}
#window3 { top: 300px; left: 350px;}
#window4 { top: 20px; left: 1100px; }
#window5 { top: 150px; left: 600px; }
#window6 { top: 200px; left: 750px; }
#window7 { top: 250px; left: 900px; }
#window8 { top: 300px; left: 1050px; }
#window9 { top: 100px; left: 800px; }

#window0 .wincontent { width: 200px; height: 200px; }
#window1 .wincontent { width: 350px; height: 250px; }
#window2 .wincontent { width: 300px; height: 200px; }
#window3 .wincontent { width: 450px; height: 320px; }
#window5 .wincontent { width: 300px; height: 250px; }
#window6 .wincontent { width: 300px; height: 250px; }
#window7 .wincontent { width: 300px; height: 250px; }
#window8 .wincontent { width: 300px; height: 250px; }
#window9 .wincontent { width: 400px; height: 400px; }