.mediainfo-display-wrapper {
    color: #333;
    line-height: 1.6;
}
.mediainfo-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}
.mediainfo-container {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin: 20px 0;
}
.mediainfo-header {
    background: #e9ecef;
    color: #3C4858;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 9px 9px 0 0;
}
.mediainfo-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mediainfo-status {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.status-completed {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
	color: #787878;
    border: 1px solid #3c485845;
}
.status-description {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #787878;
    border: 1px solid #3c485845;
}
.status-description i {
    margin-right: 4px;
}
.analysis-date {
    color: #3C4858;
    font-size: 14px;
}
.mediainfo-content {
    padding: 0;
}
.info-section {
    border-bottom: 1px solid #f1f3f4;
    padding: 25px;
}
.info-section:last-child {
    border-bottom: none;
}
.info-section h4 {
    margin: 0 0 20px 0;
    color: #3C4858;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-value {
    font-size: 15px;
    color: #3C4858;
    font-weight: 400;
}
.stream-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}
.stream-block:last-child {
    margin-bottom: 0;
}
.stream-header {
    background: #e9ecef;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
    border-radius: 7px 7px 0 0;
}
.stream-title {
    font-weight: 600;
    color: #3C4858;
    font-size: 16px;
}
.codec-badge {
    padding: 2px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	line-height: 1.5;
}
.codec-video {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}
.codec-audio {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}
.codec-channels {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.codec-resolution {
    background: #e0f7fa;
    color: #00838f;
    border: 1px solid #80deea;
}
.codec-hdr {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}
.codec-bitdepth {
    background: #eceff1;
    color: #455a64;
    border: 1px solid #b0bec5;
}
.codec-commentary {
    background: #fbe9e7;
    color: #bf360c;
    border: 1px solid #ffab91;
}
.language-badge {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
	line-height: 1.5;
}
.stream-details {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    align-items: center;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 140px;
}
.detail-item.highlight {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-value {
    font-size: 15px;
    color: #3C4858;
    font-weight: 400;
    white-space: nowrap;
}
.subtitles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.subtitle-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.subtitle-language {
    font-weight: 500;
    color: #3C4858;
    font-size: 14px;
    letter-spacing: 1px;
}
.subtitle-codec {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
    align-self: flex-start;
}
.subtitle-forced {
    font-size: 11px;
    color: #dc3545;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.subtitle-title {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}
.raw-json-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-height: 400px;
    overflow: auto;
}
.raw-json {
    margin: 0;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #3C4858;
    background: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.mediainfo-fallback {
    padding: 25px;
    text-align: center;
    color: #6c757d;
}
.mediainfo-fallback p {
    margin-bottom: 20px;
}
.mediainfo-fallback details {
    margin-top: 20px;
    text-align: left;
}
.mediainfo-fallback summary {
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    color: #3C4858;
}
.mediainfo-fallback summary:hover {
    background: #e9ecef;
}
.mediainfo-queue-status {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 20px 0;
}
.queue-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #212529;
    padding: 20px 25px;
}
.queue-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.queue-content {
    padding: 25px;
}
.status-info {
    margin-bottom: 20px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
}
.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.status-badge.status-processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.queue-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.queue-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}
.queue-detail:last-child {
    border-bottom: none;
}
.queue-detail.error .detail-value {
    color: #dc3545;
    font-weight: 500;
}
.queue-explanation {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px 20px;
    color: #1565c0;
}
.queue-explanation p {
    margin: 0;
    line-height: 1.5;
}
.mediainfo-no-data {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin: 20px 0;
    padding: 40px 25px;
    text-align: center;
}
.no-data-content {
    max-width: 400px;
    margin: 0 auto;
}
.no-data-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}
.no-data-content h3 {
    margin: 0 0 15px 0;
    color: #3C4858;
    font-size: 20px;
    font-weight: 600;
}
.no-data-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 16px;
}
.no-data-actions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}
.help-text {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}
.mediainfo-unknown {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin: 20px 0;
    padding: 40px 25px;
    text-align: center;
}
.unknown-content {
    max-width: 400px;
    margin: 0 auto;
}
.unknown-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 20px;
}
.unknown-content h3 {
    margin: 0 0 15px 0;
    color: #3C4858;
    font-size: 20px;
    font-weight: 600;
}
.unknown-content p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

.mi-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    cursor: help;
    vertical-align: middle;
}
.mi-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e9ecef;
    color: #9aa5b1;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    transition: all 0.15s ease;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mi-tip:hover .mi-tip-icon {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}
.mi-tip-content {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: -12px;
    background: #fff;
    color: #3C4858;
    border: 1px solid #d1d9e0;
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 260px;
    max-width: 320px;
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(60,72,88,0.15), 0 2px 8px rgba(60,72,88,0.08);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    pointer-events: none;
}
.mi-tip:hover .mi-tip-content,
.mi-tip:focus .mi-tip-content {
    display: block;
}
.mi-tip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 18px;
    border: 7px solid transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 2px 1px rgba(60,72,88,0.08));
}
.mi-tip-down .mi-tip-content {
    bottom: auto;
    top: calc(100% + 10px);
}
.mi-tip-down .mi-tip-content::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -2px 1px rgba(60,72,88,0.08));
}
.mi-tip-title {
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #1565c0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.mi-tip-text {
    display: block;
    color: #4a5568;
    font-size: 12.5px;
    line-height: 1.55;
}
.mi-tip-visual {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.mi-tip-ar-preview {
    margin-bottom: 12px;
}
.mi-tip-ar-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #e9ecef;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mi-tip-ar-screen-ref {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 9px;
    color: #adb5bd;
    font-weight: 600;
    line-height: 1;
    z-index: 1;
}
.mi-tip-ar-video {
    background: rgba(21,101,192,0.1);
    border: 1.5px solid rgba(21,101,192,0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mi-tip-ar-video-label {
    font-size: 12px;
    font-weight: 700;
    color: #1565c0;
}
.mi-tip-ar-note {
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    margin-top: 6px;
    font-style: italic;
}

.mi-tip-ar-compare {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mi-tip-ar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
}
.mi-tip-ar-row.active {
    opacity: 1;
}
.mi-tip-ar-label {
    width: 40px;
    text-align: right;
    font-size: 10px;
    font-weight: 600;
    color: #8a95a5;
    flex-shrink: 0;
}
.mi-tip-ar-row.active .mi-tip-ar-label {
    color: #1565c0;
}
.mi-tip-ar-track {
    flex: 1;
    min-width: 0;
    height: 10px;
    border-radius: 3px;
    background: #f0f2f5;
}
.mi-tip-ar-bar {
    height: 100%;
    border-radius: 3px;
    background: #dde2e8;
}
.mi-tip-ar-row.active .mi-tip-ar-bar {
    background: rgba(21,101,192,0.3);
}

.mi-tip-codec-tier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}
.mi-codec-step {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    background: #edf0f4;
    color: #6c757d;
    font-weight: 600;
}
.mi-codec-step.active {
    background: #1565c0;
    color: #fff;
}
.mi-codec-arrow {
    color: #b0b8c4;
    font-size: 10px;
}
.mi-codec-scale {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #8a95a5;
    margin-top: 4px;
    padding: 0 2px;
}

.mi-tip-audio-tier {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mi-tip-tier-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mi-tip-tier-label {
    font-size: 9px;
    color: #8a95a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.mi-tip-tier-items {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.mi-tip-tier-item {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    background: #edf0f4;
    color: #6c757d;
    font-weight: 500;
}
.mi-tip-tier-item.active {
    background: #1565c0;
    color: #fff;
}

.mi-tip-ch-room {
    position: relative;
    width: 150px;
    height: 110px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #d1d9e0;
}
.mi-tip-ch-spk {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(21,101,192,0.15);
    border: 2px solid #1565c0;
    color: #3C4858;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mi-tip-ch-listener {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
}
.mi-tip-ch-sub {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #6c757d;
    font-weight: 600;
    background: #edf0f4;
    padding: 1px 6px;
    border-radius: 8px;
}

.mi-tip-depth-compare {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mi-tip-depth-row {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}
.mi-tip-depth-row.active {
    opacity: 1;
}
.mi-tip-depth-label {
    width: 36px;
    font-size: 10px;
    font-weight: 600;
    color: #8a95a5;
    text-align: right;
    flex-shrink: 0;
}
.mi-tip-gradient {
    flex: 1;
    height: 14px;
    border-radius: 3px;
}
.mi-tip-gradient.banding {
    background: linear-gradient(to right,
        #c5cfe0 0%, #c5cfe0 12%,
        #adbdd2 12%, #adbdd2 25%,
        #96adc5 25%, #96adc5 37%,
        #7f9db8 37%, #7f9db8 50%,
        #6a8dab 50%, #6a8dab 62%,
        #577da0 62%, #577da0 75%,
        #476e95 75%, #476e95 87%,
        #3a5f8a 87%, #3a5f8a 100%
    );
}
.mi-tip-gradient.smooth {
    background: linear-gradient(to right, #c5cfe0, #3a5f8a);
}

.mi-tip-hdr-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mi-tip-hdr-item {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.5;
}
.mi-tip-hdr-item strong {
    color: #e67e00;
    font-weight: 600;
}

.mi-tip-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mi-tip-list-item {
    font-size: 11px;
    color: #4a5568;
    padding: 1px 0;
}
.mi-tip-list-item strong {
    color: #3C4858;
    font-weight: 600;
}

.dark-mode .mediainfo-display-wrapper {
    color: rgba(182, 190, 204, 0.87);
}
.dark-mode .mediainfo-error {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.35);
    color: #ffb3bc;
}
.dark-mode .mediainfo-container,
.dark-mode .mediainfo-queue-status,
.dark-mode .mediainfo-no-data,
.dark-mode .mediainfo-unknown {
    background: #262a33;
    border-color: #333843;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.dark-mode .mediainfo-header {
    background: #2d323d;
    color: rgba(182, 190, 204, 0.87);
    border-bottom: 1px solid #333843;
}
.dark-mode .mediainfo-header h3,
.dark-mode .info-section h4,
.dark-mode .stream-title,
.dark-mode .info-value,
.dark-mode .detail-value,
.dark-mode .subtitle-language,
.dark-mode .raw-json,
.dark-mode .queue-detail .detail-value,
.dark-mode .no-data-content h3,
.dark-mode .unknown-content h3,
.dark-mode .mediainfo-fallback summary {
    color: rgba(182, 190, 204, 0.87);
}
.dark-mode .analysis-date,
.dark-mode .info-label,
.dark-mode .detail-label,
.dark-mode .subtitle-title,
.dark-mode .help-text,
.dark-mode .no-data-content p,
.dark-mode .unknown-content p,
.dark-mode .mediainfo-fallback,
.dark-mode .mediainfo-fallback p,
.dark-mode .queue-detail .detail-label {
    color: #8d98ad;
}
.dark-mode .status-completed {
    background: rgba(19, 114, 187, 0.14);
    border-color: rgba(19, 114, 187, 0.35);
    color: #8ec6ff;
}
.dark-mode .status-description {
    background: rgba(245, 127, 23, 0.14);
    border-color: rgba(245, 127, 23, 0.4);
    color: #ffbf69;
}
.dark-mode .codec-badge,
.dark-mode .language-badge,
.dark-mode .subtitle-codec,
.dark-mode .subtitle-forced,
.dark-mode .status-completed,
.dark-mode .status-description,
.dark-mode .status-badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dark-mode .codec-badge,
.dark-mode .language-badge,
.dark-mode .subtitle-codec,
.dark-mode .subtitle-forced {
    border-width: 1px;
    border-style: solid;
}
.dark-mode .codec-video {
    background: rgba(19, 114, 187, 0.16);
    color: #8ec6ff;
    border-color: rgba(142, 198, 255, 0.28);
}
.dark-mode .codec-audio {
    background: rgba(139, 92, 246, 0.16);
    color: #c8b5ff;
    border-color: rgba(200, 181, 255, 0.28);
}
.dark-mode .codec-channels {
    background: rgba(40, 167, 69, 0.15);
    color: #91d7a2;
    border-color: rgba(145, 215, 162, 0.26);
}
.dark-mode .codec-resolution {
    background: rgba(0, 188, 212, 0.14);
    color: #7fe7f3;
    border-color: rgba(127, 231, 243, 0.26);
}
.dark-mode .codec-hdr {
    background: rgba(245, 127, 23, 0.16);
    color: #ffbf69;
    border-color: rgba(255, 191, 105, 0.28);
}
.dark-mode .codec-bitdepth {
    background: rgba(148, 163, 184, 0.14);
    color: #d4dbe6;
    border-color: rgba(212, 219, 230, 0.22);
}
.dark-mode .codec-commentary {
    background: rgba(255, 87, 34, 0.14);
    color: #ffae91;
    border-color: rgba(255, 174, 145, 0.26);
}
.dark-mode .language-badge {
    background: rgba(255, 152, 0, 0.16);
    color: #ffc36b;
    border-color: rgba(255, 195, 107, 0.28);
}
.dark-mode .info-section {
    border-bottom-color: #333843;
}
.dark-mode .info-section h4 {
    border-bottom-color: #333843;
}
.dark-mode .stream-block,
.dark-mode .subtitle-item,
.dark-mode .raw-json-container,
.dark-mode .queue-details,
.dark-mode .no-data-actions,
.dark-mode .mediainfo-fallback summary,
.dark-mode .mi-tip-content {
    background: #1f232b;
    border-color: #333843;
}
.dark-mode .stream-header {
    background: #2d323d;
    border-bottom-color: #333843;
}
.dark-mode .detail-item.highlight {
    background: #2b3039;
    border-color: #404754;
    box-shadow: none;
}
.dark-mode .subtitle-codec,
.dark-mode .mi-tip-icon,
.dark-mode .mi-tip-ar-screen,
.dark-mode .mi-tip-ar-track,
.dark-mode .mi-codec-step,
.dark-mode .mi-tip-tier-item,
.dark-mode .mi-tip-ch-sub {
    background: #303540;
    border-color: #404754;
}
.dark-mode .subtitle-codec {
    color: #b6becc;
}
.dark-mode .subtitle-forced {
    background: rgba(220, 53, 69, 0.14);
    color: #ff9ca7;
    border-color: rgba(255, 156, 167, 0.24);
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 10px;
}
.dark-mode .mediainfo-fallback summary:hover {
    background: #343a46;
}
.dark-mode .queue-header {
    background: linear-gradient(135deg, #6f4a05 0%, #9d6500 100%);
    color: #f3efe6;
}
.dark-mode .status-badge.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #f3cd74;
    border-color: rgba(243, 205, 116, 0.3);
}
.dark-mode .status-badge.status-processing {
    background: rgba(19, 114, 187, 0.18);
    color: #8ec6ff;
    border-color: rgba(142, 198, 255, 0.28);
}
.dark-mode .status-badge.status-failed {
    background: rgba(220, 53, 69, 0.18);
    color: #ff9ca7;
    border-color: rgba(255, 156, 167, 0.25);
}
.dark-mode .queue-detail {
    border-bottom-color: #333843;
}
.dark-mode .queue-detail.error .detail-value {
    color: #ff9ca7;
}
.dark-mode .queue-explanation {
    background: rgba(19, 114, 187, 0.14);
    border-color: rgba(19, 114, 187, 0.3);
    color: #8ec6ff;
}
.dark-mode .no-data-icon {
    color: #8d98ad;
}
.dark-mode .unknown-icon {
    color: #f3cd74;
}
.dark-mode .moderator-actions .btn {
    background: #1372bb;
    border-color: #1167a9;
    color: #fff;
}
.dark-mode .moderator-actions .btn:hover {
    background: #1263a2;
    border-color: #146cb0;
}
.dark-mode .moderator-actions .btn:disabled {
    background: #515967;
    border-color: #515967;
    color: #b6becc;
}
.dark-mode .moderator-actions .alert-info {
    background: rgba(19, 114, 187, 0.14);
    border-color: rgba(19, 114, 187, 0.28);
    color: #8ec6ff;
}
.dark-mode .moderator-actions .alert-success {
    background: rgba(40, 167, 69, 0.14);
    border-color: rgba(40, 167, 69, 0.28);
    color: #91d7a2;
}
.dark-mode .moderator-actions .alert-danger {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ffb3bc;
}
.dark-mode .mi-tip-icon {
    color: #8d98ad;
}
.dark-mode .mi-tip:hover .mi-tip-icon {
    background: #1372bb;
    color: #fff;
    border-color: #1372bb;
}
.dark-mode .mi-tip-content {
    color: rgba(182, 190, 204, 0.87);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.dark-mode .mi-tip-content::after {
    border-top-color: #1f232b;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}
.dark-mode .mi-tip-down .mi-tip-content::after {
    border-bottom-color: #1f232b;
    filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.25));
}
.dark-mode .mi-tip-title,
.dark-mode .mi-tip-ar-row.active .mi-tip-ar-label,
.dark-mode .mi-tip-ar-video-label {
    color: #8ec6ff;
}
.dark-mode .mi-tip-text,
.dark-mode .mi-tip-hdr-item,
.dark-mode .mi-tip-list-item,
.dark-mode .mi-tip-ch-spk,
.dark-mode .mi-tip-ar-note,
.dark-mode .mi-tip-ar-label,
.dark-mode .mi-codec-scale,
.dark-mode .mi-tip-tier-label,
.dark-mode .mi-tip-depth-label {
    color: #b6becc;
}
.dark-mode .mi-tip-visual {
    border-top-color: #333843;
}
.dark-mode .mi-tip-ar-screen-ref,
.dark-mode .mi-codec-arrow {
    color: #7f8898;
}
.dark-mode .mi-tip-ar-video {
    background: rgba(19, 114, 187, 0.12);
    border-color: rgba(19, 114, 187, 0.34);
}
.dark-mode .mi-tip-ar-bar {
    background: #4a5260;
}
.dark-mode .mi-tip-ar-row.active .mi-tip-ar-bar {
    background: rgba(142, 198, 255, 0.4);
}
.dark-mode .mi-codec-step,
.dark-mode .mi-tip-tier-item,
.dark-mode .mi-tip-ch-sub {
    color: #b6becc;
}
.dark-mode .mi-codec-step.active,
.dark-mode .mi-tip-tier-item.active {
    background: #1372bb;
    color: #fff;
}
.dark-mode .mi-tip-ch-room {
    background: #262a33;
    border-color: #404754;
}
.dark-mode .mi-tip-ch-spk {
    background: rgba(19, 114, 187, 0.18);
    border-color: #1372bb;
}
.dark-mode .mi-tip-gradient.banding {
    background: linear-gradient(to right,
        #4f5663 0%, #4f5663 12%,
        #596170 12%, #596170 25%,
        #646d7d 25%, #646d7d 37%,
        #6f7889 37%, #6f7889 50%,
        #7b8495 50%, #7b8495 62%,
        #8790a0 62%, #8790a0 75%,
        #939cac 75%, #939cac 87%,
        #9fa8b7 87%, #9fa8b7 100%
    );
}
.dark-mode .mi-tip-gradient.smooth {
    background: linear-gradient(to right, #4f5663, #9fa8b7);
}
.dark-mode .mi-tip-hdr-item strong {
    color: #ffbf69;
}
.dark-mode .mi-tip-list-item strong {
    color: rgba(182, 190, 204, 0.87);
}

@media (max-width: 768px) {
    .mediainfo-header {
        /*flex-direction: column;
        align-items: flex-start;*/
        gap: 15px;
    }
    .mediainfo-status {
        width: 100%;
        justify-content: space-between;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .stream-header {
        /*flex-direction: column;
        align-items: flex-start;*/
        gap: 10px;
    }
    .stream-details {
        gap: 10px;
    }
    .detail-item {
        flex: 0 0 100%;
    }
    .subtitles-grid {
        grid-template-columns: 1fr;
    }
    .queue-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .info-section {
        padding: 20px 15px;
    }
    .mi-tip:hover .mi-tip-content {
        display: none;
    }
    .mi-tip:focus .mi-tip-content {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        min-width: unset;
        max-width: unset;
        border-radius: 14px 14px 0 0;
        padding: 20px 20px 28px;
        z-index: 1001;
        border: 1px solid #d1d9e0;
        border-bottom: none;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.18);
        font-size: 14px;
        pointer-events: auto;
    }
    .mi-tip:focus .mi-tip-content::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d9e0;
        border-radius: 2px;
        margin: 0 auto 14px;
    }
    .mi-tip:focus .mi-tip-content::after {
        display: none;
    }
    .mi-tip:focus {
        outline: none;
    }
    .mi-tip-ar-track {
        height: 12px;
    }
    .mi-tip-ar-label {
        width: 48px;
        font-size: 12px;
    }
    .mi-tip-ar-video-label {
        font-size: 14px;
    }
    .mi-tip-ar-note {
        font-size: 13px;
    }
    .mi-tip-ch-room {
        width: 170px;
        height: 120px;
    }
    .queue-content {
        padding: 20px 15px;
    }
    .mediainfo-no-data,
    .mediainfo-unknown {
        padding: 30px 15px;
    }
    .dark-mode .mi-tip:focus .mi-tip-content::before {
        background: #404754;
    }
}
@media (max-width: 480px) {
    .mediainfo-header {
        padding: 15px 20px;
    }
    .mediainfo-header h3 {
        font-size: 18px;
    }
    .info-section h4 {
        font-size: 16px;
    }
    .stream-title {
        font-size: 14px;
    }
    .status-badge {
        font-size: 14px;
        padding: 10px 15px;
    }
    .raw-json {
        font-size: 11px;
        padding: 15px;
    }
    .no-data-icon,
    .unknown-icon {
        font-size: 36px;
    }
    .no-data-content h3,
    .unknown-content h3 {
        font-size: 18px;
    }
    .mi-tip:focus .mi-tip-content {
        padding: 16px 16px 24px;
    }
    .mi-tip-title {
        font-size: 12px;
    }
    .mi-tip-text {
        font-size: 13px;
    }
}
.text-center {
    text-align: center;
}
.text-muted {
    color: #6c757d;
}
.font-weight-bold {
    font-weight: 600;
}
.mb-0 {
    margin-bottom: 0;
}
.mt-2 {
    margin-top: 10px;
}
.mb-2 {
    margin-bottom: 10px;
}
.moderator-actions {
    margin-top: 25px;
}
.moderator-actions .btn {
    background: #1565c0;
    border: 1px solid #1565c0;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}
.moderator-actions .btn:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    transform: translateY(-1px);
}
.moderator-actions .btn:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}
.moderator-actions .alert {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}
.moderator-actions .alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
.moderator-actions .alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.moderator-actions .alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fa-spin {
    animation: spin 1s linear infinite;
}
@media print {
    .mediainfo-display-wrapper {
        background: white;
        font-size: 12px;
    }
    .mediainfo-header {
        background: #f8f9fa !important;
        color: black !important;
        border: 1px solid #dee2e6;
    }
    .status-badge,
    .codec-badge,
    .language-badge {
        background: #f8f9fa !important;
        color: black !important;
        border: 1px solid #dee2e6 !important;
    }
    .stream-block,
    .queue-details,
    .queue-explanation {
        background: white !important;
        border: 1px solid #dee2e6 !important;
    }
    .raw-json-container {
        background: white !important;
        border: 1px solid #dee2e6 !important;
    }
}