:root {
    --brand-blue: #00f2ff;
    --brand-purple: #b000ff;
    --brand-amber: #ffb700;
    --bg-dark: #050505;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}
.accessible-focus:focus-visible {
    outline: 4px solid var(--brand-blue) !important;
    outline-offset: 4px !important;
    background-color: #1a202c !important; 
}
.tab-active {
    border-bottom: 4px solid var(--brand-blue);
    color: var(--brand-blue);
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

dialog {
    margin: auto;
    background-color: #111;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.5rem; 
    padding: 0;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
dialog[open] {
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

audio {
    width: 100%;
    height: 48px;
    border-radius: 0.75rem;
    outline: none;
}
audio::-webkit-media-controls-panel {
    background-color: #1a1a1a;
    color: white;
}
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }