/* ========================= 
   lowpolyrat - aero goth CSS
   draggable windows + taskbar + CRT overlay
   ========================= */

/* ===== BASE ===== */
html, body{
  height: 100%;
  margin: 0;
  background: radial-gradient(circle at 20% 10%, #1a1a24 0%, #07070b 45%, #040406 100%);
}

body{
  font-family: "VT-100", fixedsys, System, monospace;
  font-size: 13px;
  color: #f2f2f2;
  overflow: hidden; /* desktop vibe: no page scroll */
}

a{ color:#ff2a2a; }
a:hover{ color:#ff6b6b; }

/* ===== WINDOWS (LOOK) ===== */
.sidebar, .mini-sidebar, .wide-sidebar, .box{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.00) 35%),
    rgba(10,10,14,0.88);
  border-radius: 10px;
  border: 1px solid rgba(255, 40, 40, 0.45);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255, 0, 0, 0.12) inset;
  backdrop-filter: blur(6px);
}

/* Inner padding */
.inner{
  padding: 10px;
  padding-top: 8px;
}

/* Title bars */
.title-bar, .box-title-bar{
  background:
    linear-gradient(180deg, rgba(255, 70, 70, 0.35), rgba(120, 0, 0, 0.35)),
    rgba(20,20,28,0.55);
  color: #ffeaea;
  font-weight: bold;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 40, 40, 0.35);
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  cursor: grab;
  user-select: none;
}
.title-bar:active, .box-title-bar:active{ cursor: grabbing; }

/* little X */
.right{
  float: right;
  margin-right: 6px;
  font-family: Arial, sans-serif;
  line-height: 12px;
}

/* ===== GLOWS ===== */
.window:hover{
  box-shadow:
    0 12px 34px rgba(0,0,0,0.75),
    0 0 22px rgba(255,40,40,0.45),
    0 0 0 1px rgba(255, 0, 0, 0.18) inset;
}
.window.active{
  box-shadow:
    0 16px 40px rgba(0,0,0,0.80),
    0 0 28px rgba(255,40,40,0.65),
    0 0 0 1px rgba(255, 120, 120, 0.22) inset;
  border-color: rgba(255, 60, 60, 0.70);
}

/* ===== INITIAL POSITIONS (before JS locks them) ===== */
/* these are just starting spots; once draggable, you can move them */

/* left column */
#win-welcome{ position: fixed; left: 25px; top: 25px; width: 160px; transform: rotate(-0.6deg); }
#side-a{ position: fixed; left: 25px; top: 200px; width: 160px; height: 250px; overflow-y: auto; }

/* middle-left column */
#win-profile{ position: fixed; left: 205px; top: 25px; width: 160px; }
#side-b{ position: fixed; left: 205px; top: 200px; width: 160px; height: 165px; overflow-y: auto; }

/* notes */
#notes{ position: fixed; left: 25px; bottom: 60px; width: 340px; height: 170px; transform: rotate(-0.4deg); }


/* ===== NEW: CENTER HOME WINDOW + RIGHT LAUNCHER SIDEBAR ===== */

/* Center window (your welcome text) */
#win-center{
  position: fixed;
  left: 420px;
  top: 25px;
  width: min(860px, calc(100vw - 420px - 260px - 40px));
  height: 85vh;
  overflow-y: auto;
  transform: rotate(0.2deg);
}

/* Right-hand launcher sidebar */
#win-launcher{
  position: fixed;
  right: 25px;
  top: 25px;
  width: 240px;
  height: 85vh;
  overflow-y: auto;
  transform: rotate(-0.2deg);
}

/* Scrollbar inside centre window */
#win-center::-webkit-scrollbar{ width: 10px; }
#win-center::-webkit-scrollbar-track{ background: rgba(0,0,0,0.35); border-radius: 10px; }
#win-center::-webkit-scrollbar-thumb{ background: rgba(255,40,40,0.55); border-radius: 10px; }

/* ===== TASKBAR ===== */
#taskbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  box-sizing: border-box;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    rgba(10,10,14,0.80);
  border-top: 1px solid rgba(255, 40, 40, 0.35);
  backdrop-filter: blur(8px);
}

#taskbar .tb-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

#taskbar .tb-orb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,40,40,0.9);
  box-shadow: 0 0 12px rgba(255,40,40,0.55);
}

#taskbar .tb-title{
  color: rgba(255,235,235,0.95);
  font-weight: bold;
  letter-spacing: 0.3px;
}

#taskbar .tb-apps{
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px;
  flex: 1;
}

#taskbar .tb-right{
  color: rgba(255,235,235,0.85);
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
}

.tb-btn{
  border: 1px solid rgba(255, 40, 40, 0.35);
  background: rgba(0,0,0,0.25);
  color: rgba(255,235,235,0.92);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tb-btn:hover{ box-shadow: 0 0 16px rgba(255,40,40,0.35); }
.tb-btn.active{
  background: rgba(255,40,40,0.20);
  border-color: rgba(255, 80, 80, 0.60);
}
.tb-btn.min{ opacity: 0.55; }

/* ===== CRT / SCANLINES ===== */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0.00) 2px,
      rgba(0,0,0,0.00) 4px
    ),
    radial-gradient(circle at 50% 50%,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.35) 70%,
      rgba(0,0,0,0.60) 100%
    );
  mix-blend-mode: overlay;
  opacity: 0.55;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255,255,255,0.02);
  animation: crtFlicker 5s infinite;
}

@keyframes crtFlicker{
  0%, 100% { opacity: 0.06; }
  10% { opacity: 0.03; }
  20% { opacity: 0.08; }
  30% { opacity: 0.04; }
  40% { opacity: 0.09; }
  50% { opacity: 0.05; }
  60% { opacity: 0.08; }
  70% { opacity: 0.04; }
  80% { opacity: 0.07; }
  90% { opacity: 0.05; }
}

/* Profile photo */
.profile-pic{
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,40,40,0.45);
  box-shadow: 0 0 16px rgba(255,40,40,0.25);
  margin-bottom: 8px;
}

/* ===== NOW PLAYING SCROLLBAR ===== */
#side-a{
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ff2a2a rgba(0,0,0,0.4);
}

/* WebKit browsers (Chrome, Edge, Safari) */
#side-a::-webkit-scrollbar{ width: 8px; }
#side-a::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}
#side-a::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ff5a5a, #b00000);
  border-radius: 8px;
  box-shadow:
    0 0 6px rgba(255,40,40,0.6),
    inset 0 0 2px rgba(0,0,0,0.8);
}
#side-a::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ff7a7a, #d00000);
}

/* ===== MATCH SCROLLBAR TO NOW PLAYING ===== */

/* Firefox */
#win-launcher{
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a rgba(0,0,0,0.4);
}

/* Chrome / Edge / Safari */
#win-launcher::-webkit-scrollbar{
  width: 8px;
}

#win-launcher::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

#win-launcher::-webkit-scrollbar-thumb{
  background:
    linear-gradient(
      180deg,
      #ff5a5a,
      #b00000
    );
  border-radius: 8px;
  box-shadow:
    0 0 6px rgba(255,40,40,0.6),
    inset 0 0 2px rgba(0,0,0,0.8);
}

#win-launcher::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(
      180deg,
      #ff7a7a,
      #d00000
    );
}


/* Audio player blend */
#side-a audio{
  filter: brightness(0.9) contrast(1.1)
          drop-shadow(0 0 6px rgba(255,40,40,0.35));
}

/* ===== LAUNCHER SIDEBAR (STACKED) ===== */
.launcher-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.launcher-item{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: rgba(255,235,235,0.95);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00)),
    rgba(12,12,16,0.78);

  border: 1px solid rgba(255,40,40,0.40);
  border-radius: 10px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,0,0,0.10) inset;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.launcher-item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.75),
    0 0 18px rgba(255,40,40,0.45);
}

.launcher-thumb{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.6),
    0 0 10px rgba(255,40,40,0.20);
}

.launcher-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.launcher-title{
  font-weight: bold;
  letter-spacing: 0.2px;
}

.launcher-sub{
  font-size: 11px;
  opacity: 0.75;
}

/* ===== TALLER RIGHT-SIDEBAR LAUNCHER ITEMS ===== */

.launcher-item{
  min-height: 96px;              /* makes them taller */
  padding: 14px;
  gap: 14px;
  align-items: center;           /* vertical centring */
}

/* Slightly bigger thumbnails to match height */
.launcher-thumb{
  width: 72px;
  height: 72px;
}

/* Give the stack a bit more breathing room */
.launcher-stack{
  gap: 16px;
}

/* ===== TALLER GUESTBOOK WINDOW ===== */

#side-a,
#side-b{
  height: 280px;     /* increase from current ~165px */
}

/* ===== ALIGN TOP ROW: WELCOME + PROFILE ===== */
#win-welcome,
#win-profile{
  top: 25px;        /* same top line */
  width: 160px;     /* same width */
  height: 160px;    /* same height */
}

/* keep your vibe but stop Welcome looking “off” */
#win-welcome{
  left: 25px;
  transform: rotate(-0.3deg);  /* slightly calmer tilt */
}

#win-profile{
  left: 205px;
  transform: rotate(0.2deg);   /* tiny tilt so it still feels messy */
}

/* ===== VINYL STACK (OVERLAP + REVEAL) ===== */

.vinyl-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;              /* space between stacks */
  margin-top: 16px;
}

/* each vinyl is a little “pile” */
.vinyl{
  position: relative;
  width: 170px;           /* base size */
  height: 210px;          /* enough room for the cover */
  padding: 0;
  cursor: pointer;
  isolation: isolate;     /* keeps z-index sane */
}

/* cover frame */
.vinyl .cover{
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  z-index: 3;

  border: 1px solid rgba(255,40,40,0.40);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.65),
    0 0 12px rgba(255,40,40,0.18);

  /* slight “messy” tilt */
  transform: rotate(-1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* image should never blow up weirdly */
.vinyl .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* disc peeking out behind */
.vinyl-disc{
  position: absolute;
  left: 70px;            /* peeks out */
  top: 10px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: 2;

  background:
    radial-gradient(circle at 50% 50%,
      #1a1a1a 0%,
      #1a1a1a 9%,
      #2b2b2b 10%,
      #070707 28%,
      #141414 55%,
      #050505 100%
    );
  box-shadow:
    0 0 16px rgba(0,0,0,0.85),
    0 0 12px rgba(255,40,40,0.18);

  transition: transform 220ms ease;
}

/* ===== VINYL PILE GRID (OVERLAP) ===== */

.vinyl-grid{
  display: flex;
  flex-wrap: wrap;

  /* negative gap = overlap */
  gap: 0;
  margin-top: 16px;

  /* optional: slightly indented rows feel more “pile” */
  padding-left: 8px;
}

/* each item is smaller so more fit */
.vinyl{
  position: relative;
  width: 130px;
  height: 130px;

  /* THIS is the overlap: pull each tile left + up */
  margin-left: -46px;
  margin-top: -26px;

  cursor: pointer;
  isolation: isolate;
}

/* make the first item in a row not go off the left */
.vinyl-grid .vinyl:nth-child(1){
  margin-left: 0;
  
}
/* stop the pile overlapping the heading */
.vinyl-grid{
  margin-top: 28px;     /* increase if needed */
  padding-top: 22px;    /* creates safe space */
}


/* cover frame */
.vinyl .cover{
  width: 130px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;

  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.65),
    0 0 10px rgba(255,40,40,0.14);

  transform: rotate(-1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vinyl .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* title overlay (from data-title), hidden until hover */
.vinyl::after{
  content: attr(data-title);
  position: absolute;
  left: 0;
  bottom: -34px;

  max-width: 220px;
  padding: 6px 8px;
  border-radius: 10px;

  font-size: 12px;
  color: rgba(255,235,235,0.95);
  background: rgba(10,10,14,0.92);
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.75),
    0 0 18px rgba(255,40,40,0.25);

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hover brings it to front + shows title */
.vinyl:hover{
  z-index: 999;
}

.vinyl:hover .cover{
  transform: translate(-8px, -10px) rotate(0deg) scale(1.25);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.85),
    0 0 26px rgba(255,40,40,0.35);
}

.vinyl:hover::after{
  opacity: 1;
  transform: translateY(0);
}



.back-btn{
  margin-right: 10px;
  text-decoration: none;
  color: rgba(255,235,235,0.85);
  font-weight: normal;
}

.back-btn:hover{
  color: #ff2a2a;
  text-shadow: 0 0 6px rgba(255,40,40,0.6);
}

/* ===== CD COLLECTION (NO BOXES) ===== */

.cd-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.cd{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cd img{
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.6),
    0 0 12px rgba(255,40,40,0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd img:hover{
  transform: scale(1.03);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.75),
    0 0 20px rgba(255,40,40,0.45);
}

.cd-title{
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.9;
}

.cd-artist{
  font-size: 11px;
  opacity: 0.65;
}

/* ===== IPOD LIST ===== */
.ipod-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  max-width: 420px;
}

.ipod-track{
  padding: 8px 10px;
  border-radius: 8px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
    rgba(12,12,16,0.85);

  border: 1px solid rgba(255,40,40,0.25);
  box-shadow:
    inset 0 0 6px rgba(0,0,0,0.6),
    0 0 10px rgba(255,40,40,0.15);

  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ipod-track:hover{
  background:
    linear-gradient(180deg, rgba(255,80,80,0.18), rgba(0,0,0,0)),
    rgba(20,10,10,0.95);

  box-shadow:
    0 0 18px rgba(255,40,40,0.45);
}

.track-title{
  display: block;
  font-weight: bold;
  font-size: 12px;
}

.track-artist{
  display: block;
  font-size: 11px;
  opacity: 0.7;
}
/* Stop the page itself scrolling */
html, body{
  overflow: hidden;
}


/* =========================
   MUSIC.EXE PAGE FIX (put at VERY BOTTOM)
   ========================= */

:root{
  --pad: 25px;
  --gap: 18px;
  --ipodW: 300px;
  --taskbarGap: 60px; /* space above taskbar */
  --titlebarH: 34px;
}

/* prevent the page itself scrolling behind your windows */
html, body{ overflow: hidden; }

/* MAIN MUSIC WINDOW (left, wide) */
#win-main{
  position: fixed;
  top: var(--pad);
  left: var(--pad);
  bottom: var(--taskbarGap);

  /* kill any older conflicting rules */
  right: auto !important;

  width: calc(100vw - (var(--pad) * 2) - var(--ipodW) - var(--gap));
  max-width: 1100px;

  overflow: hidden;
  box-sizing: border-box;
}

/* IPOD WINDOW (right, slim) */
#win-ipod{
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  bottom: var(--taskbarGap);

  left: auto !important;

  width: var(--ipodW);

  overflow: hidden;
  box-sizing: border-box;
}

/* SCROLL ONLY INSIDE THE WINDOW CONTENT */
#win-main .inner,
#win-ipod .inner{
  height: calc(100% - var(--titlebarH));
  overflow-y: auto;
  box-sizing: border-box;

  /* stops content being hidden “under” the taskbar area */
  padding-bottom: 90px;
}

/* =========================
   RED SCROLLBARS (apply to the scrolling .inner)
   ========================= */

/* Firefox */
#win-main .inner,
#win-ipod .inner{
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a rgba(0,0,0,0.4);
}

/* Chrome / Edge / Safari */
#win-main .inner::-webkit-scrollbar,
#win-ipod .inner::-webkit-scrollbar{
  width: 8px;
}

#win-main .inner::-webkit-scrollbar-track,
#win-ipod .inner::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

#win-main .inner::-webkit-scrollbar-thumb,
#win-ipod .inner::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ff5a5a, #b00000);
  border-radius: 8px;
  box-shadow:
    0 0 6px rgba(255,40,40,0.6),
    inset 0 0 2px rgba(0,0,0,0.8);
}

#win-main .inner::-webkit-scrollbar-thumb:hover,
#win-ipod .inner::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ff7a7a, #d00000);
}


