/* ==========================================================================
   MACRON SHOW - MODULAR MOBILE RESPONSIVE OVERRIDES (v3.0.2)
   ========================================================================== */

/* ==================== DESKTOP SKELETON BASE FOR POPUPS ==================== */
.player-options-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.player-options-popup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-player-options-toggle {
    display: none !important;
}

#btn-mobile-search {
    display: none;
}

/* ==================== MOBILE MEDIA OVERRIDES (<768px) ==================== */
@media (max-width: 768px) {
    /* 1. Global Scrolling Reset */
    html, body {
        overflow: auto !important;
        height: auto !important;
        overflow-x: hidden !important;
    }
    
    /* 2. Container Padding Adaptation & Compression */
    .container {
        padding: 0.75rem 0.5rem !important;
    }
    
    /* 3. Header Responsiveness */
    header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.25rem !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .brand-section {
        justify-content: flex-start !important;
        width: auto !important;
        gap: 0.4rem !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .brand-text-container {
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }
    
    .brand-title {
        font-size: 0.95rem !important;
        letter-spacing: -0.3px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .cache-badge {
        display: none !important;
    }
    
    .brand-logo-container {
        width: 32px !important;
        height: 32px !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .brand-logo-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    #sync-dot-mobile {
        display: inline-block !important;
        position: absolute !important;
        top: -1px !important;
        right: -1px !important;
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
        border: 1px solid #080c14 !important;
        box-shadow: 0 0 4px #10b981 !important;
        z-index: 5 !important;
        background-color: #10b981 !important;
    }
    
    #sync-dot-mobile.refreshing {
        background-color: var(--vip-color) !important;
        box-shadow: 0 0 4px var(--vip-color) !important;
        animation: pulse 1.5s infinite ease-in-out !important;
    }
    
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 0.35rem !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    .btn-header-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }
    
    .btn-header-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .notification-badge {
        top: -3px !important;
        right: -3px !important;
        min-width: 14px !important;
        height: 14px !important;
        font-size: 0.55rem !important;
        border-width: 1px !important;
    }
    
    /* Header search trigger toggle icon */
    #btn-mobile-search {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateX(-50%) scale(0.95) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) scale(1) translateY(0);
        }
    }

    /* 4. Glassmorphic Dropdowns Centered & Full Width */
    .glassmorphic-dropdown {
        position: fixed !important;
        top: 90px !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 1.5rem) !important;
        max-width: 420px !important;
        transform: translateX(-50%) !important;
        transform-origin: top center !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        animation: slideDownMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    /* 5. Collapsible Search Box Overlay & Filter Tags Swipeable Strip */
    .controls-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin-bottom: 0.75rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        gap: 0.5rem !important;
    }
    
    /* Search Box Hiding and Animated Dropdown */
    .search-box {
        display: none !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .controls-bar.search-active-mobile .search-box {
        display: flex !important;
        animation: searchSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes searchSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .filter-tags {
        display: flex !important;
        overflow-x: auto !important;
        padding: 2px 2px 6px 2px !important;
        gap: 0.4rem !important;
        width: 100% !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important; /* Hide standard scrolls */
    }
    
    .filter-tags::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari */
    }
    
    .filter-tag {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        text-align: center;
    }
    
    /* Hide Completed and Favorites on Mobile to de-clutter homepage */
    #filter-completed,
    #filter-favorites {
        display: none !important;
    }
    
    /* 6. Columns & Tabs Grid */
    .sections-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .sections-grid .show-column.hidden-mobile {
        display: none !important;
    }
    
    .show-column {
        border-radius: 20px !important;
        padding: 1rem !important;
        min-height: auto !important;
    }
    
    .show-list {
        max-height: 520px !important;
    }
    
    /* Compact Sticky Mobile Column Switcher tabs */
    .mobile-column-tabs {
        display: flex !important;
        justify-content: space-around;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
        padding: 0.3rem;
        background: rgba(20, 26, 38, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        position: sticky;
        top: 0.25rem;
        z-index: 10;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-tab-btn {
        flex: 1;
        background: transparent;
        border: 1px solid transparent;
        color: var(--text-secondary);
        padding: 0.5rem 0.3rem;
        border-radius: 8px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        transition: all 0.2s ease;
    }
    
    .mobile-tab-btn.active {
        color: var(--text-primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-tab-btn.active[onclick*="vip"] {
        background: rgba(250, 204, 21, 0.08);
        color: #fbbf24;
        border: 1px solid rgba(250, 204, 21, 0.25);
    }
    
    .mobile-tab-btn.active[onclick*="premium"] {
        background: rgba(192, 132, 252, 0.08);
        color: #c084fc;
        border: 1px solid rgba(192, 132, 252, 0.25);
    }
    
    .mobile-tab-btn.active[onclick*="god"] {
        background: rgba(244, 63, 94, 0.08);
        color: #f43f5e;
        border: 1px solid rgba(244, 63, 94, 0.25);
    }
    
    /* 7. Sleek Audio Player Bottom Sheet */
    .audio-player-tray {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(180%) !important; 
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 0.75rem 1rem !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65) !important;
    }
    
    .audio-player-tray.active {
        transform: translateY(0) !important; 
    }
    
    .player-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
    }
    
    /* Top row of Player: Title details & Sidebar/Close Actions */
    .player-metadata {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    .player-title-row {
        max-width: 220px !important;
    }
    
    .player-title {
        font-size: 0.88rem !important;
    }
    
    .player-subtitle-row {
        justify-content: flex-start !important;
        gap: 0.4rem !important;
    }
    
    .player-right {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 0.4rem;
    }
    
    .player-volume-container {
        display: none !important; /* Volume controlled via phone hardware buttons */
    }
    
    /* Center Player Row: Play controls & speeds */
    .player-center {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    /* Centered Compact Play Controls in the middle */
    .player-controls {
        justify-content: center !important;
        gap: 0.95rem !important;
        width: 100% !important;
    }
    
    .btn-player-action {
        width: 34px !important;
        height: 34px !important;
    }
    
    .btn-player-play {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Sleek Player Options Popover (skip, speed, sleep grouped together) */
    .btn-player-options-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .player-options-popup {
        display: none !important;
        position: absolute !important;
        bottom: calc(100% + 14px) !important;
        right: 0 !important;
        background: rgba(10, 12, 16, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 16px !important;
        padding: 0.75rem !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 145px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
        z-index: 200 !important;
    }
    
    .player-options-popup.active {
        display: flex !important;
        animation: popupSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes popupSlideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .player-options-popup .player-skip-container {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 10px !important;
        padding: 6px 10px !important;
    }
    
    .player-options-popup .player-skip-container .skip-label {
        font-size: 0.65rem !important;
        color: var(--text-secondary) !important;
        font-weight: 700 !important;
    }
    
    .player-options-popup .player-skip-container .player-skip-select {
        font-size: 0.75rem !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-primary) !important;
        padding: 0 !important;
        text-align: right !important;
        cursor: pointer;
    }
    
    /* Bottom Player Row: Full-width Timeline */
    .player-timeline-container {
        width: 100% !important;
        margin-top: 0.2rem !important;
    }
    
    /* Sidebar adjustments for Transcript/Notepad */
    .transcript-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: 80vh !important;
        border-radius: 20px 20px 0 0 !important;
        bottom: 0 !important;
        top: auto !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.6) !important;
        transform: translateY(105%) !important; 
        overflow: hidden !important;
    }
    
    .sidebar-tab-content {
        min-height: 0 !important;
        height: calc(100% - 110px) !important;
    }
    
    .transcript-sidebar.active {
        transform: translateY(0) !important;
    }

    .transcript-tabs {
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important; /* Hide scrollbar for Firefox */
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }

    .transcript-tabs::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari */
    }

    .transcript-tab {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 0.65rem 0.35rem !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Swipeable horizontal calls category filters on mobile */
    .calls-filter-controls {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        gap: 4px !important;
        padding: 4px 6px !important;
    }
    .calls-filter-controls::-webkit-scrollbar {
        display: none !important;
    }
    .calls-filter-controls .filter-btn {
        flex: 0 0 auto !important;
    }

    /* Increase touch target size of calls count badge on mobile */
    .calls-count-badge {
        padding: 6px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 32px !important;
    }
    
    /* 8. Admin Control Center Panel (/panel) Mobile Overrides */
    body.panel-body {
        /* Zoom scaling removed to fix non-standard viewport rendering bugs and allow natural browser scrolling/gestures */
    }
    
    .app-container > header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .brand-area {
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    .nav-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    
    .nav-actions .status-badge {
        font-size: 0.8rem !important;
    }
    
    .nav-actions .btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .workspace {
        padding: 0.75rem !important;
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .console-panel {
        padding: 1rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
        overflow-x: hidden !important;
    }
    
    /* Clean, premium mobile card-based layout for the console panel table */
    .console-panel table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    .console-panel thead {
        display: none !important; /* Hide headings on mobile */
    }
    
    .console-panel tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
    }
    
    .console-panel tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 14px !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
        margin-bottom: 0px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .console-panel tr:hover {
        background: rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-2px) !important;
    }
    
    .console-panel td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 6px 0 !important;
        border: none !important;
        background: transparent !important;
        font-size: 0.78rem !important;
        box-sizing: border-box !important;
    }
    
    /* First cell: Episode Title, rendered as the header of the card */
    .console-panel td:nth-child(1) {
        display: block !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        padding: 0 0 8px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-bottom: 0.2rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: left !important;
    }
    
    /* Add labels to table fields */
    .console-panel td:nth-child(2)::before {
        content: "Upload Date";
        color: var(--text-secondary);
        font-size: 0.72rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    .console-panel td:nth-child(3)::before {
        content: "Catalog Tier";
        color: var(--text-secondary);
        font-size: 0.72rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    .console-panel td:nth-child(4)::before {
        content: "AI Status";
        color: var(--text-secondary);
        font-size: 0.72rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    /* Last cell: AI Actions, rendered as a dedicated bottom-row block */
    .console-panel td:nth-child(5) {
        display: block !important;
        padding: 8px 0 0 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-top: 0.2rem !important;
        text-align: right !important;
    }
    
    .console-panel td:nth-child(5) > div {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .console-panel td:nth-child(5) .btn {
        flex: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        display: inline-flex !important;
        padding: 8px 12px !important;
        font-size: 0.76rem !important;
        border-radius: 8px !important;
        height: auto !important;
    }

    /* Dashboard Table mobile optimizations */
    .analyzer-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    .analyzer-table thead {
        display: none !important; /* Hide headings on mobile */
    }
    
    .analyzer-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .analyzer-table tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 12px !important;
        padding: 0.85rem !important;
        gap: 0.45rem !important;
        margin-bottom: 0px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .analyzer-table tr:hover {
        background: rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(255, 255, 255, 0.09) !important;
    }
    
    .analyzer-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 4px 0 !important;
        border: none !important;
        background: transparent !important;
        font-size: 0.76rem !important;
        box-sizing: border-box !important;
    }
    
    /* First cell: Show Title, card header */
    .analyzer-table td:nth-child(1) {
        display: block !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        padding: 0 0 6px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-bottom: 0.15rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        text-align: left !important;
    }
    
    /* Add labels */
    .analyzer-table td:nth-child(2)::before {
        content: "AI Status";
        color: var(--text-secondary);
        font-size: 0.72rem;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    /* Action cell */
    .analyzer-table td:nth-child(3) {
        display: block !important;
        padding: 6px 0 0 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin-top: 0.15rem !important;
        text-align: right !important;
    }
    
    .analyzer-table td:nth-child(3) .btn {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        display: inline-flex !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        height: auto !important;
    }
    
    /* Panel Header action buttons mobile optimization */
    .panel-header button.btn,
    .panel-header div.btn {
        flex: 1 1 auto !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
    }
    
    /* Curated lists cards overrides for mobile screen sizes */
    .curated-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .card-header-row {
        padding-right: 0px !important; /* Allow titles to utilize the full card width on mobile since duration badge is at the very top */
    }
    
    .duration-badge {
        font-size: 0.75rem !important;
        padding: 4px 12px 6px 12px !important;
        border-bottom-left-radius: 12px !important;
        border-width: 1px !important;
        height: 26px !important;
        box-sizing: border-box !important;
    }

    /* Curated lists page header alignment fixes */
    .lists-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .lists-title-area {
        width: 100% !important;
        text-align: left !important;
    }

    .lists-main-title {
        font-size: 1.55rem !important;
    }

    .lists-subtitle {
        font-size: 0.78rem !important;
        margin-top: 4px !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    .btn-back-home {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .panel-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 0.75rem !important;
    }
    
    .panel-title {
        font-size: 1.05rem !important;
    }
    
    .filters-row,
    .controls-group,
    .panel-header > div {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .filters-row .filter-tag,
    .panel-header button.filter-tag {
        flex: 1 1 auto !important;
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        text-align: center !important;
    }
    
    .panel-header input {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .logs-box {
        max-height: 250px !important;
        font-size: 0.72rem !important;
        padding: 0.5rem !important;
    }
    
    .inspector-drawer {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        padding: 1.25rem !important;
    }
    
    .inspector-tabs {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    
    .inspector-tab {
        flex: 1 1 calc(50% - 0.25rem) !important;
        font-size: 0.72rem !important;
        padding: 6px 4px !important;
        text-align: center !important;
    }
    
    .code-view {
        font-size: 0.7rem !important;
        padding: 0.75rem !important;
    }
    
    /* 9. Dashboard Analytics Page Overrides */
    .dashboard-container {
        padding: 0.75rem !important;
    }
    
    .dashboard-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        padding: 1.25rem !important;
    }
    
    .dashboard-nav-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    
    .nav-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .stats-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .charts-split-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dashboard-table-wrapper {
        overflow-x: auto !important;
        border-radius: 10px !important;
    }
    
    .dashboard-table {
        min-width: 600px !important;
    }

    /* Bottom Selection Drawer Mobile Optimization */
    .drawer-container {
        width: calc(100% - 1.5rem) !important;
        padding: 0.85rem 1rem !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
        border-radius: 16px !important;
        bottom: 1rem !important;
    }
    
    .drawer-container.active {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    body.player-active .drawer-container {
        bottom: 13.5rem !important; /* Sits above the mobile audio player bottom sheet */
    }
    
    .drawer-info {
        text-align: center !important;
        align-items: center !important;
        gap: 0.15rem !important;
    }
    
    .drawer-sub {
        display: none !important; /* Hide subtitle to save vertical space */
    }
    
    .drawer-count {
        font-size: 0.95rem !important;
    }
    
    .drawer-actions {
        display: flex !important;
        gap: 0.4rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .drawer-actions .btn {
        flex: 1 1 auto !important;
        font-size: 0.75rem !important;
        padding: 0.55rem 0.4rem !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Heart Action Button Accessibility on Mobile Touchscreens */
    .favorite-mode-heart .btn-card-heart {
        opacity: 0.55 !important;
        background: rgba(20, 20, 20, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
    .favorite-mode-heart .btn-card-heart.active-heart {
        opacity: 1 !important;
    }

    /* Mobile Modal & Keyboard Guide Tweaks */
    .modal-window {
        padding: 1.25rem !important;
        max-height: 85vh !important;
        border-radius: 16px !important;
        gap: 1rem !important;
    }
    
    .modal-header {
        padding-bottom: 0.5rem !important;
    }
    
    .modal-title {
        font-size: 1.15rem !important;
    }
    
    .modal-body {
        gap: 0.8rem !important;
    }
    
    .shortcut-category h4 {
        font-size: 0.75rem !important;
    }

    /* Curated lists curation tabs mobile overrides */
    .curation-tabs {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important; /* Hide scrollbar for Firefox */
        -webkit-overflow-scrolling: touch !important;
        gap: 4px !important;
        padding: 4px !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    
    .curation-tabs::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari */
    }
    
    .curation-tab-btn {
        flex: 1 0 auto !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Sub-panel report sections mobile overrides */
    .report-section-content > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .report-section-content > div:first-child > div {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .report-section-content input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.25rem !important;
        box-sizing: border-box !important;
    }

    .report-section-content button.btn,
    .report-section-content .btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        height: auto !important;
    }

    .report-section-content .filter-tag {
        flex: 1 1 auto !important;
        text-align: center !important;
        font-size: 0.74rem !important;
        padding: 6px 10px !important;
    }

    /* Prompt Sandbox Drawer mobile overrides */
    .sandbox-drawer {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        padding: 1.25rem !important;
        box-sizing: border-box !important;
    }
    
    .sandbox-drawer textarea,
    .sandbox-drawer input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Reset transitions, animations, and hover transforms on mobile touchscreens to resolve double-tap register bugs globally */
    .btn, .btn:hover, .btn:active, .btn:focus,
    .btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus,
    .btn-secondary, .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus,
    .btn-danger, .btn-danger:hover, .btn-danger:active, .btn-danger:focus,
    .btn-full-console, .btn-full-console:hover, .btn-full-console:active, .btn-full-console:focus,
    .btn-refresh-db, .btn-refresh-db:hover, .btn-refresh-db:active,
    .filter-tag, .filter-tag:hover, .filter-tag:active, .filter-tag:focus,
    .console-tab, .console-tab:hover, .console-tab:active, .console-tab:focus,
    .console-refresh-btn, .console-refresh-btn:hover, .console-refresh-btn:active,
    .log-tag, .log-tag:hover, .log-tag:active, .log-tag:focus,
    .inspector-tab, .inspector-tab:hover, .inspector-tab:active, .inspector-tab:focus,
    .inspector-action-btn, .inspector-action-btn:hover, .inspector-action-btn:active,
    .md-mode-btn, .md-mode-btn:hover, .md-mode-btn:active,
    .md-chunk-tab, .md-chunk-tab:hover, .md-chunk-tab:active,
    .chunk-view-btn, .chunk-view-btn:hover, .chunk-view-btn:active,
    .chunk-pane-tab, .chunk-pane-tab:hover, .chunk-pane-tab:active,
    .error-card-btn-audio, .error-card-btn-audio:hover, .error-card-btn-audio:active,
    .error-card-btn-dismiss, .error-card-btn-dismiss:hover, .error-card-btn-dismiss:active,
    .controls-accordion-summary, .controls-accordion-summary:hover, .controls-accordion-summary:active,
    .error-card, .error-card:hover, .error-card:active,
    .card-action-btn, .card-action-btn:hover, .card-action-btn:active,
    .show-card, .show-card:hover, .show-card:active,
    a, a:hover, a:active,
    button, button:hover, button:active {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

