#rg-song-archive * {
    box-sizing: border-box;
}

#rg-song-archive {
    width: 100%;
    margin: 0;
    background: #f0f2f6;
    color: #141720;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 16px;
    text-align: left;
}

#rg-song-archive .wrap {
    max-width: 1188px;
    margin: auto;
}

#rg-song-archive .top {
    background: #11131b;
    color: #fff;
}

#rg-song-archive .top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

#rg-song-archive .brand {
    font-weight: 900;
    line-height: .92;
    font-size: 24px;
    letter-spacing: -.8px;
    color: white;
    text-decoration: none;
    position: relative;
    padding-right: 35px;
}

#rg-song-archive .brand span {
    position: absolute;
    right: 0;
    top: 0;
    color: #dc1a35;
    font-size: 44px;
}

#rg-song-archive .back {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* STATEMENT */

#rg-song-archive .statement {
    background: #fff;
    color: #151515;
    border-left: 3px solid #d71920;
    text-align: left;
    font-weight: 650;
    padding: 13px 15px;
    font-size: clamp(14px, 2vw, 20px);
}

/* ZAGLAVLJE ARHIVE */

#rg-song-archive .hero {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 185px;
    padding: 22px 34px;
    color: #fff;
    background:
        radial-gradient(
            ellipse at 85% 40%,
            #9f1227 0,
            transparent 55%
        ),
        linear-gradient(
            110deg,
            #151019,
            #700b1a 45%,
            #16131a
        );
    overflow: hidden;
    position: relative;
}

#rg-song-archive .hero-art {
    width: 170px;
    flex: none;
}

#rg-song-archive .hero-art svg {
    display: block;
    width: 100%;
}

#rg-song-archive .hero-copy {
    position: relative;
}

#rg-song-archive .eyebrow {
    font-size: 16px;
    font-weight: 650;
}

#rg-song-archive .hero h1 {
    color: #fff;
    font-size: clamp(27px, 4.2vw, 49px);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 8px 0 12px;
}

#rg-song-archive .hero p {
    color: #fff;
    font-size: clamp(14px, 1.7vw, 18px);
    margin: 0;
    max-width: 780px;
    line-height: 1.5;
}

/* DATUMSKI GUMBI */

#rg-song-archive .filters {
    padding: 28px 24px 20px;
}

#rg-song-archive .days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

#rg-song-archive .day {
    border: 0;
    background: #e2e6ed;
    color: #171921;
    border-radius: 11px;
    padding: 12px 4px;
    min-height: 70px;
    font: inherit;
    cursor: pointer;
    margin: 0;
    letter-spacing: normal;
    text-transform: none;
    transition: background .15s, transform .15s;
}

#rg-song-archive .day:hover {
    background: #d4dae4;
}

#rg-song-archive .day.active {
    background: linear-gradient(135deg, #d51a35, #ad1028);
    color: white;
    box-shadow: 0 3px 9px #a51b3022;
}

#rg-song-archive .day:focus-visible,
#rg-song-archive select:focus-visible,
#rg-song-archive a:focus-visible {
    outline: 3px solid #e55c73;
    outline-offset: 3px;
}

#rg-song-archive .day strong,
#rg-song-archive .day span {
    display: block;
}

#rg-song-archive .day strong {
    font-size: clamp(13px, 1.6vw, 18px);
    font-weight: 750;
}

#rg-song-archive .day span {
    font-size: 14px;
    margin-top: 3px;
}

#rg-song-archive .short-day {
    display: none !important;
}

/* ODABIR SATA */

#rg-song-archive .hour-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#rg-song-archive .hour-row label {
    font-weight: 650;
}

#rg-song-archive .hour-row select {
    font: inherit;
    font-weight: 600;
    color: #171921;
    background: #fff;
    border: 1px solid #a9afbe;
    border-radius: 8px;
    padding: 10px 34px 10px 14px;
    min-height: 44px;
    width: auto;
    margin: 0;
}

/* REZULTATI PRETRAŽIVANJA */

#rg-song-archive .results {
    margin: 0 24px;
    background: #fff;
    border: 1px solid #dbe0e8;
    border-radius: 12px;
    padding: 0 14px;
    overflow: hidden;
    min-height: 100px;
}

#rg-song-archive .entry {
    display: grid;
    grid-template-columns: 92px 80px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 10px 12px;
    min-height: 100px;
}

#rg-song-archive .entry + .entry {
    border-top: 1px solid #e0e3e9;
}

/* VRIJEME EMITIRANJA */

#rg-song-archive .time {
    font-variant-numeric: tabular-nums;
    font-size: 19px;
    font-weight: 650;
}

#rg-song-archive .time small {
    display: block;
    font-size: 11px;
    color: #636976;
    font-weight: 500;
}

/* NASLOVNICE - DESKTOP 80 x 80 */

#rg-song-archive .cover {
    display: block;
    width: 80px;
    height: 80px;
    max-width: none;
    border-radius: 6px;
    object-fit: contain;
    background: #e4e7ed;
}

#rg-song-archive .fallback {
    display: grid;
    place-items: center;
    color: #697180;
    font-size: 27px;
}

/* NASLOV PJESME I IZVOĐAČ */

#rg-song-archive .track {
    min-width: 0;
    overflow-wrap: anywhere;
}

#rg-song-archive .track strong {
    display: block;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 750;
}

#rg-song-archive .track span {
    display: block;
    font-size: 15px;
    color: #505563;
    margin-top: 4px;
}

/* EMISIJE */

#rg-song-archive .program .track strong {
    color: #bf1730;
}

/* OBAVIJESTI */

#rg-song-archive .message {
    padding: 22px;
    text-align: center;
    color: #535969;
}

/* MOBITEL */

@media (max-width: 720px) {

    #rg-song-archive .top-inner {
        padding: 14px 16px;
    }

    #rg-song-archive .hero {
        gap: 12px;
        padding: 20px 14px;
        min-height: 150px;
    }

    #rg-song-archive .hero-art {
        width: 85px;
    }

    #rg-song-archive .eyebrow {
        font-size: 12px;
    }

    #rg-song-archive .hero h1 {
        font-size: 27px;
        letter-spacing: -.7px;
    }

    #rg-song-archive .hero p {
        font-size: 13px;
    }

    #rg-song-archive .filters {
        padding: 16px 12px;
    }

    #rg-song-archive .days {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 6px;
    }

    #rg-song-archive .day {
        grid-column: span 3;
        min-height: 60px;
        padding: 9px 2px;
    }

    #rg-song-archive .day:nth-child(n+5) {
        grid-column: span 4;
    }

    #rg-song-archive .day strong {
        font-size: 15px;
    }

    #rg-song-archive .day span {
        font-size: 13px;
    }

    #rg-song-archive .long-day {
        display: none !important;
    }

    #rg-song-archive .short-day {
        display: block !important;
    }

    #rg-song-archive .hour-row {
        gap: 10px;
        justify-content: space-between;
        margin-top: 15px;
    }

    #rg-song-archive .hour-row label {
        font-size: 13px;
    }

    #rg-song-archive .hour-row select {
        font-size: 14px;
        padding: 10px 5px;
        min-width: 0;
    }

    #rg-song-archive .results {
        margin: 0 12px;
        padding: 0 8px;
    }

    #rg-song-archive .entry {
        grid-template-columns: 48px 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 0;
        min-height: 84px;
    }

    /* NASLOVNICE - MOBITEL 64 x 64 */

    #rg-song-archive .cover {
        width: 64px;
        height: 64px;
    }

    #rg-song-archive .time {
        font-size: 15px;
    }

    #rg-song-archive .track strong {
        font-size: 16px;
    }

    #rg-song-archive .track span {
        font-size: 13px;
    }
}

/* PRISTUPAČNOST */

@media (prefers-reduced-motion: reduce) {

    #rg-song-archive * {
        transition: none !important;
    }
}

/* ==========================================
   GLAZBENA ARHIVA - ANTENNE BAYERN STYLE
   ========================================== */

#rg-song-archive {
    background: #ffffff;
}

#rg-song-archive .filters {
    background: #f0f2f6;
}

/* LISTA PJESAMA */

#rg-song-archive .results {
    margin: 0;
    padding: 18px 24px 30px;
    background: #ffffff;
    border: none;
    border-radius: 0;
}

/* REDAK PJESME */

#rg-song-archive .entry {
    position: relative;
    display: grid;
    grid-template-columns: 76px 128px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 148px;
    padding: 10px 0;
}

/* UKLANJANJE VODORAVNIH LINIJA */

#rg-song-archive .entry + .entry {
    border-top: none;
}

/* VREMENSKA CRTA */

#rg-song-archive .entry::before {
    content: "";
    position: absolute;
    left: 82px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d8dce2;
}

#rg-song-archive .entry:first-child::before {
    top: 50%;
}

#rg-song-archive .entry:last-child::before {
    bottom: 50%;
}

/* TOČKA NA VREMENSKOJ CRTI */

#rg-song-archive .entry::after {
    content: "";
    position: absolute;
    left: 79px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c8102e;
    transform: translateY(-50%);
}

/* VRIJEME */

#rg-song-archive .time {
    font-size: 16px;
    font-weight: 500;
    color: #555b65;
    font-variant-numeric: tabular-nums;
}

#rg-song-archive .time small {
    font-size: 12px;
    margin-top: 4px;
}

/* VELIKE NASLOVNICE */

#rg-song-archive .cover {
    display: block;
    width: 128px;
    height: 128px;
    max-width: none;
    object-fit: contain;
    border-radius: 7px;
    background: #f0f1f3;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

/* NASLOV PJESME */

#rg-song-archive .track strong {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #151515;
}

/* IZVOĐAČ */

#rg-song-archive .track span {
    font-size: 17px;
    font-weight: 400;
    color: #555b65;
    margin-top: 5px;
}

/* EMISIJE */

#rg-song-archive .program .track strong {
    color: #c8102e;
}

/* ZAMJENSKA NASLOVNICA */

#rg-song-archive .fallback {
    display: grid;
    place-items: center;
    font-size: 36px;
}

/* MOBITEL */

@media (max-width: 720px) {

    #rg-song-archive .results {
        margin: 0;
        padding: 12px 10px 24px;
    }

    #rg-song-archive .entry {
        grid-template-columns: 46px 80px minmax(0, 1fr);
        gap: 14px;
        min-height: 96px;
        padding: 8px 0;
    }

    #rg-song-archive .entry::before {
        left: 51px;
    }

    #rg-song-archive .entry::after {
        left: 48px;
        width: 7px;
        height: 7px;
    }

    #rg-song-archive .cover {
        width: 80px;
        height: 80px;
        border-radius: 5px;
    }

    #rg-song-archive .time {
        font-size: 13px;
    }

    #rg-song-archive .time small {
        font-size: 10px;
    }

    #rg-song-archive .track strong {
        font-size: 16px;
    }

    #rg-song-archive .track span {
        font-size: 14px;
    }

}

/* KOMPAKTNIJI DATUMSKI GUMBI */

#rg-song-archive .day {
    min-height: 56px;
    padding: 8px 4px;
    line-height: 1.3;
}

#rg-song-archive .day span {
    margin-top: 3px;
    font-size: 13px;
}

@media (max-width: 720px) {

    #rg-song-archive .day {
        min-height: 50px;
        padding: 6px 2px;
    }

}

/* VRIJEME EMITIRANJA - MOBITEL */

@media (max-width: 720px) {

    #rg-song-archive .hour-row label {
        font-size: 16px;
        font-weight: 750;
        color: #151515;
    }

}


/* NAVIGACIJA PO SATIMA – DNO ARHIVE */
#rg-song-archive .rg-hour-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 145px));
    justify-content: center;
    gap: 12px;
    padding: 0 10px 24px;
}
#rg-song-archive .rg-hour-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 62px;
    margin: 0;
    padding: 6px 3px;
    border: 0;
    border-radius: 8px;
    background: #bd1932;
    color: #fff;
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    line-height: 1.2;
}
#rg-song-archive .rg-hour-label { font-size: 14px; font-weight: 700; white-space: nowrap; }
#rg-song-archive .rg-hour-range { font-size: 12px; font-weight: 400; white-space: nowrap; }
#rg-song-archive .rg-hour-button:hover:not(:disabled) { background: #a31129; }
#rg-song-archive .rg-hour-button:disabled { background: #e2e6ed; color: #68707c; cursor: default; }
#rg-song-archive .rg-hour-button:focus-visible { outline: 3px solid #e55c73; outline-offset: 3px; }
@media (max-width: 360px) {
    #rg-song-archive .rg-hour-label { font-size: 12px; }
    #rg-song-archive .rg-hour-range { font-size: 11px; }
}
