/* ============================================
   AudioNido — Visual Mode (Desktop)
   Only loaded when mode === 'visual' on desktop.
   V5 "Vivid Spotlight Dial" design.
   ============================================ */

/* ============================================
   CSS VARIABLES (visual mode override)
   ============================================ */
.mode-visual {
    --vbg: #06050f;
    --vbg-mid: #0e0c1e;
    --vwarm: #FF5722;
    --vamber: #FFB300;
    --vteal: #00E5CC;
    --vrose: #FF2D78;
    --vlav: #8B5CF6;
    --vice: #38BDF8;
    --vlime: #84CC16;
    --vtext: #F8F6FF;
    --vtext-dim: rgba(248,246,255,0.35);
    --vtext-mid: rgba(248,246,255,0.6);
    --vdock-bg: #13102a;
    --vdock-border: rgba(139,92,246,0.25);
    --vfont: 'Syne', 'Inter', system-ui, sans-serif;
    --vmono: 'Space Mono', monospace;
}

/* ============================================
   BODY / BACKGROUND
   ============================================ */
html:has(.mode-visual) {
    overflow: hidden;
    height: 100vh;
}
.mode-visual {
    font-family: var(--vfont);
    background: var(--vbg);
    overflow: hidden;
    height: 100vh;
}
.mode-visual #main-content {
    overflow: hidden;
}

/* Background video wallpaper */
#bg-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.mode-visual::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(139,92,246,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(255,45,120,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 30%, rgba(0,229,204,0.05) 0%, transparent 45%);
    pointer-events: none;
}

.mode-visual::after {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(circle 300px at 20% 60%, rgba(255,87,34,0.06) 0%, transparent 100%),
        radial-gradient(circle 250px at 80% 20%, rgba(56,189,248,0.05) 0%, transparent 100%);
    pointer-events: none;
    animation: vBlobDrift 20s ease-in-out infinite alternate;
}

@keyframes vBlobDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
    100% { transform: translate(20px, -15px) scale(0.97); }
}

/* ============================================
   HEADER — Unified player bar (visual mode)
   ============================================ */
.mode-visual .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(19,16,42,0.97) 0%, rgba(12,10,28,0.99) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--vdock-border);
    padding: 0;
    box-shadow: 0 4px 30px rgba(139,92,246,0.06),
                0 2px 10px rgba(0,0,0,0.4);
}

/* Animated accent line at bottom of header */
.mode-visual .site-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--vlav) 15%,
        var(--vteal) 35%,
        var(--vrose) 55%,
        var(--vamber) 75%,
        transparent 100%);
    background-size: 200% 100%;
    animation: vHeaderLine 8s linear infinite;
    opacity: 0.6;
}

@keyframes vHeaderLine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.mode-visual .header-inner {
    max-width: none;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 28px;
    gap: 16px;
}

.mode-visual .site-logo {
    font-family: var(--vfont);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: 20px;
}

.mode-visual .logo-icon {
    display: none;
}

.logo-icon-img {
    display: none;
}

.mode-visual .logo-icon-img {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

/* Hide audio-mode now-playing bar in visual mode */
.mode-visual .now-playing {
    display: none !important;
}

/* Header controls group — lang buttons + accessible button */
.hdr-controls-group {
    display: none;
}
.mode-visual .hdr-controls-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.mode-visual .lang-btn {
    font-family: var(--vmono);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--vtext-dim);
    cursor: pointer;
    transition: 0.2s;
}
.mode-visual .lang-btn.active {
    background: var(--vteal);
    color: #000;
}

/* Accessible version button */
.hdr-accessible-btn {
    display: none;
}
.mode-visual .hdr-accessible-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--vtext-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.mode-visual .hdr-accessible-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--vteal);
    border-color: var(--vteal);
}
.hdr-accessible-label {
    font-family: var(--vmono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* User/Account button in header */
.hdr-user-btn {
    display: none;
}
.mode-visual .hdr-user-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
    font-family: var(--vmono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.mode-visual .hdr-user-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--vteal);
    border-color: var(--vteal);
}
.mode-visual .hdr-user-btn.logged-in {
    border-color: rgba(0,229,204,0.3);
    color: var(--vteal);
}
.hdr-user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   HEADER PLAYER (visual mode)
   ============================================ */
.header-player {
    display: none;
}

.mode-visual .header-player {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    font-family: var(--vfont);
}

.mode-visual .header-player[hidden] {
    display: none;
}

.header-player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.header-player-meta {
    font-size: 0.65rem;
    color: var(--vtext-mid);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    order: -1;
}

.header-player-name {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    color: var(--vtext);
    line-height: 1.2;
}

.header-player-name.hdr-name-scroll {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.header-player-name.hdr-name-scroll .hdr-name-inner {
    display: inline-block;
    animation: hdrNameScroll var(--scroll-duration, 8s) linear infinite;
    padding-right: 3em;
}

@keyframes hdrNameScroll {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    80% { transform: translateX(var(--scroll-distance, -50%)); }
    100% { transform: translateX(var(--scroll-distance, -50%)); }
}

/* Header progress bar (podcasts / audiobooks) */
.hdr-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}
.hdr-progress-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.hdr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vteal), var(--vlav));
    border-radius: 3px;
    position: relative;
    transition: width 0.3s linear;
}
.hdr-progress-knob {
    position: absolute;
    right: -6px; top: -5px;
    width: 13px; height: 13px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,229,204,0.4), 0 0 3px rgba(0,0,0,0.3);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.hdr-progress-track:hover .hdr-progress-knob { opacity: 1; }
.hdr-progress-time {
    font-family: var(--vmono);
    font-size: 0.6rem;
    color: var(--vtext-mid);
    min-width: 34px;
}

/* Highlight prev/next buttons when podcast/audiobook is playing */
.hdr-btn.hdr-btn-episode {
    background: rgba(0,229,204,0.15);
    border-color: rgba(0,229,204,0.3);
}
.hdr-btn.hdr-btn-episode:hover {
    background: rgba(0,229,204,0.3);
    border-color: rgba(0,229,204,0.5);
}

.hdr-live-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--vwarm);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: vLivePulse 2s ease-in-out infinite;
}

@keyframes vLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header player controls */
.header-player-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.hdr-btn {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.05);
    color: var(--vtext);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    padding: 0;
}

.hdr-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.1);
}
.hdr-btn:active { transform: scale(0.92); }

.hdr-btn-play {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--vteal) 0%, #00B4A6 100%);
    color: var(--vbg);
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 20px rgba(0,229,204,0.25),
                0 3px 10px rgba(0,0,0,0.3);
}

.hdr-btn-play:hover {
    background: linear-gradient(135deg, #14F5DF 0%, var(--vteal) 100%);
    box-shadow: 0 0 30px rgba(0,229,204,0.4),
                0 3px 12px rgba(0,0,0,0.3);
}

/* Header equalizer */
.header-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100px;
    height: 32px;
    flex-shrink: 0;
}

/* Header volume */
.header-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hdr-vol-icon {
    font-size: 0.85rem;
    color: var(--vtext-dim);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hdr-vol-icon:hover { color: var(--vteal); }

.hdr-vol-track {
    width: 70px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.hdr-vol-track::before {
    content: '';
    position: absolute;
    top: -8px; bottom: -8px;
    left: 0; right: 0;
}

.hdr-vol-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vteal), var(--vlav));
    border-radius: 2px;
    position: relative;
    transition: width 0.1s;
}

.hdr-vol-knob {
    position: absolute;
    right: -5px; top: -4px;
    width: 11px; height: 11px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,229,204,0.6);
}

/* Header expand button */
.hdr-expand-btn {
    width: 30px; height: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: var(--vtext-dim);
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: 0.2s;
}
.hdr-expand-btn:hover { border-color: var(--vlav); color: var(--vlav); }

/* ============================================
   EQUALIZER BARS (shared by header + full player)
   ============================================ */
.eq-bar {
    display: inline-block;
    flex: 1;
    min-width: 2px;
    height: 8%;
    background: linear-gradient(to top, var(--vteal), var(--vlav));
    border-radius: 1px 1px 0 0;
    transition: height 0.08s ease-out;
}

/* ============================================
   BREADCRUMB — hide in visual mode, we have the dial
   ============================================ */
.mode-visual .breadcrumb-nav {
    display: none;
}

/* ============================================
   LAYOUT — split-screen (dial left, content right)
   ============================================ */
.mode-visual main {
    position: relative;
    z-index: 10;
}

.mode-visual .container {
    max-width: none;
    padding: 0;
}

/* Greeting text — visual mode styling */
.mode-visual .greeting-text {
    font-family: var(--vfont);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    padding: 12px 0 12px 16px;
    color: var(--vtext);
    border-left: 3px solid var(--vteal);
}

/* Tree header — show in visual mode for the rotating tips */
.mode-visual .tree-header {
    display: block;
}

.mode-visual .tree-title {
    display: none;
}

.mode-visual .tree-status {
    font-family: var(--vmono);
    font-size: 0.72rem;
    color: var(--vtext-dim);
    letter-spacing: 0.3px;
    margin: 0;
    padding: 0;
    min-height: 1.2em;
}

/* Search panel in visual mode — positioned over the dial */
.mode-visual .search-panel {
    font-family: var(--vfont);
}
.dial-panel > .search-panel {
    position: absolute;
    top: 20px; left: 20px; right: 20px;
    z-index: 40;
    padding: 16px;
    gap: 10px;
    background: linear-gradient(135deg, rgba(30,26,56,0.95) 0%, rgba(22,19,46,0.97) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}
.dial-panel > .search-panel .search-input {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--vtext);
    font-family: var(--vfont);
    font-size: 0.9rem;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}
.dial-panel > .search-panel .search-input:focus {
    border-color: var(--vteal);
    box-shadow: 0 0 12px rgba(0,229,204,0.15);
}
.dial-panel > .search-panel .search-input::placeholder {
    color: var(--vtext-dim);
}
.dial-panel > .search-panel .search-btn {
    background: linear-gradient(135deg, var(--vteal), var(--vlav));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: var(--vfont);
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ============================================
   VISUAL LAYOUT WRAPPER
   ============================================ */
.visual-layout {
    display: flex;
    height: 100vh;
    padding-top: 84px;
    overflow: hidden;
}

/* ============================================
   LEFT PANEL: DIAL
   ============================================ */
.dial-panel {
    width: 40vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    flex-shrink: 0;
    z-index: 15;
    overflow: hidden;
}

.dial-container {
    position: relative;
    width: 480px;
    height: 480px;
}

/* Vinyl disc SVG */
.dial-vinyl {
    position: absolute;
    inset: 0;
    animation: vVinylSpin 40s linear infinite;
    pointer-events: none;
}

@keyframes vVinylSpin {
    to { transform: rotate(360deg); }
}

/* Spotlight cone layer */
.dial-spotlight {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.dial-spotlight-cone {
    transition: opacity 0.3s;
    opacity: 0;
}
.dial-spotlight-cone.active {
    opacity: 1;
}

/* Ambient glow behind hovered item */
.dial-glow {
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(35px);
}
.dial-glow.active {
    opacity: 1;
}

/* Center hub */
.dial-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e1a35 40%, #110f22 100%);
    border: 2px solid rgba(139,92,246,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    z-index: 20;
    box-shadow: 0 0 50px rgba(0,0,0,0.5),
                0 0 20px rgba(139,92,246,0.1);
}

.dial-hub-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--vlav));
}

.dial-hub-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--vtext-mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: var(--vmono);
}

/* Connector lines SVG */
.dial-lines {
    position: absolute; inset: 0;
    z-index: 10;
    pointer-events: none;
}

/* Menu items on the dial circle */
.dial-item {
    position: absolute;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s,
                background 0.3s,
                border-color 0.3s;
    z-index: 15;
    text-align: center;
    background: rgba(20, 16, 40, 0.92);
    border: 1.5px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    animation: vDialItemIn 0.6s cubic-bezier(0.34,1.56,0.64,1) backwards;
    user-select: none;
}

@keyframes vDialItemIn {
    from { opacity: 0; transform: scale(0); }
}

.dial-item:hover {
    transform: scale(1.18) !important;
    z-index: 25;
}
.dial-item:active {
    transform: scale(1.05) !important;
}

/* Individual item colors via CSS custom property --dc */
.dial-item:hover,
.dial-item.dial-selected {
    border-color: var(--dc, var(--vteal));
    box-shadow: 0 0 40px color-mix(in srgb, var(--dc, var(--vteal)) 40%, transparent);
}

.dial-item.dial-selected {
    background: color-mix(in srgb, var(--dc, var(--vteal)) 14%, rgba(20, 16, 40, 0.98));
    box-shadow: 0 0 40px color-mix(in srgb, var(--dc, var(--vteal)) 35%, transparent),
                inset 0 0 25px color-mix(in srgb, var(--dc, var(--vteal)) 10%, transparent);
}

.dial-item-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.dial-item-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    max-width: 75px;
    line-height: 1.2;
    color: var(--vtext);
    font-family: var(--vfont);
}

/* ============================================
   RIGHT PANEL: CONTENT
   ============================================ */
.visual-content {
    flex: 1;
    padding: 32px 32px 24px;
    min-width: 0;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 84px);
    scrollbar-width: none; /* Firefox */
}
.visual-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Section preview card (shown on hover) */
.visual-section-preview {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
}

.visual-section-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vfont);
    overflow: hidden;
}
.visual-section-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.visual-section-desc {
    font-size: 0.8rem;
    color: var(--vtext-mid);
    margin-top: 6px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   VISUAL FOOTER (inside right panel)
   ============================================ */
.visual-footer-info {
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--vfont);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Donate section — inline */
.visual-footer-info .vf-donate {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.visual-footer-info .donate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0,229,204,0.15) 0%, rgba(139,92,246,0.15) 100%);
    border: 1px solid rgba(0,229,204,0.3);
    border-radius: 8px;
    color: var(--vteal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
    cursor: pointer;
}
.visual-footer-info .donate-link:hover {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0,229,204,0.25) 0%, rgba(139,92,246,0.25) 100%);
    border-color: rgba(0,229,204,0.5);
    color: #14F5DF;
    transform: scale(1.03);
}

.visual-footer-info .share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.15) 100%);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 8px;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
    cursor: pointer;
    margin-left: 0;
}
.visual-footer-info .share-link:hover {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(236,72,153,0.25) 100%);
    border-color: rgba(139,92,246,0.5);
    color: #c4b5fd;
    transform: scale(1.03);
}

.visual-footer-info .donate-sublabel {
    color: var(--vtext-dim);
    font-size: 0.62rem;
    line-height: 1.4;
}

/* Bottom line: counter · brand */
.visual-footer-info .vf-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--vmono);
    font-size: 0.62rem;
    color: var(--vtext-dim);
}

.visual-footer-info .vf-sep {
    opacity: 0.4;
}

.visual-footer-info .vf-brand {
    color: var(--vtext-dim);
    text-decoration: none;
}
.visual-footer-info .vf-brand:hover {
    color: var(--vtext-mid);
}

/* ============================================
   ANNOUNCEMENTS — visual mode
   ============================================ */
.visual-announcements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.visual-announcement {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(20,16,40,0.85) 0%, rgba(14,12,30,0.9) 100%);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    position: relative;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.visual-announcement:hover {
    border-color: rgba(255,255,255,0.15);
}

.visual-announcement-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.visual-announcement-body {
    flex: 1;
    min-width: 0;
}

.visual-announcement-title {
    font-family: var(--vfont);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vtext);
    margin-bottom: 4px;
}

.visual-announcement-text {
    font-family: var(--vfont);
    font-size: 0.75rem;
    color: var(--vtext-mid);
    line-height: 1.4;
}

.visual-announcement-link {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--vmono);
    font-size: 0.68rem;
    color: var(--vteal);
    text-decoration: none;
    font-weight: 700;
}
.visual-announcement-link:hover {
    text-decoration: underline;
}

.visual-announcement-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--vtext-dim);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}
.visual-announcement:hover .visual-announcement-close {
    opacity: 1;
}
.visual-announcement-close:hover {
    color: var(--vtext);
}

/* ============================================
   VISUAL TREE LIST — sub-menu item styling
   ============================================ */

/* When tree is inside visual-content (main menu), hide it visually
   but keep it accessible for keyboard navigation */
.visual-content > .tree-list {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mode-visual .tree-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--vfont);
}

.mode-visual .tree-item {
    border-radius: 8px;
    transition: background 0.2s;
    font-family: var(--vfont);
}

.mode-visual .tree-item:hover {
    background: rgba(255,255,255,0.05);
}

.mode-visual .tree-item[data-playing="true"] {
    background: rgba(0,229,204,0.08);
}

/* Playing dot — animated bars in visual mode */
.mode-visual .tree-item-playing-dot {
    width: 16px;
    height: 14px;
    background: none;
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    border-radius: 0;
    animation: none;
}

.mode-visual .tree-item-playing-dot::before,
.mode-visual .tree-item-playing-dot::after {
    display: none;
}

/* Favorite star in visual mode */
.mode-visual .tree-item-fav-btn {
    color: var(--vamber);
}

/* Share button in visual mode */
.mode-visual .tree-item-share-btn {
    color: var(--vteal);
    font-size: 1rem;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.mode-visual .tree-item-share-btn:hover,
.mode-visual .tree-item-share-btn:focus {
    opacity: 1;
}

/* Empty state back button (visual mode) */
.mode-visual .tree-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.mode-visual .tree-item-empty-msg {
    font-style: italic;
    color: var(--text-muted);
}
.mode-visual .tree-item-empty-back {
    background: transparent;
    border: 1px solid var(--vacc, #4ecdc4);
    border-radius: 6px;
    padding: 6px 16px;
    color: var(--vacc, #4ecdc4);
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.mode-visual .tree-item-empty-back:hover,
.mode-visual .tree-item-empty-back:focus {
    background: rgba(78, 205, 196, 0.12);
}

/* Count badge */
.mode-visual .tree-item-count {
    font-family: var(--vmono);
    font-size: 0.65rem;
    color: var(--vtext-dim);
}

/* ============================================
   FOOTER — hide in visual mode (content moved into visual-content)
   ============================================ */
.mode-visual .site-footer {
    display: none;
}

/* ============================================
   BOTTOM PLAYER DOCK — always hidden
   (was only used in visual mode, now replaced by header player)
   ============================================ */
.player-dock {
    display: none !important;
}

/* Header player — hidden outside visual mode */
.header-player {
    display: none;
}

/* ============================================
   FULL PLAYER (expanded view)
   ============================================ */
.full-player-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 300;
    background: linear-gradient(180deg, rgba(6,5,15,0.98) 0%, rgba(19,16,42,0.99) 100%);
    backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px;
    font-family: var(--vfont);
}

.full-player-overlay.show {
    display: flex;
    animation: vFpIn 0.4s ease;
}

@keyframes vFpIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.full-player-overlay::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle 400px at 30% 30%, rgba(0,229,204,0.06) 0%, transparent 100%),
        radial-gradient(circle 350px at 70% 70%, rgba(139,92,246,0.06) 0%, transparent 100%),
        radial-gradient(circle 300px at 50% 50%, rgba(255,45,120,0.04) 0%, transparent 100%);
    pointer-events: none;
}

.fp-close-btn {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent; color: var(--vtext-dim);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    z-index: 5;
    padding: 0;
}
.fp-close-btn:hover { color: var(--vtext); border-color: var(--vtext); }

.fp-vinyl-wrap {
    width: 280px; height: 280px;
    position: relative;
    z-index: 2;
}

.fp-vinyl-wrap svg {
    animation: vVinylSpin 6s linear infinite;
}

.fp-vinyl-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--vtext-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--vmono);
}

/* Full player equalizer */
.fp-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 400px;
    height: 60px;
    z-index: 2;
}

.fp-station-info {
    text-align: center;
    z-index: 2;
}

.fp-station-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.fp-station-meta {
    color: var(--vtext-mid);
    font-size: 0.85rem;
    margin-top: 4px;
}

.fp-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.fp-controls .dock-btn {
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.05);
    color: var(--vtext);
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    padding: 0;
}

.fp-controls .dock-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.1);
}
.fp-controls .dock-btn:active { transform: scale(0.92); }

.fp-controls .dock-btn-play {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--vteal) 0%, #00B4A6 100%);
    color: var(--vbg);
    border-radius: 18px;
    border: none;
    box-shadow: 0 0 25px rgba(0,229,204,0.3),
                0 4px 12px rgba(0,0,0,0.3);
}

.fp-controls .dock-btn-play:hover {
    background: linear-gradient(135deg, #14F5DF 0%, var(--vteal) 100%);
    box-shadow: 0 0 35px rgba(0,229,204,0.45),
                0 4px 15px rgba(0,0,0,0.3);
}

.fp-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.fp-volume .dock-vol-track {
    width: 160px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.fp-volume .dock-vol-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vteal), var(--vlav));
    border-radius: 2px;
    position: relative;
    transition: width 0.1s;
}

.fp-volume .dock-vol-knob {
    position: absolute;
    right: -5px; top: -4px;
    width: 11px; height: 11px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,229,204,0.6);
}

.fp-volume .dock-vol-icon {
    color: var(--vtext-dim);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-volume .dock-vol-icon:hover { color: var(--vteal); }

/* ============================================
   VINYL PAUSED STATE
   ============================================ */
.full-player-overlay[data-paused="true"] .fp-vinyl-wrap svg,
.dial-vinyl[data-paused="true"] {
    animation-play-state: paused;
}

/* ============================================
   ROTATING TIPS ANIMATION
   ============================================ */
.mode-visual .tree-status {
    transition: opacity 0.3s ease;
}
.mode-visual .tree-status.tip-fade {
    opacity: 0;
}

/* ============================================
   HALF-DIAL SUBMENU (visual mode desktop)
   ============================================ */

/* Dial panel in half-dial mode */
.mode-visual .dial-panel.hd-mode {
    width: 45vw;
    overflow: hidden;
}
.mode-visual .dial-panel.hd-mode .dial-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Axis glow */
.hd-axis-glow {
    position: absolute;
    left: -80px; top: 50%;
    transform: translateY(-50%);
    width: 180px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.2) 0%, rgba(0,229,204,0.06) 40%, transparent 70%);
    pointer-events: none; z-index: 1;
}

/* Pulsing ring at axis */
.hd-axis-ring {
    position: absolute;
    left: -40px; top: 50%;
    transform: translateY(-50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(139,92,246,0.25);
    pointer-events: none; z-index: 2;
    animation: hdAxisPulse 4s ease-in-out infinite;
}
.hd-axis-ring::after {
    content: '';
    position: absolute; inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0,229,204,0.1);
    animation: hdAxisPulse 4s ease-in-out infinite reverse;
}
@keyframes hdAxisPulse {
    0%,100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.2; }
}

/* Arc SVG */
.hd-arc-svg { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* Connector line */
.hd-connector {
    position: absolute;
    left: 0; top: 50%; height: 1px;
    background: linear-gradient(90deg, rgba(139,92,246,0.35) 0%, rgba(0,229,204,0.2) 50%, transparent 100%);
    pointer-events: none; z-index: 2;
    transition: width 0.35s ease;
}

/* Items container */
.hd-items-wrap { position: absolute; inset: 0; z-index: 10; }

/* Item cards */
.hd-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #1c1838 0%, #151230 100%);
    border: 1.5px solid rgba(255,255,255,0.12);
    transform-origin: left center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: var(--vfont);
}

.hd-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: 0.4s;
}
.hd-item:hover::before { left: 150%; }

.hd-item:hover:not(.hd-selected) {
    border-color: rgba(255,255,255,0.22);
    background: linear-gradient(135deg, #252148 0%, #1c1838 100%);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hd-item.hd-selected {
    border-color: var(--vteal);
    background: linear-gradient(135deg, #122a2a 0%, #16183a 100%);
    box-shadow:
        0 0 35px rgba(0,229,204,0.2),
        0 0 70px rgba(0,229,204,0.08),
        inset 0 1px 0 rgba(0,229,204,0.15),
        0 8px 32px rgba(0,0,0,0.5);
    z-index: 20 !important;
}

/* Accent line on left edge of selected */
.hd-item.hd-selected::after {
    content: '';
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--vteal), var(--vlav));
    box-shadow: 0 0 10px var(--vteal);
}

/* Icon */
.hd-item-icon {
    font-size: 1.3rem;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.hd-selected .hd-item-icon {
    font-size: 1.5rem;
    width: 44px; height: 44px;
    background: rgba(0,229,204,0.12);
    border-color: rgba(0,229,204,0.25);
    box-shadow: 0 0 15px rgba(0,229,204,0.12);
}
.hd-item-icon-img {
    overflow: hidden;
    padding: 0;
}
.hd-item-icon-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Text */
.hd-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.hd-item-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--vtext);
    white-space: nowrap;
    overflow: hidden;
}
.hd-selected .hd-item-label {
    font-size: 0.95rem;
    color: #fff;
}
.hd-item-sublabel {
    font-size: 0.58rem;
    color: var(--vtext-dim);
    font-family: var(--vmono);
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hd-selected .hd-item-sublabel { display: block; color: var(--vtext-mid); }

/* Column wrapper: fav star on top, share button below */
.hd-item-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Favorite star */
.hd-item-fav {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.22);
    font-size: 1rem;
    border-radius: 50%;
    transition: 0.2s;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
}
.hd-item-fav:hover { color: var(--vamber); transform: scale(1.3); }
.hd-item-fav.fav-active { color: var(--vamber); text-shadow: 0 0 8px rgba(255,179,0,0.5); }
.hd-selected .hd-item-fav { color: rgba(255,255,255,0.35); }
.hd-selected .hd-item-fav.fav-active { color: var(--vamber); }

/* Share button */
.hd-item-share {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.22);
    font-size: 1rem;
    border-radius: 50%;
    transition: 0.2s;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
}
.hd-item-share:hover { color: var(--vteal); transform: scale(1.15); }
.hd-selected .hd-item-share { color: rgba(255,255,255,0.35); }
.hd-selected .hd-item-share:hover { color: var(--vteal); }
.hd-item-share.share-copied {
    color: var(--vteal);
    animation: hd-share-pulse 0.4s ease-out;
    text-shadow: 0 0 10px rgba(0,229,204,0.7);
}
@keyframes hd-share-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.45); }
    100% { transform: scale(1.2); }
}

/* Count badge */
.hd-item-count {
    font-family: var(--vmono);
    font-size: 0.55rem;
    color: var(--vtext-dim);
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
    display: none;
}
.hd-selected .hd-item-count { display: block; color: var(--vteal); background: rgba(0,229,204,0.08); }

/* Arrow for categories */
.hd-item-arrow {
    color: var(--vtext-dim);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 4px;
    transition: 0.2s;
}
.hd-selected .hd-item-arrow { color: var(--vteal); }

/* Nav arrows */
.hd-nav-arrows {
    position: absolute;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.35s ease;
}
.hd-nav-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(135deg, #1e1a38 0%, #16132e 100%);
    color: var(--vtext-mid);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    box-shadow: 0 3px 14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 0;
}
.hd-nav-arrow:hover {
    border-color: var(--vteal);
    color: var(--vteal);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0,229,204,0.2), 0 3px 14px rgba(0,0,0,0.5);
}
.hd-nav-arrow:active { transform: scale(0.85); }
.hd-nav-arrow svg { width: 16px; height: 16px; fill: currentColor; }

/* Hub panel (search + fav) */
.hd-hub-panel {
    position: absolute;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.35s ease;
}
.hd-hub-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: linear-gradient(135deg, #1e1a38 0%, #16132e 100%);
    color: var(--vtext-mid);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 0;
}
.hd-hub-btn:hover {
    transform: scale(1.15);
    border-color: var(--vlav);
    color: var(--vlav);
    box-shadow: 0 0 25px rgba(139,92,246,0.25), 0 4px 20px rgba(0,0,0,0.5);
}
.hd-hub-btn:active { transform: scale(0.92); }
.hd-hub-btn svg { width: 20px; height: 20px; fill: currentColor; }
.hd-hub-btn-back:hover { color: var(--vteal); border-color: var(--vteal); }
.hd-hub-btn-search:hover { color: var(--vice); border-color: var(--vice); }
.hd-hub-btn-fav:hover { color: var(--vamber); border-color: var(--vamber); }

/* Position counter */
.hd-counter {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--vmono);
    font-size: 0.6rem;
    color: var(--vtext-mid);
    z-index: 30;
    padding: 4px 12px;
    border-radius: 8px;
    background: #16132e;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Half-dial content panel */
.hd-content-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    font-family: var(--vfont);
    color: var(--vtext);
}
.hd-content-subtitle {
    font-family: var(--vmono);
    font-size: 0.72rem;
    color: var(--vtext-dim);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* Preview card */
.hd-preview {
    padding: 20px 24px;
    background: linear-gradient(135deg, #141028 0%, #100e22 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hd-preview-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
    min-width: 0;
    overflow: hidden;
}
.hd-preview-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.hd-preview-img {
    width: 40px; height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}
.hd-preview-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    font-family: var(--vfont);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-preview-badge {
    font-family: var(--vmono);
    font-size: 0.6rem;
    color: var(--vteal);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0,229,204,0.08);
    margin-left: auto;
}
.hd-preview-desc {
    font-size: 0.8rem;
    color: var(--vtext-mid);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-preview-meta {
    display: flex; gap: 16px;
    margin-top: 10px;
    font-family: var(--vmono);
    font-size: 0.6rem;
    color: var(--vtext-dim);
}
.hd-preview-meta-item {
    display: flex; align-items: center; gap: 5px;
}
.hd-preview-meta-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Entry animation */
@keyframes hdItemIn {
    from { opacity: 0; transform: translateX(-50px) scale(0.6); }
    to { opacity: 1; }
}

/* Marquee scroll for long labels on selected item */
.hd-item-label.hd-label-scroll {
    overflow: hidden;
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
}
.hd-item-label.hd-label-scroll .hd-label-inner {
    display: inline-block;
    animation: hdLabelScroll var(--scroll-duration, 6s) linear infinite;
    animation-delay: 1s;
    padding-right: 2em;
}
@keyframes hdLabelScroll {
    0%, 15% { transform: translateX(0); }
    85%, 100% { transform: translateX(var(--scroll-distance, -100px)); }
}

/* ============================================
   YOUTUBE MINI-PLAYER (visual mode desktop)
   ============================================ */

/* Container: flex item that fills available space between tree and footer */
#yt-player-container.yt-mini-visible {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    container-type: size;
    margin: 8px 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    z-index: 1;
}

/* Iframe: largest 16:9 that fits, centered */
#yt-player-container.yt-mini-visible iframe {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100cqw, calc(100cqh * 16 / 9)) !important;
    height: min(100cqh, calc(100cqw * 9 / 16)) !important;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
    display: block;
}

/* Maximize button — appears on hover */
#yt-player-container.yt-mini-visible #yt-maximize-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - min(100cqh, calc(100cqw * 9 / 16)) / 2 + 8px);
    right: calc(50% - min(100cqw, calc(100cqh * 16 / 9)) / 2 + 8px);
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
}
#yt-player-container.yt-mini-visible:hover #yt-maximize-btn {
    opacity: 1;
}

/* Fullscreen mode */
#yt-player-container:fullscreen,
#yt-player-container:-webkit-full-screen {
    position: static;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    container-type: normal;
}
#yt-player-container:fullscreen iframe,
#yt-player-container:-webkit-full-screen iframe {
    position: static !important;
    transform: none;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    box-shadow: none;
}
#yt-player-container:fullscreen #yt-maximize-btn,
#yt-player-container:-webkit-full-screen #yt-maximize-btn {
    display: none;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .dial-vinyl,
    .fp-vinyl-wrap svg {
        animation: none !important;
    }
    .mode-visual::after {
        animation: none !important;
    }
    .mode-visual .site-header::after {
        animation: none !important;
    }
    .dial-item {
        animation: none !important;
    }
    .hdr-live-badge {
        animation: none !important;
    }
    .eq-bar {
        transition: none !important;
    }
    .mode-visual .tree-status {
        transition: none !important;
    }
    .hd-item {
        transition: none !important;
    }
    .hd-axis-ring,
    .hd-axis-ring::after {
        animation: none !important;
    }
}

/* ========================================
   Mobile Visual — Neon Rolodex
   ======================================== */

/* ── Shared base: hide by default, show only mobile visual ── */
.mob-rolodex,
.mob-submenu {
    display: none;
}

.mode-visual.mobile-visual .mob-rolodex {
    display: block;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    bottom: 0;
    z-index: 15;
    overflow: hidden;
    transition: opacity 0.4s, transform 0.4s;
}

.mode-visual.mobile-visual .mob-rolodex.mob-hidden {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
    pointer-events: none;
}

/* Hide desktop elements on mobile visual */
.mode-visual.mobile-visual .dial-panel,
.mode-visual.mobile-visual .visual-content,
.mode-visual.mobile-visual .visual-layout,
.mode-visual.mobile-visual .player-dock {
    display: none !important;
}

/* Hide YouTube video on mobile visual — audio-only playback */
.mode-visual.mobile-visual #yt-player-container.yt-mini-visible {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Hide desktop header-player on mobile (too wide) */
.mode-visual.mobile-visual .header-player {
    display: none !important;
}

/* Compact controls group for mobile header */
.mode-visual.mobile-visual .hdr-controls-group {
    gap: 8px !important;
    margin-left: auto;
}
/* Quitar selector de idioma — la app detecta el idioma del sistema */
.mode-visual.mobile-visual .lang-btn {
    display: none !important;
}
.mode-visual.mobile-visual .hdr-user-btn {
    padding: 6px 10px !important;
    border-radius: 8px !important;
}
.mode-visual.mobile-visual .hdr-user-name {
    max-width: 60px;
}
.mode-visual.mobile-visual .hdr-accessible-btn {
    padding: 6px 12px !important;
    background: rgba(0,229,204,0.12) !important;
    border-color: rgba(0,229,204,0.3) !important;
    border-radius: 8px !important;
    gap: 5px !important;
}
.mode-visual.mobile-visual .hdr-accessible-btn svg {
    width: 17px;
    height: 17px;
    color: var(--vteal);
}
.mode-visual.mobile-visual .hdr-accessible-label {
    display: none !important;
}

/* Compact logo for mobile */
.mode-visual.mobile-visual .site-logo {
    margin-right: 0;
    font-size: 0.78rem;
}
.mode-visual.mobile-visual .logo-icon-img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}
.mode-visual.mobile-visual .logo-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shrink header for mobile */
.mode-visual.mobile-visual .site-header {
    height: 56px !important;
}
.mode-visual.mobile-visual .header-inner {
    height: 56px !important;
    padding: 0 16px 0 16px !important;
    gap: 8px !important;
}

/* Hide main content but let fixed children (search panel, loading) escape */
.mode-visual.mobile-visual #main-content {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px; height: 1px;
    overflow: visible;
}

/* ── Greeting ── */
.mob-greeting {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 16px 22px 0;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}

.mob-greeting.mob-g-hidden {
    opacity: 0;
    transform: translateY(-15px);
}

.mob-greeting-hello {
    font-family: var(--vfont);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--vtext) 0%, var(--vtext-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mob-greeting-hello .mob-g-name {
    background: linear-gradient(135deg, var(--vteal), var(--vlav));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mob-greeting-info {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mob-greeting-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-family: var(--vfont);
    font-size: 0.62rem;
    color: var(--vtext-mid);
}

/* ── Neon axis ── */
.mob-axis-line {
    position: absolute;
    left: 18px;
    top: 20%;
    bottom: 26%;
    width: 2.5px;
    border-radius: 3px;
    background: linear-gradient(180deg,
        transparent 0%, rgba(139,92,246,0.35) 20%,
        rgba(0,229,204,0.6) 50%,
        rgba(139,92,246,0.35) 80%, transparent 100%);
    z-index: 5;
    overflow: hidden;
}

.mob-axis-line::before {
    content: '';
    position: absolute;
    left: -4px; right: -4px;
    top: 0; bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%, rgba(139,92,246,0.12) 20%,
        rgba(0,229,204,0.2) 50%,
        rgba(139,92,246,0.12) 80%, transparent 100%);
    filter: blur(6px);
}

.mob-axis-line::after {
    content: '';
    position: absolute;
    left: -2px; right: -2px;
    width: 7px;
    height: 50px;
    background: linear-gradient(180deg,
        transparent, rgba(0,229,204,0.9), transparent);
    border-radius: 4px;
    animation: mobAxisPulse 3s ease-in-out infinite;
    filter: blur(1.5px);
}

@keyframes mobAxisPulse {
    0% { top: -50px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% + 50px); opacity: 0; }
}

.mob-axis-node {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--vteal);
    box-shadow: 0 0 10px var(--vteal), 0 0 25px rgba(0,229,204,0.35);
    z-index: 6;
    animation: mobNodePulse 2.5s ease-in-out infinite;
    transition: background 0.4s, box-shadow 0.4s;
}

.mob-axis-node::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,229,204,0.25);
    animation: mobNodeRing 2.5s ease-in-out infinite;
}

@keyframes mobNodePulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.25); }
}

@keyframes mobNodeRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2); opacity: 0; }
}

.mob-axis-connector {
    position: absolute;
    left: 26px;
    top: 50%;
    height: 1.5px;
    width: 16px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(0,229,204,0.6), rgba(0,229,204,0.05));
    z-index: 5;
}

/* ── Halo ── */
.mob-halo {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 130px;
    border-radius: 50%;
    filter: blur(35px);
    z-index: 0;
    animation: mobHalo 3s ease-in-out infinite;
    pointer-events: none;
    transition: background 0.5s;
}

@keyframes mobHalo {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Cylinder — native scroll container ── */
.mob-cylinder {
    position: absolute;
    top: 85px; bottom: 80px;
    left: 28px; right: 14px;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mob-cylinder::-webkit-scrollbar { display: none; }

/* ── Rolodex item — normal flow, native scroll ── */
.mob-r-item {
    position: relative;
    min-height: 84px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28,24,56,0.85) 0%, rgba(21,18,48,0.9) 100%);
    border: 1.5px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    font-family: var(--vfont);
}

/* Active-press feedback */
.mob-r-item:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Neon highlight on selected item */
.mob-r-item.mob-r-selected {
    border-color: var(--mr-color, var(--vteal));
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mr-color, var(--vteal)) 10%, rgba(28,24,56,0.95)) 0%,
        rgba(21,18,48,0.97) 100%);
    box-shadow:
        0 0 25px color-mix(in srgb, var(--mr-color, var(--vteal)) 18%, transparent),
        0 6px 22px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.07);
}
.mob-r-item.mob-r-selected .mr-icon {
    background: color-mix(in srgb, var(--mr-color, var(--vteal)) 15%, transparent);
    border-color: color-mix(in srgb, var(--mr-color, var(--vteal)) 30%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--mr-color, var(--vteal)) 18%, transparent);
}
.mob-r-item.mob-r-selected .mr-sub { color: var(--vtext-mid); }
.mob-r-item.mob-r-selected .mr-arrow {
    color: var(--mr-color, var(--vteal));
}
.mob-r-item.mob-r-selected::before {
    content: '';
    position: absolute;
    left: 0; top: 18%; bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--mr-color, var(--vteal)), var(--vlav));
    box-shadow: 0 0 8px var(--mr-color, var(--vteal));
}

.mob-r-item .mr-icon {
    font-size: 1.55rem;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: all 0.25s;
}

.mob-r-item .mr-text { flex: 1; min-width: 0; }

.mob-r-item .mr-label {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--vtext);
}

.mob-r-item .mr-sub {
    font-size: 0.76rem;
    color: var(--vtext-dim);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-r-item .mr-arrow {
    color: var(--vtext-dim);
    font-size: 1.25rem;
    font-weight: 300;
    transition: all 0.3s;
    flex-shrink: 0;
}

/* Entry animation */
@keyframes mobCascadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
}
.mob-r-item.mob-anim-in {
    animation: mobCascadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

/* ── Quick actions ── */
.mob-quick-actions {
    position: absolute;
    bottom: 22px;
    left: 14px; right: 14px;
    display: flex;
    gap: 8px;
    z-index: 30;
    transition: opacity 0.4s, transform 0.4s, bottom 0.35s ease;
}
.mob-quick-actions.mob-qa-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Default quick action buttons (search + favs) */
.mob-qa-default {
    display: flex;
    gap: 10px;
    width: 100%;
}
.mob-qa-default[hidden] { display: none; }

.mob-quick-btn {
    flex: 1;
    height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,0.07);
    background: linear-gradient(135deg, rgba(28,24,56,0.75) 0%, rgba(21,18,48,0.8) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--vtext-mid);
    font-family: var(--vfont);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}
.mob-quick-btn:active {
    border-color: var(--vteal);
    color: var(--vteal);
}

/* ── Now-playing bar (inside quick-actions) ── */
.mob-qa-np {
    display: none;
}
.mob-qa-np:not([hidden]) {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    gap: 10px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(22,19,46,0.92) 0%, rgba(14,12,32,0.95) 100%);
    border: 1px solid rgba(0,229,204,0.15);
    padding: 0 5px 0 12px;
    -webkit-tap-highlight-color: transparent;
}

.mob-qa-np-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.mob-qa-np-label {
    flex-shrink: 0;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--vteal);
    text-transform: uppercase;
}

.mob-qa-np-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--vtext);
}

.mob-qa-np-play {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--vteal), var(--vlav));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,229,204,0.3);
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mob-qa-np-play:active { transform: scale(0.88); }

/* ── Submenu scene ── */
.mode-visual.mobile-visual .mob-submenu {
    display: block;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    bottom: 0;
    z-index: 16;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}

.mode-visual.mobile-visual .mob-submenu.mob-sub-show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.mob-submenu-accent {
    position: absolute;
    left: 12px; top: 70px; bottom: 90px;
    width: 2px;
    border-radius: 2px;
    opacity: 0.3;
    z-index: 1;
}

.mob-submenu-header {
    padding: 16px 18px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--vfont);
}

.mob-sub-icon {
    font-size: 1.6rem;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1.5px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.mob-sub-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mob-sub-desc {
    font-size: 0.63rem;
    color: var(--vtext-dim);
    margin-top: 2px;
}

.mob-submenu-list {
    position: absolute;
    top: 80px;
    left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    padding: 8px 12px 100px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
    font-family: var(--vfont);
}

.mob-submenu-list::-webkit-scrollbar { display: none; }

.mob-sub-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28,24,56,0.7) 0%, rgba(21,18,48,0.75) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: mobSubIn 0.4s ease forwards;
}

.mob-sub-item:nth-child(1) { animation-delay: 0.05s; }
.mob-sub-item:nth-child(2) { animation-delay: 0.1s; }
.mob-sub-item:nth-child(3) { animation-delay: 0.15s; }
.mob-sub-item:nth-child(4) { animation-delay: 0.2s; }
.mob-sub-item:nth-child(5) { animation-delay: 0.25s; }
.mob-sub-item:nth-child(6) { animation-delay: 0.3s; }
.mob-sub-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes mobSubIn {
    to { opacity: 1; transform: translateY(0); }
}

.mob-sub-item:active {
    transform: scale(0.97) !important;
    opacity: 0.85 !important;
}

.mob-sub-item .msi-icon {
    font-size: 1.3rem;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.mob-sub-item .msi-text { flex: 1; min-width: 0; }

.mob-sub-item .msi-label {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--vtext);
}

.mob-sub-item .msi-desc {
    font-size: 0.72rem;
    color: var(--vtext-dim);
    margin-top: 2px;
}

.mob-sub-item .msi-fav {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.18);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mob-sub-item .msi-fav.msi-fav-active {
    color: var(--vamber);
    text-shadow: 0 0 8px rgba(255,179,0,0.5);
}
.mob-sub-item .msi-fav:active { transform: scale(1.3); }

.mob-sub-item .msi-menu {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mob-sub-item .msi-menu:active { color: var(--acc2, #4ecdc4); transform: scale(1.2); }

.mob-sub-item .msi-arrow {
    color: var(--vtext-dim);
    font-size: 0.9rem;
}

/* ── Station list item: new layout (fav left · name center · share+play right) ── */
.mob-sub-item.mob-sub-station {
    gap: 10px;
}
.mob-sub-item .msi-fav-left {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0;
    color: rgba(255,255,255,0.3);
    font-size: 1.25rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s, transform 0.2s;
}
.mob-sub-item .msi-fav-left.msi-fav-active {
    color: var(--vamber);
    text-shadow: 0 0 8px rgba(255,179,0,0.5);
}
.mob-sub-item .msi-fav-left:active { transform: scale(1.3); }

.mob-sub-item .msi-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.mob-sub-item .msi-share-btn,
.mob-sub-item .msi-play-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.12s;
}
.mob-sub-item .msi-share-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--vtext-mid);
}
.mob-sub-item .msi-play-btn {
    background: rgba(0,229,204,0.13);
    border: 1px solid rgba(0,229,204,0.28);
    color: var(--vteal);
    font-size: 1.15rem;
}
.mob-sub-item .msi-play-btn.msi-play-active {
    background: rgba(0,229,204,0.22);
    border-color: rgba(0,229,204,0.5);
}
.mob-sub-item .msi-share-btn:active,
.mob-sub-item .msi-play-btn:active { transform: scale(0.9); }

/* Station favicon in detail submenu header */
.mob-sub-station-favicon {
    width: 34px; height: 34px;
    border-radius: 7px;
    object-fit: contain;
}

/* ── Mobile station submenu: split layout with chat panel ── */
.mob-submenu.has-station-chat .mob-submenu-list {
    bottom: 200px;
    transition: bottom 0.3s ease;
}
.mob-submenu.has-station-chat.chat-expanded .mob-submenu-list {
    bottom: 55vh;
    transition: bottom 0.3s ease;
}

.mob-station-chat {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 200px;
    background: rgba(10, 14, 22, 0.97);
    border-top: 2px solid rgba(0,229,204,0.3);
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
    z-index: 2;
}
.mob-station-chat.mob-chat-expanded {
    height: 55vh;
}

.mob-chat-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 6px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mob-chat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
}
.mob-chat-expand-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.mob-chat-expand-btn:active { color: var(--acc2, #4ecdc4); }

.mob-chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
}
.mob-chat-msgs::-webkit-scrollbar { display: none; }

.mob-chat-msg {
    font-size: 0.74rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.72);
}
.mob-chat-msg-name {
    font-weight: 700;
    color: var(--acc2, #4ecdc4);
}
.mob-chat-empty {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
    text-align: center;
    margin: auto;
}

.mob-chat-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 8px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.mob-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 7px 12px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
    font-family: var(--vfont);
}
.mob-chat-input::placeholder { color: rgba(255,255,255,0.28); }
.mob-chat-input:focus { border-color: var(--acc2, #4ecdc4); }
.mob-chat-send {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--acc2, #4ecdc4);
    border: none;
    color: #0a0e16;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mob-chat-send:disabled { opacity: 0.4; }
.mob-chat-send:active { opacity: 0.7; }
.mob-chat-login-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    padding: 4px 2px;
}

/* ── Alphabet index sidebar ── */
.mob-alpha-index {
    position: absolute;
    right: 0;
    top: 80px; bottom: 10px;
    width: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    background: rgba(6,5,15,0.5);
    border-radius: 12px 0 0 12px;
    padding: 6px 0;
}
.mob-alpha-letter {
    font-size: 0.48rem;
    color: rgba(255,255,255,0.35);
    padding: 1.5px 0;
    text-align: center;
    width: 100%;
    cursor: pointer;
    font-family: var(--vmono);
    font-weight: 700;
    line-height: 1;
    transition: color 0.15s;
    -webkit-user-select: none;
    user-select: none;
}
.mob-alpha-letter.mob-al-active {
    color: var(--vteal);
    transform: scale(1.4);
    text-shadow: 0 0 8px rgba(0,229,204,0.5);
}

/* Header back button for mobile submenu */
.mode-visual.mobile-visual .hdr-mob-back {
    display: none;
    width: auto;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.09);
    color: var(--vtext);
    font-size: 1.15rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-family: var(--vfont);
    padding: 0 12px 0 8px;
    gap: 4px;
}
.mode-visual.mobile-visual .mob-back-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mode-visual.mobile-visual .hdr-mob-back.mob-back-show {
    display: flex;
}

/* Loading + error overlay for mobile visual */
.mode-visual.mobile-visual .loading,
.mode-visual.mobile-visual #error-message {
    position: fixed !important;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(6,5,15,0.92);
    border-radius: 16px;
    padding: 28px 36px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: auto; height: auto;
    overflow: visible;
    color: var(--vtext-mid);
    font-family: var(--vfont);
}

/* Search panel for mobile visual */
.mode-visual.mobile-visual .search-panel {
    position: fixed !important;
    top: 56px; left: 0; right: 0;
    z-index: 40;
    width: auto; height: auto;
    overflow: visible;
    background: rgba(6,5,15,0.97);
    padding: 14px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mode-visual.mobile-visual .search-panel[hidden] {
    display: none !important;
}
.mode-visual.mobile-visual .search-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--vtext);
    font-family: var(--vfont);
    font-size: 0.85rem;
}
.mode-visual.mobile-visual .search-btn {
    border-radius: 10px;
    padding: 10px 16px;
    background: var(--vteal);
    color: #000;
    border: none;
    font-family: var(--vfont);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Mobile visual reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .mob-axis-line::after { animation: none !important; }
    .mob-axis-node { animation: none !important; }
    .mob-axis-node::before { animation: none !important; }
    .mob-halo { animation: none !important; }
    .mob-r-item { animation: none !important; transition: none !important; }
    .mob-sub-item { animation: none !important; }
}
