/*
 * ═══════════════════════════════════════════════════════════════
 * STYLES.CSS — Portal DublAI
 * ═══════════════════════════════════════════════════════════════
 *
 * ALTERAÇÕES RECENTES (2026-05-15)
 * ➤ Adicionados estilos para botões de manutenção admin
 *   (.admin-actions, .admin-btn, .admin-redub-btn, .admin-delete-btn)
 * ➤ Botão refresh na galeria (.refresh-btn) + animação spinning
 * ➤ Player como overlay fixo (.player-overlay) ao invés de inline
 * ➤ Botões admin sempre visíveis em mobile (sem dependência de :hover)
 *
 * ALTERAÇÕES MOBILE (2026-05-16)
 * ➤ Overlay do player ajustado para iPhone com 100dvh e safe-area
 * ➤ Header, vídeo e painel de status do player reorganizados em mobile
 * ➤ Scroll lock passa a usar body.player-open, acionado pelo app.js
 *
 * ═══════════════════════════════════════════════════════════════
 */

:root {
    --bg-color: #0b0f19;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #4ade80;
    --primary-hover: #22c55e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --error: #ef4444;
    --success: #4ade80;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(74, 222, 128, 0.12), transparent 30%);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

body.player-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

.app-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Header ── */

.glass-header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    padding: 1rem 0;
}

.glass-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.glass-header h1 span {
    color: var(--primary);
}

.glass-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* ── Glass Panel ── */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Submit Section ── */

.submit-section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.submit-section .section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-row input[type="text"] {
    flex: 2;
    min-width: 250px;
}

.form-row input[type="email"] {
    flex: 1.5;
    min-width: 200px;
}

input[type="text"],
input[type="email"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

button {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Duration Hint ── */

.duration-hint {
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    animation: fadeInUp 0.4s ease-out;
}

.duration-hint.hidden {
    display: none;
}

/* ── Share Button ── */

.share-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(4px);
    color: #fff;
}

.video-card:hover .share-btn {
    opacity: 1;
}

.share-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.share-btn.shared {
    opacity: 1;
    border-color: var(--primary);
}

/* ── Admin Maintenance Buttons ── */

.admin-actions {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .admin-actions {
    opacity: 1;
}

.admin-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(4px);
    color: #fff;
    white-space: nowrap;
}

.admin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.admin-redub-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--accent);
}

.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--error);
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Messages ── */

.message {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    animation: fadeInUp 0.4s ease-out;
}

.message.hidden {
    display: none;
}

.message.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* ── Gallery Section ── */

.gallery-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gallery-header h2 {
    margin-bottom: 0;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    transform: scale(1.1);
    box-shadow: none;
}

.refresh-btn.spinning {
    animation: spin 0.6s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Admin Monitor Dashboard ── */

.admin-monitor.hidden {
    display: none;
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.monitor-header h2 {
    font-size: 1.4rem;
    margin: 0;
}

.cancel-dub-btn {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-dub-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.cancel-dub-btn.hidden {
    display: none;
}

.monitor-idle {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.dub-active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dub-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dub-info-thumb {
    width: 64px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.dub-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dub-info-text .vid {
    font-weight: 600;
    font-size: 0.95rem;
}

.dub-info-text .elapsed {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dub-info-text .detail {
    color: var(--accent);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Pipeline Progress Indicator ── */

.pipeline-stages {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
}

.pipeline-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.pipeline-stage:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 6px;
    left: calc(50% + 10px);
    width: calc(100% - 20px);
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.pipeline-stage.completed:not(:last-child)::before {
    background: var(--primary);
}

.stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pipeline-stage.completed .stage-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.pipeline-stage.active .stage-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite;
}

.stage-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.1;
    max-width: 60px;
}

.pipeline-stage.completed .stage-label,
.pipeline-stage.active .stage-label {
    color: var(--text-main);
}

/* ── Queue List ── */

.queue-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.queue-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.queue-toggle:hover {
    color: var(--text-main);
    background: none;
    transform: none;
    box-shadow: none;
}

.queue-toggle-text {
    font-size: 0.8rem;
}

.queue-toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.queue-toggle-arrow.open {
    transform: rotate(180deg);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.queue-list.collapsed {
    display: none;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.35rem 0.25rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.queue-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.queue-item.current .queue-item-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.queue-item-thumb {
    width: 48px;
    height: 27px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.queue-item .vid-id {
    color: var(--text-main);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item.current .vid-id {
    color: var(--accent);
}

.queue-item .queue-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    flex-shrink: 0;
}

.queue-item .queue-badge.redub {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.queue-item .queue-badge.active-badge {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.queue-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.queue-item:hover .queue-remove-btn {
    opacity: 0.6;
}

.queue-remove-btn:hover {
    opacity: 1 !important;
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    transform: none;
    box-shadow: none;
}

.queue-remove-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.empty-gallery {
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

/* ── Video Card ── */

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 42px);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card-title {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Player Overlay ── */

.player-overlay {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding:
        max(1.5rem, env(safe-area-inset-top))
        max(1.5rem, env(safe-area-inset-right))
        max(1.5rem, env(safe-area-inset-bottom))
        max(1.5rem, env(safe-area-inset-left));
    animation: fadeIn 0.3s ease-out;
}

.player-overlay.hidden {
    display: none;
}

.player-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.player-section.hidden {
    display: none;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
    box-shadow: none;
}

.player-header h3 {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.status-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.dot.error {
    background-color: var(--error);
    box-shadow: 0 0 12px var(--error);
}

.dot.syncing {
    background-color: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 1.5s infinite;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 6px;
    width: 100px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    border: none;
}

.audio-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* ── Keyframes ── */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .app-container {
        padding: 1rem;
    }

    .glass-header h1 {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row input[type="text"],
    .form-row input[type="email"] {
        min-width: unset;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .status-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-actions {
        opacity: 1;
    }

    .share-btn {
        opacity: 1;
    }

    .player-overlay {
        align-items: stretch;
        padding:
            max(0.5rem, env(safe-area-inset-top))
            max(0.75rem, env(safe-area-inset-right))
            max(0.75rem, env(safe-area-inset-bottom))
            max(0.75rem, env(safe-area-inset-left));
    }

    .player-content {
        max-width: none;
        min-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 1.25rem);
        margin-top: 0;
        gap: 0.75rem;
    }

    .player-header {
        position: sticky;
        top: 0;
        z-index: 3;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        padding: 0.25rem 0 0.35rem;
        background: rgba(11, 15, 25, 0.78);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .back-btn {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }

    .player-header h3 {
        min-width: 0;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .video-container {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
    }

    .status-panel {
        width: 100%;
        align-items: stretch;
        padding: 0.85rem;
        gap: 0.8rem;
        border-radius: 12px;
    }

    .status-indicator,
    .volume-control,
    .audio-info {
        width: 100%;
    }

    .status-indicator {
        align-items: flex-start;
        line-height: 1.25;
    }

    .volume-control {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
    }

    .volume-control input[type="range"] {
        width: 100%;
        min-width: 0;
    }

    .audio-info {
        border-radius: 10px;
        padding: 0.55rem 0.75rem;
        overflow-wrap: anywhere;
    }

    .pipeline-stage:not(:last-child)::before {
        left: calc(50% + 8px);
        width: calc(100% - 16px);
    }

    .stage-label {
        font-size: 0.55rem;
        max-width: 48px;
    }

    .queue-remove-btn {
        opacity: 0.6;
    }
}

@media (max-width: 390px) {
    .player-overlay {
        padding:
            max(0.35rem, env(safe-area-inset-top))
            max(0.5rem, env(safe-area-inset-right))
            max(0.6rem, env(safe-area-inset-bottom))
            max(0.5rem, env(safe-area-inset-left));
    }

    .back-btn {
        padding: 0.5rem 0.65rem;
    }

    .status-panel {
        padding: 0.75rem;
    }
}
