/* ==========================================================================
   1. USTAWIENIA GLOBALNE I BAZOWE
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f7fa;
    color: #333333;
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.header-container {
    margin-bottom: 10px;
    padding-bottom: 0;
}

h1 {
    color: #1a1a1a;
    font-size: 2.4em;
    margin: 0;
    line-height: 1.1;
}

.subtitle {
    color: #718096;
    font-size: 0.95em;
    font-weight: 500;
    margin-top: 2px;
    margin-bottom: 0;
}

h2 {
    color: #4a5568;
    font-size: 1.4em;
    margin-top: 20px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   2. UKŁAD LISTY UTWORÓW (INDEX)
   ========================================================================== */
ul {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

li {
    padding: 12px 20px;
    margin: 0;
    border-bottom: 1px solid #edf2f7;
}

li:last-child {
    border-bottom: none;
}

li:hover {
    background-color: #f8fafc;
}

.track-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #0066cc;
    display: inline-block;
    margin-bottom: 0;
}

.track-list-desc {
    font-size: 0.92em;
    color: #4a5568;
    margin-top: 2px;
    line-height: 1.4;
}

/* ==========================================================================
   3. TAGI
   ========================================================================== */
/* Kontener dla chmury tagów */
.tags-cloud-container {
    background-color: #edf2f7;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
}

/* Styl tagu jako elementu tekstowego w linii (strona główna) */
.tag-inline {
    color: #4a5568;
    font-size: 0.95em;
    font-weight: 500;
    display: inline;
    transition: color 0.15s ease;
}

.tag-inline:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Licznik utworów wewnątrz nawiasów w chmurze */
.tag-count {
    font-size: 0.85em;
    color: #718096;
    margin-left: 1px;
}

/* Podświetlenie aktywnego filtra w tekście chmury */
.active-tag-inline {
    color: #3182ce !important;
    font-weight: 700;
}

/* Klasyczne znaczniki tagów blokowych dla podstrony utworu (view_track) */
.tags {
    margin-top: 8px;
}

.tag {
    background-color: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 8px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.tag:hover {
    background-color: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
}

/* ==========================================================================
   4. ODTWARZACZ (VIEW TRACK)
   ========================================================================== */
.player-container {
    margin: 30px 0;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
    max-width: 100%;
}

.player-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   5. FORMULARZE I ELEMENTY INTERFEJSU
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #4a5568;
}

input[type="text"],
input[type="url"],
input[type="password"] {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
}

textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
    font-family: inherit;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

button {
    background-color: #dd6b20;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #c05621;
}

form[action*="delete"] button {
    background-color: #e53e3e;
}

form[action*="delete"] button:hover {
    background-color: #9b2c2c;
}

/* ==========================================================================
   6. PAGINACJA I FUNKCJE PANELU
   ========================================================================== */

/* ==========================================================================
   6. PAGINACJA I FUNKCJE PANELU
   ========================================================================== */

/* ==========================================================================
   6. PAGINACJA I FUNKCJE PANELU
   ========================================================================== */

/* ==========================================================================
   6. PAGINACJA I FUNKCJE PANELU
   ========================================================================== */
.pagination {
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
    font-size: 0.95em;
    color: #718096;
    display: block; 
    text-align: left;
}

/* Wygląd dla WSZYSTKICH linków w pasku (Zaloguj, Admin, Poprzednia, Następna) */
.pagination a {
    color: #0066cc;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 10px;
    display: inline !important;
    font-weight: 500;
}

.pagination a:hover {
    text-decoration: underline;
    color: #004499;
}

/* Pierwszy element (sekcja admina / link "Zaloguj") przylega do lewej krawędzi */
.pagination .nav-admin-sec {
    margin: 0;
    padding: 0;
    display: inline;
}

.pagination .nav-admin-sec a {
    margin-left: 0;
    margin-right: 10px;
    color: #718096;
}

/* Wygląd dla statycznego tekstu "Strona X z Y" */
.pagination span:not(.nav-admin-sec) {
    color: #718096;
    margin: 0 10px;
    display: inline;
}


