﻿﻿.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #ffb6d9;
  margin-bottom: 15px;
  opacity: 0.8;
  animation: fadeIn 0.6s ease 0.2s backwards;
}

.visitor-counter i {
  font-size: 14px;
}

.visitor-counter span {
  font-weight: 600;
  color: #ff69b4;
}

.widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  margin-bottom: 15px;
  overflow: hidden;
  animation: slideInUp 0.5s ease backwards;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.widget-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-header i {
  color: #ff69b4;
}

.widget-content {
  padding: 15px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weather-loader {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  height: 40px;
}

.weather-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  animation: bounce 1.4s infinite;
}

.weather-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.weather-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}



.weather-widget {
  border-color: rgba(135, 206, 250, 0.4);
}

.weather-widget .widget-header {
  background: linear-gradient(90deg, rgba(135, 206, 250, 0.2), transparent);
  color: #87ceeb;
}

.weather-widget .widget-header i {
  color: #87ceeb;
}

.weather-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: center;
}

.weather-icon {
  font-size: 32px;
  line-height: 1;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-temp {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.weather-condition {
  font-size: 12px;
  color: #b5bac1;
}

.weather-location {
  font-size: 11px;
  color: #949ba4;
}

.weather-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.weather-extra-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b5bac1;
}

.weather-extra-item i {
  color: #87ceeb;
}

.music-player-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.music-player-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.8));
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 20px;
  padding: 30px 25px;
  width: 90%;
  max-width: 350px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
  animation: slideInDown 0.3s ease;
}

.music-player-content::-webkit-scrollbar {
  width: 6px;
}

.music-player-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.music-player-content::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 3px;
}

.player-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.player-close:hover {
  opacity: 1;
}

.player-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  text-align: center;
  margin-bottom: 20px;
}

.player-info h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info p {
  color: #b5bac1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 11px;
  color: #949ba4;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff69b4, #ff1493);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.player-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls button:hover {
  color: #ff69b4;
  transform: scale(1.1);
}

.player-controls #player-play {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: #fff;
  font-size: 20px;
  padding: 12px;
}

.player-controls #player-play:hover {
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.player-volume i {
  color: #ff69b4;
  font-size: 14px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, rgba(255, 182, 193, 0.3), rgba(255, 105, 180, 0.5));
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff69b4;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff69b4;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.player-playlist {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-playlist h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#player-playlist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

#player-playlist-items::-webkit-scrollbar {
  width: 4px;
}

#player-playlist-items::-webkit-scrollbar-track {
  background: transparent;
}

#player-playlist-items::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 193, 0.3);
  border-radius: 2px;
}

.playlist-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  color: #b5bac1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item:hover {
  background: rgba(255, 182, 193, 0.15);
  color: #ffb6d9;
}

.playlist-item.active {
  background: rgba(255, 105, 180, 0.3);
  color: #ff69b4;
  font-weight: 600;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.music-btn, .player-btn, .theme-btn {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 105, 180, 0.3));
  border: 1px solid rgba(255, 182, 193, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.music-btn:hover, .player-btn:hover, .theme-btn:hover {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.5), rgba(255, 20, 147, 0.5));
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
}

.music-btn:active, .player-btn:active, .theme-btn:active {
  transform: translateY(0);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .widget, 
  .glass-panel, 
  .music-player-modal, 
  .music-player-content,
  .music-btn, .player-btn, .theme-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 10, 25, 0.92) !important;
    transform: translateZ(0);
  }

  #bg-video, 
  #sakura-canvas, 
  #electricCanvas {
    display: none !important;
  }

  .reveal, .widget, .hero-avatar-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: transform;
  }

  section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
  }

  .widget, .music-player-content, .player-cover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
  }
}

@media (max-width: 600px) {
  .music-player-content {
    width: 95%;
    max-width: 100%;
    padding: 20px;
    border-radius: 15px;
  }

  .player-cover {
    margin-bottom: 15px;
  }

  .player-info h3 {
    font-size: 14px;
  }

  .player-controls {
    gap: 20px;
  }

  .weather-info {
    gap: 10px;
  }

  .widget {
    margin-bottom: 12px;
  }

  .widget-content {
    padding: 12px;
  }

  .control-buttons {
    gap: 8px;
  }

  .music-btn, .player-btn, .theme-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .player-info h3 {
    font-size: 13px;
  }

  .player-info p {
    font-size: 12px;
  }

  .player-controls {
    gap: 15px;
  }

  .player-controls button {
    font-size: 16px;
  }
}
.music-bar-widget {
  display: flex;
  flex-direction: column;
}

.music-bar-widget .widget-content {
  display: flex;
  align-items: center;
  height: 100%;
}

.player-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.player-main-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.player-mini-cover {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-player-icon {
  color: #ffffff;
  font-size: 16px;
}

.player-meta-progress {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.player-bar-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar-progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.time-txt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  min-width: 28px;
  font-family: monospace;
}

.progress-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

.player-bar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-bar-controls .ctrl-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.player-bar-controls .ctrl-btn:hover {
  color: #ffffff;
}

#gh-play-btn {
  font-size: 16px;
  color: #ffffff;
}
.widget-status-tag {
  margin-left: auto;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

#widget-discord-dot {
  font-size: 0.7rem;
  transition: color 0.3s ease;
}

.discord-activity-display {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 4px 0;
}

.activity-assets-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.activity-assets-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-fallback {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.activity-details-wrap {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

#discord-activity-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#discord-activity-details {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
}

.spotify-bar-bg {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.spotify-bar-fill {
  height: 100%;
  width: 0%;
  background: #1db954;
  box-shadow: 0 0 6px #1db954;
  border-radius: 2px;
  transition: width 1s linear;
}
.discord-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.discord-main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.discord-avatar-deco {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  pointer-events: none;
}

.fluid-menu-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  width: 60px;
}

.menu-items-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.menu-item.trigger {
  z-index: 100;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.menu-item.sub-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

/* Trạng thái khi mở Menu */
.fluid-menu-container.expanded .menu-item.sub-item {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.icon-box { position: relative; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; }
.icon-close { position: absolute; opacity: 0; transform: rotate(-180deg); transition: 0.3s; }
.icon-menu { transition: 0.3s; }

.expanded .icon-menu { opacity: 0; transform: rotate(180deg); }
.expanded .icon-close { opacity: 1; transform: rotate(0); }

.menu-item:hover { 
  transform: scale(1.1); 
  background: rgba(255, 255, 255, 0.2); 
}

.menu-item.sub-item:nth-child(2):hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.menu-item.sub-item:nth-child(3):hover {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 0 20px rgba(67, 233, 123, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.menu-item.sub-item:nth-child(4):hover {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.menu-item.sub-item:nth-child(5):hover {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  box-shadow: 0 0 20px rgba(246, 211, 101, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.menu-item.sub-item:nth-child(6):hover {
  background: linear-gradient(135deg, #21d4fd 0%, #b721ff 100%);
  box-shadow: 0 0 20px rgba(33, 212, 253, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.menu-item.sub-item:nth-child(7):hover {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  box-shadow: 0 0 20px rgba(255, 8, 68, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}