:root {
    --accent: #0056b3;   /* Plava */
    --bg-light: #f0f4ff; /* Svijetlo plava pozadina */
    --text-dark: #111;   /* Tamno za tekst */
    --border-color: #d0d7e0;
}

.xmltv-iptv {
    background: #fff;
    color: var(--text-dark);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.xmltv-tabs {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #444;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab.active {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,86,179,0.2);
}

.xmltv-programmes {
    max-height: 550px;
    overflow-y: auto;
}

.programme {
    display: flex;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
    align-items: flex-start;
}

.programme:hover {
    background: #f9fbff;
}

.programme.live {
    background: rgba(0,86,179,0.08);
    border-left: 4px solid var(--accent);
}

.prog-time {
    width: 80px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.prog-info {
    flex: 1;
}

.prog-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.prog-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.progress-container {
    background: #e0e0e0;
    height: 6px;
    border-radius: 10px;
    margin-top: 10px;
    width: 100%;
    max-width: 250px;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent);
    height: 100%;
    transition: width 0.5s ease;
}

.xmltv-widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-row {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-row:last-child { border: 0; margin: 0; padding: 0; }

.widget-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 3px;
}

.widget-title {
    font-weight: 600;
    font-size: 0.95rem;
}