/* --- STILUL TĂU ORIGINAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Variabile CSS (ADĂUGATE/MODIFICATE) --- */
:root {
    --color-bg-dark: #1e1e2e; /* Fundalul tău principal */
    --color-card-dark: #121212; /* Fundalul modalului */
    --color-text-light: white; /* Text principal */
    --color-accent: #f72585; /* Culoarea Roz/Accent */
    --color-accent-hover: #d62174;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll; /* FIX: Asigură un singur scroll vertical */
    position: relative;
}

body.dark .top-20-title,
body.dark .song-title {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(247, 37, 133, 0.7);
}

body.dark .song-item {
    background: rgba(0, 0, 0, 0.3);
}

body.dark .media-player {
    box-shadow: 0 0 40px rgba(114, 9, 183, 0.8), 0 10px 20px rgba(0, 0, 0, 0.5);
}


/* --- SECTIUNEA DONAȚII --- */
.donation-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffebcc;
    color: black;
    border: 1px solid #ffa500;
    border-radius: 8px;
    padding: 15px 20px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 1000;
    display: block;
}

#inchideNotificare {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
}

.donate-button {
    background-color: #ffa500;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: center;
    transition: background-color 0.3s;
}

.donate-button:hover {
    background-color: #ff8c00;
}

.donation-box p {
    margin-bottom: 10px;
}
.donation-box a {
    color: var(--color-accent);
}

/* --- LAYOUT ȘI BACKGROUND --- */
.background {
    /* FIX: Ne asigurăm că prima pagină este vizibilă pe ecran */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
}

.logo {
    max-width: 300px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- MEDIA PLAYER (Compact) --- */
.media-player {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 380px;

    position: relative;
    margin: 40px auto 0 auto;

    z-index: 15;
    transition: box-shadow 0.5s ease;
}

.track-title {
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.play-button {
    background: linear-gradient(145deg, #f72585, #7209b7);
    border: none;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    margin: 0 auto 20px auto;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: linear-gradient(145deg, #b5179e, #560bad);
}

/* --- VOLUM (Slider Vizibil Permanent) --- */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.volume-icon {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0 5px;
}
.volume-icon:hover {
    color: #ff57a9;
    transform: scale(1.1);
}

/* Volume Bar */
input[type="range"] {
    -webkit-appearance: none;
    width: 70%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
    outline: none;
    cursor: pointer;
    margin: 0 10px;
}

/* Custom Thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.5);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    height: 15px;
    width: 15px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(247, 37, 133, 0.5);
    cursor: pointer;
    border: none;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: var(--color-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 999;
    top: -30px;
    transform: translateX(-50%);
}


/* --- TOP 20 (Două Coloane - Lățime Mărită) --- */

.top-20-section {
    padding: 50px;
    border-radius: 20px;
    color: white;
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-20-title {
    font-size: 30px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 10px;
}

.top-20-subtitle {
    font-size: 15px;
    color: white;
    text-align: center;
    margin-bottom: 25px;
}

.top-20-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.top-20-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 50%;
}

/* MODIFICARE: Fundal mai opac (0.15 în loc de 0.05) */
.song-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    font-size: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.15); /* MODIFICAT PENTRU OPACITATE */
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

/* MODIFICARE: Fundal mai opac la hover (0.2 în loc de 0.1) */
.song-item:hover {
    transform: translateY(-3px);
    background: rgba(247, 37, 133, 0.2); /* MODIFICAT PENTRU OPACITATE LA HOVER */
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.rank, .rank-1 {
    font-weight: 700;
    font-size: 24px;
    border-radius: 50%;
    height: 45px;
    min-width: 45px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    padding: 0;
}

.song-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

/* MODIFICARE: Titlul melodiilor scris cu majuscule */
.song-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light); 
    text-shadow: none;
    letter-spacing: 0.5px;
    text-transform: uppercase; /* NOU: TITLURI CU MAJUSCULE */
}

.artist {
    opacity: 0.7;
    font-size: 14px;
    text-transform: none;
    color: #ccc;
    margin-top: 2px;
}

.rank {
    background: #4cc9f0;
    color: black;
	font-col
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.rank-1 {
    background: #FFD700;
    color: #800020;
    box-shadow: 0 0 15px #FFD700;
}

.song-item.song-1 .song-title {
    color: #FFD700;
}


/* --- SCROLL ȘI DIVIDER --- */

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 20;
}

.arrow {
    font-size: 50px;
    color: white;
    animation: bounce 3s infinite;
    opacity: 1;
    stroke: 1;
}

.divider {
    width: 90%;
    max-width: 1000px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 50px auto;
    position: relative;
    z-index: 10;
}

/* FIX: Stelele pe toată pagina */
.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    animation: twinkle 1.5s infinite alternate;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    position: relative;
    width: 100%;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- ANIMATIA MODALULUI (BLOC NOU CORECTAT) --- */
@keyframes slideUpFadeIn {
    /* Starea inițială (înainte de afișare) */
    from {
        opacity: 0;
        transform: translateY(30px); /* Glisează de la 30px sub poziția finală */
    }
    /* Starea finală (la afișare) */
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }
    .media-player {
        width: 90%;
        max-width: 350px;
    }
    .top-20-section {
        padding: 20px;
    }
    .top-20-columns {
        flex-direction: column;
        gap: 15px;
    }
    .top-20-list {
        width: 100%;
    }
    .song-item {
        padding: 10px 15px;
    }
    .rank, .rank-1 {
        height: 35px;
        min-width: 35px;
        font-size: 20px;
        margin-right: 15px;
    }
    .song-title {
        font-size: 16px;
    }
    .artist {
        font-size: 13px;
    }
    .donation-box {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }
}
/* --- Modal (Fundalul Negru Opac) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    /* Modificat: Am mutat opacity și transition pe modal, nu pe conținut */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block; /* Afișare imediată pentru a putea începe tranziția opacity */
    opacity: 1;
}

/* --- Conținutul Formularului (Centrat) --- */
.modal-content {
    /* Folosim variabila de card-dark, dacă este definită */
    background-color: var(--color-card-dark, #121212);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    position: relative;
    /* Adăugat: Starea inițială pentru a pregăti animația */
    opacity: 0; 
    transform: translateY(30px);
}

/* APLICAREA ANIMAȚIEI CORECTE */
.modal.show .modal-content {
    /* Aplică animația doar când modalul are clasa 'show' */
    animation: slideUpFadeIn 0.4s ease-out forwards;
    /* Dezactivăm animația implicită pe .modal-content pentru a folosi @keyframes */
    transform: translateY(0); 
    opacity: 1;
}

/* --- Titlu și Detalii de Contact --- */
.modal-title {
    color: var(--color-accent);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.contact-details {
    font-size: 0.8em;
    color: #a0a0a0;
    margin-top: 10px;
    font-weight: 300;
}

.contact-details i {
    color: var(--color-accent);
    margin-right: 5px;
}

/* --- Butonul de Închidere --- */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

/* --- Formular și Inputuri --- */
.form-group {
    margin-bottom: 15px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: var(--color-text-light);
    font-size: 1em;
    transition: border-color 0.3s;
}

.modal-content textarea {
    resize: vertical;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

/* Butonul de Submit al Modalului */
.submit-btn-modal {
    width: 100%;
    padding: 12px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn-modal:hover {
    background-color: var(--color-accent-hover);
}

.message-status {
    margin-top: 10px;
    text-align: center;
}

/* Footer styles (Modificat) */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    position: relative;
    width: 100%;
}

/* Stiluri pentru containerul de conținut din footer (opțional, dar recomandat) */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    color: #999; /* Culoarea textului de copyright */
}

/* Stiluri pentru separatorul "|" */
.footer-content .separator {
    margin: 0 10px;
    color: #555;
}

/* Stiluri pentru link-ul de Contactează-ne (ID-ul pe care l-am setat anterior) */
#footer-contact-link {
    /* Starea implicită: Alb, fără subliniere */
    color: white; 
    text-decoration: none; /* Elimină sublinierea implicită */
    font-weight: 500; /* Îl face să iasă în evidență față de copyright */
    transition: color 0.3s ease; /* Pregătește animația de hover */
    cursor: pointer;
}

#footer-contact-link:hover {
    /* Starea la Hover: Roz (Culoarea ta accent) */
    color: var(--color-accent, #f72585);
}