/* 1. GLOBALNI FIX - Primjenjujemo border-box na sve (ovo rješava problem poravnanja) */

*, *::before, *::after {

    box-sizing: border-box;

}


/* FONT REGISTRATION */
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: italic; font-weight: 400; font-display: swap;
    src: url('/fonts/inter-v20-latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: italic; font-weight: 700; font-display: swap;
    src: url('/fonts/inter-v20-latin_latin-ext-700italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Winky Sans';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('/fonts/winky-sans-v3-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Winky Sans';
    font-style: normal; font-weight: 700; font-display: swap;
    src: url('/fonts/winky-sans-v3-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
    font-family: 'AmaranthCustom';
    src: url('/fonts/Amaranth-Bold.otf') format('opentype');
    font-weight: bold;
}

:root {
    --main-bg-color: #dfe4ea; 
    --main-bg-image: url('https://tekstovi.net/img/texture.jpg');
    --body-bg-color: #e2e2e2;
    --text-color: #1a4b8c; 
    --description-text: #5c7089;
    --header-bg: #1f6291;
    --main-border: #1f6291;
    --header-bg-image: url('https://tekstovi.net/img/back_blue_mob.jpg');
    --header-text: #e2e8f0; 
    --header-accent: #2279e3;
    --exp-menu-bg: #1f6291;
    --v-shadow: rgba(0,0,0,0.3);
    --card-bg: rgba(255, 255, 255, 0.5);
    --menu-hover-bg: rgba(255, 255, 255, 0.15);
    --scrollbar-thumb: #1f6291;
    --scrollbar-track: rgba(0,0,0,0.05);
    /* --- NOVO: Varijable za formu komentara --- */
    --page-bg: var(--card-bg); /* Forma će koristiti providnu bijelu kao pozadinu */
    --page-text: var(--text-color);
    --page-sub: var(--description-text);
    --border-color: rgba(0,0,0,0.1); /* Blaga linija za odvajanje komentara */
    --accent-color: var(--header-accent);
	--loged-in-bg: #ffffff;
	--user-status-bg: #37373b;
	--header-height: clamp(25px, 11vw, 65px); /* Bilo 36px */
	--status-bar-height: clamp(24px, 7vw, 32px); /* NOVO: Fluidna visina statusne trake */
}

/* Skrivanje reCAPTCHA značke */
.grecaptcha-badge { 
	visibility: hidden !important;  
}

/* TYPOGRAPHY LOGIC */
html {
    font-size: 16px; 
    -webkit-text-size-adjust: none !important; /* Blokira Samsung/Chrome sistemsko uvećanje */
    text-size-adjust: none !important;
}

@media (min-width: 800px) {
    html {
        /* Vraćamo fluidnost samo za veće ekrane (desktop) kako bi dizajn ostao responzivan */
        font-size: clamp(15px, 1.2vw + 8px, 17px);
    }
}

body.dark-mode {
    --main-bg-color: #191b1f; --main-bg-image: none; 
    --body-bg-color: #000000; --text-color: #cbd5e0; 
    --header-accent: #cbd5e0; --description-text: #a0aec0;
    --main-border: #454647;
    --card-bg: rgba(255, 255, 255, 0.05);
    --menu-hover-bg: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb: #454647;
    --scrollbar-track: rgba(255,255,255,0.05);
    /* --- NOVO: Varijable za formu komentara u Dark Modeu --- */
    --page-bg: var(--card-bg);
    --page-text: var(--text-color);
    --page-sub: var(--description-text);
    --border-color: rgba(255,255,255,0.1);
    --accent-color: var(--header-accent);
	--loged-in-bg: #1e1e1e;
}

body { font-family: 'Inter', sans-serif; background-color: var(--body-bg-color); margin: 0; line-height: 1.8; color: var(--text-color); }

/* --- CUSTOM SCROLLBAR --- */
.scroll-list::-webkit-scrollbar { width: 6px; }
.scroll-list::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 10px; }
.scroll-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
.scroll-list::-webkit-scrollbar-thumb:hover { background: var(--header-accent); }

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-height); /* BILO JE 41px */
    background-color: var(--header-bg); background-image: var(--header-bg-image);
    z-index: 2000; display: flex; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%;
}

main {
    background-color: var(--main-bg-color); background-image: var(--main-bg-image);
    max-width: 900px; margin: 0 auto; display: flow-root; 
    padding-top: var(--header-height); /* BILO JE 41px */
}

.nav-container { 
    width: 100%; 
    /* BILO JE: padding: 0 20px; */
    padding: 0 clamp(10px, 4.5vw, 20px); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-sizing: border-box; 
}
.logo-wrapper { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-text); }
.logo-text { 
    font-family: 'Winky Sans', sans-serif; 
    font-weight: 700;  
    font-size: clamp(12px, 5.5vw, 30px) !important; /* Spušten minimum */
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    max-height: 9999px;
    /* DODANO: Sprečava vertikalno rastezanje i sistemsko uvećavanje */
    line-height: 1 !important;
    display: inline-block;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
}
.logo-desktop { display: none; }
.logo-mobile { display: inline; }

.nav-actions { 
    display: flex; 
    align-items: center; 
    /* BILO JE: gap: 15px; */
    gap: clamp(8px, 3.5vw, 15px); 
} 
.mobile-nav-toggle { 
    display: block; 
    border: 1px solid rgba(255,255,255,0.2) !important; 
    padding: 2px clamp(2px, 1.5vw, 8px); 
    border-radius: 4px; 
    font-size: clamp(12px, 5vw, 30px) !important; /* Spušten minimum */
    background: transparent; 
    color: var(--header-text); 
    cursor: pointer; 
    max-height: 9999px;
    line-height: 1.2 !important; /* Štiti od rastezanja menija */
}

.menu-links {
    display: none; position: fixed; top: var(--header-height); 
    right: 0; width: 250px; background-color: var(--exp-menu-bg);
    flex-direction: column; 
    padding: 0; /* 🛑 UKLONJENO: padding: 20px 0; */
    gap: 0;     /* 🛑 UKLONJENO: gap: 15px; */
    border-bottom-left-radius: 10px; box-shadow: -5px 5px 15px rgba(0,0,0,0.2); z-index: 2001;
    overflow: hidden; /* 🛑 NOVO: Odsijeca hover pozadinu da ne prelazi preko zaobljenih ivica menija */
}

.menu-links.is-open { display: flex; }
.menu-links a { text-decoration: none; color: var(--header-text); font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 10px 20px; width: 100%; box-sizing: border-box; transition: background 0.2s; }

/* 🛑 PROMIJENJENO: Boja fonta na hover sada ostaje bijela, a ne crna */
.menu-links a:hover, .menu-links a:focus { background-color: var(--menu-hover-bg); color: #ffffff; outline: none; }


/* --- USER STATUS BAR (Izvan headera) --- */
.user-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--user-status-bg);
    color: var(--header-text);
    
    /* NOVO: Zaključavamo tačnu visinu i stavljamo vertikalni padding na 0 jer flexbox sam centrira */
    height: var(--status-bar-height);
    padding: 0 10px;
    
    font-size: clamp(9px, 3.2vw, 14px) !important; 
    line-height: 1.2 !important; 
    width: 100%;
    box-sizing: border-box;
}

.user-status-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.status-left .status-username {
    font-weight: 700;
    text-decoration: underline;
}

.status-left .status-username:hover {
    color: #63b3ed; /* 🛑 PROMIJENJENO: Lijepa svijetlo plava nijansa prilagođena tekstu */
}

.status-left .status-role {
    opacity: 0.7;
    margin-left: 2px;
}

.status-right .status-logout {
    font-weight: 700;
    color: #ff7675;
    padding-left: 10px;
}

.status-right .status-logout:hover {
    color: #d63031;
    text-decoration: underline;
}

.theme-toggle, .login-toggle { background: transparent !important; border: none; cursor: pointer; color: var(--header-text); display: flex; align-items: center; justify-content: center; outline: none; }

/* --- STATUS INDIKATOR (Pulsirajući efekt) --- */
.login-toggle { 
    position: relative; 
    transition: color 0.3s ease; 
}

.login-toggle.is-logged-in {
    color: #22c55e !important; /* Svjetlija, vidljivija zelena */
}

/* Pulsirajući indikator bez bordera */
.login-toggle.is-logged-in::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
    pointer-events: none;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.search-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.theme-icon-svg, .nav-icon-svg { 
    width: clamp(14px, 6vw, 30px); /* Spušten minimum */
    height: clamp(14px, 6vw, 30px); 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2.2; 
    display: block; 
}


/* --- VIDEO --- */
.video-container { width: 90%; max-width: 480px; margin: 15px auto; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; position: relative; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; }

.video-placeholder { 
    width: 100%; 
    height: 100%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

@media (max-width: 799px) and (orientation: portrait) {
    .video-container.expanded { 
        width: 100vw; 
        max-width: 100vw; 
        margin: 0; 
        border-radius: 0; 
        position: sticky; 
        top: var(--header-height); /* BILO JE 41px */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    }
}

.shrink-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(0,0,0,0.5); color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: none; cursor: pointer; z-index: 1002; font-size: 0.9rem; align-items: center; justify-content: center; } 
.video-container.expanded .shrink-btn { display: flex; }

.video-placeholder img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.85; 
    position: absolute; 
    top: 0; 
    left: 0; 
}

.play-button { 
    position: relative; 
    z-index: 10; 
    width: 50px; 
    height: 35px; 
    background: rgba(255,0,0,0.9); 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.play-button svg { width: 20px; height: 20px; }
.video-container iframe { width: 100%; height: 100%; border: none; }

/* --- LYRICS & DESCRIPTION --- */
.lyric-wrapper { max-width: 900px; margin: 0 auto; text-align: center; } 

.artist-name { 
    display: block; 
    color: var(--header-accent); 
    font-weight: 700; 
    /* Preuzimamo potpuno istu formulu od .artist-page-title */
    font-size: clamp(19px, 7.5vw, 27px); 
    margin: 15px 0 10px 0; 
    padding: 0 15px; 
}

/* 🛑 Gađamo direktno link unutar imena i ubijamo defaultno ponašanje 🛑 */
.artist-name a {
    color: inherit; /* Naređujemo linku da preuzme boju od roditelja (var(--header-accent)) */
    text-decoration: none; /* Ukidamo podvlačenje */
    transition: opacity 0.2s ease; /* Dodajemo samo blagi prelaz za hover efekat ispod */
}

.artist-name a:hover {
    color: inherit; /* Osiguravamo da se boja ne mijenja ni kada se pređe mišem */
    text-decoration: underline !important;
    opacity: 0.8; /* Mali vizuelni feedback da je element klikabilan, bez narušavanja dizajna */
}

/* Diskretni prikaz gostujućih izvođača ispod glavnog imena */
.guest-artists {
    display: block;
    color: var(--description-text); /* Koristi sivkastu boju opisa */
    font-size: clamp(13px, 3.8vw, 16px);
    font-style: italic;
    font-weight: 600;
    margin-top: -8px; /* Povuče tekst bliže glavnom izvođaču */
    margin-bottom: 10px;
    padding: 0 15px;
}

/* 🛑 Apsolutno ubijanje svih oblika podvlačenja za linkove gostiju 🛑 */
.guest-artists a,
.guest-artists a:link,
.guest-artists a:visited,
.guest-artists a:active {
    color: inherit !important;
    text-decoration: none !important;
    -webkit-text-decoration-line: none !important; /* Za starije Safari/Chrome verzije */
    border-bottom: none !important; /* Ubija podvlačenje ako je simulirano ivicom */
    box-shadow: none !important;
    transition: color 0.2s ease;
}

.guest-artists a:hover,
.guest-artists a:focus {
    color: var(--text-color) !important;
    text-decoration: underline !important;
}

h1 { 
    /* BILO JE: font-size: 1.3rem; */
    font-size: clamp(18px, 5.5vw, 24px); 
    margin: 0 0 10px 0; 
    padding: 0 10px; 
}

.lyrics { 
    white-space: pre-line; 
    /* Tekst uvijek zauzima tačno 4.3% širine ekrana. 
       Clamp sprječava da tekst postane ogroman ako korisnik okrene mobitel vodoravno! */
    font-size: clamp(14px, 4.3vw, 17px) !important; 
    text-align: center; 
    padding: 0 15px; 
    max-height: 999999px; /* Zaštita od Chrome Font Boostinga */
	line-height: 1.4 !important;
	/* NOVO: Prisiljavamo pjesmu da odgurne sve ispod sebe za 50px */
    margin-bottom: clamp(20px, 8vw, 40px) !important;
}

.ai-description { 
    color: var(--description-text);  
    /* Opis zauzima tačno 3.5% širine ekrana */
    font-size: clamp(12px, 3.5vw, 14px) !important; 
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    max-height: 9999px;
    /* DODANO: Sprečava vertikalno rastezanje i sistemsko uvećavanje */
    line-height: 1 !important;
    margin-bottom: 15px; 
    padding: 0 15px; 
    max-height: 999999px;
	margin-bottom: clamp(20px, 8vw, 40px) !important;
}

.share-btn { 
    /* BILO JE: margin: 25px auto; padding: 12px 24px; (bez font-size i sa fixnim radiusom) */
    margin: clamp(15px, 5vw, 30px) auto; 
    display: block; 
    padding: clamp(8px, 3vw, 15px) clamp(16px, 6vw, 30px); 
    background: var(--header-accent); 
    color: white; 
    border: none; 
    border-radius: clamp(15px, 6vw, 30px); 
    font-size: clamp(13px, 4vw, 18px); /* NOVO: Kontrola veličine slova na dugmetu */
    font-weight: 700; 
    cursor: pointer; 
}

/* --- RECOMMENDATIONS --- */
.recommendations-container { margin-top: 40px; padding: 0 10px; text-align: left; margin-bottom: 40px; }
.rec-title {  font-family: 'Winky Sans', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid var(--main-border); padding-bottom: 5px; }
.rec-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.rec-card { 
    background: var(--card-bg); 
    padding: 16px; 
    border-radius: 8px; 
    text-decoration: none; 
    border: 1px solid rgba(0,0,0,0.05); 
    transition: transform 0.2s; 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    align-items: baseline; 
    gap: 0 6px; 
    overflow: hidden; 
}

.rec-card:hover { transform: translateY(-3px); border-color: var(--header-accent); }

.rec-artist { 
    font-size: 0.85rem; 
    color: var(--text-color);
    font-weight: 700; 
    margin-bottom: 6px; 
    max-width: 40%; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    flex-shrink: 0; 
}

.rec-song { 
    font-size: 0.85rem; 
    color: var(--text-color); 
    font-weight: 700; 
    margin-bottom: 6px; 
    flex: 1; 
    min-width: 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.rec-song::before {
    content: "- ";
    opacity: 0.7;
    font-weight: 400;
}

.rec-lyrics { 
    width: 100%; 
    font-size: 0.88rem; 
    color: var(--description-text); 
    line-height: 1.5; 
    white-space: normal; 
    margin: 0; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

/* --- LISTS --- */
.lists-container { display: flex; flex-direction: column; gap: 30px; padding: 0 10px; margin-bottom: 40px; text-align: left; }
.list-column { width: 100%; min-width: 0; }
.list-header-row { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--main-border); padding-bottom: 5px; margin-bottom: 15px; }
.list-title { font-family: 'Winky Sans', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 0; color: var(--text-color); }

.list-header-icon { width: 20px; height: 20px; color: var(--header-accent); margin-right: 25px; cursor: help; flex-shrink: 0; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.list-header-icon:hover { transform: scale(1.25) !important; color: var(--text-color); }
.fire-icon { color: #ff4500; }
@keyframes flameFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
.flame-animation { animation: flameFlicker 1.5s infinite ease-in-out; }

.scroll-list { background: var(--card-bg); border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }

.scroll-list a { 
    padding: 4px 12px 4px 4px; 
    text-decoration: none; 
    color: var(--text-color); 
    font-size: 0.88rem; 
    border-bottom: 1px solid rgba(0,0,0,0.03); 
    transition: background 0.2s; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px; 
    width: 100%; /* KRITIČNO: Sprječava rastezanje linka van okvira */
    box-sizing: border-box; /* KRITIČNO: Uračunava padding u širinu od 100% */
}

.scroll-list a:hover { 
    background: rgba(34, 121, 227, 0.1); 
    color: var(--header-accent); 
}

.list-date { font-size: 0.8rem; opacity: 0.7; padding-left: 10px; flex-shrink: 0; }

/* --- DODANO: Logika za rezanje dugih naziva --- */
.list-track-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    overflow: hidden;
    flex: 1; /* Zauzima sav preostali prostor do datum/pregledi kolone */
    min-width: 0; /* KRITIČNO: Dozvoljava flexboxu da odreže tekst umjesto da ga gura van ekrana */
}

.list-artist {
    max-width: 50%; /* Izvođač uzima maksimalno 50% prostora */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0; 
    font-weight: 400; 
}

.list-song {
    flex: 1; /* Pjesma uzima ostatak prostora */
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	font-weight: 400;
}

.list-song::before {
    content: "- "; /* Automatski dodaje crticu ispred pjesme */
    opacity: 0.7;
    font-weight: 400;
}

.list-date { font-size: 0.8rem; opacity: 0.7; padding-left: 10px; flex-shrink: 0; }

.mobile-only-legend { display: none; color: var(--description-text); font-style: italic; font-size: 0.8rem; margin-top: 8px; }

/* --- ALPHABET CHOOSER (A-Ž) --- */
.alphabet-chooser {
    margin: 0 auto 15px auto; 
    width: 100%;   
    max-width: 900px;
    background: var(--card-bg); 
    border-radius: 0; 
    border: 0px solid var(--main-border); 
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.alphabet-scroll-container {
    display: flex;
    justify-content: center; /* Centriramo slova na desktopu */
    align-items: center;
    flex-wrap: wrap; /* KLJUČNO: Dozvoljava prelamanje u novi red umjesto gnječenja */
    gap: 8px; /* Fiksni razmak između slova na desktopu */
    padding: 12px 15px; 
}

.alphabet-scroll-container::-webkit-scrollbar {
    display: none;
}

.alphabet-scroll-container a {
    text-decoration: none;
    color: #a03e36; 
    font-weight: 700;
    /* BILO JE: font-size: 0.75rem; padding: 4px 6px; */
    font-size: clamp(11px, 3.2vw, 14px);
    padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 10px);
    background: #f2f2f8; 
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

body.dark-mode .alphabet-scroll-container a {
    color: #d46365;
    background: rgba(255,255,255,0.08); 
}

.alphabet-scroll-container a:hover {
    background: #900000;
    color: #ffffff;
    text-decoration: none;
}

body.dark-mode .alphabet-scroll-container a:hover {
    background: #ff6b6b;
    color: #191b1f;
}

/* --- KOMENTARI SEKCIJA (MOBILNI PRIKAZ - BEZ OKVIRA) --- */
.comments-container {
    margin-top: 40px;
    padding: 0 10px; /* POPRAVAK 2a: Prilagođeno paddingu ostalih sekcija na mobitelu */
    margin-bottom: 40px;
    text-align: left; /* POPRAVAK 2b: OVO RJEŠAVA CENTRIRANJE! Sprječava preuzimanje centriranja od glavnog artikla */
}

/* Naslov komentara - vizualno identičan "Preporučeni tekstovi" naslovu */
.comments-title {
	font-family: 'Winky Sans', sans-serif; 
	font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--main-border);
    padding-bottom: 5px;
    color: var(--text-color);
    width: 100%; /* POPRAVAK 1: Tjerala liniju da popuni cijelu širinu div-a (flex kontejnera) */
    display: block;
}

/* --- FOOTER (1.0.11) --- */
.site-footer {
    max-width: 900px;
    margin: 30px auto 40px auto;
    padding: 0 20px;
    text-align: center;
    color: #8c9eb1; /* Diskretna siva boja za dnevni mod */
    font-size: 0.70rem; /* Veoma sitan i diskretan tekst */
    line-height: 1.6;
}

body.dark-mode .site-footer {
    color: #718096; /* Tamnija diskretna siva za dark mode */
}

.site-footer p {
    margin: 0 0 10px 0;
}

.site-footer .footer-copyright {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: inherit; /* Nasljeđuje sivu boju teksta */
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--header-accent);
    text-decoration: underline;
}

/* MOBILE OVERRIDES */
@media (max-width: 799px) { 
    .mobile-only-legend { display: block; } 
    
    .alphabet-scroll-container {
        justify-content: flex-start; 
        flex-wrap: nowrap; /* KLJUČNO: Gasi prelamanje i vraća horizontalni skrol za mobitel */
        gap: 8px;
        padding: 5px 15px; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
    }

    .alphabet-scroll-container a {
        /* BILO JE: font-size: 0.80rem; padding: 6px 10px; */
        font-size: clamp(12px, 3.8vw, 15px); 
        padding: clamp(5px, 1.5vw, 8px) clamp(8px, 2.5vw, 12px);
    }
	
	.user-status-bar {
        position: fixed;
        top: var(--header-height); /* BILO JE 41px */
        left: 0;
        z-index: 1999;
        border-top: 1px solid rgba(0,0,0,0.15);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* --- DESKTOP OVERRIDES --- */
@media (min-width: 800px) {
    body { padding-top: 20px; }
    header { position: static; height: auto; max-width: 900px; margin: 0 auto; border-radius: 20px 20px 0 0; border: 1px solid var(--main-border); }
    main { padding-top: 0; border-radius: 0 0 20px 20px; border: 1px solid var(--main-border); }
    
    .nav-container { flex-direction: column; justify-content: center; padding: 0; }
    .logo-wrapper { 
        justify-content: center; 
        width: 100%; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
        padding: 25px 0; /* BILO JE 6px 0 - povećajte ili smanjite broj 18 po želji! */
    }
    .logo-text { font-size: 1.85rem; }
    .logo-desktop { display: inline; } .logo-mobile { display: none; }
    
    .nav-content-row { display: flex; justify-content: center; align-items: stretch; width: 100%; min-height: 21px; padding: 0; position: relative; }
    .menu-links { display: flex !important; position: static; width: auto; background: transparent; flex-direction: row; gap: 0; padding: 0; box-shadow: none; border-radius: 0; }
    .menu-links a { font-size: 0.95rem; width: auto; padding: 0 20px; display: flex; align-items: center; white-space: nowrap; transition: background 0.2s; }
    
    .nav-actions { position: absolute; right: 0; display: flex; align-items: stretch; height: 100%; top: 0; gap: 0; }
    .theme-toggle, .login-toggle { display: flex !important; height: 100%; padding: 0 15px; transition: background 0.2s; }
    .theme-toggle:hover, .login-toggle:hover { background: var(--menu-hover-bg); color: #ffffff; }
    .theme-icon-svg, .nav-icon-svg { width: 18px; height: 18px; }
    .mobile-nav-toggle { display: none !important; }
	
	.user-status-bar {
        position: static;
        max-width: 900px;
        margin: 0 auto;
        border-left: 1px solid var(--main-border);
        border-right: 1px solid var(--main-border);
        border-top: 1px solid rgba(0,0,0,0.15);
        padding: 8px 20px;
        font-size: 0.85rem;
    }
	
    .video-container.expanded { max-width: 720px; }
    .rec-grid { grid-template-columns: 1fr 1fr; }
    
    .recommendations-container { padding: 0 15px; }
    .lists-container { flex-direction: row; gap: 20px; padding: 0 15px; }
    .list-column { flex: 1; min-width: 0; }

    /* Prekrasna kartica za komentare s hover efektom */
    .comments-container { 
        padding: 20px 25px; 
        background: var(--card-bg);
        border-radius: 12px; 
        border: 1px solid rgba(0,0,0,0.05);
        transition: transform 0.2s, border-color 0.2s;
        margin-left: 15px; /* Poravnanje margine sa gridom iznad */
        margin-right: 15px;
        text-align: left; /* Osiguranje za desktop prikaz */
    }

    .comments-container:hover {
        transform: translateY(-3px);
        border-color: var(--header-accent);
    }
	
	/* 🛑 Perfect 100% width fit for desktop 🛑 */
    .alphabet-scroll-container {
        justify-content: space-between; /* Distributes items from edge to edge */
        flex-wrap: nowrap !important; /* Prevents breaking into a second row */
        gap: 4px !important; /* Small, fixed gap between the letters */
    }

    .alphabet-scroll-container a {
        flex: 1; /* THE MAGIC: Forces all letters to expand and share the 100% space equally */
        text-align: center; /* Keeps the letter perfectly centered inside its new width */
        font-size: 13px !important;
        padding: 5px 0 !important; /* We remove left/right padding because flex:1 handles the width now */
        min-width: 0; /* Prevents flexbox from breaking the layout if it gets too tight */
    }
	
	/* 🛑 Prisiljavamo prvo dugme (0-9) da uzme više prostora 🛑 */
    .alphabet-scroll-container a:first-of-type {
        flex: 1.5 !important; 
    }
	
	/* 🛑 Sužavanje i centriranje AI opisa na desktopu 🛑 */
    .ai-description {
        width: 70%; /* Ograničava širinu na 70% kontejnera */
        margin: 0 auto 15px auto !important; /* 'auto' margine s lijeve i desne strane ga savršeno centriraju, a 15px ostavlja razmak ispod */
    }
}

/* --- SOCIAL CARD & TOAST --- */
#share-toast { display: none; margin: 20px auto; padding: 16px 25px; background: rgba(235, 87, 87, 0.08); color: #d63031; border: 2px solid #ff7675; border-radius: 12px; font-size: 0.95rem; font-weight: 700; text-align: center; max-width: 85%; line-height: 1.5; margin-bottom: 20px; animation: alertBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
body.dark-mode #share-toast { background: rgba(214, 48, 49, 0.15); color: #ff7675; border-color: #d63031; }
@keyframes alertBounce { 0% { transform: translateY(-15px); opacity: 0; } 50% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(0); } }


/* --- SONG STATS (Diskretni dizajn) --- */
.song-stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* BILO JE: gap: 15px; font-size: 0.75rem; */
    gap: clamp(10px, 3.5vw, 15px); 
    margin-top: 0;
    margin-bottom: 25px;
    color: #9aa7b8; 
    font-size: clamp(11px, 3.2vw, 14px); 
    font-weight: 600;
}

body.dark-mode .song-stats-container {
    color: #718096;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85; /* Lagano prozirno da ne iskače */
    transition: opacity 0.2s;
}

.stat-item:hover {
    opacity: 1;
}

/* Diskretniji emoji (ublažavanje jakih boja) */
.stat-item .emoji {
    filter: grayscale(60%) opacity(0.8); /* Ispire boje emojija da budu sivkastiji */
}

/* Stil za dugme objašnjenja (?) */
.stat-help-btn {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    /* BILO JE: width: 15px; height: 15px; font-size: 0.6rem; margin-left: -5px; */
    width: clamp(14px, 4vw, 18px);
    height: clamp(14px, 4vw, 18px);
    font-size: clamp(9px, 2.5vw, 11px);
    margin-left: clamp(-3px, -1vw, -5px);
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
    opacity: 0.6;
    padding: 0;
}

.stat-help-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

body.dark-mode .stat-help-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Kutija za pojašnjenje (sada prozirna i diskretna) */
.stat-explanation-box {
    display: none;
    background: transparent; 
    border-top: 1px dashed var(--main-border);
    border-bottom: 1px dashed var(--main-border);
    padding: 8px 15px;
    /* BILO JE: font-size: 0.75rem; */
    font-size: clamp(11px, 3.2vw, 14px);
    color: var(--description-text);
    margin: -15px auto 25px auto;
    max-width: 480px;
    text-align: center;
    line-height: 1.5;
}

.stat-explanation-box.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LYRIC SUBMITTER (Hvala...) & DATE --- */
.lyric-submitter {
    color: var(--text-color);
    font-size: clamp(14px, 4.3vw, 15px) !important;
    /* Povećan razmak: 40px minimum, raste do 70px zavisno od ekrana */
    margin: clamp(40px, 10vw, 70px) auto clamp(10px, 3vw, 20px) auto !important;
    width: 100%;
    display: block;
    text-align: center;
    max-height: 999999px; 
}

.lyric-submitter i,
.lyric-submitter strong {
    font-size: clamp(13px, 4.3vw, 15px) !important;
}

.lyric-date {
    color: var(--text-color);
    font-size: clamp(13px, 3.8vw, 15px) !important;
    /* Razmak: 15-25px iznad (od pošiljaoca), i 30-50px ispod (do dugmeta za share) */
    margin: clamp(15px, 4vw, 25px) auto clamp(30px, 8vw, 50px) auto !important;
    width: 100%;
    display: block;
    text-align: center;
    max-height: 999999px; 
}

.lyric-date time {
    font-size: clamp(13px, 3.8vw, 15px) !important;
}

/* Direktno gađamo time tag sa njegovom formulom */
.lyric-date time {
    font-size: clamp(13px, 3.8vw, 15px) !important;
}

/* --- ARTIST PAGE (inc_lyric_artist.php) --- */

.artist-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.artist-page-title {
    color: var(--header-accent);
    /* BILO JE: font-size: 1.8rem; */
    font-size: clamp(19px, 7.5vw, 27px);
    margin: 15px 0 10px 0;
}

/* 1. Statistika u koloni (red ispod reda) */
.artist-stats-container {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 4px; 
    margin-bottom: 35px;
    /* BILO JE: font-size: 0.85rem; */
    font-size: clamp(12px, 3.5vw, 15px);
    color: var(--text-color);
    font-weight: 600;
}

.artist-stats-container .stat-item.discreet {
    color: #9aa7b8;
    /* BILO JE: font-size: 0.8rem; */
    font-size: clamp(11px, 3.2vw, 14px);
}

body.dark-mode .artist-stats-container .stat-item.discreet {
    color: #718096;
}

.artist-stats-container .emoji {
    filter: grayscale(60%) opacity(0.8);
}

/* Lista Pjesama */
.artist-song-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 600px; 
}

.artist-song-list li {
    padding: 2px 10px; /* Minimalan unutrašnji razmak */
    margin: 0; /* Osigurava da nema vanjskih margina */
    line-height: 1.2; /* OVO JE KLJUČ: Poništava globalnih 1.8 i sužava redove! */
    border-bottom: none; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    transition: background-color 0.2s ease;
}

/* Razmak na svakih 10 pjesama (ostaje isto) */
.artist-song-list li.gap-after {
    margin-bottom: 22px; 
}

.artist-song-list li:hover {
    background-color: var(--card-bg); 
}

/* 3. Ukinut bold/strong font */
.artist-song-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400; /* Prebačeno na normalan font (nije bold) */
    /* BILO JE: font-size: 0.90rem; */
    font-size: clamp(13px, 3.8vw, 16px);
    transition: color 0.2s ease;
}

.artist-song-list a:hover {
    color: var(--header-accent);
    text-decoration: underline;
}

.song-views {
    color: #a0aec0;
    /* BILO JE: font-size: 0.70rem; */
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 400;
}

/* 5. Dizajn za video ikonicu */
.song-video-icon {
    width: 22px; /* Značajno veća ikonica */
    height: 22px; /* Proporcionalna visina */
    color: #a0aec0; /* Diskretna sivkasta, neće odvlačiti previše pažnje */
    display: flex; /* Flex omogućava savršeno centriranje */
    margin-top: -1px; /* Optičko poravnanje s tekstom */
    opacity: 0.8;
}

body.dark-mode .song-video-icon {
    color: #718096;
}

/* Hover efekt da ikonica lagano zasvijetli kad korisnik pređe preko reda */
.artist-song-list li:hover .song-video-icon {
    color: #cc0000; /* Prepoznatljiva YouTube crvena */
    opacity: 1;
}

/* --- ARTIST PAGE: Datum osveženja --- */
.artist-lastmod {
    text-align: center;
    color: #a0aec0; /* Diskretna sivkasta boja */
    /* BILO JE: font-size: 0.75rem; */
    font-size: clamp(11px, 3.2vw, 14px);
    margin-top: 10px;
    margin-bottom: 30px;
}

body.dark-mode .artist-lastmod {
    color: #718096;
}


/* --- ZAJEDNIČKI STIL ZA VIDEO IKONICE (Siva -> Crvena na hover) --- */
.song-video-icon {
    color: #a0aec0;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}
body.dark-mode .song-video-icon {
    color: #718096;
}

/* Hover efekti (Aktivira se kad pređete mišem preko reda u listi ili preko kartice preporuke) */
.scroll-list a:hover .song-video-icon,
.rec-card:hover .song-video-icon {
    color: #cc0000;
    opacity: 1;
}

/* --- NOVI OMOTAČ ZA PORAVNANJE U LISTI 100 --- */
.list-meta {
    display: flex;
    align-items: center;
    gap: 6px; /* Fiksni razmak između ikonice i datuma/pregleda */
    flex-shrink: 0;
    margin-left: 10px;
}

/* Fiksiramo širinu ikonice i nevidljivog placeholdera */
.list-meta .song-video-icon, 
.list-meta .icon-placeholder {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Poništavamo stari padding i fiksiramo širinu datuma da linija bude savršeno ravna */
.list-meta .list-date {
    min-width: 48px; /* Dovoljno prostora za brojeve tipa "30 865" */
    text-align: right;
    padding-left: 0 !important; 
}


/* =========================================
   STRANICA PRETRAGE & FORMA (Sistemski layout)
   ========================================= */

/* 1. Omotač cijele stranice (bez bočnog paddinga, kao lyric-wrapper) */
.search-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 40px;
}

.page-title {
    color: var(--header-accent);
    /* BILO JE: font-size: 1.4rem; */
    font-size: clamp(18px, 6vw, 25px);
    margin: 15px 0 20px 0;
    text-align: center;
    padding: 0 15px;
}

/* 2. Univerzalni kontejneri koji drže sadržaj u liniji sa listama (10px na mobitelu) */
.search-form-container,
.search-artists-section,
.search-songs-section {
    padding: 0 10px;
    margin: 0 auto 30px auto;
    max-width: 800px;
    box-sizing: border-box;
}

.search-form-container {
    margin-top: 20px;
}

/* 3. Sama Forma (100% širine kontejnera) */
.searchBox-modern {
    width: 100%;
    margin: 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

body.dark-mode .searchBox-modern {
    background: #1a202c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.searchBox-modern:hover {
    transform: translateY(-3px);
    border-color: var(--header-accent);
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

body.dark-mode .searchBox-modern:hover {
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #a0aec0;
}

.search-input-wrapper input {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px 12px 40px; 
    font-size: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

body.dark-mode .search-input-wrapper input {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

.search-input-wrapper input:focus {
    border-color: #3182ce;
}

.search-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #3182ce;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #2b6cb0;
}

.search-options-wrapper {
    display: flex;
    justify-content: center; /* DODANO: Centrira checkboxove */
    align-items: center;     /* DODANO: Poravnava checkboxove sa dugmetom po visini */
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap; 
}

/* =========================================
   MODAL ZA POMOĆ PRETRAGE I DUGME
   ========================================= */
.search-help-btn {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
    border: 1px solid rgba(49, 130, 206, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: 5px;
    outline: none;
}
.search-help-btn:hover {
    background: #3182ce;
    color: white;
    transform: scale(1.1);
}
body.dark-mode .search-help-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .search-help-btn:hover {
    background: #cbd5e0;
    color: #1a202c;
}

.search-help-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); /* Moderni zamućeni efekat pozadine */
}
.search-help-content {
    background: var(--body-bg-color);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    border: 1px solid var(--main-border);
    animation: modalFadeIn 0.3s ease;

}
body.dark-mode .search-help-content {
    background: var(--main-bg-color);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
	background-color: var(--main-bg-color); background-image: var(--main-bg-image);
}
body.dark-mode .search-help-header { border-bottom-color: rgba(255,255,255,0.1); }
.search-help-header h3 { margin: 0; color: var(--text-color); font-family: 'Winky Sans', sans-serif; font-size: 1.2rem; }
.close-search-help {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--description-text);
    line-height: 1;
    transition: color 0.2s;
}
.close-search-help:hover { color: #dc2626; }
.search-help-body {
    padding: 20px;
    overflow-y: auto;
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: left; /* 1. OVO CENTRIRANJE MIJENJA U LIJEVO PORAVNANJE */
	background-color: var(--main-bg-color); background-image: var(--main-bg-image);
}

/* 2. STILIZOVAN SCROLLBAR ZA MODAL (Kao u listi 100 najnovijih) */
.search-help-body::-webkit-scrollbar { 
    width: 6px; 
}
.search-help-body::-webkit-scrollbar-track { 
    background: var(--scrollbar-track); 
    border-radius: 10px; 
}
.search-help-body::-webkit-scrollbar-thumb { 
    background: var(--scrollbar-thumb); 
    border-radius: 10px; 
}
.search-help-body::-webkit-scrollbar-thumb:hover { 
    background: var(--header-accent); 
}

.search-help-body h4 { color: var(--header-accent); margin: 0 0 10px 0; font-size: 0.95rem; }
.search-help-body p { margin: 0 0 15px 0; }
.search-help-body ul { margin: 0 0 20px 0; padding-left: 20px; }
.search-help-body li { margin-bottom: 8px; }

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

body.dark-mode .custom-checkbox {
    color: #a0aec0;
}

/* 4. Alert poruke */
.alert-box {
    margin: 20px 10px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    max-width: 800px;
    box-sizing: border-box;
}
.alert-box.error { background: rgba(235, 37, 37, 0.1); color: #d63031; border: 1px solid rgba(214, 48, 49, 0.3); }
.alert-box.warning { background: rgba(243, 156, 18, 0.1); color: #e67e22; border: 1px solid rgba(243, 156, 18, 0.3); }

/* 5. Naslovi sekcija (Pronađeni tekstovi) */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* OVO GURA BROJ NA KRAJNJU DESNU STRANU */
    margin: 0 auto 15px auto;
    border-bottom: 1px solid var(--main-border);
    padding-bottom: 10px;
    max-width: 800px;
}
.section-header h3 { margin: 0; font-size: 1.2rem; color: var(--text-color); font-family: 'Winky Sans', sans-serif; font-weight: 700; }
.hit-count { background: var(--header-accent); color: white; padding: 2px 10px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }

/* Upozorenje za 100 rezultata (Prebačeno u poseban red ispod) */
.limit-warning-box {
    color: #e53e3e;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: right; /* Poravnato desno, ispod broja */
    margin: -10px auto 15px auto;
    max-width: 800px;
    display: block;
}

/* 6. Pjevači - Elegantna Lista (2 Kolone sa ... skraćivanjem) */
.artist-hits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forsira 2 jednake kolone svugdje */
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
body.dark-mode .artist-hits-list { border-color: rgba(255,255,255,0.05); }

.artist-hit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px; /* Malo manji padding da stane više teksta na mobitelu */
    color: var(--text-color);
    
	font-size: 0.85rem; /* <--- DODANO OVO: Smanjuje veličinu slova */
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s, color 0.2s;
    min-width: 0; /* KRITIČNO: Dozvoljava rezanje teksta unutar flex/grid elementa */
}

/* Dodajemo desnu ivicu na neparne elemente (prvu kolonu) da ih vizuelno odvojimo */
.artist-hit-row:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.05); }

/* Uklanjamo donju ivicu sa zadnjeg (i predzadnjeg) reda da ne ostane dupla linija na dnu okvira */
.artist-hit-row:last-child { border-bottom: none; }
.artist-hit-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }

body.dark-mode .artist-hit-row { border-bottom-color: rgba(255,255,255,0.05); }
body.dark-mode .artist-hit-row:nth-child(odd) { border-right-color: rgba(255,255,255,0.05); }

.artist-hit-row:hover {
    background: rgba(34, 121, 227, 0.1);
    color: var(--header-accent);
    text-decoration: none;
}

/* Magija za skraćivanje dugog imena izvođača (npr. "Halid Muslim..." umjesto prelamanja) */
.artist-hit-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* Gura strelicu skroz desno */
    padding-right: 8px; /* Mali razmak prije strelice */
}

.artist-hit-arrow {
    width: 16px;
    height: 16px;
    color: var(--description-text);
    opacity: 0.5;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0; /* KRITIČNO: Sprječava da dugo ime zgnječi strelicu */
}

.artist-hit-row:hover .artist-hit-arrow {
    color: var(--header-accent);
    opacity: 1;
    transform: translateX(3px);
}

/* 7. Pjesme - Kartice */
.song-hits-list { display: flex; flex-direction: column; gap: 12px; }
.song-hit-card { display: flex; gap: 15px; padding: 15px; background: var(--card-bg); border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
body.dark-mode .song-hit-card { border-color: rgba(255,255,255,0.05); }
.song-hit-card:hover { transform: translateY(-3px); border-color: var(--header-accent); }
.song-hit-card:hover .song-video-icon { color: #cc0000; opacity: 1; }
.hit-number { font-size: 1.2rem; font-weight: 700; color: var(--description-text); opacity: 0.5; padding-top: 2px; }
.hit-content { flex: 1; min-width: 0; }
.hit-title-row { display: flex; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.hit-title-row h4 { margin: 0; font-size: 0.9rem; color: var(--text-color); font-weight: 700; }
.song-hit-card:hover .hit-title-row h4 { text-decoration: underline; color: var(--header-accent); }
.hit-snippet { margin: 0; font-size: 0.8rem; color: var(--description-text); line-height: 1.5; }

/* =========================================
   8. RESPONSIVNOST PRETRAGE
   ========================================= */

/* Mobiteli */
@media (max-width: 600px) {
    .search-input-wrapper { flex-direction: column; align-items: stretch; }
    .search-input-icon { top: 12px; } 
    .search-btn { width: 100%; }
    
    /* 🛑 POPRAVAK: Prisiljavamo opcije da ostanu u jednom redu */
    .search-options-wrapper { 
        justify-content: center; 
        gap: clamp(4px, 1.5vw, 15px); /* Magično sužavanje razmaka samo na uskim ekranima */
        flex-wrap: nowrap; /* Zabranjuje prelamanje u novi red */
        width: 100%;
    }

    .custom-checkbox {
        font-size: clamp(10px, 2.8vw, 14px); /* Dinamički smanjuje slova da sve stane */
        gap: 4px; /* Sužava prostor između kvadratića i riječi */
        white-space: nowrap; /* Zabranjuje prelamanje teksta ispod kvadratića */
    }

    .search-help-btn {
        flex-shrink: 0; /* Zabranjuje gnječenje ovog dugmeta kada ponestane prostora */
        margin-left: 0; /* Poništavamo fiksni margin jer sada koristimo gap */
        width: 22px; /* Malo kompaktniji krug za mobitel */
        height: 22px;
        font-size: 0.8rem;
    }
}

/* Desktop & Tableti (Sinhronizacija paddinga sa ostalim listama) */
@media (min-width: 800px) {
    .search-form-container,
    .search-artists-section,
    .search-songs-section {
        padding: 0 15px; /* Povećava se margina na većim ekranima */
    }
    .alert-box {
        margin: 20px auto; 
    }
	
	/* =========================================
       IZVOĐAČI - 3 KOLONE NA DESKTOPU
       ========================================= */
    .artist-hits-list {
        grid-template-columns: repeat(3, 1fr); /* Forsira 3 kolone */
    }
    
    /* 1. Poništavamo mobilne vertikalne linije (svaka neparna) */
    .artist-hit-row:nth-child(odd) {
        border-right: none;
    }
    
    /* 2. Crtamo nove vertikalne linije samo na 1. i 2. koloni */
    .artist-hit-row:not(:nth-child(3n)) {
        border-right: 1px solid rgba(0,0,0,0.05);
    }
    body.dark-mode .artist-hit-row:not(:nth-child(3n)) {
        border-right-color: rgba(255,255,255,0.05);
    }
    
    /* 3. Vraćamo donje linije svima kako bismo prebrisali mobilna pravila */
    .artist-hit-row {
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    }
    body.dark-mode .artist-hit-row {
        border-bottom-color: rgba(255,255,255,0.05) !important;
    }
    
    /* 4. Precizno skidamo donju liniju SAMO sa onih koji čine zadnji red u 3-kolonskom gridu */
    .artist-hit-row:last-child,
    .artist-hit-row:nth-last-child(2):nth-child(3n+1),
    .artist-hit-row:nth-last-child(2):nth-child(3n+2),
    .artist-hit-row:nth-last-child(3):nth-child(3n+1) {
        border-bottom: none !important;
    }
}


/* =========================================
   STRANICA SA SLOVIMA (A-Ž)
   ========================================= */
.letter-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px 40px 15px;
}

.letter-page-title {
    color: var(--header-accent);
    font-size: clamp(35px, 10vw, 60px); /* Veliko dominantno slovo na vrhu */
    margin: 10px 0 0 0;
    font-family: 'Winky Sans', sans-serif;
    line-height: 1;
}

.letter-page-count {
    color: var(--description-text);
    font-style: italic;
    margin: 5px 0 30px 0;
    font-size: clamp(12px, 3.5vw, 15px);
}

/* =========================================
   STRANICA SA SLOVIMA (A-Ž)
   ========================================= */
.artist-grid-list {
    display: grid;
    /* 🛑 Fiksno 2 kolone za sve mobilne uređaje */
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    text-align: left;
}

.artist-grid-item {
    background: var(--card-bg);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.04);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .artist-grid-item {
    border-color: rgba(255,255,255,0.05);
}

.artist-grid-item:hover {
    background: rgba(34, 121, 227, 0.1);
    color: var(--header-accent);
    border-color: var(--header-accent);
    transform: translateY(-2px);
}

/* 🛑 PRELOM ZA MOBITEL: Dodajemo donji razmak nakon svakog 10. reda (20 elemenata) */
.artist-grid-item:nth-child(20n),
.artist-grid-item:nth-child(20n - 1) {
    margin-bottom: 25px;
}

/* =========================================
   DESKTOP PRAVILA (800px+)
   ========================================= */
@media (min-width: 800px) {
    .artist-grid-list {
        /* 🛑 Fiksno 4 kolone za desktop */
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 1. Poništavamo mobilne prelome */
    .artist-grid-item:nth-child(20n),
    .artist-grid-item:nth-child(20n - 1) {
        margin-bottom: 0;
    }
    
    /* 2. PRELOM ZA DESKTOP: Dodajemo razmak nakon svakog 10. reda (40 elemenata) */
    .artist-grid-item:nth-child(40n),
    .artist-grid-item:nth-child(40n - 1),
    .artist-grid-item:nth-child(40n - 2),
    .artist-grid-item:nth-child(40n - 3) {
        margin-bottom: 30px;
    }
}


/* =========================================
   POČETNA STRANICA (inc_lyric_first.php)
   ========================================= */
.home-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px 15px;
    text-align: center;
}

/* --- Hero Sekcija --- */
.home-title {
    color: var(--header-accent);
    font-size: clamp(22px, 6vw, 32px);
    font-family: 'Winky Sans', sans-serif;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.home-description {
    color: var(--description-text);
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

/* --- Statistika (Bedževi) --- */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

/* --- Statistika (Bedževi) --- */
.stat-badge {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--text-color);
    font-size: clamp(13px, 4vw, 15px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    
    /* 🛑 NOVO: Tranzicija za glatko animiranje svih promjena */
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: default; /* Promijenite u 'pointer' ako nekada odlučite da ovi bedževi vode na neku drugu stranicu */
}

body.dark-mode .stat-badge {
    border-color: rgba(255,255,255,0.05);
}

.stat-badge .emoji {
    font-size: 1.1em;
}

/* 🛑 NOVO: Hover efekat (Podizanje, blaga plava pozadina i sjenka) */
.stat-badge:hover {
    background: rgba(34, 121, 227, 0.08); /* Vrlo blaga nijansa vaše plave boje */
    color: var(--header-accent);
    border-color: rgba(34, 121, 227, 0.2);
    transform: translateY(-2px); /* Blago iskakanje prema gore */
    box-shadow: 0 6px 12px rgba(0,0,0,0.04);
}

/* Prilagođavanje hovera za tamnu temu */
body.dark-mode .stat-badge:hover {
    background: rgba(34, 121, 227, 0.15);
    border-color: rgba(34, 121, 227, 0.4);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

body.dark-mode .stat-badge {
    border-color: rgba(255,255,255,0.05);
}

.stat-badge .emoji {
    font-size: 1.1em;
}


/* =========================================
   GLOBALNA PRETRAGA (DUGME I MODAL)
   ========================================= */

/* Stil za ikonicu pretrage u glavnom meniju */
.search-toggle { 
    background: transparent !important; 
    border: none; 
    cursor: pointer; 
    color: var(--header-text); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    outline: none; 
    height: 100%;
    padding: 0 10px; /* Bliže ostalim ikonicama na mobitelu */
    transition: color 0.2s; 
}
.search-toggle:hover { color: var(--menu-hover-bg); }

@media (min-width: 800px) {
    .search-toggle { padding: 0 15px; } /* Više prostora na desktopu */
    .search-toggle:hover { background: var(--menu-hover-bg); color: #ffffff; }
}

/* Siva providna pozadina modala */
.global-search-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    z-index: 9997; /* Odmah ispod Help modala koji ima 9999 */
    display: flex; 
    align-items: flex-start; /* Pozicionira ga pri vrhu */
    justify-content: center;
    padding-top: clamp(60px, 15vh, 120px); /* Responzivni prostor od vrha */
    backdrop-filter: blur(5px);
}

/* Glavna bijela/crna kutija pretrage */
.global-search-content {
    background: var(--body-bg-color); 
    width: 95%; 
    max-width: 650px;
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--main-border);
    animation: modalSlideDown 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

body.dark-mode .global-search-content { 
    background: var(--main-bg-color); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

@keyframes modalSlideDown {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Zaglavlje modala sa X tipkom */
.global-search-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 20px; 
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background-color: var(--main-bg-color); 
}

body.dark-mode .global-search-header { border-bottom-color: rgba(255,255,255,0.08); }
.global-search-header h3 { margin: 0; color: var(--text-color); font-family: 'Winky Sans', sans-serif; font-size: 1.3rem; }
.close-global-search { font-size: 2rem; cursor: pointer; color: var(--description-text); line-height: 1; transition: color 0.2s; }
.close-global-search:hover { color: #dc2626; }

/* Prilagođavanje stare forme novom modalu (uklanjamo stare obrube) */
.global-search-content .searchBox-modern {
    box-shadow: none; 
    border: none; 
    background: transparent; 
    padding: 20px;
    margin: 0;
}

/* =========================================
   DINAMIČKI MENI (Desktop vs Mobile)
   ========================================= */

/* Po defaultu (na desktopu) skrivamo podnaslove sa brojem tekstova */
.nav-sub-text {
    display: none; 
}

/* Na mobilnim uređajima mijenjamo izgled linkova u meniju */
@media (max-width: 799px) {
    .menu-links a {
        flex-direction: column; 
        justify-content: center;
        text-align: center;
        padding: 16px 20px; /* 🛑 Povećan unutrašnji razmak kako bi dugmad bila prijatna za prst, sada kada nema "praznog prostora" */
        gap: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* 🛑 NOVO: Diskretna svjetlija linija između elemenata */
    }
    
    /* 🛑 NOVO: Uklanjamo liniju ispod zadnjeg elementa da ne bi udarala o kraj okvira */
    .menu-links a:last-child {
        border-bottom: none;
    }
    
    .nav-sub-text {
        display: block; 
        font-size: 0.85rem;
        font-weight: 400;
        opacity: 0.8;
    }
}

/* =========================================
   FORMULAR ZA DODAVANJE PJESME
   ========================================= */
.submit-lyric-wrapper { width: 100%; box-sizing: border-box; }

/* MOBILNI PRIKAZ (Default): 100% širina, bez zaobljenja i bez bočnih ivica */
.submit-lyric-wrapper .card { 
    background: var(--card-bg); 
    padding: 20px 15px;
    border-radius: 0;
    border: none;
    box-shadow: none; 
    margin-bottom: 20px; 
}

.submit-lyric-wrapper .row { display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px; }

/* TABLET (600px+): Dijeljenje Izvođača i Pjesme na 50-50 */
@media (min-width: 600px) { 
    .submit-lyric-wrapper .row { flex-direction: row; gap: 20px; } 
    .submit-lyric-wrapper .row > div { flex: 1; min-width: 0; } 
}

/* DESKTOP (800px+): Forma uzima 70% prostora, centrira se i dobija okvire */
@media (min-width: 800px) {
    .submit-lyric-wrapper {
        width: 70%; 
        margin: 0 auto;
    }
    .submit-lyric-wrapper .card {
        padding: 30px;
        border-radius: 12px;
        border: 1px solid var(--main-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
	/* DODANO: Hover efekat (Podizanje i boja okvira) */
    .submit-lyric-wrapper .card:hover {
        transform: translateY(-3px);
        border-color: var(--header-accent);
    }
}

.submit-lyric-wrapper label { font-weight: bold; font-size: 13px; color: var(--page-sub); margin-bottom: 4px; display: block; }
.submit-lyric-wrapper input[type="text"], .submit-lyric-wrapper input[type="email"], .submit-lyric-wrapper input[type="url"], .submit-lyric-wrapper input[type="file"], .submit-lyric-wrapper select, .submit-lyric-wrapper textarea { 
    width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 15px; box-sizing: border-box; font-family: inherit; background: var(--page-bg); color: var(--page-text); transition: 0.2s; 
}
.submit-lyric-wrapper input:focus, .submit-lyric-wrapper textarea:focus, .submit-lyric-wrapper select:focus { outline: none; border-color: var(--header-accent); box-shadow: 0 0 0 3px rgba(34, 121, 227, 0.1); }
.submit-lyric-wrapper textarea { min-height: 250px; resize: vertical; }

.submit-lyric-wrapper .audio-section { background: rgba(0,0,0,0.02); padding: 15px; border-radius: 8px; border: 1px dashed var(--border-color); margin-bottom: 15px; }
body.dark-mode .submit-lyric-wrapper .audio-section { background: rgba(255,255,255,0.02); }

.submit-lyric-wrapper .btn-submit { width: 100%; padding: 14px; background: var(--header-accent); color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer; margin-top: 10px; transition: 0.2s; }
.submit-lyric-wrapper .btn-submit:hover { filter: brightness(0.9); }
.submit-lyric-wrapper .btn-submit:disabled { opacity: 0.6; cursor: wait; }

/* Feedback & Alerts prilagođeni sajtu */
.submit-lyric-wrapper #lyricFeedback { font-weight: bold; padding: 15px; border-radius: 8px; display: none; margin-bottom: 20px; text-align: center;  font-size: clamp(13px, 4.3vw, 16px);}
.submit-lyric-wrapper .error { background: rgba(235, 37, 37, 0.1); border: 1px solid rgba(214, 48, 49, 0.3); color: #d63031; }
.submit-lyric-wrapper .success { background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); color: #16a34a; }
.submit-lyric-wrapper .info { background: rgba(49, 130, 206, 0.1); border: 1px solid rgba(49, 130, 206, 0.3); color: #3182ce; }

/* Duplicate Warning Box */
.submit-lyric-wrapper #duplicateWarningBox { background: rgba(243, 156, 18, 0.1); border: 2px solid #e67e22; padding: 20px; border-radius: 10px; margin-bottom: 20px; display: none; }
.submit-lyric-wrapper #duplicateWarningBox h4 { margin: 0 0 10px 0; color: #d35400; font-size: 18px; }
.submit-lyric-wrapper #duplicateWarningBox p { margin: 0 0 15px 0; color: var(--text-color); font-size: 14px; }
.submit-lyric-wrapper .duplicate-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.submit-lyric-wrapper .duplicate-list li { margin-bottom: 8px; }
.submit-lyric-wrapper .duplicate-list a { color: #d35400; font-weight: bold; text-decoration: none; }
.submit-lyric-wrapper .duplicate-list a:hover { text-decoration: underline; }
.submit-lyric-wrapper .dup-btn-group { display: flex; gap: 10px; }
.submit-lyric-wrapper .btn-cancel { flex: 1; padding: 12px; background: var(--page-bg); border: 1px solid #e67e22; color: #d35400; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.submit-lyric-wrapper .btn-force { flex: 1; padding: 12px; background: #e67e22; border: 1px solid #e67e22; color: white; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.submit-lyric-wrapper .char-counter { font-size: 11px; color: var(--page-sub); text-align: right; margin-top: -8px; margin-bottom: 10px; }


/* =========================================
   LYRIC ACTION BUTTONS (Story, Error, YT)
   ========================================= */
.lyric-actions-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows buttons to drop to a new line on very small screens */
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.lyric-actions-group .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 20px; /* Keeps the pill shape, but smaller */
    cursor: pointer;
    transition: all 0.2s ease;
    
    /* Light Mode Default Styling (Discreet) */
    background: rgba(0, 0, 0, 0.04);
    color: var(--page-text);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lyric-actions-group .action-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* =========================================
   DARK MODE OVERRIDES
   ========================================= */
body.dark-mode .lyric-actions-group .action-btn {
    /* Subtle semi-transparent white/gray for dark mode */
    background: rgba(255, 255, 255, 0.05);
    color: var(--page-sub, #cccccc);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .lyric-actions-group .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}


/* Prilagodba za mobitele - dodajemo malo više "disanja" tačkici */
@media (max-width: 799px) {
    .login-toggle.is-logged-in::after {
        top: 2px;    /* Pomaknuto malo niže */
        right: 2px;  /* Pomaknuto malo dalje od ruba */
        width: 7px;  /* Malo manja tačkica za mobitel da bude elegantnija */
        height: 7px;
    }
}