/* ===== DESIGN SOBRE ET PROFESSIONNEL =====
   Interface épurée, moderne et lisible
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
  /* Couleurs améliorées */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #64748b;
  --accent: #06b6d4;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  
  --bg-dark: #0a0e1a;
  --bg-medium: #1a1f35;
  --bg-light: #252b42;
  --bg-card: #1e2438;
  
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  --border: #2d3548;
  --border-light: #3d4660;
  
  /* Ombres améliorées */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #121629 50%, #0a0e1a 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== HEADER ===== */
header {
  background: rgba(26, 31, 53, 0.7);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 24px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  animation: slideDown 0.4s ease-out;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(59, 130, 246, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.site-logo:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

header h1 {
  font-size: 2em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

header p {
  font-size: 1em;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95em;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

nav a:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(59, 130, 246, 0.4);
}

nav a:hover::before {
  left: 100%;
}

nav a:active {
  transform: translateY(0);
}

/* ===== SECTIONS ===== */
section,
.content-section {
  background: 
    linear-gradient(135deg, rgba(30, 36, 56, 0.8) 0%, rgba(26, 31, 53, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.4s ease-out;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

section::before,
.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

section:hover,
.content-section:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    var(--shadow-md),
    0 0 40px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

section:hover::before,
.content-section:hover::before {
  opacity: 1;
}

/* ===== TITLES ===== */
h2 {
  font-size: 1.75em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  border-radius: 2px;
}

h3 {
  font-size: 1.25em;
  color: var(--text-secondary);
  margin: 24px 0 16px;
  font-weight: 600;
}

/* ===== FILTER SECTION ===== */
.filter-container {
  background: 
    linear-gradient(135deg, rgba(30, 36, 56, 0.95) 0%, rgba(26, 31, 53, 0.8) 100%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.filter-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
}

.filter-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(168, 85, 247, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.filter-container label {
  font-size: 1em;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.filter-container label::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent-purple) 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.filter-select,
#categoryFilter {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: 
    linear-gradient(135deg, rgba(37, 43, 66, 0.9) 0%, rgba(30, 36, 56, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6L8 10L12 6" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.filter-select:hover,
#categoryFilter:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: 
    linear-gradient(135deg, rgba(45, 52, 78, 0.95) 0%, rgba(37, 43, 66, 0.9) 100%);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.filter-select:focus,
#categoryFilter:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 0 40px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.filter-select option,
#categoryFilter option {
  background: var(--bg-medium);
  color: var(--text-primary);
  padding: 12px;
}

/* ===== LISTS ===== */
section ul {
  list-style: none;
}

section ul li {
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.6) 0%, rgba(30, 36, 56, 0.4) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

section ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent-purple) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

section ul li:hover {
  border-left-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(45, 52, 78, 0.7) 0%, rgba(37, 43, 66, 0.5) 100%);
  transform: translateX(8px);
  box-shadow: 
    var(--shadow-md),
    0 0 30px rgba(59, 130, 246, 0.2);
}

section ul li:hover::before {
  opacity: 1;
}

section ul li strong {
  color: var(--text-primary);
  font-size: 1.05em;
  font-weight: 600;
}

/* ===== TRACK INFO ===== */
.track-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.track-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.95em;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

section ul li:hover .track-number {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(168, 85, 247, 0.4);
}

.track-link {
  flex: 1;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.3px;
}

.track-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  transition: width 0.3s ease;
}

.track-link:hover {
  color: var(--primary-light);
  transform: translateX(4px);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.track-link:hover::before {
  width: 100%;
}

/* ===== CUSTOM AUDIO PLAYER ===== */
.custom-audio-player {
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.7) 0%, rgba(30, 36, 56, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.custom-audio-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.custom-audio-player:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    var(--shadow),
    0 0 30px rgba(59, 130, 246, 0.15);
  transform: scale(1.01);
}

.custom-audio-player:hover::before {
  left: 100%;
}

.play-pause-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2em;
  color: white;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.play-pause-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.play-pause-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: scale(1.1);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(168, 85, 247, 0.4);
}

.play-pause-btn:hover::before {
  width: 100%;
  height: 100%;
}

.play-pause-btn:active {
  transform: scale(1.05);
}

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.audio-progress-container {
  width: 100%;
  cursor: pointer;
}

.audio-progress-bg {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.audio-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.audio-progress-bar::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 2px 8px rgba(59, 130, 246, 0.5);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.volume-icon {
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.volume-icon:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.volume-slider {
  width: 80px;
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.volume-level {
  height: 100%;
  background: var(--primary);
  width: 100%;
  transition: width 0.1s ease;
  border-radius: 3px;
}

/* ===== STATS CONTAINER ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.stat-item {
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.6) 0%, rgba(30, 36, 56, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    var(--shadow-md),
    0 0 40px rgba(59, 130, 246, 0.3);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.5em;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.95em;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: #ef4444;
}

.badge-popular {
  background: #f59e0b;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.5),
    0 0 30px rgba(168, 85, 247, 0.3);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(-1px);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.8) 0%, rgba(30, 36, 56, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.2em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border-color: var(--primary-light);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.5),
    0 0 30px rgba(168, 85, 247, 0.4);
}

/* ===== FORMS ===== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== FILE INPUT WRAPPER ===== */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: 
    linear-gradient(135deg, rgba(37, 43, 66, 0.6) 0%, rgba(30, 36, 56, 0.4) 100%);
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.file-input-wrapper:hover .file-input-display {
  border-color: rgba(59, 130, 246, 0.7);
  background: 
    linear-gradient(135deg, rgba(45, 52, 78, 0.7) 0%, rgba(37, 43, 66, 0.5) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2);
}

.file-icon {
  font-size: 2.5em;
  animation: pulse 2s ease-in-out infinite;
}

.file-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: 1.05em;
  font-weight: 500;
}

/* ===== IMAGE PREVIEW ===== */
.image-preview {
  margin: 24px 0;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.4) 0%, rgba(30, 36, 56, 0.3) 100%);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.image-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

/* ===== UPLOAD BUTTON ===== */
.upload-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.15em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.upload-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.6),
    0 0 40px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.upload-btn:hover::before {
  width: 400px;
  height: 400px;
}

.upload-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.3em;
}

.btn-text {
  font-family: 'Inter', sans-serif;
}

/* ===== PROGRESS CONTAINER ===== */
.progress-container {
  margin-top: 32px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  position: relative;
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.progress-text {
  margin-top: 12px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-light);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== STATUS MESSAGE ===== */
.status-message {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.status-message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.status-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ===== LOGIN PAGE ===== */
.login-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 100%;
  background: 
    linear-gradient(135deg, rgba(30, 36, 56, 0.98) 0%, rgba(26, 31, 53, 0.95) 100%),
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary) 25%, 
    var(--accent-purple) 50%, 
    var(--primary) 75%, 
    transparent 100%
  );
  animation: shimmer 3s linear infinite;
}

.login-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  animation: rotate 40s linear infinite;
  pointer-events: none;
}

.lock-icon {
  font-size: 5em;
  margin-bottom: 24px;
  animation: lockPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.6));
  position: relative;
  z-index: 1;
}

@keyframes lockPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.6));
  }
  25% { 
    transform: scale(1.05) rotate(-3deg);
    filter: drop-shadow(0 0 50px rgba(59, 130, 246, 0.8));
  }
  75% { 
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.8));
  }
}

.login-box h2 {
  font-size: 2.2em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 1em;
  margin-bottom: 32px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.input-group {
  margin-bottom: 32px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.input-group label {
  display: block;
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.input-group input {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.05em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: 
    linear-gradient(135deg, rgba(37, 43, 66, 0.8) 0%, rgba(30, 36, 56, 0.7) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: 
    linear-gradient(135deg, rgba(45, 52, 78, 0.9) 0%, rgba(37, 43, 66, 0.8) 100%);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(59, 130, 246, 0.2),
    0 0 40px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.login-btn {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.15em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 12px 36px rgba(59, 130, 246, 0.7),
    0 0 50px rgba(168, 85, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:hover::before {
  width: 400px;
  height: 400px;
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
}

.login-footer p {
  color: var(--text-muted);
  font-size: 0.9em;
  font-style: italic;
}

.login-box .error-message {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #fca5a5;
  font-size: 0.95em;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
  position: relative;
  z-index: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ===== LOGOUT BUTTON ===== */
.logout-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

.logout-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(220, 38, 38, 0.4) 100%) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: white !important;
  box-shadow: 
    0 8px 24px rgba(239, 68, 68, 0.4),
    0 0 30px rgba(239, 68, 68, 0.3) !important;
}

/* ===== MODERN FORM ===== */
.modern-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-size: 1em;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.modern-input,
.modern-select {
  width: 100%;
  padding: 16px 20px;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: 
    linear-gradient(135deg, rgba(37, 43, 66, 0.9) 0%, rgba(30, 36, 56, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modern-input:focus,
.modern-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 0 40px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.modern-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85em;
  color: var(--text-muted);
  font-style: italic;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0;
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.form-divider span {
  padding: 0 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 2px;
}

/* ===== UPLOAD PAGES ===== */
.upload-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.upload-box {
  background: 
    linear-gradient(135deg, rgba(30, 36, 56, 0.95) 0%, rgba(26, 31, 53, 0.8) 100%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.upload-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.upload-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(168, 85, 247, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}

.upload-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.upload-icon {
  font-size: 5em;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}

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

.upload-header h2 {
  font-size: 2.5em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.upload-subtitle {
  color: var(--text-muted);
  font-size: 1.15em;
  font-weight: 400;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--bg-light);
  margin: 24px 0;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--bg-medium);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 8px;
}

.progress-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9em;
  color: var(--text-primary);
  font-weight: 600;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-medium);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  margin-top: 64px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-bottom: 16px;
}

footer nav,
footer .footer-section:nth-child(2) {
  display: none;
}

/* ===== BOUTON THEME TOGGLE (CACHÉ) ===== */
.theme-toggle,
#themeToggle {
  display: none !important;
}

/* ===== LIGHTBOX ===== */
#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

#lightboxContainer {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#lightboxImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

#closeLightbox {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 3em;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 43, 66, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

#closeLightbox:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border-color: var(--primary-light);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.lightbox-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.lightbox-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.lightbox-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.6),
    0 0 40px rgba(168, 85, 247, 0.4);
}

.lightbox-btn:hover::before {
  width: 300px;
  height: 300px;
}

.lightbox-btn:active {
  transform: translateY(-1px);
}

/* ===== PHOTO GRID / CAROUSEL ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
  position: relative;
}

.photo-card {
  background: linear-gradient(135deg, rgba(37, 43, 66, 0.6) 0%, rgba(30, 36, 56, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
}

.photo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.photo-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(59, 130, 246, 0.3);
}

.photo-card:hover::before {
  opacity: 1;
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s ease;
  display: block;
}

.photo-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1);
}

.photo-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.zoom-icon {
  font-size: 3em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
  }
  50% { 
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
  }
}

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

/* ===== MESSAGES ===== */
.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #86efac;
  font-size: 0.95em;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #fca5a5;
  font-size: 0.95em;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--text-muted);
  font-size: 1.1em;
  font-weight: 500;
}

/* ===== GALLERY CONTAINER ===== */
.gallery-container {
  animation: fadeIn 0.6s ease-out;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.track-badge {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.6s ease-out;
}

/* ===== LIGHTBOX ===== */
#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

#lightboxContainer {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#lightboxImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

#closeLightbox {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 3em;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 43, 66, 0.8);
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

#closeLightbox:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  border-color: var(--primary-light);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.lightbox-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.lightbox-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.lightbox-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-purple) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(59, 130, 246, 0.6),
    0 0 40px rgba(168, 85, 247, 0.4);
}

.lightbox-btn:hover::before {
  width: 300px;
  height: 300px;
}

.lightbox-btn:active {
  transform: translateY(-1px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: 6px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }
  
  header {
    padding: 16px 20px;
  }
  
  .logo-container {
    gap: 12px;
  }
  
  .site-logo {
    height: 36px;
  }
  
  header h1 {
    font-size: 1.2em;
  }
  
  header p {
    font-size: 0.9em;
  }
  
  nav {
    flex-direction: column;
    gap: 10px;
  }
  
  nav a {
    padding: 12px 20px;
    text-align: center;
  }
  
  section,
  .content-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.15em;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .custom-audio-player {
    flex-direction: column;
    gap: 12px;
  }
  
  .volume-container {
    width: 100%;
    justify-content: center;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .upload-box {
    padding: 32px 24px;
  }
  
  .upload-icon {
    font-size: 3.5em;
  }
  
  .upload-header h2 {
    font-size: 2em;
  }
  
  .upload-btn {
    padding: 16px 24px;
    font-size: 1em;
  }
  
  .login-box {
    padding: 40px 28px;
  }
  
  .lock-icon {
    font-size: 3.5em;
  }
  
  .login-box h2 {
    font-size: 1.8em;
  }
  
  .login-btn {
    padding: 16px 24px;
    font-size: 1em;
  }
}
