:root{
    --bg: #0f0f12;
    --card: rgba(15,15,15,0.8);
    --neon: #ffd700;
    --accent: #8a2be2;
    --glass: rgba(255,255,255,0.03);
}
*{box-sizing:border-box}
html,body{height:100%}
body {
    margin: 0;
    background: linear-gradient(180deg,#0b0b0d 0%, #121216 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px;
    color: #e9e9e9;
    overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("HTRBB.png") no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: -1;
}

.wrap{
    width:100%;
    max-width: 1180px;
    padding:20px;
}

.container {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.popup {
    width: 340px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 14px;
    padding: 18px;
    color: white;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 30px rgba(0,0,0,0.6), 0 0 18px rgba(138,43,226,0.06) inset;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(6px) saturate(120%);
}

.popup::before{
    content:"";
    position:absolute;inset:0;pointer-events:none;
    background: linear-gradient(120deg, rgba(138,43,226,0.04), rgba(255,215,0,0.02));
    mix-blend-mode: screen;opacity:0;transition:opacity .3s;
}
.popup:hover{transform: translateY(-8px) scale(1.02);}
.popup:hover::before{opacity:1}

.neon-accent{
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6), 0 0 20px rgba(138,43,226,0.08);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left{
    display:flex;align-items:center;gap:12px;
}

.avatar-wrap{position:relative}
.avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,0.6);
    transition: transform .35s ease, box-shadow .35s;
    object-fit: cover;
    background: linear-gradient(180deg,#222,#111);
}

.popup:hover .avatar{transform: rotate(-6deg) scale(1.02); box-shadow: 0 8px 28px rgba(138,43,226,0.12)}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 3px solid var(--card);
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    transition: box-shadow .2s ease, transform .2s ease;
}

.username {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.small {
    font-size: 13px;color:#bfc0c6
}

.state {
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color:#ddd;
    border:1px solid rgba(255,255,255,0.02)
}

.spotify-box {
    margin-top: 14px;
    background: rgba(0,0,0,0.25);
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    color: #e6e6e6;
    display:flex;gap:12px;align-items:center
}

.spotify-art{width:56px;height:56px;border-radius:8px;background:#111;flex:0 0 56px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.spotify-art img{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.spotify-meta{flex:1}
.song{font-weight:700}
.artist{font-size:13px;color:#cfcfd3}

.center-loading {
    margin-top: 12px;
    text-align: center;
    font-style: italic;
    color: var(--neon);
    font-size: 13px;
}
.details{
    max-height:0;overflow:hidden;transition:max-height .4s cubic-bezier(.2,.9,.2,1);margin-top:8px
}
.popup.open .details{max-height:360px}

.social-row{
    margin-top:12px;
    display:flex;
    gap:10px;
    align-items:center;
}
.social-row a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;height:36px;border-radius:10px;
    background:rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.03);
    text-decoration:none;
    transition:transform .15s, background .15s;
    color: #fff;
    font-size:16px;
}
.social-row a:hover{transform:translateY(-4px);background:rgba(255,255,255,0.04)}

.game-badge{
    display:inline-block;padding:6px 10px;border-radius:12px;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.03);font-size:13px;margin-top:10px;color:#fff
}

/* responsive */
@media (max-width:900px){
    body{padding:24px}
    .container{gap:18px}
    .popup{width:calc(50% - 20px)}
}
@media (max-width:640px){
    .popup{width:100%}
}

.spotify-playing{animation:neonPulse 1.6s infinite}
@keyframes neonPulse{
    0%{box-shadow:0 0 6px rgba(255, 0, 0, 0.741), inset 0 0 6px rgba(138,43,226,0.02)}
    50%{box-shadow:0 0 18px rgba(255, 0, 0, 0.729), inset 0 0 12px rgba(138,43,226,0.06)}
    100%{box-shadow:0 0 6px rgba(255, 0, 0, 0.711), inset 0 0 6px rgba(138,43,226,0.02)}
}

.time-badge{font-weight:600;color:#fff;background:linear-gradient(90deg, rgba(138,43,226,0.14), rgba(255,215,0,0.09));padding:6px 10px;border-radius:8px;font-size:13px}

@media (max-width:500px){
    body{padding:14px}
    .username{font-size:16px}
    .avatar{width:54px;height:54px}
    .spotify-box{flex-direction:column;align-items:flex-start}
}
      :root {
  --bg: #000;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-blur: 10px;
  --accent: rgba(255, 255, 255, 0.06);

  --online: #43b581;
  --idle: #faa61a;
  --dnd: #f04747;
  --offline: #636b75;
}

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 18px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  perspective: 1000px;
  transform-style: preserve-3d;
}
.member-list a {
  text-decoration: none;
  color: inherit;
}

.member {
  cursor: pointer;
}


.member:hover {
  transform: rotateY(12deg) rotateX(5deg) scale(1.05);
  box-shadow: 0px 5px 25px rgba(255,255,255,0.15);
}

.member img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--offline);
  transition: border 0.3s ease;
}

.member span {
  font-size: 12px;
  color: white;
  font-weight: 600;
}

/* Tooltip popup */
.status-popup {
  position: absolute;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.member:hover .status-popup {
  opacity: 1;
}

/* Slider fixes */
.member-slider {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.member-list {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: scrollLoop 60s linear infinite;
}

@keyframes scrollLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

      h2 {
        margin: 0 0 28px;
        font-size: 30px;
        font-weight: 700;
        letter-spacing: 0.6px;
        color: #e8e8e8;
        background: linear-gradient(to right, #fff, #000, #fff);
        background-size: 1000% 100%;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: infiniteGradient 5s linear infinite;
      }

      @keyframes infiniteGradient {
        0% {
          background-position: 0% 0%;
        }

        100% {
          background-position: 100% 300%;
        }
      }

      .h2:hover {
        transform: scale(1.2);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
      }

      .profiles {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
        /* smaller gap */
        justify-content: center;
        padding: 22px 22px 20px;
      }

      .profile {
        --size: 110px;
        width: var(--size);
        height: var(--size);
        border-radius: 50%;
        background-color: #111;
        background-size: cover;
        background-position: center center;
        position: relative;
        cursor: pointer;
        transition: transform 220ms ease, box-shadow 220ms ease;
        flex: 0 0 var(--size);
        z-index: 1;
      }

      .profile:hover {
        transform: translateY(-6px) scale(1.02);
      }

      .profile .status-ring {
        position: absolute;
        right: 6px;
        bottom: 6px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #777;
        border: 3px solid rgba(0, 0, 0, 0.6);
        pointer-events: none;
      }

      .card {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -150%) translateY(6px);
        top: 0;
        min-width: 240px;
        max-width: 320px;
        padding: 12px 12px 12px 12px;
        border-radius: 14px;
        background: var(--card-bg);
        backdrop-filter: blur(var(--card-blur));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease, transform 220ms ease;
        display: flex;
        gap: 12px;
        align-items: flex-start;
        z-index: 9999;
        white-space: normal;
      }

      .card.visible {
        opacity: 1;
        transform: translate(-50%, -180%) translateY(0);
        pointer-events: auto;
      }

      .card .card-pfp {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        flex-shrink: 0;
        object-fit: cover;
        background: #222;
        border: 2px solid rgba(255, 255, 255, 0.05);
      }

      .card .card-content {
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
      }

      .card .name {
        font-weight: 800;
        font-size: 16px;
        line-height: 1;
        color: #f0f0f0;
      }

      .card .status {
        font-size: 13px;
        color: #dcdcdc;
        opacity: 0.9;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .card .custom {
        font-size: 13px;
        color: #e8e8e8;
        opacity: 0.95;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
      }

      @media (max-width:520px) {
        .card {
          left: 50%;
          transform: translate(-50%, -200%);
          min-width: 200px;
        }

        .profile {
          --size: 90px;
        }
      }

      .card::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -8px;
        width: 12px;
        height: 12px;
        background: var(--card-bg);
        backdrop-filter: blur(var(--card-blur));
        transform-origin: center;
        clip-path: polygon(50% 0, 0 100%, 100% 100%);
      }

      img.logo {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        display: inline-block;
      }

      img.logo:hover {
        transform: scale(1.08);
      }

/* Mouse star trail */
.star {
    position: fixed;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255,215,0,0.9) 30%, rgba(138,43,226,0.2) 60%, transparent 70%);
    transform: translate(-50%, -50%) scale(1);
    will-change: transform, opacity;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.25));
    opacity: 0.95;
    mix-blend-mode: screen;
}
