:root {
    --primary-bg: #fff;
    --primary-text: #222;
    --accent: #F2CF45;
    --card-bg: #f3f3f3;
    --star: #FFD700;
}
html.dark {
    --primary-bg: #181818;
    --primary-text: #fff;
    --accent: #F2CF45;
    --card-bg: #232323;
    --star: #F2CF45;
}
body {
    background: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
    min-height: 100vh;
}
.header {
    background: #666;
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
}

html.dark .header {
    background: linear-gradient(45deg, #222, var(--primary-bg));
}
.logo {
    font-size: 3em;
    color: var(--accent);
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}
.social-links img {
    height: 28px;
}
.auth-link, .network-link {
    color: var(--accent);
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}
.filter-section, .admin-section, .songs-section {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.music-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    color: var(--primary-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.music-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--primary-bg);
}

.music-card .thumbnail {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-card .thumbnail:hover {
    transform: scale(1.02);
}
.stars {
    font-size: 1.5em;
    color: var(--star);
    cursor: pointer;
}
.stars .star {
    margin-right: 2px;
    transition: color 0.2s;
}
.stars .star:hover,
.stars .star:hover ~ .star {
    color: #bbb;
}
.avg-rating {
    margin-left: 10px;
    color: var(--accent);
}
button, select, input[type="text"], input[type="url"] {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 0.5em 1em;
    margin: 0.2em 0;
}
#themeToggle {
    background: transparent;   /* Kein Hintergrund */
    color: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;          /* Kein Schatten */
    padding: 0;
    margin-left: 8px;         /* Kleiner Abstand zu "Registrieren" */
}
#themeIcon {
    font-size: 1.5em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal.active {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background: #222;
  margin: auto;
  padding: 0;
  border-radius: 8px;
  width: 95%;
  max-width: 400px;
  box-shadow: 0 2px 16px #000;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  background: #222;
}
@media (max-width: 500px) {
  .modal-content {
    max-width: 98vw;
    min-width: 0;
    padding: 0;
  }
  .modal-content iframe {
    height: 400px;
  }
}
.close {
  position: absolute; right: 12px; top: 8px; font-size: 2em; color: #fff; cursor: pointer;
  z-index: 10;
}