
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Orbitron',sans-serif;
  
}

html, body{
  height:100%;
  overflow:auto;
  color:white;
  background:#000;
}

body{
  position:relative;
  user-select:none;
  caret-color:transparent;
}
/* 🌫️ DARK OVERLAY */
.overlay{
  position:fixed;
  width:100%;
  height:100%;
  background:linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index:-1;
}
/* ================= MATRIX ATMOSPHERE ================= */

.matrix-bg{
  position:fixed;
  inset:0;
  z-index:-2;

  background:
  radial-gradient(circle at center,
  rgba(0,255,120,0.06),
  transparent 60%);

  pointer-events:none;
}

/* SCANLINES */

.matrix-scanlines{
  position:fixed;
  inset:0;

  z-index:1;
  pointer-events:none;

  opacity:0.08;

  background-image:
  linear-gradient(
    rgba(255,255,255,0.06) 1px,
    transparent 1px
  );

  background-size:100% 3px;
}

/* GREEN FOG */

.matrix-fog{
  position:fixed;
  inset:0;

  z-index:-1;
  opacity:0.5;

  background:
  radial-gradient(circle at 20% 30%,
  rgba(0,255,100,0.05),
  transparent 30%),

  radial-gradient(circle at 80% 70%,
  rgba(0,255,100,0.04),
  transparent 35%),

  radial-gradient(circle at center,
  rgba(0,255,100,0.03),
  transparent 60%);

  filter:blur(40px);

  animation:fogMove 12s ease-in-out infinite alternate;
}

@keyframes fogMove{

  from{
    transform:translateY(-20px);
  }

  to{
    transform:translateY(20px);
  }

}

/* subtle glow */


/* CANVAS */
canvas{
  position:fixed;
  left:0;
  width:100%;
  z-index:-1;
  pointer-events:none;
}
/* MATRIX RAIN */

#matrixCanvas{
  position:fixed;

  top:0;
  left:0;

  width:100%;
  height:100%;

  z-index:-1;

  opacity:0.9;


  pointer-events:none;
}
#particleCanvas{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

#waveCanvas{
  bottom:80px;
  height:140px;
  opacity:0.35;
}

/* PLAYER */
.player{

  position:relative;

  left:auto;
  bottom:auto;

  width:100%;
  max-width:500px;
  margin:auto;

  margin-top:25px;


  padding:18px;

  border-radius:2px;

  background:
  linear-gradient(
    to bottom,
    rgba(0,20,0,0.82),
    rgba(0,0,0,0.92)
  );

  backdrop-filter: blur(3px);

  border:
  1px solid rgba(0,255,120,0.10);
  outline:
  1px solid rgba(0,255,120,0.05);

  box-shadow:

  inset 0 0 8px rgba(0,255,120,0.03);

  text-align:left;

  z-index:10;
}

h1{
  color:#d8ffe1;
  text-shadow:
    0 0 12px rgba(0,255,120,0.6),
    0 0 24px rgba(0,255,120,0.25);
}
.matrix-node-title{

  font-size:10px;

  letter-spacing:4px;

  margin-bottom:14px;

  opacity:0.65;

  color:#8affb5;

  text-transform:uppercase;

  border-bottom:
  1px solid rgba(0,255,120,0.12);

  padding-bottom:8px;
}
/* BUTTON */
button {
  width: 50px;
  height: 50px;
  border-radius:2px;

  border: 1px solid rgba(0,255,120,0.2);
  background: rgba(2,6,23,0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  cursor: pointer;

  backdrop-filter: blur(10px);
  transition: all 0.25s ease;

  box-shadow: 
    0 0 10px rgba(0,255,120,0.1),
    inset 0 0 10px rgba(0,255,120,0.05);
}
button:hover {
  transform:scale(1.03);

  box-shadow:
    0 0 10px rgba(0,255,120,0.25),
    0 0 16px rgba(0,255,120,0.12),
    inset 0 0 10px rgba(0,255,120,0.2);
}
button:active {
  transform: scale(0.92);

  box-shadow:
    0 0 10px rgba(0,255,120,0.4),
    inset 0 0 10px rgba(0,255,120,0.3);
}
button:focus{
  outline:2px solid #00ff88;
  outline-offset:2px;
}
.controls button:nth-child(2) {
  width: 65px;
  height: 65px;
  font-size: 22px;

  background: rgba(0,255,120,0.08);

  box-shadow:
    
    0 0 50px rgba(0,255,120,0.2);
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
}

/* SEEK BAR */
.seek-container{
  display:flex;
  align-items:center;
  gap:10px;

  width:100%;
  overflow:hidden;

  margin-top:20px;
}

#currentTime,
#totalTime{
  width:42px;

  flex-shrink:0;

  text-align:center;

  font-size:11px;
  opacity:0.7;

  white-space:nowrap;
}

#seekBar{
  flex:1;

  min-width:0;
}

#seekBar{
  flex:1;
  appearance:none;
  height:4px;
  background:rgba(0,255,120,0.25);
  border-radius:5px;
  outline:none;
  cursor:pointer;
}

#seekBar::-webkit-slider-thumb{
  appearance:none;
  width:12px;
  height:12px;
  background:#00ff88;
  border-radius:50%;
  box-shadow:0 0 10px rgba(0,255,120,0.8);
}

/* VOLUME */
.volume-container{
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

.volume-icon{
  cursor:pointer;
}

#volumeSlider{
  width:0;
  opacity:0;
  transition:0.4s;
  appearance:none;
  height:4px;
  border-radius:5px;
  outline:none;
  cursor:pointer;

  background:linear-gradient(
    to right,
    #00ff88 0%,
    #00ff88 var(--vol, 100%),
    rgba(0,255,120,0.2) var(--vol, 100%),
    rgba(0,255,120,0.2) 100%
  );
}

.volume-container.active #volumeSlider{
  width:120px;
  opacity:1;
}

#volumeSlider::-webkit-slider-thumb{
  appearance:none;
  width:12px;
  height:12px;
  background:#00ff88;
  border-radius:50%;
  box-shadow:0 0 10px #00ff88;
}

/* CURSOR */
.cursor{
  position:fixed;
  width:20px;
  height:20px;
  background:rgba(0,255,120,0.7);
  border-radius:50%;
  filter:blur(10px);
  pointer-events:none;
  z-index:999;
}
#title {
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,255,120,0.4);
  margin-top:8px;
  margin-bottom:14px;
}
#playBtn span {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animation state */
.playing {
  transform: scale(1.2);
  opacity: 0.8;
}
/* SIDEBAR PLAYLIST */
/* SIDEBAR PLAYLIST */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100%;

  background:
  linear-gradient(
    to bottom,
    rgba(0,18,0,0.94),
    rgba(0,0,0,0.98)
  );

  backdrop-filter: blur(4px);
  border-right: 1px solid rgba(0,255,120,0.2);
  padding: 20px;
  transition: 0.4s;
  z-index: 20;

  transform: translateX(-100%);
}

.sidebar.active {
  transform: translateX(0);
}


.sidebar h2 {
  margin-top: 40px;  
  margin-bottom: 15px;
  font-size: 16px;
}
.song-list {
  list-style: none;
}

.song-list li {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 12px;
  color: #cbd5f5;
  user-select: none; 
}

.song-list li:hover {
  background: rgba(0,255,120,0.2);
}

.song-list li.active {
  background: rgba(0,255,120,0.4);
  color:#00ff88;
  box-shadow: 0 0 10px rgba(0,255,120,0.5);
}

/* 👇 ADD THIS HERE */
.top-controls,
.menu-btn,
.bg-btn,
.sidebar,
.song-list,
.song-list li {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  caret-color: transparent;
}
.top-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;

  display: flex;
  align-items: center;
  gap: 10px;
}
/* TOGGLE BUTTON */
.menu-btn {
  position: static;   /* 🔥 CHANGE THIS */
  font-size: 22px;
  color: #00ff88;
  cursor: pointer;
}


/* 👇 ADD HERE */
.bg-btn {
  position: static;   /* 🔥 KEY FIX */

  width: 40px;
  height: 40px;
  border-radius: 10px;

  border: 1px solid rgba(0,255,120,0.2);
  background: rgba(2,6,23,0.6);
  color: #00ff88;

  cursor: pointer;
  backdrop-filter: blur(10px);

  transition: 0.25s;

  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0,255,120,0.6);
}
.bg-btn svg {
  filter: drop-shadow(0 0 6px #00ff88);
}
#pythonPanel{
  position:fixed;

  top:0;
  right:0;

  
  height:100vh;

  display:flex;

  justify-content:flex-end;
  align-items:stretch;

  background:none;

  z-index:30;

  pointer-events:none;
}

.python-box{

  width:420px;

  max-width:92vw;

  height:100vh;

  max-height:100vh;

  pointer-events:auto;

  padding:12px;

  border-radius:0;

  background:rgba(0,0,0,0.82);

  border-left:1px solid rgba(0,255,120,0.12);

  border-top:none;
  border-right:none;
  border-bottom:none;

  box-shadow:none;

  backdrop-filter:blur(4px);

  position:relative;
}
.python-box h2{
  font-size:12px;
  letter-spacing:4px;
  text-transform:uppercase;

  padding-bottom:10px;

  border-bottom:
  1px solid rgba(0,255,120,0.12);
  margin-left:55px;
  margin-bottom:15px;
  color:#00ff88;
  cursor:move;
  user-select:none;
}
.python-box::after{

  content:"SYSTEM ACCESS NODE";

  position:absolute;

  top:0;
  left:0;

  width:100%;

  height:24px;

  background:
  linear-gradient(
    to right,
    rgba(0,255,120,0.08),
    transparent
  );

  color:#7dffe0;

  font-size:10px;

  letter-spacing:4px;

  display:flex;

  align-items:center;

  padding-left:14px;

  border-bottom:
  1px solid rgba(0,255,120,0.08);
}
#fullPyBtn{
  all:unset;

  position:absolute;
  top:20px;
  right:20px;
  z-index:50;

  width:28px;
  height:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:2px;

  background:rgba(0,255,120,0.10);
  color:#00ff88;

  font-size:18px;
  font-weight:bold;
  cursor:pointer;

  box-shadow:0 0 12px rgba(0,255,120,0.25);
  transition:0.25s ease;
}

#fullPyBtn:hover{
  transform:scale(1.03);
  background:rgba(0,255,120,0.18);
  color:white;
}
#matrixBtn{
  all:unset;

  position:absolute;
  top:20px;
  right:68px;

  width:28px;
  height:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:2px;

  background:rgba(0,255,65,0.10);
  color:#00ff41;

  font-size:16px;
  cursor:pointer;

  box-shadow:0 0 12px rgba(0,255,65,0.25);
  transition:0.25s ease;
}

#matrixBtn:hover{
  transform:scale(1.03);
  background:rgba(0,255,65,0.18);
  color:white;
}
#closePyBtn{
  all: unset;

  position:absolute;
  top:20px;
  left:20px;
  z-index:50;

  width:28px;
  height:28px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:2px;

  background:rgba(0,255,120,0.10);
  color:#7dffe0;

  font-size:20px;
  font-weight:bold;
  line-height:1;

  cursor:pointer;

  box-shadow:
    0 0 12px rgba(0,255,120,0.35);

  transition:0.25s ease;
}

#closePyBtn:hover{
  transform:scale(1.03);
  background:rgba(0,255,120,0.18);
  color:white;
}
#pythonCode{
  width:100%;
  height:220px;
  background:#000;
  color:#00ff88;
  border:none;
  padding:15px;
  resize:none;
  font-size:15px;
  border-radius:2px;
}

#pythonOutput{
  margin-top:15px;
  height:24%;
  min-height:170px;

  background:#050505;
  color:#ffffff;
  padding:15px;

  border-radius:2px;
  border:1px solid rgba(0,255,120,0.18);

  overflow-y:auto;
  overflow-x:auto;

  white-space:pre-wrap;
}
#pythonCode{
  user-select:text !important;
  caret-color:#00ff88 !important;
}

#pythonOutput{
  user-select:text !important;
}
textarea{
  outline:none;
}
#pythonCode,
#pythonOutput{
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 15px;
  line-height: 1.5;
}

.python-box button{
  font-family: 'JetBrains Mono', monospace;
}
.py-actions{
  display:flex;
  gap:12px;
  margin-top:15px;
}

.py-actions button{
  width:auto;
  min-width:110px;
  height:42px;
  border-radius:2px;
  padding:0 18px;
  font-size:14px;
}

#clearPyBtn{
  color:#ff9f9f;
  border:1px solid rgba(255,80,80,0.25);
}

#clearPyBtn:hover{
  box-shadow:0 0 18px rgba(255,80,80,0.35);
}
.CodeMirror{
  width:100%;
  height:58%;
  min-height:360px;
  overflow:hidden !important;
  border-radius:0;
  background:#050505 !important;
  color:#00ff9f !important;
  border:1px solid rgba(0,255,120,0.25);
  background-image:
  linear-gradient(
  rgba(255,255,255,0.015) 1px,
  transparent 1px
  
  );

  background-size:100% 3px;
  text-shadow:
  0 0 4px rgba(0,255,120,0.35);
}
.CodeMirror,
.CodeMirror *,
.CodeMirror pre,
.CodeMirror-line,
.CodeMirror-lines,
.CodeMirror-code,
.CodeMirror-scroll,
.CodeMirror textarea{
  font-family:'JetBrains Mono', monospace !important;
  font-size:14px !important;
  line-height:1.5 !important;
  letter-spacing:0.15px !important;
}

.CodeMirror-gutters{
  background:#0a0a0a !important;
  border-right:1px solid rgba(0,255,120,0.15);
}

.CodeMirror-linenumber{
  color:#00ff88 !important;
  font-weight:600;
}

.CodeMirror-cursor{
  border-left:2px solid #00ff88 !important;
}

.CodeMirror ::selection{
  background:rgba(0,255,120,0.30) !important;
  color:#ffffff !important;
}

.CodeMirror ::-moz-selection{
  background:rgba(0,255,120,0.30) !important;
  color:#ffffff !important;
}.CodeMirror-selected{
  background:rgba(0,255,120,0.22) !important;
}
.CodeMirror-focused .CodeMirror-selected{
  background:rgba(0,255,120,0.22) !important;
}

.cm-keyword{ color:#00ff88 !important; }     /* def, import, if */
.cm-builtin{ color:#00ff88 !important; }     /* print, range */
.cm-variable{ color:#00ff9f !important; }    /* variables */
.cm-def{ color:#ffd700 !important; }         /* function names */
.cm-string{ color:#8aff00 !important; }      /* strings */
.cm-number{ color:#ff9f1c !important; }      /* numbers */
.cm-comment{ color:#9ca3af !important; }     /* comments */
.cm-operator{ color:#ffffff !important; }    /* + - = */
.cm-bracket{ color:#00ff88 !important; }     /* brackets */
.CodeMirror-scroll{
  height:100% !important;
  overflow:auto !important;
  
}

/* IDE scrollbar */
.CodeMirror-scroll::-webkit-scrollbar{
  width:8px;
  height:8px;
}

.CodeMirror-scroll::-webkit-scrollbar-thumb{
  background:#00ff88;
  border-radius:2px;
}

.CodeMirror-scroll::-webkit-scrollbar-track{
  background:#050505;
}
.CodeMirror-scroll,
#pythonOutput{
  scrollbar-width: thin;
  scrollbar-color:#00ff88 #050505;
}
/* Output scrollbar */
#pythonOutput::-webkit-scrollbar{
  width:8px;
  height:8px;
}

#pythonOutput::-webkit-scrollbar-thumb{
  background:#00ff88;
  border-radius:2px;
}

#pythonOutput::-webkit-scrollbar-track{
  background:#050505;
}
.CodeMirror-hints{
  background:#050505 !important;
  border:1px solid #00ff88 !important;
  border-radius:0px;
  font-family:'JetBrains Mono', monospace;
  color:#00ff9f !important;
  box-shadow:0 0 8px rgba(0,255,120,0.12);
}

.CodeMirror-hint{
  padding:8px 12px;
}

.CodeMirror-hint-active{
  background:#00ff88 !important;
  color:#000 !important;
}
.python-box.py-full{
  width:100vw !important;
  height:100vh !important;
  max-width:100vw !important;
  max-height:100vh !important;
  border-radius:0 !important;
  resize:none !important;
  left:0 !important;
  top:0 !important;
}
.python-box.matrix-mode{
  background:#000 !important;
  border:1px solid rgba(0,255,65,0.35) !important;
  box-shadow:
    0 0 25px rgba(0,255,65,0.18),
    inset 0 0 20px rgba(0,255,65,0.05);
}

.python-box.matrix-mode h2{
  color:#00ff41 !important;
  text-shadow:0 0 10px rgba(0,255,65,0.45);
}

.python-box.matrix-mode #pythonOutput{
  background:#000 !important;
  color:#00ff41 !important;
  border:1px solid rgba(0,255,65,0.22);
}
/* ================= MATRIX LOADER ================= */

#matrixLoader{
  position:fixed;
  inset:0;
  background:#000;
  z-index:999999;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity 1.2s ease;
}

#loaderCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0.32;
}

.scanlines{
  position:absolute;
  inset:0;

  background-image:
  linear-gradient(
    rgba(255,255,255,0.03) 1px,
    transparent 1px
  );

  background-size:100% 3px;

  pointer-events:none;

  opacity:0.18;

  animation:flicker 0.15s infinite;
}

@keyframes flicker{
  0%{ opacity:0.16; }
  50%{ opacity:0.2; }
  100%{ opacity:0.17; }
}

.loader-terminal{
  backdrop-filter: blur(2px);
  border:1px solid rgba(0,255,120,0.12);
  padding:35px;
  background:rgba(0,0,0,0.35);

  box-shadow:
  0 0 25px rgba(0,255,120,0.08),
  inset 0 0 15px rgba(0,255,120,0.04);
  position:relative;
  z-index:5;
  width:min(800px,90vw);
  font-family:'JetBrains Mono', monospace;
  color:#00ff88;
}

.loader-line{
  font-size:15px;
  margin-bottom:10px;
  opacity:0;
  animation:fadeLine 0.5s forwards;
  font-family:'JetBrains Mono', monospace;
  letter-spacing:1px;
  line-height:1.7;
}

@keyframes fadeLine{
  to{
    opacity:1;
  }
}

.loader-cursor{
  display:inline-block;
  margin-left:5px;
  animation:blink 0.8s infinite;
}

@keyframes blink{
  50%{
    opacity:0;
  }
}

@keyframes glitchMove{

  0%{
    transform:translate(0);
  }

  20%{
    transform:translate(-2px,1px);
  }

  40%{
    transform:translate(2px,-1px);
  }

  60%{
    transform:translate(-1px,0);
  }

  80%{
    transform:translate(1px,1px);
  }

  100%{
    transform:translate(0);
  }

}



@keyframes enterPulse{

  0%{
    opacity:0.2;
  }

  50%{
    opacity:1;
  }

  100%{
    opacity:0.2;
  }
}
.system-online{
  margin-top:30px;

  color:#d8ffe1;

  font-size:16px;

  letter-spacing:3px;

  opacity:0;

  animation:fadeIn 0.6s forwards;
}

.enter-prompt{
  margin-top:25px;

  font-size:12px;

  letter-spacing:4px;

  color:#7dffe0;

  opacity:0;

  animation:pulse 1.2s infinite;
}

@keyframes fadeIn{
  to{
    opacity:1;
  }
}

@keyframes pulse{

  0%{
    opacity:0.2;
  }

  50%{
    opacity:1;
  }

  100%{
    opacity:0.2;
  }

}
.hidden{
  display:none;
}
  
@media (max-width: 768px){

  h1{
    font-size:20px;
  }


.player{

  width:280px;

  max-width:85vw;

  padding:16px;

  border-radius:0;
}
  #title{
    font-size:11px;
  }

  button{
    width:60px;
    height:60px;
    font-size:22px;
  }
    .controls{
    gap: 25px;
  }
    #seekBar{
    height: 6px;
  }

  #seekBar::-webkit-slider-thumb{
    width: 16px;
    height: 16px;
  }

  .controls button:nth-child(2){
    width:70px;
    height:70px;
  }

  .volume-container{
    flex-direction:column;
    align-items:flex-start;
  }

  #volumeSlider{
    width:100% !important;
    opacity:1 !important;
  }
  /* 👇 ADD HERE */
  .top-controls{
  top: 15px;
  left: 15px;
  gap: 8px;
  }

  .bg-btn{
  width: 36px;
  height: 36px;
  border-radius:2px;
  }
  .sidebar{
    width: 80%;
    overflow-y:auto;
  }

  .cursor{
    display:none;
  }

.overlay{
  display: none !important;
  }

}


