@font-face {
  font-family: 'NotoSansMono';
  src: url('NotoSansMono-VariableFont_wdth,wght.ttf') format('truetype-variations'),
       url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@200;300;400;500;600;700;800&display=swap');
  font-display: swap;
}

:root {
  --bg-main: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #222222;
  --bg-card: #111111;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-subtle: #333333;
  --border-medium: #444444;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.8);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.9);
  --shadow-strong: 0 16px 64px rgba(0, 0, 0, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --player-bg: #111111;
  --player-text: #ffffff;
  --player-muted: #cccccc;
  --player-border: #333333;
  
  --song-color: #ffffff;
  --artist-color: #cccccc;
  --username-color: #999999;
  --customtext-color: #999999;
  --progress-bg-color: #333333;
  --progress-fill-color: #ffffff;
}

.navigationbuttons {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.navbuttongrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.navbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-family: inherit;
}

.navbtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.navbtn:hover::before {
  left: 100%;
}

.navbtn:hover {
  transform: translateY(-8px);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-strong);
  background: var(--bg-secondary);
}

.navbtn i {
  font-size: 24px;
  transition: all 0.3s ease;
}

.navbtn:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 16px currentColor;
}

.navbtn span {
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.modaloverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modaloverlay.modalactive {
  opacity: 1;
  visibility: visible;
}

.modalcontent {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  box-shadow: var(--shadow-strong);
  position: relative;
  transform: scale(0.8) translateY(40px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modalactive .modalcontent {
  transform: scale(1) translateY(0);
}

.modalclose {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  font-size: 16px;
}

.modalclose:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.modalinner {
  padding: 40px;
  max-height: 80vh;
  overflow-y: auto;
}

.modalheader {
  text-align: center;
  margin-bottom: 32px;
}

.modallogo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modallogo h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -1px;
  text-transform: lowercase;
}

.modalsubtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.modalcredits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.creditsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.creditcard {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.creditcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
}

.creditcard:hover::before {
  left: 100%;
}

.creditcard:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.creditheader {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.creditavatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.creditcard:hover .creditavatar {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.credituserinfo h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.creditrole {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.credituserid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: inherit;
}

.creditstatus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.creditspotify {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-subtle);
}

.creditspotify.notlistening {
  opacity: 0.6;
}

.spotifytrack {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotifyartist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modalchangelogs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.versioncard {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.versioncard:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.versionheader {
  padding: 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.versionnumber {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: lowercase;
}

.versiondate {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.versioncontent {
  padding: 24px;
}

.sectiontitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 12px 0;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sectiontitle:first-child {
  margin-top: 0;
}

.sectiontitle::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--text-primary);
  border-radius: 2px;
}

.changelist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelist li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
  transition: color 0.2s ease;
}

.changelist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-primary);
  font-weight: bold;
}

.changelist li:hover {
  color: var(--text-primary);
}

.versionbanner {
  width: 100%;
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.versionbanner:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bannerimage {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: all 0.3s ease;
}

.versionbanner:hover .bannerimage {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .navbuttongrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .navbtn {
    padding: 20px 12px;
    gap: 10px;
  }
  
  .navbtn i {
    font-size: 20px;
  }
  
  .navbtn span {
    font-size: 12px;
  }
  
  .modalinner {
    padding: 30px 20px;
  }
  
  .modalclose {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
  
  .creditsgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .creditcard {
    padding: 18px;
  }
  
  .versionheader {
    padding: 20px;
  }
  
  .versioncontent {
    padding: 20px;
  }
  
  .bannerimage {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .navbuttongrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .navbtn {
    flex-direction: row;
    justify-content: center;
    padding: 16px;
    gap: 12px;
  }
  
  .modaloverlay {
    padding: 10px;
  }
  
  .modalinner {
    padding: 20px 16px;
  }
  
  .modallogo h1 {
    font-size: 24px;
  }
  
  .creditcard {
    padding: 16px;
  }
  
  .creditheader {
    gap: 12px;
  }
  
  .creditavatar {
    width: 44px;
    height: 44px;
  }
  
  .versionheader {
    padding: 16px;
  }
  
  .bannerimage {
    height: 80px;
  }
}

.cardlight {
  --player-bg: #ffffff;
  --player-text: #000000;
  --player-muted: #333333;
  --player-border: #dddddd;
  --song-color: #000000;
  --artist-color: #333333;
  --username-color: #666666;
  --customtext-color: #666666;
  --progress-bg-color: #e0e0e0;
  --progress-fill-color: #000000;
}

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

html, body {
  height: 100%;
  font-family: 'NotoSansMono', 'Noto Sans Mono', monospace;
  background: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.mainwrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.mainheader {
  text-align: center;
  padding: 32px 0 24px 0;
}

.headerlogo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logodot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulse 2s ease-in-out infinite;
}

.mainheader h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
  font-variant: small-caps;
}

.headersubtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.contentwrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.leftcolumn {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rightcolumn {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glasscard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glasscard:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.controlpanel {
  display: grid;
  gap: 20px;
}

.inputsection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inputlabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.embedlabel i {
  color: var(--text-primary);
}

.embedcontainer {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embedcontainer iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.player {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.player .art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.player .meta {
  flex: 1;
  min-width: 0;
}

.song {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--song-color);
  line-height: 1.3;
  margin-bottom: 2px;
}

.artist {
  font-size: 12px;
  color: var(--artist-color);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.username {
  font-size: 10px;
  color: var(--username-color);
  font-weight: 500;
  margin-top: 6px;
}

.customtext {
  margin-top: 6px;
  font-size: 10px;
  color: var(--customtext-color);
  font-weight: 500;
}

.timerow {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 12px;
  color: var(--player-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.progressbar {
  height: var(--progress-height, 4px);
  background: var(--progress-bg-color);
  border-radius: var(--progress-radius, 2px);
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.progressfill {
  height: 100%;
  background: var(--progress-fill-color);
  border-radius: var(--progress-radius, 2px);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.typing {
  overflow: hidden;
  border-right: 2px solid var(--text-primary);
  white-space: nowrap;
  animation: typing 2s steps(40, end), blink 1s step-end infinite;
}

.glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: glow 2s ease-in-out infinite alternate;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

.flicker {
  animation: flicker 3s ease-in-out infinite;
}

.fade {
  animation: fade 3s ease-in-out infinite;
}

.slide {
  animation: slide 2s ease-in-out infinite;
}

.fadein {
  animation: fadein 1s ease-out;
}

.slideup {
  animation: slideup 0.8s ease-out;
}

.scalein {
  animation: scalein 0.6s ease-out;
}

.slideright {
  animation: slideright 0.8s ease-out;
}

.hoverlift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.hovertilt:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.hoverscale:hover {
  transform: scale(1.05);
}

.hovershake:hover {
  animation: shake 0.5s ease-in-out;
}

.artspin {
  animation: spin 8s linear infinite;
}

.artpulse {
  animation: pulse 2s ease-in-out infinite;
}

.artbounce {
  animation: bounce 2s ease-in-out infinite;
}

.artshake {
  animation: shake 2s ease-in-out infinite;
}

.progresspulse .progressfill {
  animation: progresspulse 1.5s ease-in-out infinite;
}

.progresswave .progressfill {
  position: relative;
  overflow: hidden;
}

.progresswave .progressfill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  animation: slidewave 2s linear infinite;
}

.progressslide .progressfill {
  background: repeating-linear-gradient(
    90deg,
    var(--progress-fill-color) 0px,
    var(--progress-fill-color) 10px,
    rgba(255,255,255,0.1) 10px,
    rgba(255,255,255,0.1) 20px
  );
  background-size: 20px 100%;
  animation: slidepattern 1s linear infinite;
}

.progressminimal .progressfill {
  border-radius: 0;
}

.creditssection {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.creditstitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.apiinfogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.apicard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.3s ease;
}

.apicard:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.apiheader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.apiavatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.apiuserinfo h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.apiuserinfo .userid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: inherit;
}

.apistatus {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.statusindicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.statusonline { background: #22c55e; }
.statusidle { background: #f59e0b; }
.statusdnd { background: #ef4444; }
.statusoffline { background: var(--text-muted); }

.statustext {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.spotifyinfo {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

.spotifyinfo.notlistening {
  opacity: 0.5;
}

.spotifytrack {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotifyartist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loadingstate {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.embedlabel i {
  color: var(--text-primary);
}

.embedcontainer {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embedcontainer iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.player {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.player .art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.player .meta {
  flex: 1;
  min-width: 0;
}

.song {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--song-color);
  line-height: 1.3;
  margin-bottom: 2px;
}

.artist {
  font-size: 12px;
  color: var(--artist-color);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.username {
  font-size: 10px;
  color: var(--username-color);
  font-weight: 500;
  margin-top: 6px;
}

.customtext {
  margin-top: 6px;
  font-size: 10px;
  color: var(--customtext-color);
  font-weight: 500;
}

.timerow {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 12px;
  color: var(--player-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.progressbar {
  height: var(--progress-height, 4px);
  background: var(--progress-bg-color);
  border-radius: var(--progress-radius, 2px);
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.progressfill {
  height: 100%;
  background: var(--progress-fill-color);
  border-radius: var(--progress-radius, 2px);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.typing {
  overflow: hidden;
  border-right: 2px solid var(--text-primary);
  white-space: nowrap;
  animation: typing 2s steps(40, end), blink 1s step-end infinite;
}

.glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: glow 2s ease-in-out infinite alternate;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

.flicker {
  animation: flicker 3s ease-in-out infinite;
}

.fade {
  animation: fade 3s ease-in-out infinite;
}

.slide {
  animation: slide 2s ease-in-out infinite;
}

.fadein {
  animation: fadein 1s ease-out;
}

.slideup {
  animation: slideup 0.8s ease-out;
}

.scalein {
  animation: scalein 0.6s ease-out;
}

.slideright {
  animation: slideright 0.8s ease-out;
}

.hoverlift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.hovertilt:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.hoverscale:hover {
  transform: scale(1.05);
}

.hovershake:hover {
  animation: shake 0.5s ease-in-out;
}

.artspin {
  animation: spin 8s linear infinite;
}

.artpulse {
  animation: pulse 2s ease-in-out infinite;
}

.artbounce {
  animation: bounce 2s ease-in-out infinite;
}

.artshake {
  animation: shake 2s ease-in-out infinite;
}

.progresspulse .progressfill {
  animation: progresspulse 1.5s ease-in-out infinite;
}

.progresswave .progressfill {
  position: relative;
  overflow: hidden;
}

.progresswave .progressfill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  animation: slidewave 2s linear infinite;
}

.progressslide .progressfill {
  background: repeating-linear-gradient(
    90deg,
    var(--progress-fill-color) 0px,
    var(--progress-fill-color) 10px,
    rgba(255,255,255,0.1) 10px,
    rgba(255,255,255,0.1) 20px
  );
  background-size: 20px 100%;
  animation: slidepattern 1s linear infinite;
}

.progressminimal .progressfill {
  border-radius: 0;
}

.creditssection {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.creditstitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.apiinfogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.apicard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.3s ease;
}

.apicard:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.apiheader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.apiavatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.apiuserinfo h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.apiuserinfo .userid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: inherit;
}

.apistatus {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.statusindicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.statusonline { background: #22c55e; }
.statusidle { background: #f59e0b; }
.statusdnd { background: #ef4444; }
.statusoffline { background: var(--text-muted); }

.statustext {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.spotifyinfo {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

.spotifyinfo.notlistening {
  opacity: 0.5;
}

.spotifytrack {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotifyartist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loadingstate {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.errorstate {
  text-align: center;
  padding: 20px;
  color: #ef4444;
  font-size: 12px;
}


.fontgrid {
  display: grid;
  gap: 14px;
}

.fontrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fontlabel {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.fontcontrols {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fontselect {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.fontselect:hover {
  border-color: var(--border-medium);
}

.fontselect:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.fontuploadbtn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.fontuploadbtn:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  transform: scale(1.05);
}

.fontuploadbtn:active {
  transform: scale(0.95);
}

.fontloading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
  animation: fadein 0.3s ease-out;
}

.fontspinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top: 3px solid var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.fontloadingtext {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  opacity: 0;
  animation: fadein 0.6s ease-out 0.3s forwards;
}

.fontupload-success {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
  animation: successPulse 0.4s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1.05); }
}

@media (max-width: 768px) {
  .fontcontrols {
    flex-direction: column;
    gap: 6px;
  }
  
  .fontselect {
    width: 100%;
  }
  
  .fontuploadbtn {
    width: 100%;
    height: 36px;
    justify-content: center;
    gap: 8px;
  }
  
  .fontuploadbtn::after {
    content: 'upload font';
    font-size: 11px;
    font-weight: 500;
  }
}

@media (max-width: 480px) {
  .fontgrid {
    gap: 12px;
  }
  
  .fontrow {
    gap: 6px;
  }
}

.notifcontainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-color: #22c55e;
}

.notification.error {
  border-color: #ef4444;
}

.notification i {
  font-size: 14px;
  flex-shrink: 0;
}

.notification.success i {
  color: #22c55e;
}

.notification.error i {
  color: #ef4444;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--text-primary); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px currentColor; }
  100% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

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

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 0.8; }
}

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

@keyframes slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scalein {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideright {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

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

@keyframes slidepattern {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

@media (max-width: 1024px) {
  .contentwrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rightcolumn {
    position: static;
  }
}

@media (max-width: 768px) {
  .mainwrap {
    padding: 20px 16px;
    gap: 20px;
  }

  .glasscard {
    padding: 18px;
  }

  .customizationgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buttonrow {
    flex-direction: column;
  }

  .modernbtn {
    width: 100%;
    justify-content: center;
  }

  .togglelist {
    grid-template-columns: 1fr;
  }

  .colorlist {
    grid-template-columns: 1fr;
  }

  .player {
    max-width: 100%;
    gap: 12px;
    padding: 14px;
  }

  .player .art {
    width: 56px;
    height: 56px;
  }

  .themebuttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mainwrap {
    padding: 16px 12px;
  }
  
  .glasscard {
    padding: 16px;
  }
  
  .player {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .player .art {
    width: 80px;
    height: 80px;
  }

  .notifcontainer {
    top: 16px;
    right: 12px;
    left: 12px;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}

.errorstate {
  text-align: center;
  padding: 20px;
  color: #ef4444;
  font-size: 12px;
}

.notifcontainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-color: #22c55e;
}

.notification.error {
  border-color: #ef4444;
}

.notification i {
  font-size: 14px;
  flex-shrink: 0;
}

.notification.success i {
  color: #22c55e;
}

.notification.error i {
  color: #ef4444;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--text-primary); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px currentColor; }
  100% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

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

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 0.8; }
}

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

@keyframes slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scalein {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideright {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

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

@keyframes slidepattern {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

@media (max-width: 1024px) {
  .contentwrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rightcolumn {
    position: static;
  }
}

@media (max-width: 768px) {
  .mainwrap {
    padding: 20px 16px;
    gap: 20px;
  }

  .glasscard {
    padding: 18px;
  }

  .customizationgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buttonrow {
    flex-direction: column;
  }

  .modernbtn {
    width: 100%;
    justify-content: center;
  }

  .togglelist {
    grid-template-columns: 1fr;
  }

  .colorlist {
    grid-template-columns: 1fr;
  }

  .player {
    max-width: 100%;
    gap: 12px;
    padding: 14px;
  }

  .player .art {
    width: 56px;
    height: 56px;
  }

  .themebuttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mainwrap {
    padding: 16px 12px;
  }
  
  .glasscard {
    padding: 16px;
  }
  
  .player {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .player .art {
    width: 80px;
    height: 80px;
  }

  .notifcontainer {
    top: 16px;
    right: 12px;
    left: 12px;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.inputlabel i {
  color: var(--text-primary);
  font-size: 14px;
}

.moderninput {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.moderninput::placeholder {
  color: var(--text-muted);
}

.moderninput:focus {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.buttonrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modernbtn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.btnprimary {
  background: var(--text-primary);
  color: var(--bg-main);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btnprimary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btnsecondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btnsecondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.btnactive {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

.infonotice {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.infonotice i {
  color: var(--text-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.customizationgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settingsgroup {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.3s ease;
}

.settingsgroup:hover {
  border-color: var(--border-medium);
  background: var(--bg-secondary);
}

.grouptitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.grouptitle i {
  color: var(--text-primary);
  font-size: 16px;
}

.togglelist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.toggleswitch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  user-select: none;
}

.toggleswitch:hover {
  background: var(--bg-secondary);
}

.toggleswitch input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  cursor: pointer;
  appearance: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  position: relative;
  transition: all 0.2s ease;
}

.toggleswitch input[type="checkbox"]:checked {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.toggleswitch input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-main);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.effectsgrid {
  display: grid;
  gap: 12px;
}

.effectrow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.effectlabel {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.effectselect {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.effectselect:hover {
  border-color: var(--border-medium);
}

.effectselect:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.rangeslider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-secondary);
  appearance: none;
  cursor: pointer;
  outline: none;
}

.rangeslider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  border: 2px solid var(--bg-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.rangeslider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  border: 2px solid var(--bg-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.colorlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.coloritem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coloritem label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.colorpickerwrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="color"] {
  width: 32px;
  height: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

input[type="color"]:hover {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 4px;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.colorresetbtn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  font-weight: 500;
  font-family: inherit;
}

.colorresetbtn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.themebuttons {
  display: flex;
  gap: 8px;
}

.previewpanel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.embedsection {
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.embedlabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-transform: lowercase;
  letter-spacing: 0.3px;
  font-size: 12px;
}

.embedlabel i {
  color: var(--text-primary);
}

.embedcontainer {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embedcontainer iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.player {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.player .art {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.player .meta {
  flex: 1;
  min-width: 0;
}

.song {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--song-color);
  line-height: 1.3;
  margin-bottom: 2px;
}

.artist {
  font-size: 12px;
  color: var(--artist-color);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.username {
  font-size: 10px;
  color: var(--username-color);
  font-weight: 500;
  margin-top: 6px;
}

.customtext {
  margin-top: 6px;
  font-size: 10px;
  color: var(--customtext-color);
  font-weight: 500;
}

.timerow {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 12px;
  color: var(--player-muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.progressbar {
  height: var(--progress-height, 4px);
  background: var(--progress-bg-color);
  border-radius: var(--progress-radius, 2px);
  overflow: hidden;
  margin-top: 6px;
  position: relative;
}

.progressfill {
  height: 100%;
  background: var(--progress-fill-color);
  border-radius: var(--progress-radius, 2px);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.typing {
  overflow: hidden;
  border-right: 2px solid var(--text-primary);
  white-space: nowrap;
  animation: typing 2s steps(40, end), blink 1s step-end infinite;
}

.glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: glow 2s ease-in-out infinite alternate;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

.flicker {
  animation: flicker 3s ease-in-out infinite;
}

.fade {
  animation: fade 3s ease-in-out infinite;
}

.slide {
  animation: slide 2s ease-in-out infinite;
}

.fadein {
  animation: fadein 1s ease-out;
}

.slideup {
  animation: slideup 0.8s ease-out;
}

.scalein {
  animation: scalein 0.6s ease-out;
}

.slideright {
  animation: slideright 0.8s ease-out;
}

.hoverlift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.hovertilt:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.hoverscale:hover {
  transform: scale(1.05);
}

.hovershake:hover {
  animation: shake 0.5s ease-in-out;
}

.artspin {
  animation: spin 8s linear infinite;
}

.artpulse {
  animation: pulse 2s ease-in-out infinite;
}

.artbounce {
  animation: bounce 2s ease-in-out infinite;
}

.artshake {
  animation: shake 2s ease-in-out infinite;
}

.progresspulse .progressfill {
  animation: progresspulse 1.5s ease-in-out infinite;
}

.progresswave .progressfill {
  position: relative;
  overflow: hidden;
}

.progresswave .progressfill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  animation: slidewave 2s linear infinite;
}

.progressslide .progressfill {
  background: repeating-linear-gradient(
    90deg,
    var(--progress-fill-color) 0px,
    var(--progress-fill-color) 10px,
    rgba(255,255,255,0.1) 10px,
    rgba(255,255,255,0.1) 20px
  );
  background-size: 20px 100%;
  animation: slidepattern 1s linear infinite;
}

.progressminimal .progressfill {
  border-radius: 0;
}

.creditssection {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.creditstitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.apiinfogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.apicard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.3s ease;
}

.apicard:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.apiheader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.apiavatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.apiuserinfo h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.apiuserinfo .userid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: inherit;
}

.apistatus {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.statusindicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.statusonline { background: #22c55e; }
.statusidle { background: #f59e0b; }
.statusdnd { background: #ef4444; }
.statusoffline { background: var(--text-muted); }

.statustext {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.spotifyinfo {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

.spotifyinfo.notlistening {
  opacity: 0.5;
}

.spotifytrack {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotifyartist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loadingstate {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.errorstate {
  text-align: center;
  padding: 20px;
  color: #ef4444;
  font-size: 12px;
}

.notifcontainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  box-shadow: var(--shadow-medium);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-color: #22c55e;
}

.notification.error {
  border-color: #ef4444;
}

.notification i {
  font-size: 14px;
  flex-shrink: 0;
}

.notification.success i {
  color: #22c55e;
}

.notification.error i {
  color: #ef4444;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--text-primary); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px currentColor; }
  100% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

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

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 0.8; }
}

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

@keyframes slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scalein {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideright {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

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

@keyframes slidepattern {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

@media (max-width: 1024px) {
  .contentwrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rightcolumn {
    position: static;
  }
}

@media (max-width: 768px) {
  .mainwrap {
    padding: 20px 16px;
    gap: 20px;
  }

  .glasscard {
    padding: 18px;
  }

  .customizationgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buttonrow {
    flex-direction: column;
  }

  .modernbtn {
    width: 100%;
    justify-content: center;
  }

  .togglelist {
    grid-template-columns: 1fr;
  }

  .colorlist {
    grid-template-columns: 1fr;
  }

  .player {
    max-width: 100%;
    gap: 12px;
    padding: 14px;
  }

  .player .art {
    width: 56px;
    height: 56px;
  }

  .themebuttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mainwrap {
    padding: 16px 12px;
  }
  
  .glasscard {
    padding: 16px;
  }
  
  .player {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .player .art {
    width: 80px;
    height: 80px;
  }

  .notifcontainer {
    top: 16px;
    right: 12px;
    left: 12px;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}
