/* ==========================================================================
   440Music Accessibility (a11y), Voice Assistant & Security Timer Styles
   ========================================================================== */

/* 1. Skip Navigation Links (Keyboard Accessibility) */
.a11y-skip-link {
    position: absolute;
    top: -9999px;
    left: 12px;
    z-index: 999999;
    padding: 12px 18px;
    background: #000;
    color: #ff0;
    border: 2px solid #ff0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    transition: top 0.15s ease-out;
}

.a11y-skip-link:focus {
    top: 12px;
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

/* 2. Enhanced Focus Ring for Keyboard & Switch Users */
:focus-visible {
    outline: 3px solid #ff0 !important;
    outline-offset: 3px !important;
}

/* 3. Screen Reader Live Region */
.a11y-live-announcer {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================================
   4. Universal Color Blindness Filters (SVG Matrices & Vision Adjustments)
   ========================================================================= */
html.a11y-filter-deuteranopia body, body.a11y-filter-deuteranopia {
    filter: url('#a11y-deuteranopia') !important;
}
html.a11y-filter-protanopia body, body.a11y-filter-protanopia {
    filter: url('#a11y-protanopia') !important;
}
html.a11y-filter-tritanopia body, body.a11y-filter-tritanopia {
    filter: url('#a11y-tritanopia') !important;
}
html.a11y-filter-achromatopsia body, body.a11y-filter-achromatopsia {
    filter: grayscale(100%) contrast(115%) !important;
}

/* 4b. Hearing & Deaf Accessibility: Visual Bell Screen Pulse */
.a11y-visual-bell {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999;
    box-shadow: inset 0 0 0 0 transparent;
    transition: box-shadow 0.15s ease-out;
}
.a11y-visual-bell.active {
    animation: a11yVisualBellFlash 0.6s ease-out;
}
@keyframes a11yVisualBellFlash {
    0% { box-shadow: inset 0 0 0 0 rgba(250, 204, 21, 0); }
    40% { box-shadow: inset 0 0 60px 15px rgba(250, 204, 21, 0.75); }
    100% { box-shadow: inset 0 0 0 0 rgba(250, 204, 21, 0); }
}
.a11y-visual-bell.cart.active, .a11y-visual-bell.play.active {
    animation: a11yVisualBellGreen 0.6s ease-out;
}
@keyframes a11yVisualBellGreen {
    0% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
    40% { box-shadow: inset 0 0 60px 15px rgba(34, 197, 94, 0.75); }
    100% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 4c. Motion & Static Lighting Overrides */
html.a11y-reduced-motion *,
body.a11y-reduced-motion * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}
html.a11y-reduced-motion .stage-light,
body.a11y-reduced-motion .stage-light,
html.a11y-reduced-motion .stage-light-bg::before,
body.a11y-reduced-motion .stage-light-bg::before {
    animation: none !important;
    opacity: 0.15 !important;
}
html.a11y-reduced-motion .fixture-lens,
body.a11y-reduced-motion .fixture-lens {
    animation: none !important;
    opacity: 0.6 !important;
}
html.a11y-static-lights .stage-light-bg,
body.a11y-static-lights .stage-light-bg {
    display: none !important;
}

/* =========================================================================
   4d. High Contrast Mode — Art Deco Pure Black & White (WCAG AAA 21:1 Contrast)
   ========================================================================= */
body.a11y-high-contrast {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-family: 'Century Gothic', 'Futura', 'Trebuchet MS', 'Segoe UI', Arial, sans-serif !important;
}

/* Strip decorative stage lights, gradients, and glows */
body.a11y-high-contrast .stage-light-bg,
body.a11y-high-contrast .stage-light-bg::before,
body.a11y-high-contrast .stage-light-bg::after {
    display: none !important;
}

/* Art Deco Stepped & Geometric Headings */
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6,
body.a11y-high-contrast .site-brand-title,
body.a11y-high-contrast .ad-banner-title {
    color: #ffffff !important;
    font-family: 'Cinzel', 'Playfair Display', 'Didot', 'Century Gothic', 'Futura', Georgia, serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    background: #000000 !important;
}

body.a11y-high-contrast .home-summary-row h3,
body.a11y-high-contrast .featured-media-card h3 {
    color: #ffffff !important;
    font-family: 'Cinzel', 'Playfair Display', 'Didot', 'Century Gothic', 'Futura', Georgia, serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    background: #000000 !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border-bottom: 2px solid #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.a11y-high-contrast .home-summary-row h3 a,
body.a11y-high-contrast .featured-media-card h3 a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.6rem !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

body.a11y-high-contrast .home-summary-row h3 a:hover,
body.a11y-high-contrast .home-summary-row h3 a:focus,
body.a11y-high-contrast .featured-media-card h3 a:hover,
body.a11y-high-contrast .featured-media-card h3 a:focus {
    background: #ffffff !important;
    color: #000000 !important;
    outline: none !important;
}

/* Hyperlinks — Pure White with Crisp Art Deco 2px Underlines */
body.a11y-high-contrast a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
}

/* Inverse Video on Hover and Focus for Total Color-Blind Legibility */
body.a11y-high-contrast a:hover,
body.a11y-high-contrast a:focus,
body.a11y-high-contrast a:focus-visible {
    color: #000000 !important;
    background-color: #ffffff !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
    text-decoration: none !important;
}

/* Art Deco Geometric Double-Border Headers & Footers */
body.a11y-high-contrast .site-header {
    background: #000000 !important;
    border-bottom: 3px double #ffffff !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .site-footer {
    background: #000000 !important;
    border-top: 3px double #ffffff !important;
    box-shadow: none !important;
}

/* Navigation & Dropdowns with Art Deco Framing */
body.a11y-high-contrast nav.menu ul.menu-horizontal li a,
body.a11y-high-contrast .dropbtn {
    color: #ffffff !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
}

body.a11y-high-contrast nav.menu ul.menu-horizontal li a:hover,
body.a11y-high-contrast .dropbtn:hover,
body.a11y-high-contrast nav.menu ul.menu-horizontal li a:focus,
body.a11y-high-contrast .dropbtn:focus {
    color: #000000 !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    text-decoration: none !important;
}

body.a11y-high-contrast .dropdown-content {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    outline: 1px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .dropdown-content a {
    color: #ffffff !important;
    border-bottom: 1px solid #333333 !important;
    text-decoration: none !important;
}

body.a11y-high-contrast .dropdown-content a:hover,
body.a11y-high-contrast .dropdown-content a:focus {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Art Deco Stepped Framing for Featured Media Cards & Summary Rows */
body.a11y-high-contrast .featured-media-card,
body.a11y-high-contrast .home-summary-row section,
body.a11y-high-contrast .dashboard-box,
body.a11y-high-contrast .tunes-card {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    outline: 1px solid #ffffff !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
    border-radius: 0px !important;
}

body.a11y-high-contrast .featured-media-card h3,
body.a11y-high-contrast .home-summary-row h3 {
    border-bottom: 2px solid #ffffff !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}

body.a11y-high-contrast .featured-media-frame {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 0px !important;
}

/* Floating Overlays — Crisp Monochrome Geometric Insets */
body.a11y-high-contrast .featured-floating-overlay {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .featured-floating-overlay .overlay-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.a11y-high-contrast .featured-floating-overlay .overlay-artist {
    color: #ffffff !important;
    font-style: italic !important;
    border-top: 1px solid #ffffff !important;
    padding-top: 2px !important;
    margin-top: 4px !important;
}

/* Buttons & Interactive Controls — Sharp Art Deco Shapes */
body.a11y-high-contrast button,
body.a11y-high-contrast .btn,
body.a11y-high-contrast .video-size-icon-btn,
body.a11y-high-contrast .video-popup-close-btn,
body.a11y-high-contrast .a11y-dock-btn,
body.a11y-high-contrast .a11y-switch-btn,
body.a11y-high-contrast .a11y-btn-stay {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 0px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.a11y-high-contrast button:hover,
body.a11y-high-contrast button:focus-visible,
body.a11y-high-contrast .btn:hover,
body.a11y-high-contrast .btn:focus-visible,
body.a11y-high-contrast .a11y-dock-btn:hover,
body.a11y-high-contrast .a11y-dock-btn:focus-visible,
body.a11y-high-contrast .a11y-switch-btn.is-active,
body.a11y-high-contrast .a11y-btn-stay:hover,
body.a11y-high-contrast .a11y-btn-stay:focus-visible {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 10px #ffffff !important;
}

/* Art Deco Framing for Modals & Settings */
body.a11y-high-contrast .a11y-settings-card,
body.a11y-high-contrast .a11y-security-card,
body.a11y-high-contrast .video-popup-dialog {
    background: #000000 !important;
    border: 3px double #ffffff !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 4px !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .a11y-toggle-row {
    background: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 0px !important;
}

body.a11y-high-contrast .a11y-voice-pill,
body.a11y-high-contrast .a11y-command-popover {
    background: #000000 !important;
    border: 3px double #ffffff !important;
    outline: 1px solid #ffffff !important;
    outline-offset: 3px !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .a11y-command-header {
    color: #ffffff !important;
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    text-transform: uppercase !important;
}

body.a11y-high-contrast .a11y-command-input {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 0px !important;
}

body.a11y-high-contrast .a11y-command-submit-btn,
body.a11y-high-contrast .a11y-chip {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0px !important;
    text-transform: uppercase !important;
}

body.a11y-high-contrast .a11y-command-submit-btn:hover,
body.a11y-high-contrast .a11y-command-submit-btn:focus,
body.a11y-high-contrast .a11y-chip:hover,
body.a11y-high-contrast .a11y-chip:focus {
    background: #ffffff !important;
    color: #000000 !important;
}

body.a11y-high-contrast .a11y-command-hint {
    border-top: 1px solid #ffffff !important;
    color: #ffffff !important;
}

body.a11y-high-contrast .a11y-command-hint code {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

body.a11y-high-contrast .a11y-voice-indicator-dot {
    background: #ffffff !important;
}

body.a11y-high-contrast .a11y-security-countdown {
    color: #ffffff !important;
    text-shadow: 0 0 8px #ffffff !important;
}

/* Audio Player, Sliders, List Items in High Contrast */
body.a11y-high-contrast .band-list,
body.a11y-high-contrast .song-list,
body.a11y-high-contrast .post-list,
body.a11y-high-contrast .home-summary-row ul,
body.a11y-high-contrast .home-summary-row ol,
body.a11y-high-contrast .home-summary-row section ul,
body.a11y-high-contrast .home-summary-row section ol {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.a11y-high-contrast .band-list li,
body.a11y-high-contrast .song-list li,
body.a11y-high-contrast .post-list li,
body.a11y-high-contrast .home-summary-row li {
    border-bottom: 1px solid #333333 !important;
    padding: 6px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: none !important;
    display: block !important;
}

/* Entire Width Hover & Focus-Within Highlight */
body.a11y-high-contrast .band-list li:hover,
body.a11y-high-contrast .song-list li:hover,
body.a11y-high-contrast .post-list li:hover,
body.a11y-high-contrast .home-summary-row li:hover,
body.a11y-high-contrast .band-list li:focus-within,
body.a11y-high-contrast .song-list li:focus-within,
body.a11y-high-contrast .post-list li:focus-within,
body.a11y-high-contrast .home-summary-row li:focus-within {
    background: #ffffff !important;
    color: #000000 !important;
}

body.a11y-high-contrast .band-list li:hover a,
body.a11y-high-contrast .song-list li:hover a,
body.a11y-high-contrast .post-list li:hover a,
body.a11y-high-contrast .home-summary-row li:hover a,
body.a11y-high-contrast .band-list li:focus-within a,
body.a11y-high-contrast .song-list li:focus-within a,
body.a11y-high-contrast .post-list li:focus-within a,
body.a11y-high-contrast .home-summary-row li:focus-within a {
    color: #000000 !important;
    background: transparent !important;
    text-decoration: underline !important;
    outline: none !important;
}

body.a11y-high-contrast .band-list li:hover .home-list-meta,
body.a11y-high-contrast .song-list li:hover .home-list-meta,
body.a11y-high-contrast .post-list li:hover .home-list-meta,
body.a11y-high-contrast .home-summary-row li:hover .home-list-meta,
body.a11y-high-contrast .home-summary-row li:hover .home-gig-title,
body.a11y-high-contrast .band-list li:focus-within .home-list-meta,
body.a11y-high-contrast .song-list li:focus-within .home-list-meta,
body.a11y-high-contrast .post-list li:focus-within .home-list-meta,
body.a11y-high-contrast .home-summary-row li:focus-within .home-list-meta,
body.a11y-high-contrast .home-summary-row li:focus-within .home-gig-title {
    color: #000000 !important;
}

body.a11y-high-contrast .home-subgroup-title {
    color: #ffffff !important;
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    letter-spacing: 0.1em !important;
    border-bottom: 1px solid #444444 !important;
    padding-bottom: 2px !important;
    margin-bottom: 4px !important;
}

body.a11y-high-contrast .radio-subgroup-divider,
body.a11y-high-contrast .radio-subgroup-newest {
    border-top: 1px solid #444444 !important;
}

body.a11y-high-contrast input[type="range"] {
    accent-color: #ffffff !important;
}

body.a11y-high-contrast input[type="text"],
body.a11y-high-contrast input[type="search"],
body.a11y-high-contrast input[type="password"],
body.a11y-high-contrast select,
body.a11y-high-contrast textarea {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 0px !important;
}

body.a11y-high-contrast kbd {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0px !important;
}

/* 5. Large Text Mode */
body.a11y-large-text {
    font-size: 120% !important;
    line-height: 1.6 !important;
}

body.a11y-large-text h1 { font-size: 2.2rem !important; }
body.a11y-large-text h2 { font-size: 1.8rem !important; }
body.a11y-large-text h3 { font-size: 1.4rem !important; }
body.a11y-large-text p, 
body.a11y-large-text li, 
body.a11y-large-text a, 
body.a11y-large-text button,
body.a11y-large-text input {
    font-size: 1.15rem !important;
}

/* 6. Reduced Motion Mode */
body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* 7. Floating Accessibility & Voice Control Bar */
.a11y-floating-dock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.a11y-dock-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.a11y-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 52px;
    min-height: 52px;
    padding: 12px 20px;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid #ff0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
    touch-action: manipulation;
}

.a11y-dock-btn:hover,
.a11y-dock-btn:focus-visible {
    background: #1e293b;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.a11y-dock-btn.voice-btn-active {
    background: #b91c1c;
    border-color: #f87171;
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 7b. Voice & Command Assistant Popover (Firefox & Keyboard Fallback) */
.a11y-command-popover {
    pointer-events: auto;
    background: #0f172a;
    border: 2px solid #38bdf8;
    color: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    width: 360px;
    max-width: 92vw;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.a11y-command-popover[hidden] {
    display: none !important;
}

.a11y-command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #38bdf8;
}

.a11y-command-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.45s ease, transform 0.45s ease;
}

.a11y-command-close-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.a11y-command-form {
    display: flex;
    gap: 8px;
}

.a11y-command-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #475569;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.a11y-command-input:focus {
    outline: 2px solid #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.a11y-command-submit-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.45s ease, color 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

.a11y-command-submit-btn:hover {
    background: #7dd3fc;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.a11y-command-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a11y-chip {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

.a11y-chip:hover,
.a11y-chip:focus {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.a11y-command-hint {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    border-top: 1px solid #334155;
    padding-top: 10px;
}

.a11y-command-hint code {
    background: #1e293b;
    color: #fde047;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* 8. Voice Command Live Transcript Pill */
.a11y-voice-transcript-pill {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid #38bdf8;
    color: #f8fafc;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    max-width: 360px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.a11y-voice-transcript-pill.is-visible {
    display: flex;
}

.a11y-voice-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: voiceDot 1s infinite alternate;
}

@keyframes voiceDot {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

/* 9. Accessibility Settings Drawer / Modal */
.a11y-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.a11y-settings-modal[hidden] {
    display: none !important;
}

.a11y-settings-card {
    background: #0b0f17;
    color: #f8fafc;
    border: 2px solid #ff0;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 24px 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    position: relative;
}

.a11y-settings-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #0b0f17;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    padding: 18px 0 12px 0;
    margin-bottom: 16px;
}

.a11y-settings-header h3 {
    margin: 0;
    color: #ff0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.a11y-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #475569;
    color: #cbd5e1;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.a11y-modal-close-btn:hover,
.a11y-modal-close-btn:focus-visible {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    transform: scale(1.08);
}

.a11y-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.a11y-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #131d2e;
    border: 1px solid #1e293b;
    padding: 12px 16px;
    border-radius: 8px;
}

.a11y-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a11y-toggle-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.a11y-toggle-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

.a11y-switch-btn {
    min-width: 70px;
    min-height: 38px;
    padding: 6px 12px;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #475569;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.a11y-switch-btn.is-active {
    background: #ff0;
    color: #000;
    border-color: #ff0;
}

/* 10. Security Inactivity Warning Modal */
.a11y-security-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.a11y-security-modal[hidden] {
    display: none !important;
}

.a11y-security-card {
    background: #0f172a;
    color: #f8fafc;
    border: 3px solid #ef4444;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
}

.a11y-security-card h3 {
    color: #f87171;
    font-size: 1.4rem;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.a11y-security-countdown {
    font-size: 3rem;
    font-weight: 900;
    color: #fde047;
    margin: 16px 0;
    font-variant-numeric: tabular-nums;
}

.a11y-security-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.a11y-btn-stay {
    background: #ff0;
    color: #000;
    border: none;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    min-height: 48px;
}

.a11y-btn-stay:hover,
.a11y-btn-stay:focus-visible {
    background: #fde047;
    box-shadow: 0 0 12px #ff0;
}

/* 11. Touch Screen & Mobile Slider Optimizations */
input[type="range"],
.station-track-link,
.btn,
button,
a {
    touch-action: manipulation;
}

input[type="range"] {
    touch-action: pan-y;
}

@media (max-width: 600px) {
    .a11y-floating-dock {
        bottom: 12px;
        right: 12px;
    }
    
    .a11y-dock-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 44px;
        min-width: 44px;
    }
}

