/* THRONGEFLÜSTER - Basis Styles */

/* CSS Variables for Theme Switching */
:root {
  --bg: #fafafa;
  --text: #333;
  --header-bg: white;
  --header-border: #e1e8ed;
  --brand-color: #2c3e50;
  --brand-hover: #3498db;
  --hamburger-color: #2c3e50;
  --hamburger-hover: #3498db;
  --mobile-menu-bg: white;
  --mobile-menu-border: #f0f0f0;
  --mobile-menu-text: #2c3e50;
  --mobile-menu-hover: #3498db;
  --menu-overlay-bg: rgba(0, 0, 0, 0.3);
  --branding-title: #2c3e50;
  --branding-tagline: #34495e;
  --branding-slogan: #7f8c8d;
  --content-bg: white;
  --footer-bg: white;
  --footer-border: #e1e8ed;
  --footer-text: #7f8c8d;
  --footer-hover-bg: #f8f9fa;
  --btn-primary-bg: #3498db;
  --btn-primary-hover: #2980b9;
  --btn-secondary-bg: white;
  --btn-secondary-text: #2c3e50;
  --btn-secondary-border: #e1e8ed;
  --btn-secondary-hover-bg: #f8f9fa;
  --content-section-bg: #f8f9fa;
  --form-bg: white;
  --form-text: #7f8c8d;
  --accent: #3b82f6;
  --accent-contrast: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #0b0f14;
  --text: #e8eef6;
  --header-bg: #1a1f2e;
  --header-border: #2d3748;
  --brand-color: #e8eef6;
  --brand-hover: #63b3ed;
  --hamburger-color: #e8eef6;
  --hamburger-hover: #63b3ed;
  --mobile-menu-bg: #1a1f2e;
  --mobile-menu-border: #2d3748;
  --mobile-menu-text: #e8eef6;
  --mobile-menu-hover: #63b3ed;
  --menu-overlay-bg: rgba(0, 0, 0, 0.7);
  --branding-title: #e8eef6;
  --branding-tagline: #cbd5e0;
  --branding-slogan: #a0aec0;
  --content-bg: #1a1f2e;
  --footer-bg: #1a1f2e;
  --footer-border: #2d3748;
  --footer-text: #a0aec0;
  --footer-hover-bg: #2d3748;
  --btn-primary-bg: #3182ce;
  --btn-primary-hover: #2c5282;
  --btn-secondary-bg: #2d3748;
  --btn-secondary-text: #e8eef6;
  --btn-secondary-border: #4a5568;
  --btn-secondary-hover-bg: #4a5568;
  --content-section-bg: #2d3748;
  --form-bg: #1a1f2e;
  --form-text: #a0aec0;
}

/* Accent Color Palettes */
:root[data-theme="light"][data-accent="classic"] { --accent:#3b82f6; }
:root[data-theme="dark"][data-accent="classic"]  { --accent:#60a5fa; }

:root[data-theme="light"][data-accent="sage"] { --accent:#34a27b; }
:root[data-theme="dark"][data-accent="sage"]  { --accent:#5bd6ad; }

:root[data-theme="light"][data-accent="slate"] { --accent:#64748b; }
:root[data-theme="dark"][data-accent="slate"]  { --accent:#94a3b8; }

:root[data-theme="light"][data-accent="rose"] { --accent:#d26b8a; }
:root[data-theme="dark"][data-accent="rose"]  { --accent:#f0a3b7; }

:root[data-theme="light"][data-accent="amber"] { --accent:#c78a2a; }
:root[data-theme="dark"][data-accent="amber"]  { --accent:#f0b45a; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* Fallback for browsers without svh support */
@supports not (height: 100svh) {
    body {
        min-height: 100vh;
    }
}

/* Page Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

/* Fallback for browsers without svh support */
@supports not (height: 100svh) {
    .page-wrapper {
        min-height: 100vh;
    }
}

/* Global Header */
.global-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-controls .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem; /* leicht kleiner als Hamburger */
    line-height: 1;
}

.header-controls .theme-toggle svg {
    display: block;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.brand:hover {
    color: var(--accent);
}

.hamburger {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

.hamburger:hover span {
    background: var(--accent);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    min-height: 100svh;
    background: var(--mobile-menu-bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* Fallback for browsers without svh support */
@supports not (height: 100svh) {
    .mobile-menu {
        min-height: 100vh;
    }
}

.mobile-menu-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-nav {
    flex: 1 1 auto;
}

.mobile-menu-footer {
    flex: 0 0 auto;
    padding: 16px 24px 24px 24px;   /* top=16, left/right=24, bottom=24 */
    border-top: 1px solid rgba(255,255,255,0.10);
}

:root[data-theme="light"] .mobile-menu-footer {
    border-top-color: rgba(0,0,0,0.10);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    padding-top: 4rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;               /* Abstand Icon ↔ Text */
    padding: 1rem 0;
    color: var(--mobile-menu-text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--mobile-menu-border);
    transition: color 0.2s ease;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);     /* Icon nimmt Akzentfarbe */
    flex: 0 0 auto;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-text {
    flex: 1;
}

.mobile-menu-item:hover {
    color: var(--accent);
}

.mobile-menu-item:first-child {
    border-top: 1px solid var(--mobile-menu-border);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100svh;
    background: var(--menu-overlay-bg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Fallback for browsers without svh support */
@supports not (height: 100svh) {
    .menu-overlay {
        min-height: 100vh;
    }
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Branding Block */
.branding-block {
    margin-bottom: 3rem;
}

.branding-emoji {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--branding-title);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.branding-tagline {
    font-size: 1.3rem;
    color: var(--branding-tagline);
    margin-bottom: 0.3rem;
    font-weight: 500;
    line-height: 1.3;
}

.branding-slogan {
    font-size: 1rem;
    color: var(--branding-slogan);
    font-weight: 400;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.content-section {
    text-align: left;
    background: var(--content-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

/* Global Footer */
.global-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--accent);
    background: var(--footer-hover-bg);
}

/* Floating Play Button */
.floating-play {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: var(--accent-contrast, #fff);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.floating-play:hover {
    background: var(--accent);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-play:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--branding-title);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.subline {
    font-size: 1.1rem;
    color: var(--branding-slogan);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Content Sections Styling */
.content-section h2 {
    color: var(--branding-title);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    color: var(--branding-tagline);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.3rem;
}

.admin-features {
    background: var(--content-section-bg);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.form-placeholder {
    text-align: center;
    background: var(--form-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.form-placeholder p {
    margin-bottom: 1rem;
    color: var(--form-text);
}

/* Mobile-first Responsive */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .subline {
        font-size: 1.2rem;
    }
    
    .content-container {
        max-width: 600px;
    }
    
    .footer-content {
        gap: 3rem;
    }
    
    /* Branding Block Responsive */
    .branding-emoji {
        font-size: 5rem;
        margin-bottom: 1.2rem;
    }
    
    .branding-title {
        font-size: 3rem;
        margin-bottom: 0.7rem;
    }
    
    .branding-tagline {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .branding-slogan {
        font-size: 1.1rem;
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .content-container {
        max-width: 700px;
    }
    
    /* Branding Block Desktop */
    .branding-emoji {
        font-size: 6rem;
        margin-bottom: 1.5rem;
    }
    
    .branding-title {
        font-size: 3.5rem;
        margin-bottom: 0.8rem;
    }
    
    .branding-tagline {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }
    
    .branding-slogan {
        font-size: 1.2rem;
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .floating-play {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* Theme Toggle SR-only */
.theme-toggle-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Style Picker */
.style-picker { }

.style-picker__label {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 12px;
}

.style-picker__swatches {
    display: flex;
    gap: 14px;
}

.swatch {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;     /* extra Sicherheit */
    padding: 0;              /* verhindert "höher durch padding" */
    line-height: 0;          /* verhindert Höhe durch Text-Linebox */
    display: inline-flex;    /* zentriert evtl. Inhalte */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;  /* Border zählt sauber mit */
    border-radius: 8px;      /* weniger rund */
    border: 1px solid rgba(255,255,255,0.18);
    background: var(--swatch-color);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

:root[data-theme="light"] .swatch {
    border-color: rgba(0,0,0,0.12);
}

.swatch.is-active {
    outline: 3px solid rgba(0,0,0,0.75);
    outline-offset: 3px;
}

:root[data-theme="dark"] .swatch.is-active {
    outline-color: rgba(255,255,255,0.9);
}

/* Swatch Preview Colors */
.swatch[data-accent="classic"] { --swatch-color: #3b82f6; } /* soft blue */
.swatch[data-accent="sage"]    { --swatch-color: #34a27b; } /* muted green */
.swatch[data-accent="slate"]   { --swatch-color: #64748b; } /* slate */
.swatch[data-accent="rose"]    { --swatch-color: #d26b8a; } /* muted rose */
.swatch[data-accent="amber"]   { --swatch-color: #c78a2a; } /* muted amber */

/* Formular Styles für /new Seite */
.intro-text {
    font-size: 1rem;
    color: var(--branding-slogan);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.entry-form {
    display: flex;
    flex-direction: column;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.field-label {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.field-help {
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.35;
    color: var(--text);
}

.field-control {
    display: flex;
    flex-direction: column;
}

/* Input Styles */
input[type="text"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--header-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--form-bg);
    color: var(--text);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--form-text);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Search Input mit Icon */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    padding-right: 48px;
}

.search-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    color: var(--form-text);
    opacity: 0.5;
    pointer-events: none;
}

/* Selfie Upload Area */
.selfie-upload-area {
    border: 2px dashed var(--header-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--form-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.selfie-upload-area:hover {
    border-color: var(--accent);
    background: var(--content-section-bg);
}

.camera-icon {
    width: 48px;
    height: 48px;
    color: var(--form-text);
    opacity: 0.6;
    font-size: 3rem;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.selfie-upload-area .camera-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.95;
    font-size: 3rem;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.upload-text {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

/* Selfie Preview */
.selfie-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selfie-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--header-border);
}

.change-selfie-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.change-selfie-btn:hover {
    background: var(--content-section-bg);
}

/* Spotify Search Styles */
.spotify-search-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input-row input {
    flex: 1;
}

.song-search-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.song-search-btn:hover {
    background: color-mix(in srgb, var(--accent) 85%, black);
    border-color: color-mix(in srgb, var(--accent) 85%, black);
}

.song-search-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-button {
    padding: 12px 16px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-contrast, #fff);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-button:hover {
    background: color-mix(in srgb, var(--accent) 85%, black);
    border-color: color-mix(in srgb, var(--accent) 85%, black);
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Search Results */
.search-results {
    background: var(--content-bg);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--header-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--content-section-bg);
}

.search-result-item:focus {
    outline: none;
    background: var(--content-section-bg);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* New song-result styles */
.song-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--header-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.song-result:last-child {
    border-bottom: none;
}

/* Selected Song Display - Single Item */
#selectedSongDisplay.song-result { 
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    margin-top: 8px;
    border-bottom: none; 
}

.song-result--selected { 
    outline: 2px dotted var(--accent);
    outline-offset: 4px;
}

.song-result:hover {
    background: var(--content-section-bg);
}

.song-result:focus {
    outline: none;
    background: var(--content-section-bg);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.song-result__cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--content-section-bg);
}

.song-result__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-result__meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.song-result__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--form-text);
    line-height: 1.1;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-result__artist {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-result__album {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.05;
    margin-top: 1px;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-artist {
    color: var(--form-text);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-album {
    color: var(--form-text);
    opacity: 0.6;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-no-results,
.search-error {
    padding: 16px;
    text-align: center;
    color: var(--form-text);
    opacity: 0.7;
    font-size: 0.9rem;
}

.search-loading {
    opacity: 0.5;
}

.no-cover {
    width: 100%;
    height: 100%;
    background: var(--content-section-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--form-text);
    opacity: 0.3;
    font-size: 20px;
}

.no-cover::before {
    content: "♪";
}

.search-error {
    color: #dc3545;
    background: color-mix(in srgb, #dc3545 10%, transparent);
    border-radius: 6px;
}

/* Responsive Anpassungen */
@media (max-width: 767px) {
    .search-result-item,
    .song-result {
        padding: 8px;
        gap: 8px;
    }
    
    .search-result-cover,
    .song-result__cover {
        width: 40px;
        height: 40px;
    }
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 52px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.submit-note {
    font-size: 0.9rem;
    color: var(--form-text);
    opacity: 0.8;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

/* Dark Mode: Improve song result text contrast */
:root[data-theme="dark"] .song-result__title {
    color: var(--text);
}

:root[data-theme="dark"] .song-result__artist {
    color: var(--text);
    opacity: 0.85;
}

:root[data-theme="dark"] .song-result__album {
    color: var(--text);
    opacity: 0.70;
}