/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6C63FF;
  --secondary-color: #FF6584;
  --dark-bg: #1a1a2e;
  --darker-bg: #16213e;
  --light-text: #ffffff;
  --gray-text: #a0a0a0;
  --card-bg: #0f3460;
  --hover-color: #533483;
  --success-color: #4CAF50;
  --error-color: #f44336;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: var(--light-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header and Navigation */
header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.desktop-only {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .nav-links {
    display: none !important;
  }
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--gray-text);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn .flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--light-text);
  border-color: var(--primary-color);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

.lang-btn.active {
  color: var(--light-text);
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--light-text);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 4s ease-in-out infinite;
}

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

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--gray-text);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

/* Sections */
section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--gray-text);
}

.placeholder-image {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  font-size: 3rem;
  color: var(--primary-color);
}

/* Quick Filters */
.quick-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.quick-filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  color: var(--light-text);
  border: 2px solid rgba(108, 99, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.quick-filter-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.quick-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.quick-filter-btn i {
  font-size: 1.1rem;
}

/* Search and Filter */
.search-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.search-container input {
  flex: 1;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--card-bg);
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--light-text);
  font-size: 1rem;
}

.search-container button {
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-container button:hover {
  background: var(--hover-color);
}

.clear-search-btn {
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem !important;
  background: transparent !important;
  color: var(--gray-text) !important;
  width: 35px;
  height: 35px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  background: var(--card-bg) !important;
  color: var(--light-text) !important;
}

.filter-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-container select {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--card-bg);
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--light-text);
  font-size: 1rem;
  cursor: pointer;
}

/* Active Filters */
.active-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto 2rem;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  max-width: 1200px;
  flex-wrap: wrap;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(26, 28, 44, 0.95);
  border: 1px solid rgba(108, 99, 255, 0.2);
  transition: all 0.3s ease;
}

.active-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px 10px 0 0;
}

.filter-label {
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--light-text);
}

.active-filter-tag i {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.active-filter-tag i:hover {
  opacity: 1;
}

.reset-filters-btn {
  padding: 0.4rem 1rem;
  background: var(--error-color);
  color: var(--light-text);
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.reset-filters-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

/* Loading Indicator */
.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.loading i {
  font-size: 2rem;
  margin-right: 0.5rem;
  animation: spin 1s linear infinite;
}

/* No More Remixes Message */
.no-more-remixes {
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
}

.no-more-remixes p {
  font-size: 1.2rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  border: 2px solid var(--success-color);
}

.no-more-remixes i {
  color: var(--success-color);
  font-size: 1.5rem;
}

.remix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Landscape orientation for TV/Tablet/Mobile (NOT desktop) - horizontal card layout */
/* Applica solo a schermi con altezza <= 900px in landscape (esclude desktop) */
@media (orientation: landscape) and (max-height: 900px) {
  .remix-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 1rem !important;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .remix-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    min-height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0 !important;
    position: relative !important;
  }
  
  .remix-card:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.2);
  }
  
  .remix-card > .remix-cover {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 120px !important;
    border-radius: 0 !important;
    padding-top: 0 !important;
    flex-shrink: 0 !important;
    position: relative;
    overflow: hidden;
  }
  
  .remix-card > .remix-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .remix-card > .remix-cover .play-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .remix-card:hover > .remix-cover .play-overlay {
    opacity: 1;
  }
  
  .remix-card > .remix-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    min-width: 0;
  }
  
  .remix-card > .remix-info .remix-title {
    font-size: 1rem;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
  }
  
  .remix-card > .remix-info .remix-artist {
    font-size: 0.8rem;
    margin: 0 0 0.4rem 0;
    color: var(--gray-text);
  }
  
  .remix-card > .remix-info .remix-tags {
    display: flex;
    gap: 0.4rem;
    margin: 0.4rem 0;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .remix-card > .remix-info .remix-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .remix-card > .remix-info .remix-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    margin: 0.3rem 0;
    color: var(--gray-text);
  }
  
  .remix-card > .remix-info .remix-id {
    display: none !important;
  }
  
  /* Sposta i pulsanti a destra, in verticale */
  .remix-card > .remix-info .remix-actions {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.8);
    border-left: 1px solid var(--border-color);
  }
  
  .remix-card > .remix-info .remix-actions button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .remix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .remix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile optimization - single column with scroll snap */
@media (max-width: 600px) {
  .remix-grid {
    grid-template-columns: 1fr;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .remix-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 480px) {
  .remix-grid {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .remixes {
    padding: 1rem 0.75rem;
  }
  
  .remixes h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .search-container {
    margin-bottom: 1rem;
  }
  
  .quick-filters {
    margin-bottom: 1rem;
  }
  
  .filter-container {
    margin-bottom: 1rem;
  }
}

.remix-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.remix-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

/* Playing animation */
.remix-card.playing {
  animation: playingPulse 0.6s ease-in-out infinite;
}

@keyframes playingPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 101, 132, 0.6); }
}

/* Spark effect */
.remix-card.playing .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px #FFD700;
  animation: sparkFly 0.8s ease-out forwards;
}

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Lightning effect */
.remix-card.playing .lightning {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 12px;
  overflow: hidden;
}

.remix-card.playing .lightning svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  filter: drop-shadow(0 0 10px #00FFFF) drop-shadow(0 0 20px #0088FF);
}

.remix-card.playing .lightning-bolt {
  stroke: url(#lightningGradient);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: boltStrike 0.2s ease-out;
}

.remix-card.playing .lightning-flash {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 136, 255, 0.4) 50%, transparent 100%);
  border-radius: 12px;
  animation: flashBurst 0.15s ease-out;
  pointer-events: none;
}

@keyframes boltStrike {
  0% {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  20% {
    opacity: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

@keyframes flashBurst {
  0% {
    opacity: 1;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.remix-cover {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.remix-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive cover sizes for better mobile navigation */
@media (max-width: 1200px) {
  .remix-cover {
    padding-top: 100%;
  }
}

@media (max-width: 900px) {
  .remix-cover {
    padding-top: 100%;
  }
}

@media (max-width: 600px) {
  .remix-cover {
    padding-top: 80%;
  }
}

@media (max-width: 480px) {
  .remix-cover {
    padding-top: 70%;
  }
}

@media (max-height: 800px) and (max-width: 600px) {
  .remix-cover {
    padding-top: 60%;
  }
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.remix-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: var(--light-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.play-btn:hover {
  transform: scale(1.1);
}

.remix-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.remix-title {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: var(--light-text);
}

.remix-artist {
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.remix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.remix-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.remix-tag:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 99, 255, 0.4);
}

.tag-genre {
  background: var(--primary-color);
}

.tag-bpm {
  background: var(--secondary-color);
}

.tag-key {
  /* Colore impostato dinamicamente da JavaScript (Camelot Wheel) */
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.remix-description {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.4;
}

.remix-description:empty {
  display: none;
  margin: 0;
}

.remix-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.remix-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.remix-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.remix-actions button {
  flex: 1;
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  min-height: 38px;
}

.remix-actions button i {
  font-size: 0.9rem;
}

.remix-actions button:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.like-btn.liked {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--light-text);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 0.6rem 1rem;
  background: var(--card-bg);
  color: var(--light-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.page-btn:hover {
  background: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
}

.page-dots {
  color: var(--gray-text);
  padding: 0 0.5rem;
}

/* Contact Section */
.contact {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--darker-bg);
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--light-text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
footer {
  background: var(--darker-bg);
  padding: 2rem 5%;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--light-text);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Messages */
.no-results,
.error-message {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--gray-text);
}

.error-message {
  color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--dark-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
  }

  .nav-links.active {
    right: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .remix-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
  }

  .filter-container {
    flex-direction: column;
  }

  section {
    padding: 3rem 5%;
  }

  .contact {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.95rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 2rem;
  }
}

/* Global Player */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  border-top: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 250px;
}

.player-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.player-track-info {
  flex: 1;
}

.player-title-link {
  display: block;
  transition: opacity 0.2s ease;
}

.player-title-link:hover {
  opacity: 0.8;
}

.player-title-link:hover .player-title {
  text-decoration: underline;
}

.player-title {
  font-weight: 600;
  color: var(--light-text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-artist {
  color: var(--gray-text);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-btn {
  background: transparent;
  border: none;
  color: var(--light-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.player-btn-main {
  background: var(--primary-color);
  font-size: 1.4rem;
  width: 50px;
  height: 50px;
}

.player-btn-main:hover {
  background: var(--hover-color);
  transform: scale(1.15);
}

.player-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-time {
  color: var(--gray-text);
  font-size: 0.85rem;
  min-width: 45px;
  text-align: center;
}

.player-progress-bar {
  flex: 1;
  position: relative;
  height: 6px;
  background: var(--card-bg);
  border-radius: 3px;
  cursor: pointer;
}

.player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: width 0.1s;
}

.player-seek {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}

.player-seek:hover {
  opacity: 0.3;
}

.player-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.player-social-link {
  color: var(--gray-text);
  font-size: 1.3rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-decoration: none;
}

.player-social-link:hover {
  color: var(--primary-color);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
}

.player-volume i {
  color: var(--gray-text);
  font-size: 1.1rem;
}

.player-volume-slider {
  flex: 1;
  height: 4px;
  background: var(--card-bg);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

.player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

@media (max-width: 768px) {
  .global-player {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }

  .player-info {
    min-width: auto;
    flex: 1;
  }

  .player-controls {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .player-progress {
    order: 2;
    width: 100%;
  }

  .player-volume {
    display: none;
  }
  
  .active-filters {
    top: 60px;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  
  .filter-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .reset-filters-btn {
    width: 100%;
    justify-content: center;
  }
  
  .player-volume {
    display: none;
  }
  
  .player-social-links {
    display: none;
  }
  
  .quick-filters {
    gap: 0.5rem;
  }
  
  .quick-filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Off-Canvas Menu */
.off-canvas {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: left 0.3s ease-out;
}

.off-canvas.active {
  left: 0;
}

.off-canvas-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--dark-bg);
  padding: 1.5rem;
  padding-bottom: 120px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.off-canvas-close {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.off-canvas-close:hover {
  transform: scale(1.2);
}

.off-canvas-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.off-canvas-nav li {
  margin-bottom: 0;
}

.off-canvas-nav a {
  display: block;
  padding: 1rem;
  color: var(--light-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.off-canvas-nav a:hover {
  background: var(--card-bg);
  color: var(--primary-color);
}

.off-canvas-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.off-canvas-languages {
  margin-top: 1.5rem;
}

.off-canvas-languages h4 {
  color: var(--gray-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.language-selector-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.language-selector-mobile .lang-btn {
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--light-text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  text-align: left;
}

.language-selector-mobile .lang-btn:hover {
  background: var(--hover-color);
  border-color: var(--primary-color);
}

.language-selector-mobile .lang-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.language-selector-mobile .flag {
  margin-right: 0.5rem;
}

@media (max-width: 1024px) {
  .player-social-links {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .player-social-link {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
}
