:root {
    --bg-color: #1d1d1d;
    --card-bg: #2b2b2b;
    --header-bg: #e0e0e0;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #444444;
    --status-good: #2ecc71;
    --status-bad: #e74c3c;
    --status-warning: #f39c12;
    --plex-orange: #e5a00d;
    --series-blue: #00a8e8;
    --radarr-orange: #ff9100;
    --premiere-gold: gold;
    --youtube-red: #ff0000;
    /* Poster sizing */
    --poster-width: clamp(120px, 11vw, 170px);
}

/* =========================================================
   BASE / RESET
   ========================================================= */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 20px;
    padding-bottom: 80px;
    overflow-x: hidden; /* never allow page-wide horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 20px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #444;
    flex-shrink: 0;
}

    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.report-btn {
    background: #333;
    border: 1px solid #555;
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    height: 36px;
}

    .report-btn:hover {
        background: #e74c3c;
        color: white;
        border-color: #e74c3c;
    }

.admin-badge {
    background: #224422;
    color: #2ecc71;
    border-color: #2ecc71;
}

.logout-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: color 0.2s;
}

    .logout-link:hover {
        color: #aaa;
    }

/* =========================================================
   LEGEND
   ========================================================= */
.legend {
    display: flex;
    gap: 8px 12px;
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.premiere-dot {
    background: gold;
    border: 1px solid orange;
    box-shadow: 0 0 5px gold;
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */
.notification-banner {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto 20px auto;
    padding: 15px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.type-info {
    background: var(--series-blue);
    border: 1px solid #007bb5;
}

.type-warning {
    background: var(--status-warning);
    border: 1px solid #d35400;
    color: #fff;
}

.type-maintenance {
    background: var(--status-bad);
    border: 1px solid #c0392b;
}

/* =========================================================
   DASHBOARD BLOCKS
   ========================================================= */
.status-wrapper,
.content-section,
#calendar {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.main-status-text {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.last-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.history-container {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 3px;
    margin-bottom: 20px;
    width: 100%;
}

.history-bar {
    flex: 1;
    height: 100%;
    background-color: #444;
    border-radius: 2px;
    position: relative;
}

    .history-bar.up {
        background-color: var(--status-good);
    }

    .history-bar.down {
        background-color: var(--status-bad);
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
}

.stat-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-unit {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.storage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.storage-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 5px;
}

.progress-bg {
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 6px;
}

/* =========================================================
   CONTENT SECTION + POSTERS (LAYOUT SAFETY)
   Prevent grid intrinsic sizing from expanding page width
   ========================================================= */
.content-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* shrinkable columns */
    gap: 30px;
}

.content-block {
    min-width: 0;
}
/* critical: allow shrink */
.poster-grid {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}
/* constrain */

/* Large screens can show 4 columns */
@media (min-width: 2200px) {
    .content-section {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Under 1200px: 1 column (desktop browsers / narrow windows) */
@media (max-width: 1200px) {
    .content-section {
        grid-template-columns: 1fr;
    }
}

.content-block h3 {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-left: 3px solid #666;
    padding-left: 10px;
    margin-bottom: 15px;
}

.block-movies h3 {
    border-left-color: var(--plex-orange);
}

.block-series h3 {
    border-left-color: var(--series-blue);
}

.block-new h3 {
    border-left-color: var(--premiere-gold);
}

.block-requests h3 {
    border-left-color: var(--status-good);
}

/* =========================================================
   POSTERS
   Desktop/mouse: grid tiles, no horizontal scroll
   Touch: horizontal scroller rows + 1 column layout
   ========================================================= */

/* Default (desktop/mouse): grid of posters */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

/* Poster card */
.poster-card {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow title ellipsis in grid */
}

    .poster-card:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,0.1);
        z-index: 5;
    }

.poster-img-wrap {
    position: relative;
    aspect-ratio: 2/3;
    width: 100%;
    background: #000;
    flex-shrink: 0;
}

    .poster-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.poster-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.85);
    color: gold;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.poster-badge-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 10px;
    padding: 3px;
    text-align: center;
    font-weight: bold;
}

.poster-title {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 8px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-year {
    font-size: 11px;
    color: #999;
    padding: 0 8px 8px 8px;
}

/* Touch devices: ALWAYS 1 column + horizontal scrolling rows */
@media (hover: none) and (pointer: coarse) {
    .content-section {
        grid-template-columns: 1fr !important;
    }

    /* prevent scroller painting outside block */
    .content-block {
        overflow: hidden;
    }

    .poster-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding-bottom: 12px !important;
        padding-right: 20px !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        margin: 0;
    }

        .poster-grid::-webkit-scrollbar {
            display: none;
        }

    .poster-card {
        flex: 0 0 var(--poster-width);
        width: var(--poster-width);
        min-width: var(--poster-width);
        scroll-snap-align: start;
    }
}

/* =========================================================
   FULLCALENDAR (Dark Mode)
   ========================================================= */
.fc {
    color: #fff !important;
    font-size: 14px;
}

.fc-header-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px !important;
}

.fc-button-primary {
    background-color: #383838 !important;
    border: 1px solid #555 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px !important;
}

.fc-button-active {
    background-color: #ffffff !important;
    color: #000 !important;
}

.fc-event {
    border: none !important;
    border-radius: 4px;
    margin-bottom: 2px !important;
    cursor: pointer;
    font-size: 11px;
}

.fc-theme-standard th,
.fc-theme-standard td {
    border-color: var(--border) !important;
}

/* Fix: month header background in dark mode */
.fc .fc-scrollgrid-section-header th,
.fc .fc-col-header-cell {
    background: #202020 !important;
}

.fc-col-header-cell-cushion {
    color: #eaeaea !important;
    text-decoration: none !important;
}

.fc-daygrid-day-number {
    color: #a0a0a0 !important;
    text-decoration: none !important;
    padding: 8px !important;
}

.fc-list-day-cushion {
    background-color: #202020 !important;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 0;
    border: 1px solid #444;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    width: 650px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.close-btn {
    color: #fff;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.modal-grid {
    display: flex;
    width: 100%;
}

.modal-poster-container {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #444;
    background: #000;
}

#modalPoster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-container {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

    .modal-header h2 {
        margin: 0 0 10px 0;
        font-size: 20px;
        color: #fff;
        line-height: 1.3;
    }

.modal-rating {
    color: var(--status-warning);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.modal-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.plex-btn {
    background-color: var(--plex-orange);
    color: #000;
}

.youtube-btn {
    background-color: var(--youtube-red);
    color: #fff;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: var(--bg-color);
}

.login-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    width: 90%;
    max-width: 400px;
}

.login-logo {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.login-btn {
    background: var(--plex-orange);
    color: #000 !important;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    margin-top: 20px;
}

    .login-btn:hover {
        transform: scale(1.05);
        background: #d4950c;
    }

/* =========================================================
   REPORT / REQUEST PAGES
   ========================================================= */
.report-container {
    max-width: 800px;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    gap: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    background: #333;
    color: #777;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
}

    .tab:hover {
        opacity: 1;
        background: #444;
    }

#tab-sonarr.active {
    background: var(--series-blue);
    color: #fff;
    opacity: 1;
    border-color: #007bb5;
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.4);
    transform: scale(1.02);
}

#tab-radarr.active {
    background: var(--radarr-orange);
    color: #000;
    opacity: 1;
    border-color: #e68a00;
    box-shadow: 0 0 15px rgba(255, 145, 0, 0.4);
    transform: scale(1.02);
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    background: #333;
    border: 2px solid #555;
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.series-card {
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

    .series-card.selected {
        border-color: var(--status-good);
        background: #1a331a;
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
    }

.series-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.series-title {
    padding: 8px;
    font-size: 11px;
    text-align: center;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* Episode picker */
.ep-container {
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ep-header-bar {
    background: #202020;
    padding: 15px 20px;
    font-weight: 800;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.ep-list {
    max-height: 400px;
    overflow-y: auto;
}

.ep-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-height: 60px;
    transition: background 0.2s;
}

    .ep-item.selected {
        background: rgba(231, 76, 60, 0.15);
        border-left: 4px solid var(--status-bad);
    }

.season-wrapper {
    border-bottom: 1px solid #333;
}

.season-header {
    background: #383838;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.season-content {
    display: none;
    background: #2b2b2b;
    animation: slideDown 0.3s ease-out;
}

    .season-content.active {
        display: block;
    }

.file-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(46, 204, 113, 0.15);
    color: var(--status-good);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    white-space: nowrap;
}

.fix-area {
    position: sticky;
    bottom: 0;
    background: #202020;
    padding: 20px;
    border-top: 1px solid #444;
    margin: 0 -20px -20px -20px;
    z-index: 100;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.btn-danger {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.feedback-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: bold;
}

.fb-success {
    background: #224422;
    color: var(--status-good);
    border: 1px solid var(--status-good);
}

.fb-error {
    background: #442222;
    color: var(--status-bad);
    border: 1px solid var(--status-bad);
}

/* =========================================================
   FORMS
   ========================================================= */
select,
input,
textarea {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

option {
    background-color: #333;
    color: #fff;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--plex-orange);
}

/* =========================================================
   MOBILE WIDTH TWEAKS (layout only, touch scroller is separate)
   ========================================================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 60px;
    }

    .app-container {
        padding: 0;
    }

    header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .user-menu {
        width: 100%;
        justify-content: space-between;
        margin: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .report-btn {
        flex: 1;
        margin: 0;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        background: rgba(255, 255, 255, 0.05);
    }

    .legend {
        width: 100%;
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .storage-grid {
        grid-template-columns: 1fr;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 0;
        flex-direction: column;
        max-height: 85vh;
    }

    .modal-grid {
        flex-direction: column;
    }

    .modal-poster-container {
        width: 100%;
        height: 250px;
        border-right: none;
    }

    .modal-info-container {
        padding: 20px;
    }

    .search-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tabs {
        margin-bottom: 20px;
    }

    .tab {
        font-size: 13px;
        padding: 12px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================
   QUEUE MODULE (FIXED LAYOUT)
   ========================================================= */
#queueContainer {
    /* Hoogte instellen voor +/- 5 items. 
       Elk item is ong 55px + 6px margin = 61px. 
       5 * 61 = ~305px */
    max-height: 310px;
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    /* Scrollbar styling */
    #queueContainer::-webkit-scrollbar {
        width: 6px;
    }

    #queueContainer::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.2);
    }

    #queueContainer::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 3px;
    }

.queue-item {
    background: #2b2b2b;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #555;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Ruimte tussen tekst en balk */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .queue-item.type-serie {
        border-left-color: #00a8e8;
    }

    .queue-item.type-film {
        border-left-color: #ff9100;
    }

/* Bovenste rij: Titel en Percentage */
.q-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.q-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%; /* Voorkom overlap met percentage */
}

.q-pct {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* Middelste rij: Progress Bar */
.q-progress-bg {
    height: 6px;
    background: #151515;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.q-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a8e8, #2ecc71);
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Onderste rij: Status tekst en Tijd */
.q-row-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.q-status-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dl {
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

.status-pause {
    background-color: #f39c12;
}