/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif; /* Font from style2 */
  background-color: #2d0b3d; /* Dark purple fallback */
  background-image: url('/bg3.png'); /* Use PNG */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh; 
}

/* Remove old form styling */
#quiz-config-form {
    max-width: 800px; /* Increase max-width */
    margin: 2em auto;
    padding: 0; /* Remove padding */
    border: none; /* Remove border */
    background-color: transparent; /* Remove background */
    border-radius: 0;
}

/* General form group styling */
.form-group {
    margin-bottom: 1.5em; /* Increase spacing */
}

.form-group label {
    display: block;
    margin-bottom: 0.6em;
    font-weight: 500; /* Slightly less bold */
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

/* Style for textarea */
.form-group textarea {
    width: 100%;
    padding: 12px 18px; /* Adjust padding */
    border: 1px solid #ccc; /* Ljusare border för vit bakgrund */
    border-radius: 25px; /* More rounded */
    box-sizing: border-box; 
    background-color: #ffffff; /* Vit bakgrund */
    color: #000000; /* Svart textfärg */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical; 
    min-height: 80px; /* Minimum height */
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group textarea::placeholder { /* Stil för placeholder */
    color: #999;
}
.form-group textarea:focus {
    border-color: #ff7e3e; /* Orange highlight on focus (behåll orange) */
}

/* Layout for dropdown row */
.form-row {
    display: flex;
    gap: 25px; /* Increase gap */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.form-row .form-group {
    flex: 1; /* Each group takes equal space */
    min-width: 150px; /* Minimum width before wrapping */
}

/* Style for dropdowns (select) - inspired by style2 */
.form-group select {
    width: 100%;
    padding: 12px 18px; /* Match textarea */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 25px; /* More rounded */
    box-sizing: border-box; 
    background: rgba(0, 0, 0, 0.2); /* Darker background */
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none; /* Remove default arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px; /* Space for custom arrow */
    transition: border-color 0.3s ease;
}
.form-group select:focus {
     border-color: rgba(255, 126, 62, 0.6); /* Orange highlight on focus */
}
.form-group select option {
    background-color: #4a0e6b; /* Match background from style2 */
    color: white;
}

/* Style for slider - basic for now */
.form-group input[type="range"] {
    width: calc(100% - 45px); 
    vertical-align: middle;
    cursor: pointer;
}
.form-group #songs-count {
    display: inline-block;
    min-width: 30px; 
    text-align: right;
    font-weight: 600; /* Bolder count */
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
}

/* Style for Submit button - using style2 button */
#quiz-config-form button[type="submit"] {
    background-color: #ff7e3e; /* Orange button */
    color: white;
    border: none;
    border-radius: 50px; /* Restore full radius */
    padding: 12px 30px; /* Adjusted padding */
    font-size: 1.1rem; /* Increase size */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; 
    display: block; /* Make it block */
    width: auto; /* Auto width */
    margin: 2em auto 0 auto; /* Center with margin */
    min-width: 200px;
}

#quiz-config-form button[type="submit"]:hover {
    background-color: #e66a2e;
}

/* Updated Styling för vyer och vy-väljare */
.view-selector {
    margin-bottom: 0; /* Ta bort marginal */
    padding-bottom: 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtil linje */
}

.view-selector button {
    padding: 0.8em 1.5em; 
    margin-right: 0.5em;
    margin-bottom: -1px; 
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Mörkare kant för inaktiv */
    background-color: rgba(0, 0, 0, 0.2); /* Mörkare bakgrund för inaktiv */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Bottenkant synlig för inaktiv */
    border-radius: 8px 8px 0 0; /* Lite rundning */
    font-size: 1.2em; 
    color: #ccc; /* Ljusare grå text för inaktiv */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.view-selector button.active {
    background-color: rgba(0, 0, 0, 0.3); /* Något mörkare aktiv bakgrund */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lite tydligare kant */
    border-bottom: 1px solid rgba(0, 0, 0, 0.3); /* Dölj bottenkant */
    font-weight: 600; /* Något fetare */
    color: #fff; /* Vit text för aktiv */
}

.view-container {
    display: none; 
    padding: 30px; /* Mer padding */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Matchande kant som aktiv knapp */
    border-top: none; /* Ingen topkant behövs */
    border-radius: 0 0 15px 15px; /* Rundning nedtill */
    background: rgba(0, 0, 0, 0.3); /* Matchande bakgrund som aktiv knapp */
    clear: both; 
}

.view-container.active {
    display: block; 
}

/* Style list items inside views */
.view-container ul {
    list-style: none;
    padding: 0;
}

/* Riktar specifikt mot li i musiklistan */
#music-song-list li {
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex; 
    flex-direction: column; /* Stack label/widget vertically */
    gap: 8px; /* Lite mellanrum mellan label och widget */
    text-align: left; 
}

/* Styling för label-containern (om någon behövs) */
#music-song-list li .song-label-container {
   /* display: flex; align-items: center; gap: 8px; */ /* Redan i inline style */
}

/* Styling för widget-containern */
#music-song-list li .song-widget-container {
    width: 100%; /* Säkerställ full bredd */
}

/* Styling för error-containern (om någon behövs) */
#music-song-list li .song-error-container {
   /* display: flex; align-items: center; etc... */ /* Redan i inline style */
}

/* Styling för manuella knappar (primär/sekundär) */
#suggest-ai-button { /* Sekundär knapp */
    background-color: rgba(255, 255, 255, 0.1); 
    color: #eee; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5em 1em; /* Mindre padding */
    font-size: 0.95rem;
    font-weight: 500; 
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 140px; /* Fast bredd? */
}
#suggest-ai-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

#search-spotify-button { /* Primär knapp */
    background-color: #ff7e3e; 
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5em 1em; /* Mindre padding */
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
     width: 140px; /* Fast bredd? */
}
#search-spotify-button:hover {
     background-color: #e66a2e;
}

/* Anpassa inputbredd i addSongDiv */
#add-song-input {
     width: calc(100% - 300px); /* Bredd = 100% - båda knapparnas bredd - marginaler */
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.3);
     color: white;
     border-radius: 20px; 
     padding: 0.5em 1em;
     font-size: 0.95rem;
     outline: none;
}
#add-song-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Knappar i frågevyn - NU INUTI options div */
.question-generator-options button {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 12px; /* Lite mer padding för pillerform */
    font-size: 0.85rem;
    border-radius: 50px; /* Pillerform */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Behåll stilar för generate-btn och write-btn som de var */
.generate-btn { /* Sekundär stil */
     background-color: rgba(255, 255, 255, 0.1); 
     color: #eee; 
     border: 1px solid rgba(255, 255, 255, 0.3);
}
.generate-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.write-btn { /* Primär stil */
    background-color: #ff7e3e; 
    color: white;
    border: none;
}
.write-btn:hover {
    background-color: #e66a2e;
}

/* Styling för den nya huvudknappen */
.add-question-btn {
    /* Den ärver .write-btn stilen (orange), vi lägger bara till pillerform */
    border-radius: 50px;
    padding: 6px 15px; /* Anpassa padding om nödvändigt */
    font-size: 0.9rem; /* Kanske lite större? */
    display: block; /* Block för att kunna centrera? Eller inline-block? */
    margin-left: auto; /* Försök centrera om den är block */
    margin-right: auto;
    /* Lägg till margin-top direkt i JS? Eller här? */ 
}

/* CSS för spinner (kan flyttas till head eller css-fil) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Lägg till i public/style.css */
.question-item {
    display: flex;
    /* flex-wrap: wrap; */ /* Behåll utkommenterat för nu, eller ta bort om du inte vill ha wrap alls initialt */
    align-items: center; /* Centrera vertikalt på raden */
    gap: 8px;
    padding: 10px 5px; /* Lite mer vertikal padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-item:last-child {
    border-bottom: none;
}

.question-checkbox {
    flex-shrink: 0;
    /* margin-top: 2px; */ /* Tas bort, align-items: center hanterar detta */
}

.question-text {
    flex-grow: 1; /* Tar upp allt tillgängligt utrymme till vänster */
    min-width: 100px; 
    text-align: left; /* Säkerställ vänsterjustering */
}

/* NYTT: Container för svarsdelen och knappar för högerjustering */
.answer-actions-group {
    display: flex;
    align-items: center;
    gap: 5px; /* Mellanrum inom gruppen */
    margin-left: auto; /* Detta skjuter gruppen till höger */
    flex-shrink: 0; /* Förhindra att gruppen krymper */
}

.answer-label,
.answer-text {
    /* display: none; */ /* Synlighet styrs av JS */
    color: #ccc;
    font-size: 0.9em;
    /* flex-shrink: 0; sköts av .answer-actions-group nu */
}

.lock-icon {
    margin-left: 5px; 
    cursor: help;
}

.edit-btn, .save-btn, .cancel-btn {
    background: none;
    border: none;
    color: #eee; /* Grundfärg */
    cursor: pointer;
    font-size: 1.1em;
    /* margin-left: auto; Tas bort, .answer-actions-group sköter högerjustering */
    padding: 2px 5px;
    flex-shrink: 0; /* Viktigt */
}

.edit-btn:hover { color: #fff; }
.save-btn { color: #28a745; }
.save-btn:hover { color: #218838; }
.cancel-btn { margin-left: 5px; color: #dc3545; }
.cancel-btn:hover { color: #c82333; }

/* Media query för mindre skärmar (valfritt) */
@media (max-width: 700px) { /* Justera brytpunkt efter behov */
    .question-item {
        flex-wrap: wrap; /* Tillåt wrapping */
    }
    .answer-actions-group {
        margin-left: 0; /* Ta bort auto-margin så den inte är låst till höger när den wrappar */
        flex-basis: 100%; /* Ta full bredd när den wrappar */
        justify-content: flex-start; /* Eller center/flex-end beroende på önskad look */
        margin-top: 5px; /* Lite utrymme när den hamnar under frågan */
    }
}

.fake-answers {
    flex-basis: 100%; /* Ta full bredd */
    margin-left: 28px; /* Indrag motsvarande checkbox + gap */
    margin-top: 5px;
    list-style: none; 
    padding-left: 20px; 
    font-size: 0.9em; 
    opacity: 0.8;
}

.question-text[contenteditable="true"].editing,
.answer-text[contenteditable="true"].editing {
    background-color: rgba(255, 255, 255, 0.1);
    outline: 1px dashed #ff7e3e; 
    padding: 2px 4px;
    margin: -2px -4px; 
    border-radius: 3px;
}

/* Styles for Terms Links (now in Footer) */
#terms-links-container {
    text-align: center;
    margin: 3em 0 1em 0; /* Mer marginal uppåt, mindre nedåt */
    padding-top: 1em; /* Lite utrymme ovanför */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Tunn linje ovanför */
    font-size: 0.85em; /* Lite mindre text */
    width: 100%;
}

#terms-links-container a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
}

#terms-links-container a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Styles for Terms Modal */
#terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    display: flex; /* Using flex for centering */
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top */
    /* display: none; /* Controlled by JS */
}

#terms-modal-content {
    background-color: #3a1a4a; /* Darker purple */
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto; /* Scroll if content overflows */
    position: relative; /* For positioning the close button */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #eee; /* Lighter text for contrast */
}

#terms-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
}

#terms-modal-close-btn:hover {
    color: #fff;
}

#terms-content-area {
    margin-top: 15px; /* Space below close button */
}

/* Basic styling for potential content within terms */
#terms-content-area h1,
#terms-content-area h2,
#terms-content-area h3 {
    color: #ff7e3e; /* Orange headers */
    margin-top: 1em;
    margin-bottom: 0.5em;
}

#terms-content-area p {
    margin-bottom: 1em;
}

#terms-content-area ul,
#terms-content-area ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Adjust as needed */
    padding: 4rem 2rem;
    background-color: #1a1a2e; /* Dark blue background */
    color: #ffffff;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1; /* Takes up available space */
    max-width: 600px; /* Limit width */
    margin-right: 2rem; /* Space between text and image */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero-features li {
    margin-bottom: 0.5rem;
}

.hero-features li::before {
    content: '✓';
    color: #4CAF50; /* Green checkmark */
    margin-right: 0.5rem;
}

.hero-image-container {
    flex-shrink: 0; /* Prevent image container from shrinking */
    /* Removed background-color: #1a1a2e; */
    /* Add other styles like padding or border if needed */
}

.hero-image-container img {
    max-width: 250px; /* Adjust size as needed */
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: slightly rounded corners */
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Stack content and image */
        text-align: center;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    .hero-image-container {
        margin: 0 auto; /* Center image */
    }
} 

/* Override conflicting background on mascot from style2.css */
.hero-mascot {
    background-color: transparent !important;
} 

/* NYTT eller att VERIFIERA för blur och lås */
.blurred-answer {
    filter: blur(4px); /* Justera styrkan på blurret efter behov */
    user-select: none; /* Förhindra att användaren kan markera den blurrade texten */
    cursor: default; /* Visa inte textmarkör över blurrat svar */
    transition: filter 0.2s ease-out; /* Mjuk övergång om blur tas bort */
}

.lock-icon {
    margin-left: 5px; /* Lite utrymme mellan svar och låsikon */
    cursor: help; /* Kan indikera att mer info finns (t.ex. "Köp för att se") */
}
/* SLUT NYTT eller att VERIFIERA */

/* Styles for Terms Links (now in Footer) */
#terms-links-container {
    text-align: center;
    margin: 3em 0 1em 0; /* Mer marginal uppåt, mindre nedåt */
    padding-top: 1em; /* Lite utrymme ovanför */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Tunn linje ovanför */
    font-size: 0.85em; /* Lite mindre text */
    width: 100%;
}

#terms-links-container a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
}

#terms-links-container a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Styles for Terms Modal */
#terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    display: flex; /* Using flex for centering */
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top */
    /* display: none; /* Controlled by JS */
}

#terms-modal-content {
    background-color: #3a1a4a; /* Darker purple */
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto; /* Scroll if content overflows */
    position: relative; /* For positioning the close button */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #eee; /* Lighter text for contrast */
}

#terms-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
}

#terms-modal-close-btn:hover {
    color: #fff;
}

#terms-content-area {
    margin-top: 15px; /* Space below close button */
}

/* Basic styling for potential content within terms */
#terms-content-area h1,
#terms-content-area h2,
#terms-content-area h3 {
    color: #ff7e3e; /* Orange headers */
    margin-top: 1em;
    margin-bottom: 0.5em;
}

#terms-content-area p {
    margin-bottom: 1em;
}

#terms-content-area ul,
#terms-content-area ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Adjust as needed */
    padding: 4rem 2rem;
    background-color: #1a1a2e; /* Dark blue background */
    color: #ffffff;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1; /* Takes up available space */
    max-width: 600px; /* Limit width */
    margin-right: 2rem; /* Space between text and image */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero-features li {
    margin-bottom: 0.5rem;
}

.hero-features li::before {
    content: '✓';
    color: #4CAF50; /* Green checkmark */
    margin-right: 0.5rem;
}

.hero-image-container {
    flex-shrink: 0; /* Prevent image container from shrinking */
    /* Removed background-color: #1a1a2e; */
    /* Add other styles like padding or border if needed */
}

.hero-image-container img {
    max-width: 250px; /* Adjust size as needed */
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: slightly rounded corners */
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Stack content and image */
        text-align: center;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    .hero-image-container {
        margin: 0 auto; /* Center image */
    }
} 
    /* I public/style.css */
    #music-song-list li:nth-child(odd) {
        background-color: rgba(255, 255, 255, 0.05); /* Din nuvarande färg, eller en variant */
    }
    #music-song-list li:nth-child(even) {
        background-color: rgba(255, 255, 255, 0.08); /* En lite annorlunda nyans */
    }

/* Override conflicting background on mascot from style2.css */
.hero-mascot {
    background-color: transparent !important;
} 

/* Styling för piller-knappar */
.pill-button {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px; /* Pillerform */
  border: 1px solid #ccc;
  background-color: #555;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.pill-button:hover {
  background-color: #777;
}

/* Styling för "danger"-varianten (t.ex. Ta bort alla) */
.pill-button.danger {
  background-color: #a52a2a; /* Mörkröd, justera efter önskemål */
  border-color: #8b0000;
}

.pill-button.danger:hover {
  background-color: #bf4a4a; /* Lite ljusare röd */
}

/* Styling för fake answers editor */
.fake-answers-editor {
  position: relative; 
  display: inline-block; 
  align-self: flex-start; /* NY RAD: Förhindrar att den sträcks ut i flex-kolumn */
  margin-top: 8px;
  padding: 15px 25px 15px 15px; 
  border: 1px dashed #555;
  border-radius: 4px;
  text-align: left;
  min-width: 200px; 
}

.editable-fake-answer-item {
  margin-bottom: 4px;
}

.editable-fake-answer-item span[contenteditable="true"] {
  border: 1px solid #444;
  padding: 2px 4px;
  min-width: 150px; /* Öka minimibredd för svaren lite? */
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05); /* Liten bakgrund för tydlighet */
}

/* Styling för [X] stängningsknappen */
.close-fake-editor-btn {
  position: absolute;
  top: 2px; /* Justera för exakt placering */
  right: 5px; /* Justera för exakt placering */
  background: none;
  border: none;
  color: #ccc; /* Grå färg */
  font-size: 1.6em; /* Större kryss */
  font-weight: bold;
  line-height: 1; /* Förhindra extra höjd */
  padding: 0; /* Ta bort default padding */
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-fake-editor-btn:hover {
  color: #fff; /* Vit vid hover */
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Centrera */
}

/* --- NYTT FÖR YOUTUBE-SPELARE --- */
.play-song-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
}

.play-song-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.play-song-button svg {
    width: 20px;
    height: 20px;
    fill: #f0f0f0;
}

.youtube-player-container {
    margin-top: 10px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.youtube-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.mini-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

/* Slut nytt för youtube */