:root {
  --pink-dark: #7b2f6b;
  --pink-mid: #d36ac2;
  --pink-light: #f6b6e6;
  --window-bg: #ffe6f7;
  --border-dark: #5b1f4d;
  --border-light: #ffd6f0;
  --space: #0b0614;
  --neon: #ff6bd6;
  --green: #00ff00;
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

#container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background: var(--space) url('https://www.transparenttextures.com/patterns/stardust.png');
  min-height: 100vh;
  box-sizing: border-box;
  border: 4px solid var(--pink-dark);
  box-shadow: 4px 0px 0 var(--pink-mid);
}

body {
  margin: 0;
  background: var(--space) url('https://i.imgur.com/j5WIZs8.jpeg');
  color: #3a0930;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.4;
  min-height: 100vh;
}

body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes cautionPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}


.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.3;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 107, 214, 0.5);
  animation: scanline 10s linear infinite;
  z-index: 1001;
  pointer-events: none;
  display: none;
}

body.crt .scanline {
    display: block;
}


header {
  text-align: center;
  padding: 40px 10px 10px;
  color: #ffd9f4;
  font-family: 'Press Start 2P', cursive;
  position: relative;
}

.header-stars {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.header-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--pink-light);
  animation: twinkle 3s infinite;
}

header h1 {
  font-size: 28px;
  margin: 0 0 8px;
  text-shadow: 2px 2px 0 var(--pink-dark), 0 0 8px var(--neon);
  position: relative;
  z-index: 1;
}

header p {
  font-size: 12px;
  margin: 0;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

header .subtitle {
  font-size: 10px;
  margin-top: 5px;
  color: var(--pink-mid);
}

.blink {
  animation: blink 1s infinite;
}


.construction {
  background: repeating-linear-gradient(
    45deg,
    #ff6bd6,
    #ff6bd6 10px,
    #ffa3e7 10px,
    #ffa3e7 20px
  );
  text-align: center;
  padding: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  border-top: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-dark);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.construction::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}


.desktop {
  max-width: 1200px;
  margin: 20px auto 40px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 0 16px;
}

.col-left {
  display: flex;
  flex-direction: column;
}

.window {
  background: var(--window-bg);
  border: 3px solid var(--border-dark);
  box-shadow: 
    inset 2px 2px 0 var(--border-light),
    4px 4px 0 rgba(0,0,0,0.2);
  position: relative;
  transition: transform 0.2s;
  min-height: auto;
}

#window1 {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

#window2 {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

#window3 {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

#window4 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 16px;
}

.titlebar {
  background: linear-gradient(#f3a1db, #d96ac6);
  border-bottom: 3px solid var(--border-dark);
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #4b083c;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
  user-select: none;
}

.controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.controls span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-dark);
  background: var(--pink-light);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.controls span.minimize::after { 
  content: '-';
  font-size: 10px;
  font-weight: bold;
  position: relative;
  top: 0;
}

.controls span.maximize::after { 
  content: '🗖';
  font-size: 12px;
  position: relative;
  top: -3px;
  line-height: 1;
}

.controls span.close::after { 
  content: '×';
  font-size: 12px;
  font-weight: bold;
  position: relative;
  top: 1px;
  left: 0.5px;
}

.controls span:hover {
  background: #fff;
  transition: all 0.2s;
}

.controls span.close:hover {
  background: #ff4444;
  color: white;
}
.content {
  padding: 12px;
  min-height: 200px;
  transition: max-height 0.3s;
  overflow: hidden;
}

.content.collapsed {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}


.about-content {
  padding: 8px 0;
}

.about-text {
  flex-grow: 1;
}

.about-text p {
  margin: 0 0 12px 0;
}

.highlight {
  color: var(--pink-dark);
  font-weight: bold;
}

.age {
  color: var(--pink-mid);
  font-style: italic;
  font-size: 16px;
}

.status {
  font-size: 14px;
  color: var(--pink-dark);
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s infinite;
}

.button {
  display: inline-block;
  margin: 6px 4px 0 0;
  padding: 6px 10px;
  background: linear-gradient(#ffd1ee, #f3a1db);
  border: 2px solid var(--border-dark);
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  text-decoration: none;
  color: #4b083c;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.button:hover {
  background: #ffe6f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--border-dark);
}

.button:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.button.active {
  background: var(--pink-dark);
  color: var(--pink-light);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.2);
}

.construction-zone {
  text-align: center;
  padding: 20px 15px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.caution-sign {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  color: #ff6bd6;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #000;
  animation: cautionPulse 2s infinite;
  text-align: center;
  line-height: 1.3;
}

.construction-robot {
  font-size: 40px;
  margin: 0px;
}

.warning-text {
  font-size: 14px;
  color: var(--pink-dark);
  margin-bottom: 10px;
  max-width: 300px;
  line-height: 1.3;
}

.coming-soon {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: var(--pink-dark);
  margin-top: 25px;
  padding: 8px 15px;
  border: 3px dashed var(--pink-mid);
  background: rgba(255, 255, 255, 0.3);
}

.construction-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 2px dashed rgba(255, 107, 214, 0.5);
}

.player {
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
}


.now-playing {
  margin: 10px 0;
  padding: 8px;
  background: rgba(0,0,0,0.1);
  border: 2px solid var(--border-dark);
}

.now-playing .song-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--pink-dark);
  margin-bottom: 4px;
}

.now-playing .song-artist {
  font-size: 14px;
  color: var(--pink-mid);
}


.progress-container {
  margin: 10px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--pink-light);
  border: 2px solid var(--border-dark);
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, var(--pink-mid), var(--neon));
  width: 0%;
  transition: width 0.1s;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--pink-dark);
  margin-top: 4px;
}


.controls-music {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.controls-music span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-dark);
  background: var(--pink-light);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
}

.controls-music span:hover {
  background: #fff;
  transform: scale(1.1);
}

.controls-music span.active {
  background: var(--pink-dark);
  color: white;
}


.playlist {
  margin-top: 15px;
  max-height: 200px;
  overflow-y: auto;
  border: 2px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: var(--pink-light);
  border: 1px solid var(--border-dark);
}

.playlist::-webkit-scrollbar-thumb {
  background: var(--pink-mid);
  border: 1px solid var(--border-dark);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 6px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 14px;
  transition: all 0.2s;
}

.playlist-item:hover {
  background: rgba(211, 106, 194, 0.3);
  border-color: var(--pink-mid);
}

.playlist-item.active {
  background: rgba(211, 106, 194, 0.5);
  border-color: var(--pink-dark);
}

.playlist-num {
  font-size: 12px;
  color: var(--pink-dark);
  width: 24px;
  font-weight: bold;
  text-align: center;
}

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

.ring a {
  display: block;
  padding: 8px;
  background: #f3a1db;
  border: 2px solid var(--border-dark);
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  color: #4b083c;
  transition: all 0.2s;
}

.ring a:hover {
  background: #fff;
  transform: scale(1.05);
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid var(--border-dark);
  box-shadow: 0 0 30px var(--neon);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  text-shadow: 0 0 10px var(--neon);
}


.crt-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--pink-dark);
  color: white;
  border: 2px solid var(--border-dark);
  padding: 5px 10px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  cursor: pointer;
  z-index: 100;
}

@media (max-width: 900px) {
  .desktop {
    grid-template-columns: 1fr;
  }
  
  .ring {
    grid-template-columns: repeat(2, 1fr);
  }
}