@font-face {
  font-family: 'Mojangles';
  src: url('/assets/fonts/mojangles.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== BASE STYLES ===== */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5649C0;
  --text-main: #F5F6FA;
  --text-secondary: #B2B2B2;
  --bg-dark: #121218;
  --card-bg: rgba(30, 31, 38, 0.95);
  --player-bg: rgba(25, 26, 32, 0.98);
  --border: rgba(255, 255, 255, 0.05);
  --progress-bg: rgba(255, 255, 255, 0.1);
  --progress-active: #6C5CE7;
  --icon-bg: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  line-height: 1.5;
}

/* ===== BACKGROUND ===== */
.media-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

#bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

/* ===== PROFILE CARD ===== */
.profile-card {
  width: 340px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(25, 26, 32, 0.9);
}

/* ===== AVATAR ===== */
.avatar-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), #A569BD);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

#user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-bg);
  display: block;
}

/* ===== PROFILE INFO ===== */
.profile-info {
  margin-bottom: 20px;
}

#username {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

#discord-tag {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profile-bio p {
  margin: 6px 0;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.social-icon {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border: 1px solid var(--border);
}

.social-icon:hover {
  color: var(--text-main);
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
}

.no-underline {
  text-decoration: none !important;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
  background: var(--player-bg);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid var(--border);
  font-family: 'Mojangles', 'Oxanium', sans-serif;
}

.progress-container {
  position: relative;
  margin-bottom: 8px;
}

#now-playing {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
  text-align: center;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Mojangles', 'Oxanium', sans-serif;
}

#progress-bar {
  width: 100%;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

#progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--progress-active);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: 'Mojangles', 'Oxanium', sans-serif;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: 'Mojangles', 'Oxanium', sans-serif;
}

.view-counter-container {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-family: 'Mojangles', 'Oxanium', sans-serif;
}

.view-counter-container i {
  font-size: 0.7rem;
}

#view-count {
  font-weight: 500;
}

.control-btn {
  background: var(--icon-bg);
  color: var(--text-secondary);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0;
  border: 1px solid var(--border);
}

.control-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.main-btn {
  width: 28px;
  height: 28px;
  background: var(--icon-bg);
  color: var(--text-main);
  font-size: 0.8rem;
}

.main-btn:hover {
  background: var(--primary);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .profile-card {
      width: 90%;
      padding: 24px;
  }
  
  .social-links {
      gap: 10px;
  }
  
  .social-icon {
      width: 32px;
      height: 32px;
      font-size: 1rem;
  }
}