@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Bebas+Neue&family=Rajdhani:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --neon:  #00ffcc;
  --neon2: #ff2d78;
  --green: #00ff41;
}

html, body {
  width: 100%; height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
}

/* glitch lines */
@keyframes glitch-drift {
  0%   { top: -2%;  opacity: 0; }
  8%   { opacity: 0.4; }
  92%  { opacity: 0.2; }
  100% { top: 102%; opacity: 0; }
}
.glitch {
  position: fixed; left: 0; right: 0; height: 1px;
  pointer-events: none; z-index: 1; opacity: 0;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
  animation: glitch-drift 7s linear infinite;
}
.glitch.g2 {
  animation-delay: 3.5s;
  background: var(--neon2); box-shadow: 0 0 8px var(--neon2);
}

/* CRT scanlines */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px,
    transparent 1px, transparent 2px
  );
}

/* ambient blobs */
.blob1 {
  position: fixed; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,255,204,0.03) 0%, transparent 65%);
  top: -300px; left: -300px; pointer-events: none; z-index: 0;
}
.blob2 {
  position: fixed; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,45,120,0.04) 0%, transparent 65%);
  bottom: -150px; right: -150px; pointer-events: none; z-index: 0;
}



/* Logo - top-left watermark */
.logo-area {
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  pointer-events: none;
}
@keyframes logo-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-area {
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  width: max-content;
  animation: logo-drift 480s linear infinite;
}
.logo-area img {
  width: auto; height: 100vh;
  object-fit: contain; opacity: 0.1; display: block;
  flex-shrink: 0;
}
.logo-fallback {
  display: none;
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem;
  letter-spacing: 0.15em; color: var(--neon); opacity: 0.1;
}

/* glitch clones */
.logo-glitch-1,
.logo-glitch-2 {
  position: fixed;
  top: 0; left: 0;
  z-index: 3; pointer-events: none;
  opacity: 0; width: 80vw;
}
.logo-glitch-1 img, .logo-glitch-2 img {
  width: 80vw; height: auto; object-fit: contain; display: block; opacity: 0.15;
}
.logo-glitch-1 img { filter: hue-rotate(180deg) saturate(5); }
.logo-glitch-2 img { filter: hue-rotate(300deg) saturate(5) brightness(1.5); }

/* Hero - left aligned */
.hero {
  position: fixed;
  top: 50%; left: 340px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex; flex-direction: column;
  pointer-events: none;
  gap: 0;
}
.hero .social {
  pointer-events: all;
}
.dj-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.5rem, 7vw, 2rem); line-height: 0.9;
  letter-spacing: 0.2em;
  color: #0be224;
  text-shadow: 0 0 18px rgba(32,194,14,0.5);
  position: relative;
}

/* Social - under hero text */
.social {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px;
}
.sicon {
  display: flex; align-items: center; justify-content: center;
  color: #0be224;
  transition: color .2s, opacity .2s;
  opacity: 0.7;
  width: 20px; height: 20px;
}
.sicon svg { width: 100%; height: 100%; }
.sicon:hover { opacity: 1; }

/* Webamp container - exact from russian-voice.com styles.css */
#webamp-container {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

#webamp-container > div {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

#webamp-container .window {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin-bottom: 10px !important;
    transform: none !important;
}

#webamp-container .title-bar {
    cursor: default !important;
}

#webamp-container * {
    -webkit-user-drag: none !important;
    user-select: none !important;
}

/* WINDOWS 95 YOUTUBE WINDOW */
#win-youtube {
  position: fixed;
  top: 32px;
  right: 328px;
  width: 482px;
  z-index: 100;
  user-select: none;
  border-top:    2px solid #ffffff;
  border-left:   2px solid #ffffff;
  border-right:  2px solid #404040;
  border-bottom: 2px solid #404040;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #808080, inset 1px 1px 0 #dfdfdf;
}

#yt-titlebar {
  height: 18px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 0 4px;
  cursor: grab;
  margin: 2px 2px 0 2px;
}
#yt-titlebar:active { cursor: grabbing; }

#yt-titlebar .title-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

.w95-btn {
  width: 16px; height: 14px;
  background: #c0c0c0;
  border-top:    1px solid #ffffff;
  border-left:   1px solid #ffffff;
  border-right:  1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow: inset 1px 1px 0 #dfdfdf;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  font-size: 9px; font-weight: bold; line-height: 1;
  color: #000;
  font-family: Arial, sans-serif;
}
.w95-btn:active {
  border-top:    1px solid #404040;
  border-left:   1px solid #404040;
  border-right:  1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: none;
}
.w95-btns { display: flex; gap: 2px; }

#yt-inner {
  margin: 4px;
  border-top:    2px solid #808080;
  border-left:   2px solid #808080;
  border-right:  2px solid #dfdfdf;
  border-bottom: 2px solid #dfdfdf;
  position: relative;
  background: #000;
}

#yt-body {
  width: 462px;
  height: 260px;
  background: #000;
  display: block;
}
#yt-body iframe {
  width: 100%; height: 100%; border: none; display: block;
}

#yt-statusbar {
  margin: 0 4px 4px 4px;
  height: 18px;
  display: flex; align-items: center; gap: 4px;
}
.w95-status-pane {
  height: 100%;
  border-top:    1px solid #808080;
  border-left:   1px solid #808080;
  border-right:  1px solid #dfdfdf;
  border-bottom: 1px solid #dfdfdf;
  padding: 0 6px;
  display: flex; align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.5rem;
  color: #000;
  flex: 1;
}

.w95-resize {
  position: absolute; bottom: 0; right: 0;
  width: 14px; height: 14px;
  cursor: se-resize; z-index: 10;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 2px,
      #808080 2px, #808080 3px
    );
}

#win-youtube.minimized #yt-inner,
#win-youtube.minimized #yt-statusbar { display: none; }

/* Fix Webamp seek bar — Chrome blocks preventDefault in passive listeners when touch-action:none */
#webamp-container input[type="range"] {
  touch-action: auto !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {

  html { height: auto; }

  body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    padding: 0;
    background: #000;
  }

  /* Hide desktop decorative elements */
  .logo-area,
  .logo-glitch-1,
  .logo-glitch-2,
  .blob1, .blob2, .glitch {
    display: none !important;
  }

  /* Mobile logo background — rotated 90deg, crawls top to bottom */
  .mobile-logo-bg {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  @keyframes mobile-logo-drift {
    0%   { transform: rotate(90deg) translateX(0); }
    100% { transform: rotate(90deg) translateX(-50%); }
  }
  .mobile-logo-bg-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    animation: mobile-logo-drift 480s linear infinite;
  }
  .mobile-logo-bg-inner img {
    height: 100vw;
    width: auto;
    opacity: 0.1;
    display: block;
    flex-shrink: 0;
  }

  /* Page layout — single column, padded */
  .mobile-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 16px 48px 16px;
    min-height: 100vh;
  }

  /* Hero block */
  .mobile-block-hero {
    display: flex;
    flex-direction: column;
  }
  .mobile-block-hero .dj-name {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }
  .mobile-block-hero .social {
    margin-top: 10px;
    gap: 14px;
  }

  /* Webamp block */
  .mobile-block-webamp {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    min-height: 420px;
    position: relative;
  }

  /* Video block */
  .mobile-block-video {
    width: 100%;
  }
  .mobile-block-video #win-youtube {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .mobile-block-video #yt-body {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
  .mobile-block-video #yt-body iframe {
    width: 100% !important;
    height: 100% !important;
  }

  /* Override desktop fixed positioning */
  .hero {
    position: static !important;
    transform: none !important;
    pointer-events: all !important;
  }

  #win-youtube {
    position: relative !important;
  }

  #webamp-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 10 !important;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #desktop-view { display: none !important; }
  #mobile-view  { display: block !important; }

  html, body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
  }

  /* Background logo — rotated 90deg, crawls downward */
  .mob-logo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @keyframes mob-logo-drift {
    0%   { transform: rotate(90deg) translateX(0); }
    100% { transform: rotate(90deg) translateX(-50%); }
  }
  .mob-logo-inner {
    display: flex;
    flex-direction: column;
    animation: mob-logo-drift 480s linear infinite;
  }
  .mob-logo-inner img {
    height: 100vw;
    width: auto;
    opacity: 0.08;
    display: block;
    flex-shrink: 0;
  }

  /* Layout */
  .mob-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 16px 48px 16px;
  }

  .mob-block {
    width: 100%;
  }

  /* Hero */
  .mob-dj-name {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: 0.2em;
    color: #0be224;
    text-shadow: 0 0 18px rgba(32,194,14,0.5);
  }
  .mob-social {
    display: flex;
    gap: 14px;
    margin-top: 10px;
  }

  /* Webamp — force all windows into normal flow via CSS !important */
  #mob-webamp-block {
    width: 100%;
  }
  #mob-webamp-block #webamp-container,
  #mob-webamp-block #webamp,
  #mob-webamp-block .webamp-desktop,
  #mob-webamp-block .window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  #mob-webamp-block .window {
    margin-bottom: 4px !important;
    display: block !important;
  }

  /* Video */
  .mob-yt-wrap {
    border: 2px solid #333;
    background: #000;
  }
}

/* ── Mobile Custom Player ── */
@media (max-width: 768px) {
  #mob-player {
    background: #000;
    border: 1px solid #1a1a1a;
    font-family: 'Courier New', monospace;
    color: #0be224;
  }

  #mob-player-header {
    background: #0a0a0a;
    border-bottom: 1px solid #1a3a1a;
    padding: 10px 12px 8px;
  }

  #mob-now-playing {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: #1a6a1a;
    margin-bottom: 4px;
  }

  #mob-track-title {
    font-size: 0.75rem;
    color: #0be224;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(11,226,36,0.4);
  }

  #mob-progress-wrap {
    width: 100%;
    margin-bottom: 6px;
  }

  #mob-seek {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #1a3a1a;
    outline: none;
    cursor: pointer;
  }
  #mob-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    background: #0be224;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(11,226,36,0.6);
  }

  #mob-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #0be224;
  }

  #mob-controls {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .mob-btn {
    background: none;
    border: none;
    color: #0be224;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
  }
  .mob-btn:active { opacity: 1; }

  #mob-play {
    font-size: 1.2rem;
    opacity: 1;
  }

  #mob-tracklist {
    max-height: 320px;
    overflow-y: auto;
  }

  .mob-track {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid #0d0d0d;
    cursor: pointer;
    transition: background 0.1s;
    gap: 10px;
  }
  .mob-track:active { background: #0a1a0a; }
  .mob-track.active {
    background: #071207;
    border-left: 2px solid #0be224;
  }

  .mob-track-num {
    font-size: 0.6rem;
    color: #1a6a1a;
    min-width: 20px;
    text-align: right;
  }
  .mob-track-name {
    flex: 1;
    font-size: 0.72rem;
    color: #0be224;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
  }
  .mob-track.active .mob-track-name {
    color: #4fff7a;
    text-shadow: 0 0 8px rgba(11,226,36,0.5);
  }
  .mob-track-dur {
    font-size: 0.6rem;
    color: #1a6a1a;
    min-width: 38px;
    text-align: right;
  }
}