{"product_id":"marina-surgan-live-5-cd","title":"Marina Surgan Live 5 (CD)","description":"\u003cdiv class=\"ballet-container\"\u003e\n  \u003cdiv class=\"ballet-header\"\u003eLIVE 5 - Tracklist\u003c\/div\u003e\n  \u003c!-- Hidden audio player element --\u003e\n  \u003caudio id=\"audioPlayer\" preload=\"none\" style=\"position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;\"\u003e\u003c\/audio\u003e\n  \u003cdiv class=\"track-list\" id=\"trackList\"\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cstyle\u003e\n  .ballet-container {\n    max-width: 650px;\n    margin: 30px auto;\n    font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n    background: #fff;\n    padding: 24px;\n    border-radius: 12px;\n    box-shadow: 0 4px 20px rgba(0,0,0,0.06);\n    border: 1px solid #eaeaea;\n    position: relative;\n    box-sizing: border-box;\n  }\n  .ballet-header {\n    font-size: 20px;\n    font-weight: 700;\n    margin-bottom: 16px;\n    color: #1a1a1a;\n  }\n  .track-list {\n    max-height: 500px;\n    overflow-y: auto;\n    border: 1px solid #f0f0f0;\n    border-radius: 8px;\n  }\n  .track-item {\n    display: flex;\n    align-items: center;\n    padding: 12px 16px;\n    border-bottom: 1px solid #f4f4f4;\n    cursor: pointer;\n    transition: background 0.2s;\n    font-size: 14px;\n    color: #333;\n  }\n  .track-item:last-child {\n    border-bottom: none;\n  }\n  .track-item:hover {\n    background: #f4d4d4;\n  }\n  .track-item.active {\n    background: #f4d4d4;\n    color: #b82323;\n  }\n  .track-item.active .main-title {\n    color: #b82323;\n  }\n  .track-num {\n    width: 35px;\n    color: #888;\n    flex-shrink: 0;\n    font-variant-numeric: tabular-nums;\n    transition: color 0.15s;\n  }\n  .track-item:not(.playing):hover .track-num {\n    color: #b82323;\n    font-size: 13px;\n  }\n  .track-item:not(.playing):hover .track-num::before {\n    content: \"▶\";\n  }\n  .track-item:not(.playing):hover .track-num span {\n    display: none;\n  }\n  .track-item.playing .track-num {\n    font-size: 12px;\n    color: #b82323;\n    font-weight: bold;\n  }\n  .track-item.playing .track-num::before {\n    content: \"\";\n  }\n  .track-item.playing .track-num span {\n    display: inline;\n  }\n  .track-content {\n    display: flex;\n    flex-wrap: wrap;\n    gap: 4px;\n    align-items: baseline;\n    min-width: 0;\n  }\n  .main-title {\n    font-weight: 700;\n    color: #1a1a1a;\n  }\n  .track-meter {\n    font-weight: 300;\n    color: #888;\n    font-size: 13px;\n  }\n\n  \/* ---------- Mobile ---------- *\/\n  @media (max-width: 600px) {\n    .ballet-container {\n  max-width: none;\n  margin: 16px 0;\n  padding: 12px 0;\n  border: none;\n  border-radius: 0;\n  box-shadow: none;\n}\n    .ballet-header {\n      font-size: 18px;\n      margin-bottom: 8px;\n      padding: 0 12px;\n    }\n    .track-list {\n      border-left: none;\n      border-right: none;\n      border-radius: 0;\n      max-height: 70vh;\n    }\n    .track-item {\n      padding: 12px;\n      font-size: 15px;\n    }\n    .track-num {\n      width: 28px;\n    }\n  }\n\u003c\/style\u003e\n\n\u003cscript\u003e\n  (function() {\n    const cdnBaseUrl = \"https:\/\/cdn.shopify.com\/s\/files\/1\/0411\/0886\/5176\/files\/\";\n    const playlist = [\n      { title: \"Warm Up 1 4\/4\", file: \"5_01prev.mp3\" },\n      { title: \"Warm Up 2 4\/4\", file: \"5_02prev.mp3\" },\n      { title: \"Plie 1 4\/4\", file: \"5_03prev.mp3\" },\n      { title: \"Plie 2 3\/4\", file: \"5_04prev.mp3\" },\n      { title: \"Tendu (a la Gavotte) 4\/4\", file: \"5_05prev.mp3\" },\n      { title: \"Tendu (a la Polka) 2\/4\", file: \"5_06prev.mp3\" },\n      { title: \"Tendu\/Jete + 16 slow ending 4\/4\", file: \"5_07prev.mp3\" },\n      { title: \"Jete\/Pique 2\/4\", file: \"5_08prev.mp3\" },\n      { title: \"Jete (Rocking) 3\/4\", file: \"5_09prev.mp3\" },\n      { title: \"Rond de Jambe 1 3\/4\", file: \"5_10prev.mp3\" },\n      { title: \"Rond de Jambe 2 4\/4\", file: \"5_11prev.mp3\" },\n      { title: \"Fondu (Mazurka) 3\/4\", file: \"5_12prev.mp3\" },\n      { title: \"Developpes (small adage 1) 3\/4\", file: \"5_13prev.mp3\" },\n      { title: \"Frappe 4\/4\", file: \"5_14prev.mp3\" },\n      { title: \"Stretch (small adage 2) 3\/4\", file: \"5_15prev.mp3\" },\n      { title: \"Battement Cloche (fast valse) 3\/4\", file: \"5_16prev.mp3\" },\n      { title: \"Grand Battements (march) 4\/4\", file: \"5_17prev.mp3\" },\n      { title: \"Releves 4\/4\", file: \"5_18prev.mp3\" },\n      { title: \"Center Adage 1 (slow) 6\/8\", file: \"5_19prev.mp3\" },\n      { title: \"Adage 2 3\/4\", file: \"5_20prev.mp3\" },\n      { title: \"Adage 3 3\/4\", file: \"5_21prev.mp3\" },\n      { title: \"Adagio 4 3\/4\", file: \"5_22prev.mp3\" },\n      { title: \"Adagio 5 3\/4\", file: \"5_23prev.mp3\" },\n      { title: \"Tendu 1 (a la Bach) 4\/4\", file: \"5_24prev.mp3\" },\n      { title: \"Tendu 2 (a la Sonata) 4\/4\", file: \"5_25prev.mp3\" },\n      { title: \"Tendu 3 La Sylphide Lovenskjold\/Surgan 2\/4\", file: \"5_26prev.mp3\" },\n      { title: \"Tendu 4 (a la toccatta) 4\/4\", file: \"5_27prev.mp3\" },\n      { title: \"Travelling Step 6\/8\", file: \"5_28prev.mp3\" },\n      { title: \"Pirouettes 1 (Mazurka) 3\/4\", file: \"5_29prev.mp3\" },\n      { title: \"Pirouettes 2 (with adage) 3\/4\", file: \"5_30prev.mp3\" },\n      { title: \"Pirouettes 3 Waltz 3\/4\", file: \"5_31prev.mp3\" },\n      { title: \"Pirouettes 4 (Mazurka) 3\/4\", file: \"5_32prev.mp3\" },\n      { title: \"Pirouettes 5 Waltz 3\/4\", file: \"5_33prev.mp3\" },\n      { title: \"Adage 6 with Pirouettes 6 3\/4\", file: \"5_34prev.mp3\" },\n      { title: \"Pirouettes 7 Waltz 3\/4\", file: \"5_35prev.mp3\" },\n      { title: \"Pirouettes 8 4\/4\", file: \"5_36prev.mp3\" },\n      { title: \"Petit Allegro 1 (Warm Up Jumps) 2\/4\", file: \"5_37prev.mp3\" },\n      { title: \"Petit Allegro 2 2\/4\", file: \"5_38prev.mp3\" },\n      { title: \"Petit Allegro 3 Stop Time 1 2\/4\", file: \"5_39prev.mp3\" },\n      { title: \"Petit Allegro 4 Stop Time 2 2\/4\", file: \"5_40prev.mp3\" },\n      { title: \"Petit Allegro 5 2\/4\", file: \"5_41prev.mp3\" },\n      { title: \"Petit Allegro 6 4\/4\", file: \"5_42prev.mp3\" },\n      { title: \"Petit Allegro 7 2\/4\", file: \"5_43prev.mp3\" },\n      { title: \"Petit Allegro 8 6\/8\", file: \"5_44prev.mp3\" },\n      { title: \"Petit Allegro 9 (Brise) 4\/4\", file: \"5_45prev.mp3\" },\n      { title: \"Medium Allegro 1 6\/8\", file: \"5_46prev.mp3\" },\n      { title: \"Medium Allegro 2 (a La Spanish) 6\/8\", file: \"5_47prev.mp3\" },\n      { title: \"Medium Allegro 3  4\/4\", file: \"5_48prev.mp3\" },\n      { title: \"Grand Allegro 1 3\/4\", file: \"5_49prev.mp3\" },\n      { title: \"Grand Allegro 2 3\/4\", file: \"5_50prev.mp3\" },\n      { title: \"Grand Allegro 3 3\/4\", file: \"5_51prev.mp3\" },\n      { title: \"Grand Allegro 4 3\/4\", file: \"5_52prev.mp3\" },\n      { title: \"Grand Allegro 5  (Entrechat Six Mens Solo) 4\/4\", file: \"5_53prev.mp3\" },\n      { title: \"Grand Allegro 6 (Mens Solo) 4\/4\", file: \"5_54prev.mp3\" },\n      { title: \"Grand Allegro 7 (Tour En L'Air 1 ) 4\/4\", file: \"5_55prev.mp3\" },\n      { title: \"Grand Allegro 8 (Men's Solo) 4\/4\", file: \"5_56prev.mp3\" },\n      { title: \"La Sylphide by Lovenskjold 2\/4\", file: \"5_57prev.mp3\" },\n      { title: \"Coda 1 4\/4\", file: \"5_58prev.mp3\" },\n      { title: \"Menége 1 3\/4\", file: \"5_59prev.mp3\" },\n      { title: \"Menége 2 (Coda) 4\/4\", file: \"5_60prev.mp3\" },\n      { title: \"Révérence 1 3\/4\", file: \"5_61prev.mp3\" },\n      { title: \"Révérence 2 4\/4\", file: \"5_62prev.mp3\" },\n      { title: \"Révérence 3 3\/4\", file: \"5_63prev.mp3\" }\n    ];\n\n    const trackListContainer = document.getElementById('trackList');\n    const audioPlayer = document.getElementById('audioPlayer');\n    let currentTrackIndex = 0;\n\n    if (!trackListContainer || !audioPlayer) return;\n\n    function formatTrackTitle(title) {\n      const regex = \/(\\s+(?:in\\s+)?\\d+[\\\/\\-]\\d+.*)$\/i;\n      const match = title.match(regex);\n      if (match) {\n        const mainTitle = title.replace(regex, '');\n        const meter = match[1];\n        return '\u003cspan class=\"main-title\"\u003e' + mainTitle + '\u003c\/span\u003e \u003cspan class=\"track-meter\"\u003e' + meter + '\u003c\/span\u003e';\n      }\n      return '\u003cspan class=\"main-title\"\u003e' + title + '\u003c\/span\u003e';\n    }\n\n    playlist.forEach((track, index) =\u003e {\n      const item = document.createElement('div');\n      item.className = 'track-item';\n      item.setAttribute('data-index', index);\n      item.innerHTML = '\u003cdiv class=\"track-num\"\u003e\u003cspan\u003e' + (index + 1) + '\u003c\/span\u003e\u003c\/div\u003e\u003cdiv class=\"track-content\"\u003e' + formatTrackTitle(track.title) + '\u003c\/div\u003e';\n      item.onclick = function() {\n        handleTrackClick(index);\n      };\n      trackListContainer.appendChild(item);\n    });\n\n    function updateVisualStates() {\n      const items = trackListContainer.querySelectorAll('.track-item');\n      items.forEach((el, idx) =\u003e {\n        const numSpan = el.querySelector('.track-num span');\n        if (idx === currentTrackIndex) {\n          el.classList.add('active');\n          if (!audioPlayer.paused) {\n            el.classList.add('playing');\n            numSpan.textContent = \"■\";\n          } else {\n            el.classList.remove('playing');\n            numSpan.textContent = (idx + 1);\n          }\n        } else {\n          el.classList.remove('active', 'playing');\n          numSpan.textContent = (idx + 1);\n        }\n      });\n    }\n\n    function handleTrackClick(index) {\n      const track = playlist[index];\n\n      if (currentTrackIndex === index \u0026\u0026 audioPlayer.src) {\n        if (audioPlayer.paused) {\n          audioPlayer.play().catch(error =\u003e {\n            console.log(\"Playback interaction required:\", error);\n          });\n        } else {\n          audioPlayer.pause();\n        }\n      } else {\n        currentTrackIndex = index;\n        audioPlayer.pause();\n        audioPlayer.src = cdnBaseUrl + track.file;\n        audioPlayer.load();\n\n        audioPlayer.play().catch(error =\u003e {\n          console.log(\"Playback interaction required:\", error);\n        });\n      }\n      updateVisualStates();\n\n      const activeEl = trackListContainer.querySelector('.track-item.active');\n      if (activeEl) {\n        activeEl.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n      }\n    }\n\n    audioPlayer.onplay = updateVisualStates;\n    audioPlayer.onpause = updateVisualStates;\n    audioPlayer.onended = function() {\n      updateVisualStates();\n    };\n    function goFullWidth() {\n  const box = document.querySelector('.ballet-container');\n  if (!box) return;\n  box.style.width = '';\n  box.style.marginLeft = '';\n  if (window.innerWidth \u003c= 600) {\n    const left = box.getBoundingClientRect().left;\n    box.style.width = document.documentElement.clientWidth + 'px';\n    box.style.marginLeft = (-left) + 'px';\n  }\n}\ngoFullWidth();\nwindow.addEventListener('load', goFullWidth);\nwindow.addEventListener('resize', goFullWidth);\n  })();\n\u003c\/script\u003e","brand":"MarinaSurgan","offers":[{"title":"MP3 Digital Album Download","offer_id":68088877023414,"sku":null,"price":45.0,"currency_code":"CAD","in_stock":true},{"title":"WAV Digital Album Download","offer_id":68088877056182,"sku":null,"price":45.0,"currency_code":"CAD","in_stock":true},{"title":"Compact Disc","offer_id":68088877088950,"sku":null,"price":48.0,"currency_code":"CAD","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0411\/0886\/5176\/files\/L5-cover.jpg?v=1795393750","url":"https:\/\/marinasurgan.ca\/products\/marina-surgan-live-5-cd","provider":"MarinaSurgan","version":"1.0","type":"link"}