body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.95) blur(1px);
}

.profile-card {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  height: auto;
  margin: 20px auto;
  padding: 20px;
  border-radius: 15px;
  border: 2.5px solid transparent;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
  transform: scale(1.02) translateY(-5px);
  border-color: #5f7adb;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #ff6f61;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

h1 {
  margin: 10px 0 5px 0;
  font-size: 2rem;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(45deg, #08a4ff, #ff6f61);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 3s ease-in-out infinite alternate;
  font-weight: 700;
  letter-spacing: 1px;
}

.profile-card p {
  margin: 5px 0;
  color: white;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  font-style: italic;
  animation: fadeIn 1.5s ease-in-out;
  letter-spacing: 0.5px;
  font-weight: 700;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    text-shadow: 0 0 10px rgba(8, 164, 255, 0.5);
  }
  100% {
    background-position: 100% 50%;
    text-shadow: 0 0 15px rgba(255, 111, 97, 0.5);
  }
}

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

.social-links {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.social-links a i {
  font-size: 1.2em;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.contact-btn {
  background: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-top: 10px;
}

.contact-btn:hover {
  background: #ff3b2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.discord-box {
  display: flex;
  flex-direction: column;
  background: rgba(30, 32, 40, 0.97);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  padding: 0;
  color: #fff;
  margin: 0;
  max-width: none;
  font-family: 'Segoe UI', Arial, sans-serif;
  border: 2px solid #3a3a4d;
  overflow: hidden;
  font-size: 0.97em;
}
.discord-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  padding: 14px 18px;
  position: relative;
}
.discord-avatar.left,
.discord-avatar.right {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #222;
  background: #fff;
  object-fit: cover;
  margin-top: 18px;
}
.discord-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.discord-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 2px;
}
.discord-name {
  font-size: 0.95em;
  font-weight: bold;
  color: white;
  margin-right: 4px;
  letter-spacing: 0px;
  max-width: 110px;
  overflow: visible;
  white-space: nowrap;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1;
}
.discord-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  background: #43b581;
  border: 2px solid #232336;
}
.discord-status-dot.online { background: #43b581; }
.discord-status-dot.idle { background: #faa61a; }
.discord-status-dot.dnd { background: #f04747; }
.discord-status-dot.offline { background: #747f8d; }
.discord-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  padding: 1px;
  transition: transform 0.18s, box-shadow 0.18s;
  object-fit: contain;
}

.badge-icon:hover {
  transform: scale(1.22) rotate(-8deg);
  box-shadow: 0 2px 8px 0 #5865F2, 0 0 8px 2px #5865F2;
  z-index: 2;
}
.discord-info-text {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.discord-info-text #discord-activity {
  font-size: 0.98em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1px;
  letter-spacing: 0.01em;
}
.discord-info-text #discord-status {
  font-size: 0.92em;
  font-weight: 500;
  color: #b0b0b0;
  margin-bottom: 1px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.spotify-playlist-panel {
  margin: auto 18px 18px;
  overflow: hidden;
  border-radius: 12px;
}

.spotify-playlist-panel #spotify-player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
}

/* Spotify Activity */
.spotify-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(29, 185, 84, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(29, 185, 84, 0.3);
}

.spotify-activity i {
  color: #1DB954;
  font-size: 1.2em;
  animation: pulse-spotify 2s ease-in-out infinite;
}

@keyframes pulse-spotify {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.spotify-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spotify-song {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.spotify-artist {
  font-size: 0.85em;
  color: #b0b0b0;
}

/* Game Activity */
.game-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(88, 101, 242, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.game-activity i {
  color: #5865F2;
  font-size: 1.2em;
}

.game-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.game-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.game-details {
  font-size: 0.85em;
  color: #b0b0b0;
  margin-bottom: 1px;
}

.game-state {
  font-size: 0.8em;
  color: #888;
}

.discord-avatar-container {
  position: relative;
  width: 64px;
  height: 64px;
  margin-top: 0;
  overflow: visible;
}

.discord-avatar-container.left {
  margin-right: 0;
  position: relative;
}

.discord-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #222;
  background: #fff;
  object-fit: cover;
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  transition: all 0.3s cubic-bezier(.17,.67,.83,.67);
  filter: brightness(1);
}

.discord-avatar-container::before,
.discord-avatar-container::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  z-index: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.discord-avatar-container::before {
  box-shadow: 0 0 0 0 transparent;
  animation: none;
}

.discord-avatar-container::after {
  background: transparent;
  animation: none;
}

.discord-avatar-container:hover::before {
  opacity: 1;
  background: rgba(88,101,242,0.5);
  animation: glitch1 2s infinite alternate-reverse;
}

.discord-avatar-container:hover::after {
  opacity: 1;
  background: rgba(255,105,180,0.5);
  animation: glitch2 3s infinite alternate-reverse;
}

.discord-avatar:hover {
  transform: scale(1.25) rotate(0deg);
  box-shadow: 0 0 20px 5px rgba(88,101,242,0.8), 0 0 40px 20px rgba(88,101,242,0.4);
  filter: brightness(1.2) contrast(1.1) saturate(1.2);
  border-color: #5865F2;
  z-index: 100;
}

@keyframes glitch1 {
  0%, 100% { transform: translate(0) scale(1); opacity: 0.8; }
  20% { transform: translate(-2px, 1px) scale(1.03); opacity: 0.9; }
  40% { transform: translate(2px, -1px) scale(0.98); opacity: 0.7; }
  60% { transform: translate(1px, 1px) scale(1.01); opacity: 0.8; }
  80% { transform: translate(-1px, -2px) scale(0.99); opacity: 0.9; }
}

@keyframes glitch2 {
  0%, 100% { transform: translate(0) scale(1); opacity: 0.8; }
  25% { transform: translate(1px, -1px) scale(0.97); opacity: 0.9; }
  50% { transform: translate(-1px, 1px) scale(1.02); opacity: 0.7; }
  75% { transform: translate(-2px, -1px) scale(0.98); opacity: 0.8; }
}

.discord-status-indicator {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #232336;
  background: #747f8d;
  z-index: 10;
  box-sizing: border-box;
  transition: background 0.2s;
}
.discord-status-indicator.online { background: #43b581; }
.discord-status-indicator.idle { background: #faa61a; }
.discord-status-indicator.dnd { background: #f04747; }
.discord-status-indicator.offline { background: #747f8d; }

/* Audio Controls */
.audio-controls {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-btn {
  background: rgba(88, 101, 242, 0.3);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.audio-btn:hover {
  background: rgba(88, 101, 242, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

/* Games Box */
.games-box {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.games-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-header i {
  color: #5865F2;
  font-size: 1.2em;
}

.games-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95em;
}

.games-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.games-box .game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(88, 101, 242, 0.2);
  transition: all 0.3s ease;
}

.games-box .game-item:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: translateX(4px);
}

.games-box .game-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.games-box .game-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.profile-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .profile-card {
    width: min(420px, calc(100vw - 40px));
  }

  .profile-sections {
    grid-template-columns: 1fr;
  }

  .games-box {
    margin-top: 0;
  }
}

/* LoL Box */
.lol-box {
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lol-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lol-header i {
  color: #c8aa6e;
  font-size: 1.2em;
}

.lol-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95em;
}

.lol-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lol-rank {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(200, 170, 110, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(200, 170, 110, 0.3);
}

.rank-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 170, 110, 0.2);
  border-radius: 10px;
  color: #c8aa6e;
  font-size: 1.5em;
}

.rank-info {
  flex: 1;
}

.rank-tier {
  font-weight: 700;
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 3px;
}

.rank-lp {
  color: #c8aa6e;
  font-size: 0.9em;
}

.lol-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.stat-label {
  font-size: 0.75em;
  color: #b0b0b0;
  margin-bottom: 3px;
}

.stat-value {
  font-weight: 700;
  color: #fff;
  font-size: 1em;
}

.view-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.view-counter:hover {
  background: rgba(88, 101, 242, 0.3);
  color: white;
  transform: scale(1.05);
}

.view-counter i {
  margin-right: 6px;
  color: #5865F2;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(88, 101, 242, 0.5);
}

.view-counter #view-count {
  font-weight: 800;
  margin: 0 4px;
  color: white;
  font-size: 1rem;
}

/* Intro screen */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #0c0c1d);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 1s ease;
}

#intro-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#particles-js, #main-particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#main-particles-js {
  z-index: 0;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-text {
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  animation: pulse-text 2s infinite ease-in-out;
}

.intro-arrow {
  color: #ff6f61;
  font-size: 1.5rem;
  margin-top: 20px;
}

.pulse {
  animation: pulse-arrow 2s infinite;
}

@keyframes pulse-text {
  0% {
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(88, 101, 242, 0.6);
  }
  100% {
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

@keyframes pulse-arrow {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
    color: #5865F2;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

.hidden {
  display: none;
}

/* Main content container */
#main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

/* Màu chữ cho username */
.username-text {
  color: #b700ff !important;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Màu chữ cho 'lượt xem' */
.view-text {
  color: #FFFFFF !important;
}

/* Màu số lượt xem */
#view-count {
  color: #ffffff !important;
  font-weight: 800;
}

/* Màu biểu tượng mắt */
.view-counter i {
  color: #5865F2 !important;
}
