:root {
  --primary-color: #ff5500;
  --primary-dark: #cc4400;
  --secondary-color: #333333;
  --background-color: #121212;
  --card-background: #1e1e1e;
  --text-color: #ffffff;
  --text-secondary: #b3b3b3;
  --success-color: #4CAF50;
  --error-color: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-background);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: rgba(255, 85, 0, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.view-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

header {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

@media (max-width: 400px) {
  .logo span {
    display: none;
  }
}

/* Header Search Bar */
.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search i {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.header-search input::placeholder {
  color: var(--text-secondary);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}

/* Menu Toggle (3 lines) - Mobile Optimized */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  gap: 6px;
  padding: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.menu-toggle:active {
  background: rgba(255, 85, 0, 0.2);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover span,
.menu-toggle:focus span {
  background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .header-search {
    max-width: 180px;
  }
  
  .header-search input {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.85rem;
  }
  
  .logo img {
    height: 35px;
  }
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-background);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.mobile-search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card-background);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.mobile-search-icon:hover {
  background: #2a2a2a;
}

.mobile-search-icon i {
  color: var(--text-color);
  font-size: 1.1rem;
}

.mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  padding: 1rem;
  flex-direction: column;
}

.mobile-search-overlay.active {
  display: flex;
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-search-header .search-box {
  flex: 1;
}

.mobile-search-close {
  width: 40px;
  height: 40px;
  background: var(--card-background);
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-results {
  flex: 1;
  overflow-y: auto;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #2a2a2a;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.5rem;
  border-radius: 5px;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(255, 85, 0, 0.1);
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.hero .btn {
  margin-top: 0.5rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.album-card {
  background: var(--card-background);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.album-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 85, 0, 0.2);
}

.album-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.album-card:hover .album-art {
  transform: scale(1.05);
}

.album-art-container {
  position: relative;
  overflow: hidden;
}

.album-art-container .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
}

.album-art-container:hover .play-btn {
  opacity: 1;
}

.album-art-container .play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.album-art-container a {
  display: block;
}

.single-art-container {
  position: relative;
  overflow: hidden;
}

.admin-edit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.album-art-container:hover .admin-edit-overlay,
.single-art-container:hover .admin-edit-overlay {
  opacity: 1;
}

.admin-edit-overlay:hover {
  color: var(--primary-color);
}

/* Compact View - smaller cards for both grids */
.album-grid.compact-view {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.album-grid.compact-view .album-card {
  border-radius: 8px;
}

.album-grid.compact-view .album-info {
  padding: 0.75rem;
}

.album-grid.compact-view .album-title {
  font-size: 0.95rem;
}

.album-grid.compact-view .album-description {
  font-size: 0.8rem;
  -webkit-line-clamp: 1;
}

.singles-grid.compact-view {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.singles-grid.compact-view .single-card {
  border-radius: 8px;
}

.singles-grid.compact-view .single-info {
  padding: 0.5rem;
}

.singles-grid.compact-view .single-title {
  font-size: 0.85rem;
}

/* Singles Grid */
.singles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.single-card {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.single-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 85, 0, 0.15);
}

.single-art-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.single-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.single-card:hover .single-art {
  transform: scale(1.05);
}

.single-art-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #444;
}

.play-single-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.single-art-container:hover .play-single-btn {
  opacity: 1;
}

.play-single-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-dark);
}

.single-info {
  padding: 1rem;
}

.single-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.single-price {
  color: var(--primary-color);
  font-weight: bold;
}

.album-info {
  padding: 1.5rem;
}

.album-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.album-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.album-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger {
  background: var(--error-color);
  color: white;
}

.album-detail {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.album-cover {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.album-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.admin-edit-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.admin-edit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.album-content {
  padding: 1rem 0;
}

.album-header {
  margin-bottom: 2rem;
}

.album-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.album-meta-info {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.price-section {
  background: rgba(255, 85, 0, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.price-section h3 {
  margin-bottom: 1rem;
}

.song-list {
  background: var(--card-background);
  border-radius: 15px;
  overflow: hidden;
}

.song-header {
  display: grid;
  grid-template-columns: 40px 50px 1fr 70px 70px 80px 100px;
  padding: 0.75rem 1.5rem;
  background: #2a2a2a;
  border-bottom: 2px solid #444;
  color: var(--text-secondary);
  font-weight: bold;
  font-size: 0.85rem;
  gap: 0.5rem;
}

.song-item {
  display: grid;
  grid-template-columns: 40px 50px 1fr 70px 70px 80px 100px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #333;
  align-items: center;
  transition: background 0.2s;
  gap: 0.5rem;
}

.song-item:hover {
  background: #2a2a2a;
}

.song-bpm,
.song-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.play-song-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.play-song-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.play-song-btn i {
  font-size: 12px;
  margin-left: 2px;
}

.song-number {
  color: var(--text-secondary);
  font-weight: bold;
}

.song-info h4 {
  margin-bottom: 0.25rem;
}

.song-price {
  color: var(--primary-color);
  font-weight: bold;
}

.search-results {
  padding: 2rem 0;
}

.results-header {
  margin-bottom: 2rem;
}

.results-header h1 {
  margin-bottom: 0.5rem;
}

.results-count {
  color: var(--text-secondary);
}

.result-card {
  background: var(--card-background);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.result-card:hover {
  transform: translateX(5px);
}

.result-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.result-type.song {
  background: #4CAF50;
}

.result-type.single {
  background: #9C27B0;
}

.match-reason {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.admin-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  background: var(--secondary-color);
  padding: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #444;
}

.sidebar-header .logo {
  font-size: 1.3rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-sidebar ul {
  padding-top: 1rem;
  list-style: none;
}

.admin-sidebar a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255, 85, 0, 0.1);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.admin-main {
  padding: 2rem;
  background: #0a0a0a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card-background);
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.file-upload {
  border: 2px dashed #444;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(30, 30, 30, 0.5);
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: rgba(255, 85, 0, 0.05);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.login-box {
  background: var(--card-background);
  padding: 3rem;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  color: #4CAF50;
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  color: #f44336;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Main bottom player - hidden by default, shown when song plays */
#audioPlayer {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

#audioPlayer.player-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.play-btn {
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

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

.player-info {
  flex: 1;
}

.player-progress {
  flex: 2;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #444;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.1s;
}

.progress-bar {
  cursor: pointer;
}

.player-volume {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.player-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #444;
  border-radius: 3px;
  height: 4px;
  cursor: pointer;
}

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

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

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.table th {
  background: #2a2a2a;
  font-weight: bold;
}

.table tr:hover {
  background: rgba(255, 85, 0, 0.05);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state h2 {
  margin-bottom: 1rem;
}

footer {
  background: var(--secondary-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
}

/* Menu Container */
.menu-container {
  z-index: 10000;
  position: relative;
}

/* Dropdown Menu - positioned just below header border */
.nav-dropdown {
  position: fixed;
  top: 75px;
  right: 8px;
  width: 180px;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .nav-dropdown {
    width: 160px;
    right: 4px;
  }
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header .user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dropdown-header .nav-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.dropdown-header .nav-avatar i {
  font-size: 1rem;
  color: white;
}

.dropdown-header .nav-avatar .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-header .user-details h3 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.dropdown-header .user-details p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-header .user-details p i {
  font-size: 0.6rem;
}

.dropdown-menu {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.2s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item i {
  width: 22px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.dropdown-item:hover i {
  color: var(--primary-color);
}

.dropdown-item.logout {
  color: var(--error-color);
}

.dropdown-item.logout i {
  color: var(--error-color);
}

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

/* Swipe navigation focus state - subtle indicator without color highlight */
.dropdown-item.swipe-focused {
  /* No visible highlight - user navigates with swipe gestures */
}

/* Allow vertical scrolling in dropdown menu */
.dropdown-menu {
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Dropdown Backdrop */
.dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  pointer-events: none;
}

.dropdown-backdrop.active {
  display: block;
  pointer-events: auto;
}


.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 85, 0, 0.15);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.nav-toggle:active {
  background: rgba(255, 85, 0, 0.3);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  position: relative;
  transition: background 0.3s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  transition: transform 0.3s;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle.active span {
  background: transparent;
}

.nav-toggle.active span::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}


/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: var(--card-background);
  border: none;
  border-radius: 8px;
  padding: 10px;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--card-background);
  z-index: 1600;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding-top: 70px;
  transform: translateX(100%);
  visibility: hidden;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s;
  min-height: 56px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: rgba(255, 85, 0, 0.1);
  color: var(--primary-color);
}

.mobile-nav-links a i {
  width: 24px;
  text-align: center;
  font-size: 1.2rem;
}

/* Mobile Audio Player */
@media (max-width: 768px) {
  .audio-player {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  
  .player-controls {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .player-controls button {
    width: 44px;
    height: 44px;
  }
  
  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .player-info {
    text-align: center;
    width: 100%;
    order: -1;
  }
  
  .player-info .song-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .player-progress {
    width: 100%;
    flex: none;
  }
  
  .progress-bar {
    height: 8px;
  }
  
  .player-volume {
    display: none;
  }
  
  .player-time {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 0.25rem;
  }
}

/* Main Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-bottom: 20px;
  }
  
  /* Add padding when player is active */
  body.player-visible {
    padding-bottom: 140px;
  }
  
  nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    justify-content: space-between;
  }
  
  .logo {
    flex: 0 0 auto;
  }
  
  .logo img {
    height: 40px !important;
  }
  
  .logo span {
    font-size: 1.2rem;
  }
  
  .search-container {
    display: none;
  }
  
  .mobile-search-icon {
    display: flex;
    width: 44px;
    height: 44px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.9rem;
    padding: 0;
    line-height: 1.5;
  }
  
  .hero > div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
  }
  
  .hero .btn {
    margin-left: 0 !important;
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Album Grid Mobile */
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  
  .album-card {
    border-radius: 8px;
  }
  
  .album-card img {
    border-radius: 8px 8px 0 0;
  }
  
  .album-card h3 {
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }
  
  .album-card p {
    font-size: 0.75rem;
  }
  
  .album-card .card-content {
    padding: 0.75rem;
  }
  
  /* Singles Grid Mobile */
  .singles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .single-card {
    padding: 0.75rem;
  }
  
  .single-card h4 {
    font-size: 0.85rem;
  }
  
  /* Album Detail Mobile */
  .album-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .album-detail .album-cover {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .album-detail h1 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .album-detail .album-meta {
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Song List Mobile */
  .song-header {
    display: none;
  }
  
  .song-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .song-item .song-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .song-item .play-btn-small {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .song-item .song-number {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
  }
  
  .song-item .song-title {
    flex: 1;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .song-item .song-meta {
    display: flex;
    justify-content: space-between;
    padding-left: 64px;
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
  
  .song-item .song-bpm,
  .song-item .song-duration {
    display: inline;
  }
  
  .song-item .song-price {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .song-item .song-actions {
    padding-left: 64px;
    padding-top: 0.5rem;
  }
  
  .song-item .btn-sm {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Admin Area Mobile */
  .admin-container {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0.5rem;
    background: var(--card-background);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .admin-sidebar ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .admin-sidebar li {
    flex: 0 0 auto;
  }
  
  .admin-sidebar a {
    padding: 0.5rem;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  
  .admin-sidebar a i {
    font-size: 1.2rem;
  }
  
  .admin-main {
    padding-bottom: 80px;
  }
  
  /* Tables Mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  
  .table {
    min-width: 600px;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Forms Mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-sm {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Cards Mobile */
  .card {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  /* Stats Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card h3 {
    font-size: 0.75rem;
  }
  
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  
  /* Pricing Mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  /* Footer Mobile */
  footer {
    padding: 1.5rem 1rem;
  }
  
  /* Touch-friendly buttons */
  button, 
  .btn,
  a.btn,
  input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Modal Mobile */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .logo span {
    font-size: 1rem;
  }
  
  .logo img {
    height: 35px !important;
  }
  
  .album-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .singles-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.4rem;
  }
}
