
    @media(max-width:768px){ :root{ --mobile-vpad-top: 0; --mobile-vpad-bottom: 0; --mobile-body-pt: 49px; } }
    :root {
      --surface: #ffffff;
      --elev-1: 0 6px 20px rgba(2, 6, 23, .06);
      --elev-2: 0 14px 40px rgba(2, 6, 23, .14);
      --badge-bg: rgba(2,6,23,.06);
      --video: #ef4444;    /* red */
      --audio: #2563eb;    /* blue */
      --score: #f59e0b;    /* improved amber/yellow */
      --spotify: #16a34a;  /* green */
      --streaming: var(--spotify);
      /* Featured layout tokens */
      --featured-gap: 3rem;
      --featured-gap-lg: 4.25rem;
      --nav-height: 100px;
      --featured-player-max: 720px;
      --featured-sticky-top: calc(var(--nav-height, 96px) + 10px);
     
    }
    body { background: var(--gray-500, #0f172a); padding-top: 96px; }
    html { scroll-behavior: smooth; }
    /* Smooth anchor scrolling with fixed-nav offset for all sections with data-anchor */
    [data-anchor] { scroll-margin-top: calc(var(--nav-height, 96px) + 16px); }

    /* Dark mode tokens/overrides (using global variables.css dark palette) */
    [data-theme="dark"] {
      --surface: var(--gray-800);
      --badge-bg: rgba(255,255,255,.08);
      --elev-1: 0 8px 24px rgba(0,0,0,.45);
      --elev-2: 0 16px 48px rgba(0,0,0,.6);
    }
    [data-theme="dark"] body { background: var(--gray-900); }

    /* Hide catalog page header on this page */
    .catalog-header { display: none !important; }

    /* Ensure nav dropdowns sit above page content on Media and nav is fixed */
    .example-1 { position: fixed; top: 0; left:0; right:0; z-index: 5000; background: white; }
    .main-nav { z-index: 6000 !important; }
    /* (Reverted overly aggressive Media-only nav compaction; rely on global styles) */
    /* Dropdown menus: always present for animation; hidden via opacity/transform */
    .main-nav .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 6001 !important;
      display: block !important;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity .14s ease, transform .14s ease;
      pointer-events: none;
    }
    .main-nav .nav-item { position: relative; }
    /* Reveal on hover or when JS toggles .open */
    .main-nav .nav-item:hover > .dropdown-menu,
    .main-nav .nav-item.open > .dropdown-menu {
      opacity: 1 !important;
      transform: translateY(0) !important;
      pointer-events: auto;
    }
    /* Remove the thin separator line under the nav on this page */
    .example-1 .header-base::after { display: none; }
    /* CRITICAL: Don't set ANY overflow on html or body - it breaks sticky! */
    /* Intentionally no overflow settings here to preserve sticky behavior */
    .section { max-width: 1650px; margin: 0 auto; padding: 0 1.5rem; box-sizing: content-box; }
    .featured-primary, .featured-player { max-width: 100%; }
    /* Don't set overflow on featured-hero as it breaks sticky */
    .featured-hero { max-width: 100%; }

    /* Featured */
    .featured { 
      background: var(--secondary-300); 
      padding: 0 0 1.5rem; 
      /* Contain sticky element within this section */
      position: relative;
      overflow: visible !important;
      isolation: isolate;
      scroll-margin-top: calc(var(--nav-height, 100px) + 20px);
    }
    /* Add comfortable offset below nav */
    #featured { 
      padding-top: 0;
      position: relative;
      overflow: visible !important;
      padding-bottom: 0;
    }
    .section { 
      max-width: 1650px; 
      margin: 0 auto; 
      padding: 0 1.5rem;
      overflow: visible !important;
    }
    #featured .section { 
      max-width: 1320px;
      overflow: visible !important;
    }
  .audioasidebody.panel-body {
      padding: 0rem;
    }
    /* Featured split using flex like the working about.html */
    .featured-split { 
      display: flex !important; 
      gap: var(--featured-gap); 
      align-items: flex-start !important;
      width: 100%; 
      position: relative;  /* Create containing block for sticky */
      padding-bottom: 2rem; /* extra breathing room below the video side */
    }
    /* Left column sticky - exactly like about.html .image-side */
    .featured-split > div:first-child { 
      position: sticky !important; 
      top: var(--featured-sticky-top) !important;  /* Respect dynamic nav height */
      flex: 0 0 55% !important;  /* Fixed width like about.html */
      height: fit-content;  /* Let content determine height */
      max-height: none;  /* Allow full content height to prevent overflow overlap into next section */
      min-width: 0; 
      
      align-self: flex-start;  /* Align to top of container */
    }
    /* Ensure left column doesn't render compressed on first paint */
    .featured-split > #heroAsideCol:first-child,
    .featured-split > div:first-child { width: 55%; }
    /* Tablet-only: add a small extra clearance under the fixed nav to avoid cut-off */
    @media (min-width: 901px) and (max-width: 1240px){
      .featured-split > div:first-child { 
        top: calc(var(--featured-sticky-top) + 8px) !important; 
      }
    }
    .featured-split > div:last-child { 
      flex: 1 !important;  /* Flexible width like about.html .text-content */
      min-width: 0;
      padding: 1rem 0;  /* Same padding as about.html */
      /* Remove min-height to let content determine when sticky stops */
    }
    /* Ensure hero card behaves normally; stickiness is applied to its column wrapper */
    .featured-primary { position: relative; }
    /* Prevent any visual collision between the featured container and the aside text */
    @media (min-width: 1280px) { .featured-split { gap: var(--featured-gap-lg); } }
    /* Ensure sticky behaves: parent must not create a new containing block */
    .featured-primary { position: relative; }
    /* responsive rules moved to mobile.css */
    /* Right-side aside behavior and spacing */
    .hero-aside { position: static; top: auto; }
    /* When columns stack, don't keep the aside sticky so it cannot overlap content */
    /* responsive rules moved to mobile.css */
    .section h2 { margin: 12px 0 6px; font-size: 1.6rem; letter-spacing: -.01em; }
    .section p.sub { margin: 0 0 8px; color: var(--gray-600); font-size: .98rem; line-height:1.6; }

    .featured-stack { display: grid; gap: 1rem; justify-items: center; }
    .featured-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    /* responsive rule moved to mobile.css */
    .featured-primary { background: var(--surface); border: 1px solid var(--secondar-300); border-radius: 14px; overflow: hidden; box-shadow: var(--elev-1); }
    .featured-primary-header { display:none; }
    .badge { font-size: .75rem; padding: .2rem .5rem; border-radius: 999px; background: var(--badge-bg); color: var(--gray-700); }
    .badge.video { background: rgba(255, 189, 189, 0.466); color: var(--video); border-color: rgba(239,68,68,.35); }
    .badge.audio { background: rgba(208, 223, 255, 0.55); color: var(--audio); }
    .badge.streaming,
    .badge.spotify { background: rgba(180, 255, 208, 0.563); color: var(--streaming); }
    /* Local page nav */
    .local-nav { max-width: 1320px; margin: 0 auto 0; padding: .35rem 1.5rem; display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; justify-content:center; position:relative; z-index:5; }
    /* Ensure global nav reset rules don't hide the local nav */
    nav.local-nav { display: flex !important; }
    .local-nav.top { margin-top: 0; }
    .local-nav .nav-group { display:inline-flex; gap:.35rem; background:#fff; border:1px solid var(--gray-200); border-radius:999px; padding:.25rem; box-shadow: var(--elev-1); }
    .local-nav .nav-btn { padding:.42rem .75rem; border:1px solid var(--gray-200); background:#fff; color:var(--gray-800); border-radius:999px; font-weight:600; font-size:1rem; cursor:pointer; letter-spacing: -0.01em; }
    .local-nav .nav-btn:hover { background: var(--gray-50); }
    .local-nav .nav-btn.video { background: rgba(239,68,68,.10); color: var(--video); border-color: rgba(239,68,68,.35); }
    .local-nav .nav-btn.video:hover { background: rgba(239,68,68,.18); }
    .local-nav .nav-btn.audio { background: rgba(37,99,235,.10); color: var(--audio); border-color: rgba(37,99,235,.35); }
    .local-nav .nav-btn.audio:hover { background: rgba(37,99,235,.18); }
    .local-nav .nav-btn.streaming,
    .local-nav .nav-btn.spotify { background: rgba(22,163,74,.10); color: var(--streaming); border-color: rgba(22,163,74,.35); }
    .local-nav .nav-btn.streaming:hover,
    .local-nav .nav-btn.spotify:hover { background: rgba(22,163,74,.18); }
    .local-nav .nav-btn.search { background:#fff; color: var(--gray-800); }
    /* Center featured heading */
    #featured .section h2, #featured .section p.sub { text-align:center; }
    /* Show skeleton lines only while loading; hide them once data-ld is removed */
    #featured .ld-lines { display: none; }
    #featured [data-ld] .ld-lines { display: grid; }
    /* Anchor offsets tuned to avoid extra gap under fixed nav */
    #featured, #featuredPrimary, #featuredAudioSection, #featuredAudioAndReleases, #spotifyReleasesSection { scroll-margin-top: 0; }
    #search { scroll-margin-top: calc(var(--nav-height, 100px) + 20px); }
    /* Featured area as hero: restore subtle container for professionalism */
    .featured-primary { width: 100%; max-width: 100%; }
    .featured-hero { background: var(--surface); border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: var(--elev-1); padding: .6rem .75rem 1.1rem; margin: 0; }
    /* Reduce gap between player meta and heading text */
    .panel.panel-plain.hero-aside .panel-header { margin-bottom: 0; }
    .panel.panel-plain.hero-aside .panel-body { margin-top: 0; padding-top: .1rem; padding-bottom: 0; }
    .featured-player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #0b1220; border-radius: 14px; overflow: hidden; z-index: 2; }
    .featured-player .video-poster { z-index: 3; }
    /* Prevent visible shutter: keep a soft skeleton overlay until iframe is fully loaded */
    .featured-player::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 14px;
      background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
      background-size: 200% 100%;
      animation: loading-shimmer 2s ease-in-out infinite;
      opacity: 1;
      transition: opacity .18s ease;
      pointer-events: none;
    }
    .featured-player[data-loaded="1"]::before { opacity: 0; }
    /* Fade iframe in only when loaded */
    .featured-player iframe { opacity: 0; transition: opacity .18s ease; }
    .featured-player[data-loaded="1"] iframe { opacity: 1; }
    /* Make the video a bit smaller on large screens while keeping full width on mobile/tablet */
    @media (min-width: 1320px){
      .featured-player { max-width: var(--featured-player-max); margin-left: auto; margin-right: auto; }
    }
    .featured-player iframe, .featured-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .featured-meta {display:flex; gap: 0; align-items:flex-start; flex-wrap: wrap; padding-top: .25rem; }
    .video-meta-line { display:flex; padding-left: 1rem; gap:.5rem; align-items:flex-start; flex-wrap:wrap; width:100%; justify-content: space-between; }
    /* Match the lighter style used in featured audio item-sub */
    .video-meta-left { color: var(--gray-500); font-weight:400; font-size:.9rem; }
    .video-meta-right { display:flex; gap:.35rem; flex-wrap:wrap; }
    .tag { padding:.15rem .45rem; border-radius:999px; background: var(--gray-100); border:1px solid var(--gray-200); font-size:.75rem; color: var(--gray-700); }
    .tag-cat { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
    .performer { color: var(--gray-700); font-weight:600; margin-right:.25rem; }

    /* Video carousel */
    .video-carousel { position: relative; margin: .5rem 0 1rem; background: var(--gray-50); border:1px solid var(--gray-200); border-radius:12px; overflow:hidden; }
    .video-carousel .rail { display:flex; gap:.5rem; overflow-x:auto; padding:.8rem .2rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gray-400) transparent; align-items: stretch; }
    .video-carousel .rail.no-snap { scroll-snap-type: none; }
    .video-carousel .rail::-webkit-scrollbar { height: 8px; }
    .video-carousel .rail::-webkit-scrollbar-track { background: transparent; }
    .video-carousel .rail::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
    .video-carousel .rail:hover::-webkit-scrollbar-thumb { background: var(--gray-400); }
    /* Subtle nav buttons for video rail */
    .video-carousel .related-works-nav { position:absolute; left:0; right:0; display:none; pointer-events:none; z-index:20; }
    .video-carousel.has-overflow .related-works-nav { display:block; }
    .video-carousel .related-works-nav-btn { position:absolute; top:50%; transform:translateY(-50%); width:36px; height:36px; border-radius:999px; border:1px solid rgba(15,23,42,.18); background: rgba(15,23,42,.35); color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.25); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); transition: transform .15s ease, background .15s ease, opacity .2s ease; pointer-events:auto; opacity:.95; }
    .video-carousel .related-works-nav-btn:hover { transform: translateY(-50%) scale(1.05); background: rgba(15,23,42,.5); }
    .video-carousel .related-works-nav-btn:active { transform: translateY(-50%) scale(.98); }
    .video-carousel .related-works-nav-btn[disabled], .video-carousel .related-works-nav-btn[aria-hidden="true"] { display:none; }
    .video-carousel .related-works-nav-btn.prev { left: clamp(8px, 2vw, 18px); }
    .video-carousel .related-works-nav-btn.next { right: clamp(8px, 2vw, 18px); }
    .video-carousel .related-works-nav-btn svg { width:18px; height:18px; display:block; }
    .video-carousel .related-works-nav-btn svg path { fill: currentColor !important; stroke: none !important; }
    .video-carousel .related-works-nav-btn .rw-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:900; color:#ffffff; text-shadow:0 1px 2px rgba(0,0,0,.5); }
    .video-thumb { scroll-snap-align: start; min-width: 220px; max-width: 260px; aspect-ratio: 16/9; border:1px solid var(--gray-200); border-radius:12px; overflow:hidden; cursor:pointer; background: #fff; box-shadow: 0 6px 18px rgba(2,6,23,.08); transition:transform .22s ease, box-shadow .22s ease, outline-color .18s ease; display:flex; flex-direction:column; }
    .video-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(2,6,23,.14); }
    .video-thumb.active { outline: 2px solid var(--video); box-shadow: 0 16px 36px rgba(239,68,68,.22); transform: translateY(-4px) scale(1.03); }
    .video-thumb.disabled { opacity:.45; cursor:not-allowed; }
    .video-thumb { position: relative; }
    .video-thumb img { width: 100%; height: 100%; object-fit: cover; display:block; flex: 1 1 auto; transition: filter .25s ease, transform .25s ease; }
    .video-thumb:not(.active) img { filter: brightness(0.86) saturate(0.92) blur(.6px); transform: scale(0.995); }
    /* Skeleton overlay for video thumbnails */
    .video-thumb::before { content: ""; position: absolute; inset: 0; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: loading-shimmer 2s ease-in-out infinite; opacity: 1; transition: opacity .2s ease; }
    .video-thumb[data-loaded="1"]::before { opacity: 0; pointer-events: none; }
    /* Video title overlay */
    .video-thumb .thumb-overlay {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.9));
      padding: 0; /* No padding when hidden */
      opacity: 0;
      transition: opacity .2s ease, padding .2s ease;
      pointer-events: none;
      z-index: 10;
      height: 0; /* No height when hidden */
      overflow: hidden;
    }
    .video-thumb:hover .thumb-overlay,
    .video-thumb:active .thumb-overlay,
    .video-thumb:focus .thumb-overlay {
      opacity: 1;
      padding: 1.2rem .6rem .6rem; /* Add padding when visible */
      height: auto; /* Allow height when visible */
    }
    .video-thumb .thumb-overlay .overlay-title { color: white; font-size: .85rem; font-weight: 600; line-height: 1.3; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
    .video-thumb .vt-title { padding:.45rem .6rem; font-size:.85rem; color: var(--gray-800); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    /* arrows removed for a cleaner look */
    .meta-line { color: var(--gray-600); font-size: .9rem; }
    /* Mobile: make featured video thumbnails larger */
    @media (max-width: 900px){
      /* Medium-small scale for mobile thumbnails */
      .featured .video-carousel .rail .video-thumb { min-width: 230px !important; max-width: 270px !important; display:flex; flex-direction:column; }
      /* Hide bottom caption completely on mobile (ensure zero footprint everywhere) */
      .video-thumb .vt-title { display: none !important; height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }
      /* Mobile: keep title overlay visible but non-blocking; true overlay (no layout impact) */
      .featured .video-carousel .rail .video-thumb .thumb-overlay {
        opacity: 1 !important;
        height: auto !important;
        padding: 1rem .6rem .55rem !important;
        pointer-events: none !important; /* allow clicks to pass through */
      }
      .featured .video-carousel .rail .video-thumb .thumb-overlay .overlay-title { font-size: .95rem; font-weight: 600; }
    }

    /* remove old side grid; left/right containers control layout */
    .panel { background: var(--gray-200); border: 1px solid var(--gray-400); border-radius: 12px; box-shadow: var(--elev-1); overflow: hidden; margin-bottom: 0; padding: .6rem .75rem 1.1rem;}
    .panel-header { padding: .2rem .4rem; font-weight: 700; display:flex; align-items:center; justify-content:space-between; margin-bottom: 0; }
    .panel-body { padding: .75rem .85rem; }
    .panel-plain { background: transparent; border: 0; box-shadow: none; }
    .panel-plain .panel-header { border: 0; background: transparent; padding: 0; margin-bottom: 0; }
    .panel-plain .panel-body { padding-left: 0; padding-right: 0; }
    .narrow-text { max-width: none; }
    /* StackNarrow: tighter vertical rhythm + readable line length */
    .StackNarrow { max-width: 65ch; }
    .StackNarrow > * + * { margin-block-start: .55rem; }
    .StackNarrow p { max-width: 65ch; }
    /* Bigger type for featured video right-aside */
    .hero-aside.panel-plain .panel-header { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; padding: 0; margin-bottom: 0; }
    .hero-aside.panel-plain .panel-body p { font-size: clamp(.98rem, .92rem + .20vw, 1.06rem); line-height: 1.65; }
    /* Add more vertical separation between player and its meta */
    .featured-meta { display:flex; gap: 0; align-items:flex-start; flex-wrap: wrap; padding-top: .25rem; }
    /* Subtle ripple pop-in for meta when switching videos */
    @keyframes metaPop {
      0% { transform: scale(0.985); opacity: 0; }
      60% { transform: scale(1.01); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    @keyframes metaRipple {
      0% { opacity: .45; transform: scale(0.94); }
      100% { opacity: 0; transform: scale(1.08); }
    }
    #featuredPrimary .featured-meta.ripple-pop {
      animation: metaPop .28s cubic-bezier(.2,.7,.2,1) both;
      position: relative;
      z-index: 2;
    }
    #featuredPrimary .featured-meta.ripple-pop::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      border: 2px solid rgba(59,130,246,.35);
      animation: metaRipple .45s ease-out both;
    }
    /* Highlights list */
    .vh-list { margin:.4rem 0 0; padding-left: 1.1rem; color: var(--gray-700); }
    .vh-list li { margin:.22rem 0; }
    /* Compact, aligned lists within text sections */
    .StackNarrow ul,
    .hero-aside .panel-body ul,
    .aside-large .panel-body ul { margin: .2rem 0 .6rem; padding-left: 1.1rem; list-style-position: outside; }
    .StackNarrow li,
    .hero-aside .panel-body li,
    .aside-large .panel-body li { margin: .18rem 0; line-height: 1.5; }
    /* Generic site-cards grid for dynamic stats/cards */
    .site-cards { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:.6rem; margin-top:.15rem; }
    .site-card { border:1px solid var(--gray-200); border-radius:12px; padding:.75rem; background:#fff; box-shadow: var(--elev-1); }
    .site-card.full { grid-column: 1 / -1; }
    /* Preserve paragraph indents and line breaks inside full-width site cards */
    .site-card.full, .site-card.full .muted { white-space: pre-wrap; }
    /* Exception: site-text-section cards keep 2-column layout on mobile for better stats display */
    .site-text-section .site-cards,
    .site-text-section .achievements.site-cards,
    .js-sts-cards { 
      grid-template-columns: repeat(2, minmax(0,1fr)) !important; 
    }
    @media (max-width: 640px){ 
      .site-text-section .site-cards,
      .site-text-section .achievements.site-cards,
      .js-sts-cards { 
        grid-template-columns: repeat(2, minmax(0,1fr)) !important; 
      } 
    }
    @media (max-width: 480px){ 
      .site-text-section .site-cards,
      .site-text-section .achievements.site-cards,
      .js-sts-cards { 
        grid-template-columns: repeat(2, minmax(120px,1fr)) !important; 
      } 
    }
    @media (max-width: 640px){ .site-text-section .site-card.full { grid-column: 1 / -1 !important; } }
    /* Large type for audio aside */

    /* Frosted/backdrop effect utilities (media page) */
    .backdrop-glass {
      background: rgba(255, 255, 255, 0.45);
      border: 2px solid rgba(244, 244, 244, 1);
      -webkit-backdrop-filter: blur(14px) saturate(1.12);
      backdrop-filter: blur(14px) saturate(1.12);
      box-shadow: 0 12px 28px rgba(2,6,23,.14);
    }
    [data-theme="dark"] .backdrop-glass {
      background: rgba(15, 23, 42, 0.60);
      border-color: rgba(148, 163, 184, 0.30);
    }
    /* Apply frosted look to inner cards within featured areas */
    .featured .video-carousel,
    .featured .video-carousel .rail .video-thumb,
    #featuredPrimary .featured-meta,
    #featuredAudioSection .audio-item,
    #spotifyReleasesSection .streaming-embed-container,
    #spotifyReleasesSection .spotify-embed-container,
    .hero-aside .site-card,
    .related-media-item,
    .related-audio-player,
    .related-streaming-container,
    .related-spotify-container {
      background: rgba(255, 255, 255, 0.845);
      -webkit-backdrop-filter: blur(8px) saturate(1.1);
      backdrop-filter: blur(8px) saturate(1.1);
      border-color: white;
    }
    [data-theme="dark"] .featured .video-carousel,
    [data-theme="dark"] .featured .video-carousel .rail .video-thumb,
    [data-theme="dark"] #featuredPrimary .featured-meta,
    [data-theme="dark"] #featuredAudioSection .audio-item,
    [data-theme="dark"] #spotifyReleasesSection .streaming-embed-container,
    [data-theme="dark"] #spotifyReleasesSection .spotify-embed-container,
    [data-theme="dark"] .hero-aside .site-card,
    [data-theme="dark"] .related-media-item,
    [data-theme="dark"] .related-audio-player,
    [data-theme="dark"] .related-streaming-container,
    [data-theme="dark"] .related-spotify-container {
      background: rgba(15, 23, 42, 0.4);
      border-color: rgba(148, 163, 184, 0.25);
    }

    /* Brighten and strengthen specific featured areas per feedback */
    .featured .video-carousel {
      background: rgba(255, 255, 255, 0.92);
      border-width: 3px;
      border-color: rgba(2, 6, 23, 0.14);
      box-shadow: 0 14px 34px rgba(2,6,23,.16);
      -webkit-backdrop-filter: blur(8px) saturate(1.06);
      backdrop-filter: blur(8px) saturate(1.06);
    }
    .featured .video-carousel .rail .video-thumb {
      background: #fff;
      border-width: 2px;
      border-color: rgba(2, 6, 23, 0.14);
      box-shadow: 0 10px 26px rgba(2,6,23,.16);
    }
    #featuredPrimary .featured-meta {
      background: rgba(255, 255, 255, 0.92);
      border: 2px solid rgba(2, 6, 23, 0.12);
      border-radius: 10px;
      padding: .35rem .6rem;
      margin-top: .35rem;
    }
    #featuredAudioSection .audio-item {
      background: rgba(255, 255, 255, 0.85);
      border-width: 2px;
      border-color:white;
      box-shadow: 0 10px 26px rgba(2,6,23,.14);
      transition: border-color .15s ease;
    }

      #featuredAudioSection .audio-item:hover {
      border-color: var(--primary-600);
    }

    #spotifyReleasesSection .streaming-embed-container,
    #spotifyReleasesSection .spotify-embed-container {
      background: rgba(255, 255, 255, 0.94);
      border-width: 3px;
      border-color: white;
      box-shadow: 0 10px 26px rgba(2,6,23,.14);
    }
    [data-theme="dark"] .featured .video-carousel {
      background: rgba(15, 23, 42, 0.70);
      border-color: rgba(148, 163, 184, 0.35);
      box-shadow: 0 16px 38px rgba(0,0,0,.45);
    }
    [data-theme="dark"] .featured .video-carousel .rail .video-thumb {
      background: rgba(15, 23, 42, 0.75);
      border-color: rgba(148, 163, 184, 0.35);
      box-shadow: 0 12px 28px rgba(0,0,0,.5);
    }
    [data-theme="dark"] #featuredPrimary .featured-meta {
      background: rgba(15, 23, 42, 0.72);
      border-color: rgba(148, 163, 184, 0.35);
    }
    [data-theme="dark"] #featuredAudioSection .audio-item,
    [data-theme="dark"] #spotifyReleasesSection .streaming-embed-container,
    [data-theme="dark"] #spotifyReleasesSection .spotify-embed-container {
      background: rgba(15, 23, 42, 0.68);
      border-color: rgba(148, 163, 184, 0.35);
      box-shadow: 0 12px 28px rgba(0,0,0,.5);
    }

    /* Results grid – frosted glass template test */
    .results .card {
      background: rgba(255, 255, 255, 0.828);
      border: 3px solid white;
      box-shadow: 0 12px 28px rgba(2,6,23,.14);
      -webkit-backdrop-filter: blur(16px) saturate(1.06);
      backdrop-filter: blur(16px) saturate(1.06);
      transition: transform .08s ease-out, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
      transform: translateY(0) !important; /* clamp baseline so other rules can't lift more */
    }
    /* Ensure reveal animation timing doesn't slow hover */
    .results .card.reveal,
    .results .card.reveal.animate-in {
      transition: transform .08s ease-out, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
    }
    .results .card:hover {
      background: rgba(255, 255, 255, 0.90);
      box-shadow: 0 12px 26px rgba(2,6,23,.15);
      border-color: var(--primary-600);
      transform: translateY(-3px) !important; /* subtle lift */
    }
    [data-theme="dark"] .results .card {
      background: rgba(15, 23, 42, 0.46);
      border-color: rgba(148, 163, 184, 0.35);
      box-shadow: 0 12px 28px rgba(0,0,0,.5);
    }
    [data-theme="dark"] .results .card:hover {
      background: rgba(15, 23, 42, 0.52);
    }

    /* Stronger separators inside glass cards */
    .results .card .divider { background: rgba(2, 6, 23, 0.16); }
    [data-theme="dark"] .results .card .divider { background: rgba(148, 163, 184, 0.28); }

    /* Keep chips and tags bright/snappy on frosted surfaces */
    .chips .chip,
    .tag {
      background: #ffffff;
      color: var(--gray-800);
      border: 1px solid rgba(2, 6, 23, 0.08);
    }
    [data-theme="dark"] .chips .chip,
    [data-theme="dark"] .tag {
      background: rgba(255, 255, 255, 0.10);
      color: var(--gray-900);
      border-color: rgba(148, 163, 184, 0.25);
    }
    .aside-large.panel-plain .panel-header { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem); letter-spacing: -0.02em; padding: 0; margin-bottom: 0; }
    .aside-large.panel-plain .panel-body p { font-size: clamp(.98rem, .92rem + .20vw, 1.05rem); line-height: 1.65; }
    /* Left rail for audio area: stack header above audio panel */
    .left-rail { display: grid; gap: 1rem; align-content: start; }
    /* Make Streaming Releases sticky on desktop; left rail scrolls normally */
    #spotifyReleasesSection {
      position: sticky;
      top: 7rem;
      align-self: flex-start;
      height: fit-content;
    }
    @media (max-width: 900px){
      #spotifyReleasesSection { position: static !important; top: auto !important; }
    }
    .audio-list, .spotify-list, .streaming-list { display: grid; gap: .55rem; }
    .audio-item { border:2px solid white; border-radius: 12px; overflow:hidden; background:#fff; box-shadow: var(--elev-1); transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
    .audio-item:hover { background: var(--gray-50); box-shadow: var(--elev-2); transform: translateY(-2px); border-color: var(--primary-600);}
    /* Featured audio containers should not change background color on hover */
    .featured .audio-item:hover { background: #fff; }
    .featured .audio-toggle:hover { background: #fff; }
    .audio-item + .audio-item { margin-top:.5rem; }
    .audio-toggle { display:flex; align-items:center; gap:.6rem; padding:.75rem .9rem .75rem; border-bottom: 1px solid var(--gray-200); }
    .audio-toggle:hover { background: var(--gray-50); }
    .audio-title-wrap { display:flex; flex-direction:column; gap:.2rem; flex:1; }
    .audio-details { overflow:hidden; max-height:0; opacity:0; transition:max-height .25s ease, opacity .25s ease; padding: 0 .9rem; }
    .audio-details.open { padding: 0 .9rem .95rem; opacity:1; }
    /* Give text/performer a little breathing room without padding the player */
    .audio-details .audio-header { padding: .5rem 0 0; }
    .audio-meta-row { display:flex; align-items:flex-start; justify-content:space-between; gap: 1rem; margin-bottom:0; }
    .audio-meta-left { color: var(--gray-700); font-weight:600; display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; justify-content:center; }
    .audio-meta-right { display:flex; gap:.35rem; flex-wrap:wrap; justify-content:flex-end; }
    /* Caret toggle button for audio items */
    .audio-caret { flex-shrink:0; width:24px; height:24px; display:grid; place-items:center; border-radius:6px; border:1px solid var(--gray-300); background:#fff; cursor:pointer; padding:0; margin-left:auto; }
    .audio-caret:hover { background: var(--gray-50); }
    .audio-caret svg { transition: transform .2s ease; }
    .audio-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
    .thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--gray-200); flex-shrink:0; overflow:hidden; display:grid; place-items:center; font-weight:700; color:#475569; }
    /* Dynamic audio thumbnails by tag */
    .thumb svg { width:22px; height:22px; display:block; }
    .thumb.thumb-midi { background:#e0f2fe; color:#0369a1; }
    .thumb.thumb-live { background:#fee2e2; color:#b91c1c; }
    .thumb.thumb-multitrack { background:#ede9fe; color:#5b21b6; }
    .thumb.thumb-recording { background:#fef3c7; color:#92400e; }
    .item-title { font-weight: 600; color: var(--gray-800); line-height: 1.2; }
    .item-sub { font-size: .8rem; color: var(--gray-500); }
    .inline-audio { width:100%; padding: 0; }
    .inline-audio audio { width:100%; height:48px; }

    /* Multi-line text skeletons (stacked lines) */
    .ld-stack[data-ld="text"]::after { display: none !important; }
    .ld-lines { display: grid; gap: .35rem; }
    .ld-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: loading-shimmer 2s ease-in-out infinite; }
    .ld-line.tall { height: 16px; }
    .ld-line.w-100 { width: 100%; }
    .ld-line.w-95 { width: 95%; }
    .ld-line.w-90 { width: 90%; }
    .ld-line.w-85 { width: 85%; }
    .ld-line.w-80 { width: 80%; }
    .ld-line.w-70 { width: 70%; }
    .ld-line.w-60 { width: 60%; }

    /* Featured meta skeleton to match real layout */
    .ld-meta-skel { padding: .45rem 0 0; display:flex; align-items:flex-start; justify-content:space-between; gap:.5rem; border-top:1px solid var(--gray-200); margin-top:.6rem; }
    .ld-meta-left { display:flex; flex-direction:column; gap:.35rem; flex:1; }
    .ld-chips { display:flex; gap:.35rem; flex-wrap:wrap; }
    .ld-chip { height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: loading-shimmer 2s ease-in-out infinite; }
    .ld-chip.w-10 { width: 60px; }
    .ld-chip.w-12 { width: 76px; }
    .ld-chip.w-14 { width: 92px; }
    .ld-chip.w-16 { width: 108px; }

    /* Featured audio skeleton micro-elements */
    .audio-item.skel { pointer-events: none; }
    .audio-item.skel .sk { position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: loading-shimmer 2s ease-in-out infinite; }
    .audio-item.skel .sk-thumb { width: 56px; height: 56px; border-radius: 8px; }
    .audio-item.skel .sk-title { height: 16px; margin: 6px 0 6px; border-radius: 6px; max-width: 85%; }
    .audio-item.skel .sk-sub { height: 12px; border-radius: 6px; max-width: 60%; }
    .audio-item.skel .sk-caret { width: 24px; height: 24px; border-radius: 6px; }

    /* Streaming embeds without container */
    .streaming-embed-stack iframe { width: 100%; border:0; border-radius: 12px; box-shadow: var(--elev-1); background:#000; }
    .streaming-embed-container,
    .spotify-embed-container {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: var(--elev-1);
    }
    .streaming-skeleton,
    .spotify-skeleton {
      position: absolute;
      inset: 0;
      z-index: 1;
      opacity: 1;
      transition: opacity 0.3s ease;
      display: block !important;
      border-radius: 12px;
    }
    .streaming-embed-container iframe,
    .spotify-embed-container iframe {
      position: relative;
      z-index: 2;
    }
    /* Unified streaming wrapper (no extra button) */
    .streaming-embed,
    .spotify-embed {
      display:block;
      margin-bottom: 1.5rem;
      border: 3px solid white;
      border-radius: 12px;
      transition: border-color .15s ease;
    }

      .streaming-embed:hover,
      .spotify-embed:hover {
      border: 3px solid var(--primary-600);
    }

    .streaming-embed:last-child,
    .spotify-embed:last-child {
      margin-bottom: 0;
    }

    /* Filters — match catalog naming */
    /* Ensure sticky starts just below the fixed global nav */
    .filter-panel { position: sticky; top: 0; z-index: 400; background: var(--surface); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); box-shadow: 0 12px 24px -18px rgba(2,6,23,.22); overflow: visible; scroll-margin-top: calc(var(--nav-height, 100px) + 20px); padding: 1rem 1.5rem;}
    /* Dark theme: maintain visible borders on filter rail */
    [data-theme="dark"] .filter-panel { background: var(--gray-800); border-top-color: var(--gray-700); border-bottom-color: var(--gray-700); box-shadow: 0 18px 34px -24px rgba(0,0,0,.7); }
    /* Opt-in frosted look for the filter rail */
    .filter-panel.u-glass-rail { background: rgba(40, 40, 42, 0.342); border-top-color: var(--glass-border); border-bottom-color: var(--glass-border); -webkit-backdrop-filter: saturate(1.1) blur(calc(var(--glass-blur) - 4px)); backdrop-filter: saturate(1.1) blur(calc(var(--glass-blur) - 4px)); box-shadow: var(--glass-shadow); }
    .filter-content { max-width: 1650px; margin: 0 auto; padding: .6rem 1.5rem .7rem; display:flex; flex-direction: column; gap:.6rem; overflow: visible; }
    /* Make the content behind the rail subtly blurred and mostly transparent */
    .filter-panel .filter-content.u-glass-bare.u-glass-soft { background: rgba(249, 254, 255, 0.23); border-bottom-left-radius:12px; border-bottom-right-radius:12px; border-top: 2px solid white;}
    .row { display:flex; align-items:center; justify-content:space-between; gap: .75rem; flex-wrap: wrap; }
    .btn-group { display:inline-flex; gap:.35rem; background: transparent; border:0; }
    .btn-group button { padding:.55rem .9rem; background: var(--surface); border:0; cursor:pointer; color: var(--gray-700); font-weight:500; }
    /* intentional */
    /* Color-coded active states for type buttons */
    .btn-group button.active { color:white; font-weight:500; }
    /* Slightly softened active backgrounds */
    .btn-group button[data-type=""].active { background: color-mix(in srgb, var(--gray-900) 90%, white); }
    .btn-group button[data-type="Video"].active { background: color-mix(in srgb, var(--video) 90%, white); }
    .btn-group button[data-type="Audio"].active { background: color-mix(in srgb, var(--audio) 90%, white); }
    .btn-group button[data-type="Score Video"].active { background: color-mix(in srgb, var(--score) 90%, white); }
    .btn-group button[data-type="Streaming"].active,
    .btn-group button[data-type="streaming"].active { background: color-mix(in srgb, var(--streaming) 90%, white); }
    .btn-group button:not(.active):hover { background: var(--gray-50); }
    /* Minimal neutral borders for idle buttons */
    .btn-group button:not(.active) { border:1px solid var(--gray-200); border-radius:10px; }
    .btn-group button:not(.active):hover { background: var(--gray-50); }
    .seg { display:flex; gap:.5rem; align-items:center; }
    .seg label { font-size:.8rem; color: var(--gray-500); }
    .chip { padding:.25rem .55rem; border-radius:999px; border:1px solid var(--gray-200); background: var(--gray-50); font-size:.8rem; display:inline-flex; align-items:center; gap:.35rem; color: var(--gray-700); }
    .chip .x { cursor:pointer; font-weight:700; color:#64748b; }
    .chips { display:flex; flex-wrap:wrap; gap:.35rem; }
    /* Unified filters layout */
    .filters-r1 { align-items:center; }
    .filters-r1 .r1-right { margin-left:auto; display:flex; align-items:center; gap:.5rem; }
    .chips-r1 { order: 2; }
    .filters-r2 { align-items:flex-start; justify-content:space-between; }
    .filters-r2 .l { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
    .filters-r2 .r { display:flex; gap:.5rem; align-items:center; }
    /* Compact search */
    .search-compact { display:flex; align-items:center; gap:.5rem; }
    .icon-btn { background: none; border: 0; padding: 0; line-height: 0; cursor: pointer; color: #475569; }
    .icon-btn:hover { color: #0f172a; }
    .icon-btn:focus-visible { outline: 2px solid rgba(59,130,246,.45); outline-offset: 2px; border-radius: 6px; }
    .search-compact input { width:0; opacity:0; padding:.6rem 0; border:1px solid transparent; transition: width .2s ease, opacity .15s ease, padding .2s ease, border-color .2s ease; border-radius:10px; }
    .search-compact.open input { width:260px; opacity:1; padding:.6rem .75rem; border-color: var(--gray-300); }
    /* Ensure white search icon within the filter panel */
    .filter-panel .search-compact .icon-btn { color: #fff; }
    .filter-panel .search-compact .icon-btn:hover { color: #e5e7eb; }
    .filter-panel .search-compact .icon-btn svg,
    .filter-panel .search-compact .icon-btn path { stroke: #fff !important; }
    /* Filter toggle indicator circle */
    /* legacy local styles removed in favor of .u-toggle */
    .dropdown { position: relative; }
    .dropdown-btn { min-width: 160px; padding: .45rem .7rem; border:1px solid var(--gray-300); border-radius: 10px; background: var(--gray-50); cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:.6rem; color: var(--gray-800); font-size: .98rem; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
    .dropdown-btn::after { content:""; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid var(--gray-600); margin-left:.5rem; transition: transform .15s ease; }
    .dropdown-btn:hover { border-color: var(--primary-300); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
    .dropdown-btn.active { border-color: var(--primary-400); background: var(--surface); color: var(--gray-800); }
    .dropdown.show .dropdown-btn::after { transform: rotate(180deg); }
    .dropdown-menu { position:absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border:1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); display:none; visibility:hidden; opacity:0; transition: opacity .12s ease; max-height: 320px; overflow:auto; z-index: 2000; min-width: 220px; pointer-events:auto; padding: .35rem 0; }
    .dropdown.show .dropdown-menu { display:block; visibility:visible; opacity:1; }
    .opt { padding:.55rem .75rem; cursor:pointer; color: var(--gray-800); border-radius: 8px; margin: 0.125rem 0.5rem; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
    .opt:hover { background: var(--gray-100); }
    .opt.selected { background: var(--gray-100); color: var(--gray-900); font-weight: 600; }
    /* Minimal black/white checkbox */
    .opt .ck {
      display:inline-block; width:16px; height:16px; margin-right:.5rem; vertical-align:middle;
      position:relative; background:#fff; border-radius:4px; box-shadow:none;
      border:1.5px solid var(--gray-900);
    }
    .opt .ck.on { background:#fff; border-color: var(--gray-900); }
    .opt .ck.on::after {
      content:""; position:absolute; left:3px; top:4px; width:8px; height:4px;
      border:2px solid var(--gray-900); border-top:0; border-right:0; transform: rotate(-45deg);
    }

    /* Results */
    .results { position:relative; max-width: 100%; margin: 0 auto; padding: 1.25rem 2rem 2rem; background: linear-gradient(180deg, var(--gray-600), var(--gray-700)); }
    /* Full-bleed top divider for results */
    .results::before { content:""; position:absolute; top:0; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; height:3px; background: var(--gray-700); }
    .results-head { display:flex; align-items:center; gap:.35rem; justify-content:flex-start; margin-bottom: .75rem; }
    #resultsCount { color: var(--gray-300); font-weight: 500;}
    .results-head #resultsLabel { color: #fff; text-shadow: 1px 3px 4px rgba(0,0,0,.35); font-weight: 900; letter-spacing: -.015em; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.8rem); }
    .results-head #resultCountInline { color:#fff; text-shadow: 1px 3px 4px rgba(0,0,0,.35); font-weight: 700; }
    .results-head #resultCountInline::before { content: " - "; margin: 0 .15rem; color:#fff; text-shadow: 1px 3px 4px rgba(0,0,0,.35); }
    /* Responsive auto-fit grid that adapts when buttons wrap */
    .grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
    .card { background: var(--surface); ; border-radius: 12px; overflow:hidden; box-shadow: var(--elev-1); display:flex; flex-direction:column; backdrop-filter: saturate(1.1); border-radius: 16px;}
    @media (max-width: 1024px) { .featured-grid { grid-template-columns: 1fr; } }
    .media-cover { position:relative; aspect-ratio:16/9; background:#0b1220; overflow:hidden; border-radius: 14px; }
    /* Ensure no child overlays intercept pointer events above iframes */
    .media-cover * { pointer-events: auto; }
    /* For YouTube/Vimeo result cards: classic 16:9 ratio wrapper for maximum compatibility */
    .card.video .media-cover, .card.score-video .media-cover { aspect-ratio: auto; height: 0; padding-top: 56.25%; width: 100%; }
    .card.video .media-cover iframe,
    .card.score-video .media-cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
    /* Lightweight click-to-play video posters for results grid */
    .video-poster { position: absolute; inset: 0; cursor: pointer; z-index: 100; }
    .video-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; display:block; z-index:1; transition: opacity .38s ease; }
    .video-poster .play-overlay { position:absolute; inset:0; display:grid; place-items:center; z-index:101; pointer-events:none; transition: opacity .12s ease; transform: none; top:0; right:0; bottom:0; left:0; background: transparent; border-radius: 0; }
    .video-poster .play-overlay svg { display:block; filter: drop-shadow(0 6px 20px rgba(2,6,23,.35)); }
    .video-poster .play-overlay svg { width: clamp(48px, 6.2vw, 72px); height: auto; }
    /* Remove the small corner YouTube badge on posters */
    .video-poster::before { content: none !important; }
    .video-poster .play-overlay svg .pill { transition: fill .15s ease; fill: #ff0000; }
    .video-poster:hover .play-overlay svg .pill { fill: #dc2626; }
    /* Playing state: hide the play icon quickly and fade poster */
    .video-poster.playing .play-overlay { opacity: 0; }
    .video-poster.playing::after { opacity: 0; }
    .video-poster.playing img { opacity: 0; }
    .video-poster:focus-visible { outline: 2px solid rgba(59,130,246,.45); outline-offset: 2px; border-radius: 12px; }
    /* Streaming result cards: increase native embed height to show the larger UI */
    .card.streaming .media-cover,
    .card.spotify .media-cover { background: transparent; aspect-ratio: auto; padding: 0; position: static; overflow: visible; }
    .card.streaming .media-cover iframe,
    .card.spotify .media-cover iframe { position: static; inset: auto; width:100%; height:auto; display:block; min-height: 420px; }
    .card.audio .media-cover { background:#fff; aspect-ratio:auto; padding:0; position:relative; }
    .card.audio .media-cover audio { width:100%; height:40px; margin: 0; display:block; }
    /* Ensure search results audio covers have zero padding regardless of previous rules */
    .results .card.audio .media-cover { padding: 0 !important; }
    .results .inline-audio { padding-top: 10px !important; }
    .media-cover iframe, .media-cover video { position:absolute; inset:0; width:100%; height:100%; border:0; z-index:5; pointer-events:auto; }
    /* Disable title overlays to keep embeds fully interactive */
    .media-cover .overlay { display:none; }
    .card-body { padding: .85rem 1rem; display:flex; flex-direction:column; gap:.35rem; height:100%; }
    /* Search results: let audio span edge-to-edge inside audio cards */
    .results .card.audio .card-body { padding-left: 0 !important; padding-right: 0 !important; }
    .results .inline-audio { padding: 0 !important; margin: 0 !important; }
    .results .inline-audio audio { width: 100%; height: 48px; display: block; margin: 0; }
    /* Then restore container padding visually while keeping audio full-bleed */
    .results .card.audio .card-body { padding-left: 1rem !important; padding-right: 1rem !important; }
    .results .inline-audio { margin-left: -1rem !important; margin-right: -1rem !important; }
    /* Normal spacing below full-height streaming embeds */
    .card.streaming .card-body,
    .card.spotify .card-body { gap: .35rem; margin-top: .25rem; }
    .card-footer { padding: .65rem .9rem .9rem; border-top:1px solid var(--gray-200); }
    .card-footer .btn { width:100%; justify-content:center; }
    .title { font-weight: 800; color: var(--gray-900); letter-spacing:-0.01em; }
    .muted { color: var(--gray-600); font-size: .90rem; letter-spacing: 0; padding-top: 0.2rem; margin-bottom: 3px; white-space: pre-wrap; }
    .divider { height:1px; background: var(--gray-200); border:0; margin:.4rem 0; }
    .card.streaming .divider,
    .card.spotify .divider { margin:.15rem 0 .2rem; }
    .actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem; margin-top:.3rem; width:100%; margin-top:auto; }
    /* Make action buttons a touch larger so Learn More matches Composition Page */
    .actions .btn { padding: .55rem .9rem; }
    .btn { padding:.5rem .8rem; border-radius:10px; border:1px solid var(--gray-300); background: var(--surface); color: var(--gray-800); font-weight:600; font-size:.95rem; cursor:pointer; text-decoration: none; display:inline-flex; align-items:center; justify-content:center; text-align:center; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease; letter-spacing: -0.005em; }
    /* Match Music Catalog clear-all button styling */
    #clearBtn.btn { padding:.5rem .9rem; border-radius:10px; border:1px solid var(--gray-300); background: var(--surface); color: var(--gray-800); font-weight:600; font-size:.95rem; letter-spacing:-0.005em; }
    #clearBtn.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(2,6,23,.08); background: var(--gray-50); }
    /* Lighter tone for the filter toggle; smaller text */
    #filterToggle { font-size: .98rem; padding:.45rem .78rem; display:inline-flex; align-items:center; gap:.5rem; }
    .btn:link, .btn:visited { text-decoration: none; }
    .btn:hover { transform: translateY(-2px); box-shadow: var(--elev-1); text-decoration: none; background: var(--gray-50); border-color: var(--gray-300); }
    .btn.primary { background: var(--gray-900); border-color: var(--gray-900); color:white; }
    .btn.primary:hover { background: var(--gray-800); border-color: var(--gray-800); box-shadow: var(--elev-1); }
    /* Modal header action buttons styling */
    .modal-head .btn { 
      background: rgba(255, 255, 255, 0.15); 
      border: 1px solid rgba(255, 255, 255, 0.2); 
      color: white; 
      font-weight: 600; 
      /* Match composition page button size, keep modal color */
      padding: .35rem .9rem; 
      border-radius: 10px; 
      font-size: 1rem; 
    }
    .modal-head .btn:hover { 
      background: rgba(255, 255, 255, 0.25); 
      border-color: rgba(255, 255, 255, 0.3); 
      transform: translateY(-1px); 
    }
    .modal-head .btn.primary { 
      background: rgba(255, 255, 255, 0.9); 
      color: var(--primary-700, #1d4ed8); 
      border-color: rgba(255, 255, 255, 0.9); 
    }
    /* Make Buy Now just a touch larger to match composition page button sizing */
    .modal-head .head-actions [data-role="purchase-button"].btn {
      padding: .55rem 1.1rem;  /* a touch more vertical + horizontal padding */
      font-size: 1.06rem;      /* small bump for visual parity */
      font-weight: 600;        /* match composition button weight */
      line-height: 1.2;
      min-height: 40px;        /* ensure same visual height as peer */
    }
    .modal-head .btn.primary:hover { 
      background: white; 
      color: var(--primary-800, #1e40af); 
      border-color: white; 
    }
    .type-pill { align-self:flex-start; margin-top:.25rem; }
    .row-meta { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; font-size:.9rem; }
    .row-meta .left { color: var(--gray-500); font-weight:400; padding-left: .5rem;
      margin-top: -.5rem;}
    .card.audio .row-meta .right { flex:1; display:flex; flex-wrap:wrap; justify-content:flex-start; }
    .row-meta .left .label { color: var(--gray-500); font-weight:600; margin-right: 1rem; }
    /* Right-aligned instrumentation slot used on video/score-video cards */
    .row-meta .inst { color: var(--gray-600); }
    /* Grouped middle container: instrumentation on left, meta (cat/tags) on right */
    .row-meta .group { flex:1; display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top: 5px}
    .row-meta .group .meta-right { display:flex; flex-wrap:wrap; gap:.35rem; justify-content:flex-end; margin-left:auto; }
    /* Video/Score Video: stack meta vertically, then use full-width group with space-between */
    .card.video .row-meta, .card.score-video .row-meta { flex-direction: column; align-items: flex-start; }
    .card.video .row-meta .group, .card.score-video .row-meta .group { width: 100%; justify-content: space-between; align-items: flex-start; }
    /* Audio: align to top; use full-width middle group with space-between */
    .card.audio .row-meta { align-items: flex-start; }
    .card.audio .row-meta .group { width: 100%; justify-content: space-between; align-items: flex-start; }
    /* Thumbnail badges for special tags */
    .badge-overlay { position:absolute; top:.5rem; right:.5rem; display:flex; gap:.25rem; pointer-events:none; z-index:2; }
    .badge-icon { width:28px; height:28px; border-radius:999px; background: rgba(15,23,42,.75); display:grid; place-items:center; box-shadow: 0 4px 12px rgba(2,6,23,.25); }
    .badge-icon svg { display:block; }
    .featured-actions { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:0; }
    .featured-actions .btn { font-weight:500; font-size:.9rem; padding:.55rem .9rem; }
    .featured-actions .btn.primary { font-weight:700; }
    /* Match primary button to neutral btn sizing in featured actions */
    .featured-actions .comp-btn-wrap .btn.primary,
    .featured-actions .btn.primary { padding: .55rem .9rem !important; font-weight:600 !important; font-size:.9rem !important; border-radius:10px !important; }
    .audio-meta-left .btn { font-size:.9rem; padding:.55rem .9rem; }

    /* Quick view modal */
    .modal { position: fixed; inset: 0; background: rgba(2,6,23,.6); display:none; align-items:center; justify-content:center; z-index:7000; overflow:auto; }
    .modal.show { display:flex; }
    .modal-card { width:min(1000px, 92vw); max-height: 92vh; background: var(--surface); border-radius: 14px; box-shadow: var(--elev-2); display:flex; flex-direction:column; overflow-x: hidden; }
    .modal-head { 
      position: sticky; 
      top: 0; 
      background: linear-gradient(180deg, rgba(3, 14, 38, 0.65), rgba(2, 15, 44, 0.47)) !important; 
      color: white; 
      z-index: 2; 
      display: flex; 
      align-items: flex-start; 
      justify-content: space-between; 
      gap: 1rem; 
      padding: 1.5rem 2rem 2rem 2rem; 
      border-top-left-radius: 14px; 
      border-top-right-radius: 14px; 
      overflow: hidden; 
      position: relative;
    }
    .modal-head .head-row { 
      display: flex; 
      flex-direction: column; 
      align-items: flex-start; 
      flex: 1; 
      min-width: 0;
      gap: .35rem; /* add a touch of vertical spacing when content wraps */
    }
    .modal-head .head-actions { 
      display: flex; 
      gap: .5rem; 
      align-items: center; 
      flex-shrink: 0;
      margin-right: 4rem; /* More space for close button */
    }
    .modal-subtitle { 
      color: rgba(255, 255, 255, 0.8); 
      font-size: .9rem; 
      margin: 0; 
      font-weight: 400; 
    }
    .modal-body { padding: 1rem; display:block; overflow-y:auto; overflow-x:hidden; }
    /* Close button */
    .modal-head { position: sticky; top: 0; }
    .modal-card { position: relative; }
    /* Close button — styled for gradient header */
    .modal-close { 
      background: rgba(255, 255, 255, 0.15); 
      border: 1px solid rgba(255, 255, 255, 0.2); 
      border-radius: 8px; 
      color: white; 
      cursor: pointer; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      font-size: 1.5rem; 
      font-weight: 300; 
      height: 40px; 
      line-height: 1; 
      padding: 0; 
      transition: all 0.2s ease; 
      width: 40px; 
      flex-shrink: 0;
    }
    .modal-close:hover { 
      background: rgba(255, 255, 255, 0.25); 
      border-color: rgba(255, 255, 255, 0.3); 
    }
    .modal-close:focus-visible { 
      outline: 2px solid rgba(255, 255, 255, 0.5); 
      outline-offset: 2px; 
    }
    /* Remove the old pseudo-element X styles */
    .modal-close .icon-x { display: none; }
    .modal-close::before, .modal-close::after { display: none; }

    /* ===== Quick modal animations (modeled after enhanced overlay) ===== */
    @keyframes qmModalIn {
      0% { opacity: 0; transform: translateY(14px) scale(0.985); }
      100% { opacity: 1; transform: none; }
    }
    /* Re-entry helpers: force modal to reset to 0 opacity and slide up on demand */
    #quickModal .modal-card.qm-reset { opacity: 0 !important; transform: translateY(14px) scale(0.985) !important; }
    #quickModal .modal-card.qm-reenter { animation: qmModalIn .26s cubic-bezier(.2,.7,.2,1) both !important; }
    @keyframes qmFadeUp {
      0% { opacity: 0; transform: translateY(10px); }
      100% { opacity: 1; transform: none; }
    }
    /* Tab switching animation */
    @keyframes tabFadeSlideIn {
      0% { opacity: 0; transform: translateY(12px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .tab-animate-in {
      animation: tabFadeSlideIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .modal-card { will-change: transform, opacity; }
    #quickModal.show .modal-card { animation: qmModalIn .26s cubic-bezier(.2,.7,.2,1) both; }
    /* Child components fade up with slight stagger */
    .qm-fade { opacity: 0; transform: translateY(10px); }
    .qm-fade.qm-in { animation: qmFadeUp .28s ease-out both; animation-delay: var(--stagger, 0ms); }
    /* Hide any Learn More buttons inside the modal to avoid redundancy */
    #quickModal .learn-more,
    #quickModal .actions .learn-more,
    #quickModal .featured-actions .learn-more { display: none !important; }
    @media (prefers-reduced-motion: reduce){
      #quickModal.show .modal-card { animation: none; }
      .qm-fade, .qm-fade.qm-in { opacity: 1 !important; transform: none !important; animation: none !important; }
    }

    /* Edge navigation inside modal */
    .modal-edge-nav { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
    .modal-edge-nav .nav-btn {
      position: absolute; top: 50%; transform: translateY(-50%);
      pointer-events: auto; display: grid; place-items: center;
      width: 20px; height: 60px; border-radius: 8px; cursor: pointer;
      border: 1px solid rgba(0,0,0,.10); color: #fff; 
      background: linear-gradient(180deg, rgba(156,163,175,.92), rgba(156,163,175,.84)); /* gray-400 */
      -webkit-backdrop-filter: blur(8px) saturate(130%);
      backdrop-filter: blur(8px) saturate(130%);
      box-shadow: 0 10px 18px rgba(0,0,0,.28);
    }
    .modal-edge-nav .nav-btn:hover { background: rgba(255,255,255,.96); color:#111; border-color: rgba(0,0,0,.22); }
    /* Position buttons hugging the modal-card sides (card is min(1000px, 92vw)) */
    .modal-edge-nav .nav-prev { left: calc(50% - min(550px, 46vw) - 14px); }
    .modal-edge-nav .nav-next { right: calc(50% - min(550px, 46vw) - 14px); }
    .modal-edge-nav .nav-btn svg {  height: 22px; display:block; }
    @media (max-width: 640px){ 
      .modal-edge-nav .nav-btn { width: 34px; height: 34px; }
      .modal-edge-nav .nav-prev { left: 6px; }
      .modal-edge-nav .nav-next { right: 6px; }
    }
    @media (max-width: 640px) {
      .modal { align-items: flex-start; }
      .modal-card { width:100vw; max-width:100vw; height:100vh; max-height:100vh; border-radius: 0; }
      .modal-body { padding: .75rem; }
      .modal-head { 
        padding: 1rem 1rem 1.2rem 1rem !important; 
        flex-direction: column; 
        align-items: stretch; 
        gap: .15rem; 
        border-radius: 0; 
        position: relative;
        overflow: visible;
      }
      .modal-head .head-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0; 
        width: 100%;
        padding-right: 3.75rem; /* Space for close button */
        margin-bottom: .25rem;
      }
      .modal-head .head-actions { 
        display: flex;
        flex-direction: row;
        gap: .5rem;
        row-gap: .35rem;
        margin-right: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-right: 3.25rem; /* leave room for close button */
      }
      .modal-head .head-actions .btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
        white-space: nowrap;
        font-size: .9rem;
        padding: .5rem .75rem;
      }
      /* Keep Buy Now a bit larger on mobile too for legibility */
      .modal-head .head-actions [data-role="purchase-button"].btn {
        font-size: 1rem;
        padding: .6rem 1rem;
        font-weight: 600;
        min-height: 38px;
      }
          .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 10;
      width: 36px;
      height: 36px;
    }
    }
    .related-list { display:grid; gap:.5rem; }
    .rel-item { border:1px solid var(--gray-200); border-radius:10px; padding:.6rem .75rem; display:flex; align-items:center; justify-content:space-between; }
    /* Composition-style Related News (for modal)
       Mirrors styling from composition.html for a consistent look */
    .composition-related-news-section { width:100%; max-width:100%; margin:.25rem 0 .35rem; padding:0; box-sizing:border-box; display:flex; justify-content:flex-end; }
    .related-news-rail { display:flex; flex-direction:column; align-items:flex-end; gap:.05rem; overflow:visible; padding:0; margin:0; }
    .related-news-link { display:inline-flex; align-items:baseline; gap:.35rem; text-decoration:none; color:var(--gray-700); padding:.2rem .35rem; border-radius:8px; transition: color .15s ease, background-color .15s ease, transform .15s ease; white-space:nowrap; }
    .related-news-link:hover { color:var(--gray-900); transform: translateY(-1px); background: var(--gray-100); }
    .rn-title { font-size:.9rem; font-weight:800; color:var(--gray-900); margin:0; letter-spacing:-0.01em; }
    .rn-chip { display:inline-block; padding:.2rem .5rem; border:1px solid var(--gray-300); background:var(--gray-50); color:var(--gray-700); border-radius:999px; font-weight:700; font-size:.72rem; line-height:1; }
    .rn-date { font-size:.78rem; color:var(--gray-600); font-weight:700; margin:0; }
    .rn-sep { color: var(--gray-400); font-weight:700; }
    /* Mobile adjustments to match composition page */
    @media (max-width: 768px){
      .composition-related-news-section { justify-content: center; }
      .related-news-rail { gap: .5rem; align-items: center; }
      .related-news-link {
        width: auto; max-width: 100%;
        white-space: normal; /* allow multi-line wrap */
        flex-wrap: wrap; /* wrap title/chip/date */
        justify-content: center; /* center content on mobile */
        text-align: center;
        row-gap: .15rem; column-gap: .35rem;
      }
    }
    /* Unified quick-view layout */
    .modal-sections { display:flex; flex-direction:column; gap: .75rem; max-width: 100%; overflow-x: hidden; }
    .modal-title { display:flex; align-items:center; justify-content:flex-end; gap:.5rem; }
    .modal-title h3 { margin:0; font-size:1.2rem; }
    .modal-primary { display:flex; flex-direction:column; gap:.35rem; max-width: 100%; overflow-x: hidden; }
    .modal-subgrid { display:grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 100%; overflow-x: hidden; }
    @media (max-width: 900px) { .modal-subgrid { grid-template-columns: 1fr; } }
    .modal-media { border:1px solid var(--gray-200); border-radius:10px; padding:.55rem; background:#fff; display:flex; flex-direction:column; gap:.3rem; max-width: 100%; box-sizing: border-box; }
    .modal-media h4 { margin:.05rem 0 .1rem; font-size:.95rem; color: var(--gray-700); }
    .modal-media .embed { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#0b1220; max-width: 100%; }
    .modal-media .embed iframe, .modal-media .embed video { position:absolute; inset:0; width:100%; height:100%; border:0; max-width: 100%; }
    .modal-media.streaming .embed,
    .modal-media.spotify .embed { aspect-ratio:auto; background:transparent; overflow:visible; max-width: 100%; }
    .modal-media.streaming .embed iframe,
    .modal-media.spotify .embed iframe { position:static; width:100%; height:420px; display:block; max-width: 100%; }
    .modal-media.streaming .embed .streaming-embed-container,
    .modal-media.streaming .embed .spotify-embed-container,
    .modal-media.spotify .embed .streaming-embed-container,
    .modal-media.spotify .embed .spotify-embed-container {
      border-radius: 10px;
      overflow: hidden;
    }
    .modal-media .meta { font-size:.9rem; color: var(--gray-600); display:flex; flex-wrap:wrap; gap:.25rem; align-items:center; max-width: 100%; }
    .modal-media .video-desc { padding-top:.25rem; max-width: 100%; word-wrap: break-word; white-space: pre-wrap; }
    .modal-media .muted { padding-left: 1.2rem; max-width: 100%; word-wrap: break-word; }
    .modal-desc { color: var(--gray-700); max-width: 100%; word-wrap: break-word; white-space: pre-wrap; }
    .modal-media.audio .embed { aspect-ratio:auto; background:transparent; max-width: 100%; }
    .modal-media.audio .embed audio { width: 100%; max-width: 100%; box-sizing: border-box; }
    .mv-nav { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.4rem; max-width: 100%; }
    .mv-counter { color: var(--gray-600); font-size:.9rem; flex:1; text-align:center; }

    /* Debug overlay */
    .debug-panel { position: fixed; bottom: 16px; left: 16px; width: 380px; max-height: 60vh; overflow: auto; background: #0f172a; color: #e5e7eb; border: 1px solid #334155; border-radius: 12px; box-shadow: 0 14px 44px rgba(2,6,23,.35); z-index: 60; display: none; }

    /* Dark mode component overrides */
    [data-theme="dark"] .audio-item,
    [data-theme="dark"] .dropdown-btn,
    [data-theme="dark"] .dropdown-menu,
    [data-theme="dark"] .btn,
    [data-theme="dark"] .panel,
    [data-theme="dark"] .modal-card,
    [data-theme="dark"] .modal-media { background: var(--surface); }
    [data-theme="dark"] .audio-item,
    [data-theme="dark"] .dropdown-btn,
    [data-theme="dark"] .dropdown-menu,
    [data-theme="dark"] .panel,
    [data-theme="dark"] .card,
    [data-theme="dark"] .modal-card,
    [data-theme="dark"] .modal-media { border-color: var(--gray-700); }
    [data-theme="dark"] .btn { color: var(--gray-100); border-color: var(--gray-700); }
    [data-theme="dark"] .btn.primary { background: var(--gray-700); border-color: var(--gray-700); color:white; }
    [data-theme="dark"] .local-nav .nav-group { background: var(--surface); border-color: var(--gray-700); }
    [data-theme="dark"] .modal-head { 
      background: linear-gradient(135deg, var(--primary-700, #1d4ed8), var(--primary-900, #1e3a8a)); 
    }
    [data-theme="dark"] .modal-close { 
      background: rgba(255, 255, 255, 0.1); 
      border-color: rgba(255, 255, 255, 0.15); 
      color: white; 
    }
    [data-theme="dark"] .modal-close:hover { 
      background: rgba(255, 255, 255, 0.2); 
      border-color: rgba(255, 255, 255, 0.25); 
    }
    [data-theme="dark"] #api-status-banner { background: rgba(245, 158, 11, .12); color: #fde68a; border-color: var(--gray-700); }
    .debug-panel header { display:flex; align-items:center; justify-content:space-between; padding:.6rem .8rem; border-bottom:1px solid #334155; }
    .debug-panel pre { margin: 0; padding:.6rem .8rem; font-size:.8rem; white-space: pre-wrap; word-break: break-word; }
    .debug-btn { margin-left:.5rem; padding:.3rem .55rem; font-size:.8rem; border-radius:8px; border:1px solid var(--gray-300); background:#fff; cursor:pointer; }
    
    /* ===== Quick View Modal – Frosted Glass Aesthetic (scoped; match enhanced overlay dark) ===== */
    /* Prevent body scroll when modal is open */
    body.modal-open {
      overflow: hidden;
    }
    
    /* Backdrop blur/saturation like enhanced-score-overlay (darkened) */
    #quickModal {
      background: rgba(2, 6, 23, 0.55) !important;
      -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
      backdrop-filter: blur(10px) saturate(140%) !important;
    }
    #quickModal.show {
      background: rgba(2, 6, 23, 0.62) !important;
      -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
      backdrop-filter: blur(14px) saturate(160%) !important;
    }
    /* Card becomes transparent; inner modules also transparent per new direction */
    #quickModal .modal-card {
      background: transparent !important;
      border: 0 !important;
      border-right: 0 !important;
      border-left: 0 !important;
      outline: 0 !important;
      box-shadow: 0 18px 42px rgba(0,0,0,.45) !important;
    }
    #quickModal .modal-body { 
      background: transparent !important;
      border: 0 !important;
      padding: 1rem !important;
      border-right: 0 !important;
      border-left: 0 !important;
    }
    /* Header becomes a dark glass bar with subtle divider */
    #quickModal .modal-head {
      background: linear-gradient(180deg, rgba(17,24,39,.55), rgba(17,24,39,.38)) !important;
      color: #f8fafc !important;
      -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
      backdrop-filter: blur(12px) saturate(140%) !important;
      border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }
    #quickModal .modal-head .modal-subtitle { color: #cbd5e1 !important; }
    /* Glassy buttons in the header */
    #quickModal .modal-head .btn {
      background: rgba(17,24,39,.45) !important;
      color: #fff !important;
      border: 1px solid rgba(255,255,255,.16) !important;
      box-shadow: none !important;
    }
    /* Keep primary Buy Now as bright/white for contrast (matches overlay screenshot) */
    #quickModal .modal-head .btn.primary {
      background: rgba(255,255,255, 0.92) !important;
      color: var(--primary-700, #1d4ed8) !important;
      border-color: rgba(255,255,255, 0.92) !important;
      box-shadow: 0 6px 14px rgba(2,6,23,.10) !important;
    }
    #quickModal .modal-head .btn:hover { filter: brightness(1.03); transform: translateY(-1px); }

    /* Media Toggle Row - Styled like enhanced-score-overlay.js */
    .media-toggle-row {
      display: flex;
      gap: 10px;
      padding: 6px 15px 6px 15px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: linear-gradient(180deg, rgba(17,24,39,.22), rgba(17,24,39,.10));
      -webkit-backdrop-filter: blur(10px) saturate(140%);
      backdrop-filter: blur(10px) saturate(140%);
      border-radius: 0;
    }
    .media-toggle-btn {
      appearance: none;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 8px 14px;
      font-weight: 600;
      font-size: 0.9rem;
      color: #e5e7eb;
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
    }
    .media-toggle-btn:hover {
      filter: brightness(1.1);
      background: rgba(255,255,255,0.05);
    }
    .media-toggle-btn.active {
      background: #111111;
      color: #ffffff;
      border-color: #111111;
      box-shadow: 0 4px 10px rgba(2,6,23,.18);
    }
    /* Hide buttons that don't have associated media */
    .media-toggle-btn[style*="display: none"] {
      display: none !important;
    }
    
    /* Full-width media when toggled individually */
    .modal-subgrid .modal-media {
      width: 100%;
      max-width: 100%;
    }
    
    /* Single item view: make subgrid single column for full width */
    .modal-subgrid.single-item {
      grid-template-columns: 1fr !important;
    }
    
    /* When only one media type is visible, make it span full width */
    .modal-subgrid:has(.modal-media[style*="display: none"]) .modal-media:not([style*="display: none"]) {
      grid-column: 1 / -1;
      max-width: 100%;
    }
    
    /* Ensure embeds inside fill their containers properly */
    .modal-media .embed,
    .modal-media .embed iframe,
    .modal-media .embed video,
    .modal-media audio {
      width: 100% !important;
      max-width: 100% !important;
    }
    
    /* Remove borders from audio elements in modal but keep border-radius */
    #quickModal audio,
    #quickModal .modal-media.audio,
    #quickModal .modal-media.audio .embed {
      border: 0 !important;
      border-right: 0 !important;
      border-left: 0 !important;
      border-top: 0 !important;
      border-bottom: 0 !important;
      outline: 0 !important;
      box-shadow: none !important;
    }
    
    /* Keep border-radius for audio player */
    #quickModal audio {
      border-radius: 8px !important;
    }
    
    /* Force transparent and borderless for audio embed containers in modal */
    #quickModal .modal-media.audio .embed {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      overflow: visible !important;
      padding: 0 !important;
      margin: 0 !important;
    }
    
    /* Also remove any borders from video and score embeds in modal but keep border-radius */
    #quickModal .modal-primary .modal-media .embed {
      border: 0 !important;
      box-shadow: none !important;
    }
    
    /* Keep border-radius for video embeds and iframes */
    #quickModal .modal-media .embed {
      border-radius: 10px !important;
    }
    
    #quickModal .modal-media .embed iframe,
    #quickModal .modal-media .embed video {
      border-radius: 10px !important;
    }
    
    /* Keep border-radius for streaming embeds */
    #quickModal .streaming-embed-container,
    #quickModal .spotify-embed-container,
    #quickModal .streaming-embed-container iframe,
    #quickModal .spotify-embed-container iframe {
      border-radius: 12px !important;
    }
    
    /* Style dividers in modal to be subtle */
    #quickModal .divider {
      background: rgba(255, 255, 255, 0.1) !important;
      border: 0 !important;
      height: 1px !important;
      margin: 0.5rem 0 !important;
    }
    
    /* Remove any padding/margin that might create visual gaps looking like borders */
    #quickModal .modal-media.audio {
      padding: 0 !important;
      gap: 0.3rem !important;
    }
    
    /* Remove left padding from muted text in modal */
    #quickModal .modal-media .muted {
      padding-left: .5rem !important;
    }
    
    /* Ensure no gaps in grid create visual borders */
    #quickModal .modal-subgrid {
      gap: 0.75rem !important;
      border: 0 !important;
    }
    
    /* Ensure modal sections and primary don't have borders */
    #quickModal .modal-sections,
    #quickModal .modal-primary {
      border: 0 !important;
      padding: 0 !important;
    }
    
    /* Target specific elements that might show borders */
    #quickModal .modal-sections > *,
    #quickModal .modal-primary > *,
    #quickModal .modal-subgrid > * {
      border-right: 0 !important;
      border-left: 0 !important;
    }
    
    /* Ensure streaming embeds also take full width */
    .modal-media.streaming,
    .modal-media.spotify,
    .modal-media.streaming .embed,
    .modal-media.spotify .embed,
    .modal-media.streaming .streaming-embed-container,
    .modal-media.streaming .streaming-embed-container iframe,
    .modal-media.spotify .spotify-embed-container,
    .modal-media.spotify .spotify-embed-container iframe {
      width: 100% !important;
      max-width: 100% !important;
    }

    /* Mobile responsiveness for media toggle buttons */
    @media (max-width: 768px) {
      .media-toggle-row {
        padding: 6px 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
      }
      .media-toggle-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
      }
    }
    
    @media (max-width: 480px) {
      .media-toggle-row {
        gap: 6px;
        padding: 6px 10px;
      }
      .media-toggle-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        flex: 1 1 auto;
        min-width: 0;
      }
    }

    /* Transparent media containers (Video, Score Video, Audio, Streaming) */
    #quickModal .modal-media,
    #quickModal .modal-media .embed,
    #quickModal .spotify-embed-container {
      background: transparent !important;
      border: 0 !important;
      border-right: 0 !important;
      border-left: 0 !important;
      border-top: 0 !important;
      border-bottom: 0 !important;
      box-shadow: none !important;
    }
    
    /* Remove borders from modal containers */
    #quickModal .modal-primary,
    #quickModal .modal-subgrid,
    #quickModal .modal-sections {
      border: 0 !important;
      border-right: 0 !important;
    }

    /* Flip body text to light-on-dark for readability over transparent background */
    #quickModal .modal-body { color: #ffffff !important; }
    #quickModal .modal-media .meta,
    #quickModal .modal-media .video-desc,
    #quickModal .modal-media .muted,
    #quickModal .modal-media h4,
    #quickModal .mv-counter,
    #quickModal .modal-desc { color: #ffffff !important; }
    /* Related news links inside modal — flip all text to white */
    #quickModal .related-news-link { color: #ffffff !important; }
    #quickModal .related-news-link .rn-title,
    #quickModal .related-news-link .rn-date,
    #quickModal .related-news-link .rn-sep { color: #ffffff !important; }
    #quickModal .related-news-link .rn-chip {
      color: #ffffff !important;
      border-color: rgba(255,255,255,.6) !important;
      background: rgba(255,255,255,.15) !important;
    }
    /* Hover: flip related news text to black for contrast */
    #quickModal .related-news-link:hover,
    #quickModal .related-news-link:hover .rn-title,
    #quickModal .related-news-link:hover .rn-date,
    #quickModal .related-news-link:hover .rn-sep { color: #000000 !important; }
    #quickModal .related-news-link:hover .rn-chip {
      color: #111111 !important;
      background: rgba(255,255,255,.92) !important;
      border-color: rgba(0,0,0,.2) !important;
    }


    /* ===== STARTUP ANIMATIONS ===== */
    @keyframes slideUpFadeIn {
      0% {
        opacity: 0;
        transform: translateY(14px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Initial state for animated containers */
    .animate-on-load {
      opacity: 0;
      transform: translateY(14px);
    }

    /* Animation class to trigger the effect */
    .animate-slide-up {
      animation: slideUpFadeIn 0.5s ease forwards;
    }

    /* Staggered animation delays */
    .animate-delay-1 { animation-delay: 0.04s; }
    .animate-delay-2 { animation-delay: 0.08s; }
    .animate-delay-3 { animation-delay: 0.12s; }
    .animate-delay-4 { animation-delay: 0.16s; }

    /* ===== TYPOGRAPHY REFINEMENTS (professional, minimal) ===== */
    html { -webkit-text-size-adjust: 100%; }
    body {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      font-kerning: normal;
      font-feature-settings: "kern" 1, "liga" 1;
      letter-spacing: 0;
    }
    h1, h2, h3 { color: var(--gray-900); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
    .section h2 { margin: 10px 0 6px; font-size: clamp(1.4rem, 1.05rem + 1vw, 2rem); letter-spacing: -0.015em; text-wrap: balance; }
    .section p.sub { margin: 0 0 8px; font-size: .98rem; line-height: 1.6; color: var(--gray-600); }
    .filter-panel h2 { font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; padding-bottom: 1rem}
    .filter-panel p.sub { font-size: .98rem; line-height: 1.6; color: var(--gray-600); }
    p, .muted, .video-meta-left, .meta-line { line-height: 1.55; }
    .title { letter-spacing: -0.01em; }
    .muted { color: var(--gray-600); }
    .btn, .local-nav .nav-btn { font-weight: 600; letter-spacing: -0.005em; }
    .dropdown-btn { font-weight: 500; letter-spacing: -0.005em; }
    .tag, .badge { font-weight: 600; letter-spacing: -0.005em; }

    /* Subtle item reveal animation for dropdowns */
    @keyframes dropdownItemIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: no-preference) {
      .dropdown.show .dropdown-menu .opt { animation: dropdownItemIn .14s ease both; animation-delay: .10s; }
      .dropdown.show .dropdown-menu .opt:nth-child(1) { animation-delay: 0s; }
      .dropdown.show .dropdown-menu .opt:nth-child(2) { animation-delay: .02s; }
      .dropdown.show .dropdown-menu .opt:nth-child(3) { animation-delay: .04s; }
      .dropdown.show .dropdown-menu .opt:nth-child(4) { animation-delay: .06s; }
      .dropdown.show .dropdown-menu .opt:nth-child(5) { animation-delay: .08s; }
    }
    @media (prefers-reduced-motion: reduce) {
      .dropdown.show .dropdown-menu .opt { animation: none !important; }
    }

    @media (min-width: 641px) {
      .modal-close { 
        margin: 0; 
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        z-index: 10;
      }
      .modal-head .head-actions {
        margin-right: 4rem; /* Keep space for close button on desktop too */
      }
    }

    /* Improved reveal animations for media search results - items visible by default */
    .reveal {
        opacity: 1; /* Visible by default */
        transform: translateY(20px); /* Start slightly lower */
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: var(--reveal-delay, 0s);
    }
    .reveal.animate-in {
        opacity: 1;
        transform: translateY(0); /* Animate to normal position */
    }
    /* Dark mode adjustments */
    [data-theme="dark"] .reveal { opacity: 1; }

    /* ===== Media section background rails ===== */
    .media-rail { position: relative; isolation: isolate; padding: 0rem 0 3rem; }
    #featuredAudioAndReleases { padding-top: 3rem; }
    .media-rail::before { content: ""; position: absolute; inset: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; z-index: -1; }
    /* Featured Videos rail: flat gray-200 */
    .media-videos-rail::before { background: var(--gray-500); }
    /* Featured Audio rail: dark gradient (previous video gradient) */
    .media-audio-rail::before { background: linear-gradient(180deg, var(--gray-700) 0%, var(--gray-800) 100%); }
    @media (prefers-color-scheme: dark){
      .media-videos-rail::before { background: var(--secondary-200); }
      .media-audio-rail::before { background: linear-gradient(180deg, var(--gray-700) 0%, var(--gray-800) 100%); }
    }
    /* Constrain rail content to one grade narrower */
    .media-rail > .featured-split,
    .media-rail > .featured-stack { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
    /* Full-bleed divider element between rails */
    .media-divider { position: relative; height: 2px; color: var(--gray-700); }
    .media-divider::before { content: ""; position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: -1px; height: 3px; background: rgba(0,0,0,.28); }
    .media-divider::after { content: ""; position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: 0; height: 1px; background: rgba(255,255,255,.25); }
    /* Audio rail – ONLY the left-rail intro (aside-large) gets white text with subtle shadow */
    .media-audio-rail #leftRail .panel-plain.aside-large .panel-header { color: #fff; text-shadow: 1px 3px 4px rgba(0,0,0,.35); }
    .media-audio-rail #leftRail .panel-plain.aside-large .panel-body { color: #fff; text-shadow: 1px 3px 4px rgba(0,0,0,.25); }
    /* But inside that left-rail, keep feature media/site cards text black on white cards */
    .media-audio-rail #leftRail .site-card,
    .media-audio-rail #leftRail .site-card * { color: var(--gray-900) !important; text-shadow: none !important; }
    /* Ensure Featured Audio and Streaming panels stay dark text with no shadow */
    .media-audio-rail #featuredAudioSection .panel-header,
    .media-audio-rail #featuredAudioSection .panel-body,
    .media-audio-rail #spotifyReleasesSection .panel-header,
    .media-audio-rail #spotifyReleasesSection .panel-body { color: var(--gray-900); text-shadow: none; }
    /* Ensure badges never pick up a shadow */
    .media-audio-rail .badge.audio,
    .media-audio-rail .badge.streaming,
    .media-audio-rail .badge.spotify { text-shadow: none !important; }

    /* Mobile: remove extra .section padding for Featured; keep Search section unchanged */
    @media (max-width: 900px){
      /* Remove extra padding coming from the generic .section in the Featured area */
      #featured .section { padding-left: .1rem; padding-right: .1rem; }
      /* Keep a modest inner gutter for featured rails */
      .media-rail > .featured-split,
      .media-rail > .featured-stack { padding-left: .5rem; padding-right: .5rem; }
      /* Add a bit of space between the top of the split and the featured primary */
      .featured-split { padding-top: 1rem !important; }
      /* Keep the video rail compact, not expanded */
      #featured .video-carousel .rail { padding-left: .25rem; padding-right: .25rem; }
      /* Slightly reduce the audio list side padding on mobile */
      #featuredAudio { padding-left: .75rem !important; padding-right: .75rem !important; }
      /* Make hero-aside header a bit larger on mobile */
      .featured-split .hero-aside.panel-plain .panel-header { font-size: 1.7rem; }
    }


    /* Ensure Quick View modal overlays side-dot navigation */
    #quickModal { z-index: 100000 !important; }
    #quickModal .modal-card { z-index: 100001 !important; }
    #quickModal .modal-edge-nav { z-index: 100002 !important; }
  