/* ═══════════════════════════════════════════════════════════
   Hits Radio – Saatekava  v2.0  |  schedule.css
   Kõik reeglid on scope'itud .hrs-wrap alla et vältida
   saidi teema konflikte.
   ═══════════════════════════════════════════════════════════ */

.hrs-wrap {
    --hrs-accent: #e03e2d;
    --hrs-bg:     transparent;
    --hrs-text:   #ffffff;
    --hrs-muted:  rgba(255,255,255,0.5);
    --hrs-border: rgba(255,255,255,0.1);
    --hrs-row-hover: rgba(255,255,255,0.04);
    font-family: 'Barlow', 'DM Sans', -apple-system, sans-serif !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.hrs-wrap *, .hrs-wrap *::before, .hrs-wrap *::after {
    box-sizing: border-box !important;
}

/* ─── Tab bar ──────────────────────────────────────────────── */
.hrs-wrap .hrs-tabs {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: none !important;
}

.hrs-wrap .hrs-tab {
    display: inline-block !important;
    padding: 7px 22px !important;
    border-radius: 100px !important;
    border: 1.5px solid var(--hrs-border) !important;
    background: transparent !important;
    color: var(--hrs-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.hrs-wrap .hrs-tab:hover {
    color: var(--hrs-text) !important;
    border-color: rgba(255,255,255,0.35) !important;
    background: rgba(255,255,255,0.06) !important;
    text-decoration: none !important;
}

.hrs-wrap .hrs-tab--active,
.hrs-wrap .hrs-tab--active:hover {
    background: var(--hrs-accent) !important;
    color: #fff !important;
    border-color: var(--hrs-accent) !important;
}

/* ─── Panels ───────────────────────────────────────────────── */
.hrs-wrap .hrs-panel        { display: none !important; }
.hrs-wrap .hrs-panel--active { display: block !important; }

/* ─── Item ─────────────────────────────────────────────────── */
.hrs-wrap .hrs-item {
    border-bottom: 1px solid var(--hrs-border) !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hrs-wrap .hrs-item:first-child {
    border-top: 1px solid var(--hrs-border) !important;
}

/* ─── Row button ───────────────────────────────────────────── */
.hrs-wrap .hrs-row {
    display: grid !important;
    grid-template-columns: 62px 46px 1fr 22px !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 13px 4px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background 0.12s !important;
}

.hrs-wrap .hrs-row:hover {
    background: var(--hrs-row-hover) !important;
}

.hrs-wrap .hrs-row:focus-visible {
    outline: 2px solid var(--hrs-accent) !important;
    outline-offset: -2px !important;
}

/* ─── Time ─────────────────────────────────────────────────── */
.hrs-wrap .hrs-time {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    color: var(--hrs-accent) !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    display: block !important;
}

/* ─── Avatar ───────────────────────────────────────────────── */
.hrs-wrap .hrs-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.07) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.hrs-wrap .hrs-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hrs-wrap .hrs-avatar__fallback {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--hrs-accent) !important;
    letter-spacing: -0.02em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    background: none !important;
}

/* ─── Meta ─────────────────────────────────────────────────── */
.hrs-wrap .hrs-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
}

.hrs-wrap .hrs-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hrs-text) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.hrs-wrap .hrs-dj {
    font-size: 12px !important;
    color: var(--hrs-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─── Chevron ──────────────────────────────────────────────── */
.hrs-wrap .hrs-chevron {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,0.25) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s, color 0.15s !important;
    pointer-events: none !important;
}

.hrs-wrap .hrs-item--open .hrs-chevron {
    transform: rotate(180deg) !important;
    color: var(--hrs-accent) !important;
}

/* ─── Body ─────────────────────────────────────────────────── */
.hrs-wrap .hrs-body          { overflow: hidden !important; }
.hrs-wrap .hrs-body[hidden]  { display: none !important; }

.hrs-wrap .hrs-body__inner {
    padding: 2px 4px 18px calc(62px + 46px + 24px + 8px) !important;
}

.hrs-wrap .hrs-desc {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: var(--hrs-muted) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* ─── Genre tags ───────────────────────────────────────────── */
.hrs-wrap .hrs-genres {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.hrs-wrap .hrs-tag {
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    padding: 3px 10px !important;
    border-radius: 100px !important;
    background: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.45) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    display: inline-block !important;
    line-height: 1.6 !important;
}

/* ─── Link ─────────────────────────────────────────────────── */
.hrs-wrap .hrs-link {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--hrs-accent) !important;
    text-decoration: none !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: opacity 0.15s !important;
}
.hrs-wrap .hrs-link:hover {
    opacity: 0.72 !important;
    text-decoration: none !important;
    color: var(--hrs-accent) !important;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 500px) {
    .hrs-wrap .hrs-row {
        grid-template-columns: 50px 38px 1fr 18px !important;
        gap: 9px !important;
        padding: 11px 2px !important;
    }
    .hrs-wrap .hrs-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
    .hrs-wrap .hrs-name { font-size: 13px !important; }
    .hrs-wrap .hrs-time { font-size: 11px !important; }
    .hrs-wrap .hrs-tab  { padding: 6px 14px !important; font-size: 12px !important; }
    .hrs-wrap .hrs-body__inner {
        padding: 2px 2px 14px calc(50px + 38px + 18px + 6px) !important;
    }
}
