:root {
  --primary: #00d2ff;
  --secondary: #928dab;
  --bg-dark: #0f0c29;
  --glass: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-dim: #b0b0b0;
  --accent: #ff0055;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: #0f0c29 linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #0f0c29);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: var(--text);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glass-container {
  background: var(--glass);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 98vw;
  height: 95vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.top-nav {
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
}

.logo-img { height: 40px; filter: drop-shadow(0 0 10px var(--primary)); }
.brand-text h1 { font-size: 1.2rem; background: linear-gradient(to right, #00d2ff, #3a7bd5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 20px;
  gap: 20px;
  height: calc(100% - 70px);
  overflow: hidden;
}

.section-card {
  background: rgba(0,0,0,0.3);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
  overflow: hidden;
}

/* Player Specifics */
.media-container { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 15px; }
.media-container img, .media-container video { width: 100%; height: 100%; object-fit: cover; }
.info-area h2 { font-size: 1.3rem; margin-bottom: 5px; color: var(--primary); }
.meta-row { display: flex; justify-content: space-between; align-items: center; }
audio { width: 100%; margin-top: 15px; }
.player-nav { display: flex; gap: 10px; margin-top: 15px; align-items: center; }

/* Lists & Chat */
.scroll-list { flex: 1; overflow-y: scroll !important; padding-right: 5px; margin-top: 10px; }
.track-item { padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; }
.track-item:hover { background: rgba(255,255,255,0.08); }
.track-item.active { background: rgba(0,210,255,0.1); border-left: 3px solid var(--primary); }

.chat-msgs { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 10px; }
.chat-controls { display: flex; gap: 8px; margin-top: 15px; }
.btn-lg { padding: 12px 20px; font-size: 0.9rem; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.emoji { font-size: 1.5rem; cursor: pointer; transition: 0.2s; padding: 5px; }
.emoji:hover { transform: scale(1.2); background: rgba(255,255,255,0.1); border-radius: 5px; }
.chat-controls input { flex: 1; padding: 12px; background: #111; border: 1px solid #333; color: #fff; border-radius: 8px; font-size: 1rem; }

/* Global UI Elements */
.btn { padding: 8px 16px; border-radius: 20px; border: none; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-primary { background: var(--primary); color: #000; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn-sm { font-size: 0.75rem; padding: 5px 12px; }

/* Premium Social & Player UI */
.social-stats {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.like-btn-premium {
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn-premium:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.5);
}

.nav-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.nav-btn-premium:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
.modal-content { background: #1a1a1a; padding: 30px; border-radius: 20px; width: 350px; display: flex; flex-direction: column; gap: 12px; }
input { padding: 10px; background: #222; border: 1px solid #333; color: #fff; border-radius: 6px; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.nav-btn-premium:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Gold Ranking Styles */
.gold-text {
    background: linear-gradient(45deg, #ffd700, #fff3a3, #ffae00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: goldShimmer 3s infinite linear;
    background-size: 200% auto;
    font-size: 1.1rem;
}

@keyframes goldShimmer {
    to { background-position: 200% center; }
}

.chart-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #ffd700, #ffae00);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: width 1s ease-out;
}

.rainbow-text {
    background: linear-gradient(to right, #ff0000, #ff8000, #ffff00, #00ff00, #0000ff, #8000ff, #ff00ff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 800% auto;
    animation: rainbow 10s linear infinite;
}

@keyframes rainbow {
    to { background-position: 800% center; }
}

.pulse-glow {
    animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 2px #00d2ff); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px #00d2ff); transform: scale(1.1); }
    100% { filter: drop-shadow(0 0 2px #00d2ff); transform: scale(1); }
}

/* --- MOBILE RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  body {
    overflow: auto;
    height: auto;
  }
  
  .glass-container {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    overflow: visible;
  }

  .main-content {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding: 10px;
  }

  .section-card {
    height: auto;
    overflow: visible;
  }

  .list-section .scroll-list,
  .chat-section .scroll-list {
    max-height: 400px;
  }

  .top-nav {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }

  #userInfo {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bottom-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 15px 10px;
  }

  .bottom-nav a {
    margin: 5px !important;
  }
}

@media (max-width: 600px) {
  .player-nav {
    flex-wrap: wrap;
  }
  
  .social-stats {
    flex-direction: column;
    gap: 15px;
  }

  .modal-content {
    width: 95% !important;
    max-width: none !important;
    padding: 20px;
  }

  /* Chat Box Fixes */
  .chat-controls {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  #chatInput, #pmInput, #commentInput {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }

  #chatSendBtn, #pmSendBtn, #sendCommentBtn, #emojiBtn {
    flex-shrink: 0;
  }
}


