/* 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;
}

.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); }
}

.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(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

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

.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;
}

.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: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

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

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

.remix-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  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 {
  background: var(--success-color);
}

.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;
  }
}

@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;
  }
}
