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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile Device Optimizations */
.mobile-device {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* Header */
.header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.logo h1 {
  color: #64ffda;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
.header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-badge {
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-badge {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #0f0f23;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.temp-badge {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.3);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
}

.temp-name {
  font-weight: 600;
}

.temp-time {
  font-size: 0.7rem;
  color: #ffa726;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-link,
.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 25px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 44px; /* Touch-friendly minimum */
}

.admin-link:hover,
.nav-link:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  transform: translateY(-2px);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  color: #64ffda;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
}

/* Music Grid */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.music-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.music-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

/* Music Cover Section */
.music-cover-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.music-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(100, 255, 218, 0.3);
  flex-shrink: 0;
}

.music-cover-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(100, 255, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(100, 255, 218, 0.3);
  flex-shrink: 0;
}

.music-cover-placeholder i {
  font-size: 2rem;
  color: #64ffda;
}

.music-header {
  flex: 1;
  min-width: 0;
}

.music-header h3 {
  color: #64ffda;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Waveform Player */
.waveform-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.waveform-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.play-pause-btn {
  background: linear-gradient(45deg, #64ffda, #4fd3b8);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #0f0f23;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  min-height: 44px; /* Touch-friendly */
  min-width: 44px;
}

.play-pause-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b0b0b0;
  font-size: 0.9rem;
  font-family: "Courier New", monospace;
  flex: 1;
  min-width: 0;
}

.time-display .current-time {
  color: #64ffda;
}

.time-display .separator {
  color: #666;
}

.volume-control {
  display: flex;
  align-items: center;
}

.volume-btn {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Touch-friendly */
  min-width: 44px;
}

.volume-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
}

.waveform-player {
  min-height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  touch-action: manipulation;
}

.loading-indicator {
  text-align: center;
  color: #64ffda;
  padding: 20px;
  font-size: 0.9rem;
}

.loading-indicator i {
  margin-right: 8px;
}

.music-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.like-btn {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  padding: 12px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 10;
  min-height: 44px; /* Touch-friendly */
  white-space: nowrap;
}

.like-btn:hover,
.like-btn.liked {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
}

.like-btn.liked {
  background: rgba(100, 255, 218, 0.3);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.download-btn {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  padding: 12px 18px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 10;
  cursor: pointer;
  min-height: 44px; /* Touch-friendly */
  white-space: nowrap;
}

.download-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

/* Comments */
.comments-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.comment-form {
  margin-bottom: 1rem;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 20px;
  padding: 8px 12px;
  color: #64ffda;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
}

.comment-user-info i {
  font-size: 0.8rem;
}

.comment-username {
  font-weight: 500;
}

.comment-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 12px 18px;
  color: #e0e0e0;
  outline: none;
  position: relative;
  z-index: 10;
  min-height: 44px; /* Touch-friendly */
  font-size: 16px; /* Prevent zoom on iOS */
}

.comment-input:focus {
  border-color: #64ffda;
}

.comment-submit {
  background: #64ffda;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #0f0f23;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-submit:hover {
  background: #4fd3b8;
  transform: scale(1.1);
}

.comment {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-author {
  color: #64ffda;
  font-size: 0.9rem;
}

.comment-date {
  color: #888;
  font-size: 0.8rem;
}

.comment-content {
  color: #e0e0e0;
  word-wrap: break-word;
}

/* No Content States */
.no-music,
.no-content {
  text-align: center;
  padding: 3rem;
  color: #888;
}

.no-music i,
.no-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #64ffda;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
}

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

.login-header .logo-img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.login-header h2 {
  color: #64ffda;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #b0b0b0;
  font-size: 0.9rem;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form label {
  display: block;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: #e0e0e0;
  outline: none;
  min-height: 44px; /* Touch-friendly */
  font-size: 16px; /* Prevent zoom on iOS */
}

.login-form input:focus {
  border-color: #64ffda;
}

.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Admin Notice für Login-Seite */
.admin-notice {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
}

.admin-notice i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.admin-notice p {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.login-info {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-info h3 {
  color: #64ffda;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.login-info ul {
  list-style: none;
  padding: 0;
}

.login-info li {
  margin-bottom: 0.5rem;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.login-info strong {
  color: #64ffda;
}

/* Temporärer Benutzer Hinweis */
.temp-user-notice {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.temp-user-notice i {
  font-size: 1.2rem;
}

.temp-user-notice p {
  margin: 0;
  font-size: 0.9rem;
}

/* Success Message */
.success-message {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Admin Sections */
.admin-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section h2 {
  color: #64ffda;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-form .form-group {
  margin-bottom: 1rem;
}

.upload-form label {
  display: block;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

.upload-form input,
.upload-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: #e0e0e0;
  outline: none;
  min-height: 44px; /* Touch-friendly */
  font-size: 16px; /* Prevent zoom on iOS */
}

.upload-form input:focus,
.upload-form select:focus {
  border-color: #64ffda;
}

.form-hint {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Temp Access Management */
.temp-access-form {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.temp-access-form h3 {
  color: #64ffda;
  margin-bottom: 1rem;
}

.create-temp-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.temp-access-list {
  margin-top: 2rem;
}

.temp-access-list h3 {
  color: #64ffda;
  margin-bottom: 1rem;
}

.temp-access-items {
  display: grid;
  gap: 1rem;
}

.temp-access-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.temp-access-info h4 {
  color: #64ffda;
  margin-bottom: 0.5rem;
}

.temp-access-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.temp-access-details span {
  font-size: 0.9rem;
  color: #b0b0b0;
}

.temp-code {
  color: #64ffda !important;
}

.temp-expires {
  color: #ffa726 !important;
}

.temp-remaining {
  color: #4caf50 !important;
}

.temp-access-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.no-temp-access {
  text-align: center;
  padding: 2rem;
  color: #888;
}

.no-temp-access i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #64ffda;
}

.admin-music-list {
  display: grid;
  gap: 1rem;
}

.admin-music-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.admin-music-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(100, 255, 218, 0.3);
}

.admin-cover-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(100, 255, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(100, 255, 218, 0.3);
}

.admin-cover-placeholder i {
  font-size: 1.5rem;
  color: #64ffda;
}

.admin-track-info h3 {
  color: #64ffda;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.admin-track-info small {
  color: #888;
  display: block;
  margin-bottom: 0.25rem;
}

.comment-count {
  color: #64ffda !important;
}

.waveform-cached {
  color: #4caf50 !important;
}

.music-controls audio {
  width: 250px;
  height: 35px;
}

/* Admin Comments */
.comments-admin-list {
  display: grid;
  gap: 1.5rem;
}

.comments-admin-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.comments-admin-header h3 {
  color: #64ffda;
  margin: 0;
}

.comments-admin-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comment-count-badge {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
}

.admin-comment {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-comment-header strong {
  color: #64ffda;
}

.admin-comment-date {
  color: #888;
  font-size: 0.8rem;
}

.admin-comment-content {
  color: #e0e0e0;
  line-height: 1.5;
  word-wrap: break-word;
}

.btn-delete-comment {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Touch-friendly */
  min-width: 44px;
}

.btn-delete-comment:hover {
  background: rgba(255, 107, 107, 0.2);
  transform: scale(1.1);
}

/* Buttons */
.btn-primary,
.btn-danger,
.btn-warning,
.btn-copy {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  min-height: 44px; /* Touch-friendly */
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(45deg, #64ffda, #4fd3b8);
  color: #0f0f23;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.btn-danger {
  background: linear-gradient(45deg, #ff6b6b, #ff5252);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-warning {
  background: linear-gradient(45deg, #ffa726, #ff9800);
  color: white;
  font-size: 0.8rem;
  padding: 8px 16px;
}

.btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3);
}

.btn-copy {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  padding: 12px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-copy:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  transform: translateY(-1px);
}

/* Upload Progress Styles */
.upload-progress {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.upload-progress-header h3 {
  color: #64ffda;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-stats {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #b0b0b0;
}

.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #64ffda, #4fd3b8);
  border-radius: 20px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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%);
  }
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1rem;
  font-weight: 600;
  color: #0f0f23;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.upload-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.upload-file-info i {
  color: #64ffda;
  font-size: 1.2rem;
}

.upload-actions {
  display: flex;
  gap: 1rem;
}

/* Upload Success/Error States */
.upload-success,
.upload-error,
.upload-canceled {
  text-align: center;
  padding: 2rem;
}

.upload-success-icon,
.upload-error-icon,
.upload-canceled-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.upload-success-icon {
  color: #4caf50;
}

.upload-error-icon {
  color: #ff6b6b;
}

.upload-canceled-icon {
  color: #ffa726;
}

.upload-success h3,
.upload-error h3,
.upload-canceled h3 {
  margin-bottom: 1rem;
}

.upload-success h3 {
  color: #4caf50;
}

.upload-error h3 {
  color: #ff6b6b;
}

.upload-canceled h3 {
  color: #ffa726;
}

.upload-success p,
.upload-error p,
.upload-canceled p {
  color: #b0b0b0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.upload-success-actions,
.upload-error-actions,
.upload-canceled-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pulsing Animation für Upload */
.upload-progress-header h3 i {
  animation: pulse-upload 2s infinite;
}

@keyframes pulse-upload {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Mobile Anpassungen für Upload Progress */
@media (max-width: 768px) {
  .upload-progress {
    padding: 1.5rem;
  }

  .upload-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .upload-stats {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .progress-text {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
  }

  .upload-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .upload-actions {
    width: 100%;
    justify-content: center;
  }

  .upload-file-info {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .upload-progress {
    padding: 1rem;
  }

  .progress-bar {
    height: 35px;
  }

  .progress-text {
    font-size: 0.8rem;
  }

  .upload-stats {
    font-size: 0.8rem;
  }

  .upload-file-info {
    font-size: 0.8rem;
  }

  .upload-success,
  .upload-error,
  .upload-canceled {
    padding: 1.5rem;
  }

  .upload-success-icon,
  .upload-error-icon,
  .upload-canceled-icon {
    font-size: 3rem;
  }

  .upload-success-actions,
  .upload-error-actions,
  .upload-canceled-actions {
    flex-direction: column;
  }

  .upload-success-actions button,
  .upload-error-actions button,
  .upload-canceled-actions button {
    width: 100%;
  }
}

/* Disable Form während Upload */
.upload-form.uploading {
  opacity: 0.5;
  pointer-events: none;
}

.upload-form.uploading input,
.upload-form.uploading button {
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .music-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .music-card {
    padding: 1rem;
  }

  .admin-music-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .admin-music-info {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .music-controls audio {
    width: 100%;
    max-width: 300px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .header nav {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .music-cover-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .music-cover,
  .music-cover-placeholder {
    width: 120px;
    height: 120px;
    align-self: center;
  }

  .waveform-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .time-display {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .volume-control {
    order: 2;
  }

  .comment-form {
    gap: 0.5rem;
  }

  .comment-user-info {
    align-self: flex-start;
    min-width: auto;
    width: 100%;
    justify-content: center;
  }

  .comment-input-wrapper {
    width: 100%;
  }

  .music-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .like-btn,
  .download-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .comments-admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .comments-admin-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .temp-access-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .temp-access-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .temp-badge {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .temp-time {
    font-size: 0.7rem;
  }

  .nav-text {
    display: none;
  }

  .action-text {
    display: none;
  }

  .waveform-player {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .music-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .music-card {
    padding: 1rem;
  }

  .hero {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .waveform-controls {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .play-pause-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .time-display {
    order: 2;
    font-size: 1rem;
  }

  .volume-control {
    order: 3;
  }

  .temp-access-details {
    gap: 0.5rem;
  }

  .temp-access-details span {
    font-size: 0.8rem;
  }

  .temp-access-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-copy,
  .btn-danger {
    width: 100%;
    justify-content: center;
  }

  .login-container {
    padding: 1rem;
  }

  .login-box {
    padding: 1.5rem;
  }

  .comment-form {
    gap: 0.5rem;
  }

  .comment-user-info {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .temp-badge {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .temp-time {
    font-size: 0.6rem;
  }

  .music-cover,
  .music-cover-placeholder {
    width: 100px;
    height: 100px;
  }

  .admin-section {
    padding: 1rem;
  }

  .waveform-player {
    min-height: 100px;
  }

  .like-btn,
  .download-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .comment-input {
    font-size: 16px;
    padding: 10px 15px;
  }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .waveform-player {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"],
  textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    border-radius: 0;
  }

  .comment-input {
    font-size: 16px !important;
    -webkit-appearance: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .music-cover,
  .admin-cover {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0a0a1a 0%, #151525 50%, #1a1a35 100%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Edit Song Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: #64ffda;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.modal-body {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e0e0e0;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-edit {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  min-height: 44px;
  white-space: nowrap;
}

.btn-edit:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
  transform: translateY(-1px);
}

/* Kompakte Kommentar-Verwaltung */
.comments-admin-compact {
  display: grid;
  gap: 1rem;
}

.comments-compact-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-compact-header h4 {
  color: #64ffda;
  margin: 0;
  font-size: 1rem;
}

.comment-count-compact {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(100, 255, 218, 0.3);
}

.comments-compact-list {
  display: grid;
  gap: 0.5rem;
}

.comment-compact {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.comment-compact-content {
  flex: 1;
  min-width: 0;
}

.comment-compact-content strong {
  color: #64ffda;
  font-size: 0.85rem;
}

.comment-compact-content {
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.comment-compact-date {
  color: #888;
  font-size: 0.7rem;
  display: block;
  margin-top: 0.25rem;
}

.btn-delete-comment-compact {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.btn-delete-comment-compact:hover {
  background: rgba(255, 107, 107, 0.2);
  transform: scale(1.1);
}

/* Admin Music Item Anpassungen */
.admin-music-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.admin-music-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.music-controls {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Archive Card Styles */
.archive-card {
  border-left: 4px solid #ffa726;
}

.archive-card:hover {
  border-color: #ff9800;
  box-shadow: 0 10px 30px rgba(255, 167, 38, 0.1);
}

.archive-placeholder {
  background: rgba(255, 167, 38, 0.1);
  border-color: rgba(255, 167, 38, 0.3);
}

.archive-placeholder i {
  color: #ffa726;
  font-size: 2.5rem;
}

.file-type-label {
  color: #ffa726;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Archive Info Section */
.archive-info {
  background: rgba(255, 167, 38, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 167, 38, 0.2);
  text-align: center;
}

.archive-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffa726;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.archive-details i {
  font-size: 1.2rem;
}

.file-size {
  color: #b0b0b0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Archive Download Button */
.archive-download {
  background: rgba(255, 167, 38, 0.1);
  border-color: rgba(255, 167, 38, 0.3);
  color: #ffa726;
}

.archive-download:hover {
  background: rgba(255, 167, 38, 0.2);
  border-color: #ffa726;
}

/* Admin Archive Styles */
.admin-track-info h3 i.fa-file-archive {
  color: #ffa726;
  margin-right: 8px;
}

/* Mobile Anpassungen für Archive */
@media (max-width: 768px) {
  .archive-info {
    padding: 1rem;
  }

  .archive-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .archive-placeholder i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .archive-info {
    padding: 0.75rem;
  }

  .archive-details {
    font-size: 0.9rem;
  }

  .file-size {
    font-size: 0.8rem;
  }
}

/* Mobile Anpassungen für neue Elemente */
@media (max-width: 768px) {
  .admin-notice {
    padding: 12px;
    font-size: 0.9rem;
  }

  .admin-notice i {
    font-size: 1.2rem;
  }

  .temp-user-notice {
    flex-direction: column;
    gap: 0.5rem;
    padding: 12px;
  }

  .temp-user-notice p {
    font-size: 0.8rem;
  }
  .modal {
    padding: 1rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .admin-music-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-music-info {
    justify-content: center;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-edit,
  .btn-copy,
  .btn-danger {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }

  .comments-compact-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .comment-compact {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .btn-delete-comment-compact {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .admin-notice {
    padding: 10px;
    font-size: 0.8rem;
  }

  .temp-user-notice {
    padding: 10px;
  }
  .admin-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-edit,
  .btn-copy,
  .btn-danger {
    width: 100%;
  }

  .comments-compact-item {
    padding: 0.75rem;
  }

  .comment-compact {
    padding: 0.5rem;
  }

  .comment-compact-content {
    font-size: 0.8rem;
  }
}

/* Ergänzung für Download-Statistiken */
.download-stats-list {
  display: grid;
  gap: 1.5rem;
}

.download-stats-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-stats-header h4 {
  color: #64ffda;
  margin: 0;
  font-size: 1.1rem;
}

.download-count {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.download-stats-table {
  overflow-x: auto;
}

.download-stats-table table {
  width: 100%;
  border-collapse: collapse;
}

.download-stats-table th,
.download-stats-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-stats-table th {
  color: #64ffda;
  font-weight: 500;
}

.download-stats-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .download-stats-table {
    font-size: 0.9rem;
  }

  .download-stats-table th,
  .download-stats-table td {
    padding: 8px 5px;
  }
}
