

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

body{
  background-color: #4A0E8A;
  background-image: url('https://www.transparenttextures.com/patterns/nice-snow.png');
  margin: 0;
  color: #FFFFFF;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#all{
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 10px;
  align-items: stretch;
}

/* Sidebar */
#side{
  flex: 0 0 140px;
  background: #121212;
  height: 100vh;
  padding: 10px;
  border-left: 1px solid #3d2120;
  border-right: 1px solid #3d2120;
  overflow: auto;
  text-align: center;
}

#sideicon{
  max-width: 100%;
  height: auto;
  border: 1px solid #B66DE3;
  display: block;
  margin: 0 auto 8px;
}

.sideheader{
  font-weight: normal;
  margin: 5px 0 0;
  font-size: 20px;
  font-family: 'Special Elite', serif;
}

#about{
  text-align: justify;
  margin: 0 0 10px;
  letter-spacing: 1px;
  font-size: 14px;
}

.divider{
  border-bottom: 1px dashed #3d2120;
  margin: 10px 0;
}

ul{ padding: 0; margin: 0; }
li{ list-style-type: none; margin: 5px 0; }

a{ text-decoration: none; color: #B66DE3; }
a:hover{ font-style: italic; font-weight: bold; }
a:active{ font-weight: bold; font-style: italic; }

/* highlights whichever nav link matches the current page */
#side ul li a.active-page{
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

/* language toggle buttons (replace the old flag <a> links) */
.lang-toggle{
  display: flex;
  gap: 6px;
  margin: 8px auto 0;
  justify-content: center;
}
.lang-btn{
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity .15s ease;
}
.lang-btn.lang-active{ opacity: 1; }
.lang-btn:hover{ opacity: 0.75; }

/* Main column */
#main{
  flex: 1 1 auto;
  background: #121212;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

#header{
  background-image: url('https://www.transparenttextures.com/patterns/xv.png');
  background-color: #A534EB;
  height: 70px;
  border-bottom: 1px solid #6b2d2b;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

#header h1{
  margin: 0;
  font-weight: normal;
  color: #fff;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
  font-family: 'Special Elite', serif;
}

.subheader{
  font-weight: normal;
  font-size: 30px;
  margin: 0;
  padding: 10px 16px 0;
  font-family: 'Special Elite', serif;
}

.postcontainer{
  padding: 10px 16px;
  position: relative;
}

/* icon + date block (index page) */
.iconanddatecontainer{
  position: relative;
  padding: 6px 0 0;
  border-bottom: 2px dashed #B332E3;
  font-family: 'Special Elite', serif;
  min-height: 118px;
}

.post-icon{
  position: absolute;
  left: 12px;
  top: 6px;
  border: 1px solid #B332E3;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.date{
  position: absolute;
  right: 10px;
  top: 6px;
  text-align: right;
  font-size: 13px;
  line-height: 1.2;
}

.date p{
  margin: 0 0 3px;
}

.posttext{
  padding: 0 15px 30px 15px;
  letter-spacing: 1px;
  text-align: justify;
  margin-top: -4px;
}

.posttext ul{ padding-left: 10px; }
.posttext li{ margin: 8px 0; font-size: 16px; }

.posttext li a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.posttext li svg,
.posttext li img.link-icon{
  width: 18px;
  height: 18px;
  fill: #B66DE3;
  flex-shrink: 0;
  vertical-align: middle;
}

.content-divider{
  border: none;
  border-top: 2px dashed #B332E3;
  margin: 15px 0;
}

/* contact icon buttons (index page) */
.contact-icons{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
}
.contact-icons button{
  background: none;
  border: 1px solid #B332E3;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  position: relative;
}
.contact-icons button img{
  width: 20px;
  height: 20px;
  display: block;
}
.contact-icons button:hover{ background: #261040; }

.username-popup{
  display: none;
  background: #1a1a1a;
  border: 1px solid #B332E3;
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 3px;
  font-family: "Poppins", sans-serif;
  z-index: 10;
}
.contact-icons button.show-name .username-popup{ display: block; }

/* ---- Last.fm "currently listening" — mini widget (index.html) ---- */
.lastfm-mini{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #B66DE3;
}
.lastfm-mini:hover{ font-style: italic; }
.lastfm-mini-cover{
  width: 22px;
  height: 22px;
  object-fit: cover;
  border: 1px solid #B332E3;
  flex-shrink: 0;
}
.lastfm-mini-text{
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Last.fm "currently listening" — full card (music.html) ---- */
.lastfm-card{
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px dashed #B332E3;
  border-radius: 10px;
  background: rgba(179, 50, 227, 0.08);
  box-shadow: 0 0 14px rgba(179, 50, 227, 0.12);
  padding: 14px;
  margin: 12px 0;
}
.lastfm-cover{
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #B332E3;
  border-radius: 6px;
  flex-shrink: 0;
}
.lastfm-info{ min-width: 0; }
.lastfm-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Special Elite', serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B66DE3;
}
.lastfm-status::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}
.lastfm-status.is-live::before{
  background: #4CE24C;
  animation: lastfm-pulse 1.4s ease-in-out infinite;
}
@keyframes lastfm-pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.lastfm-title{
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.lastfm-artist{
  margin: 2px 0 0;
  font-size: 14px;
  color: #ddd;
}
.lastfm-album{
  margin: 2px 0 0;
  font-size: 12px;
  color: #999;
  font-style: italic;
}
.lastfm-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lastfm-profile-link{
  font-size: 12px;
}
.lastfm-lyrics-btn{
  background: none;
  border: 1px solid #B332E3;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  letter-spacing: .5px;
  color: #B66DE3;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.lastfm-lyrics-btn:hover{
  background: #261040;
  font-style: italic;
}
.lastfm-lyrics{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #B332E3;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
}

::-webkit-scrollbar{ width: 6px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background-color: #B332E3; border-radius: 3px; }

#bg-right{
  position: fixed;
  right: 0;
  bottom: 0;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
#bg-left{
  position: fixed;
  left: 0;
  bottom: 0;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
#side, #main { position: relative; z-index: 1; }

#credit{
  font-size: 12px;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2;
  margin: 6px;
}

@media (max-width: 700px){
  #all{ flex-direction: column; padding: 8px; }
  #side{ order: 2; flex-basis: auto; width: 100%; height: auto; }
  #main{ order: 1; height: auto; min-height: 60vh; }
  #bg, #credit{ display: none; }
  #header h1{ font-size: 42px; }
}