/* Shared broadcast status, personal viewing progress and media badges. */
.label.status-badge {
    --status-color: #475569;
    --status-background: #f1f5f9;
    --status-border: #cbd5e1;
    --status-hover: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--status-border);
    border-radius: 999px;
    background-color: var(--status-background);
    color: var(--status-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.label.status-badge::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.label.status-badge.label-status-playing,
.label.status-badge.label-user-playing {
    --status-color: #1d4ed8;
    --status-background: #eff6ff;
    --status-border: #bfdbfe;
    --status-hover: #dbeafe;
}

.label.status-badge.label-status-ended,
.label.status-badge.label-user-ended {
    --status-color: #166534;
    --status-background: #f0fdf4;
    --status-border: #bbf7d0;
    --status-hover: #dcfce7;
}

.label.status-badge.label-status-new,
.label.status-badge.label-user-new {
    --status-color: #92400e;
    --status-background: #fffbeb;
    --status-border: #fde68a;
    --status-hover: #fef3c7;
}

.label.status-badge.label-user-following {
    --status-color: #6d28d9;
    --status-background: #f5f3ff;
    --status-border: #ddd6fe;
    --status-hover: #ede9fe;
}

a.label.status-badge:hover,
a.label.status-badge:focus {
    border-color: var(--status-color);
    background-color: var(--status-hover);
    color: var(--status-color);
    text-decoration: none;
}

a.label.status-badge:focus-visible {
    outline: 2px solid var(--status-color);
    outline-offset: 2px;
}

.table .status-badge {
    margin-block: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .label.status-badge {
        transition: none;
    }
}

/* Media uses rounded rectangles and distinct icons to complement the status pills. */
.label.media-badge {
    --media-color: #475569;
    --media-background: #f8fafc;
    --media-border: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid var(--media-border);
    border-radius: 6px;
    background-color: var(--media-background);
    color: var(--media-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    vertical-align: middle;
    white-space: nowrap;
}

.media-badge .media-icon {
    flex: 0 0 14px;
}

.label.media-tv {
    --media-color: #1e40af;
    --media-background: #eff6ff;
    --media-border: #bfdbfe;
}

.label.media-ova {
    --media-color: #6b21a8;
    --media-background: #faf5ff;
    --media-border: #e9d5ff;
}

.label.media-theatrical {
    --media-color: #9f1239;
    --media-background: #fff1f2;
    --media-border: #fecdd3;
}

.label.media-internet {
    --media-color: #115e59;
    --media-background: #f0fdfa;
    --media-border: #99f6e4;
}

.label.media-other {
    --media-color: #92400e;
    --media-background: #fffbeb;
    --media-border: #fde68a;
}

.label.media-unset {
    border-style: dashed;
    font-weight: 400;
}

.table td.media,
.table th[data-sort="media"] {
    white-space: nowrap;
}

.table .media-badge {
    margin-block: 2px;
}
