/* Local gallery styles shared by standalone and website views. */
      .melo-gallery *, .melo-gallery *::before, .melo-gallery *::after {
        box-sizing: border-box;
      }

      .melo-gallery, .melo-gallery {
        margin: 0;
        min-height: 100%;
        overflow-x: hidden;
        background: #000;
        color: #ffb076;
        scroll-behavior: smooth;
      }

      .melo-gallery, .melo-gallery button, .melo-gallery input {
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      }

      .melo-gallery h1, .melo-gallery h2, .melo-gallery p {
        margin: 0;
      }

      .melo-gallery img, .melo-gallery svg {
        display: block;
        max-width: 100%;
      }

      .melo-gallery canvas {
        position: fixed;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
      }

      .melo-gallery .page-shell {
        position: relative;
        z-index: 10;
        min-height: 100vh;
        background: rgba(0, 0, 0, 0.42);
      }

      .melo-gallery .page-shell::before {
        background:
          linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78)),
          url("../assets/melotts_mascot.webp") right -8vw top 6vh / min(760px, 65vw) auto no-repeat;
        content: "";
        inset: 0;
        opacity: 0.2;
        pointer-events: none;
        position: fixed;
        z-index: -1;
      }

      .melo-gallery .content-shell {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        max-width: 72rem;
        min-height: 100vh;
        padding: 0.75rem 1rem;
        width: 100%;
      }

      .melo-gallery .page-header {
        margin-bottom: 2rem;
      }

      .melo-gallery .brand-card {
        background: rgba(20, 20, 20, 0.94);
        border: 2px solid rgba(255, 107, 0, 0.3);
        border-radius: 12px;
        box-shadow: 0 0 28px rgba(255, 107, 0, 0.12);
        cursor: pointer;
        padding: 1.25rem;
        transition:
          border-color 0.25s ease,
          box-shadow 0.25s ease,
          transform 0.25s ease;
      }

      .melo-gallery .brand-card:hover {
        border-color: #ff6b00;
        box-shadow: 0 0 24px rgba(255, 107, 0, 0.34);
        transform: translateY(-3px);
      }

      .melo-gallery .brand-card:focus-visible {
        border-color: #ff8a33;
        box-shadow:
          0 0 0 3px rgba(255, 107, 0, 0.28),
          0 0 28px rgba(255, 107, 0, 0.42);
        outline: none;
      }

      .melo-gallery .brand-card.is-playing {
        animation: cardPulse 1.4s ease-in-out infinite;
        border-color: #ff6b00;
      }

      @keyframes cardPulse {
        0%,
        100% {
          box-shadow:
            0 0 18px rgba(255, 107, 0, 0.28),
            0 0 42px rgba(255, 107, 0, 0.12);
        }

        50% {
          box-shadow:
            0 0 28px rgba(255, 107, 0, 0.5),
            0 0 68px rgba(255, 107, 0, 0.2);
        }
      }

      .melo-gallery .brand-glow {
        color: #ff6b00;
        text-shadow:
          0 0 20px rgba(255, 107, 0, 0.62),
          0 0 48px rgba(255, 60, 0, 0.28);
      }

      .melo-gallery .page-title {
        font-size: 3.75rem;
        font-weight: 800;
        line-height: 1;
        max-width: 56rem;
      }

      .melo-gallery .intro-copy {
        color: #ffb076;
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-top: 1.25rem;
        max-width: 48rem;
      }

      .melo-gallery .pill {
        border: 1px solid rgba(255, 107, 0, 0.42);
        background: rgba(255, 107, 0, 0.12);
        border-radius: 999px;
        color: #ffb076;
      }

      .melo-gallery .language-filter {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        margin: 1.4rem 0 1rem;
      }

      .melo-gallery .language-button {
        appearance: none;
        background: rgba(20, 20, 20, 0.84);
        border: 1px solid rgba(255, 107, 0, 0.42);
        border-radius: 999px;
        color: #ffb076;
        cursor: pointer;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1;
        padding: 0.68rem 0.9rem;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
      }

      .melo-gallery .language-button:hover, .melo-gallery .language-button:focus-visible, .melo-gallery .language-button.is-active {
        background: rgba(255, 107, 0, 0.22);
        border-color: #ff6b00;
        box-shadow: 0 0 16px rgba(255, 107, 0, 0.18);
        color: #ffc394;
        outline: none;
      }

      .melo-gallery .top-link {
        display: inline-flex;
        font-size: 0.875rem;
        font-weight: 600;
        padding: 0.5rem 1rem;
        text-decoration: none;
      }

      .melo-gallery .topbar {
        align-items: flex-start;
        background: rgba(10, 10, 10, 0.86);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 107, 0, 0.26);
        border-radius: 12px;
        display: flex;
        gap: 0.85rem;
        justify-content: space-between;
        margin-bottom: 1.35rem;
        padding: 0.85rem;
      }

      .melo-gallery .brand-lockup {
        align-items: flex-start;
        color: inherit;
        display: flex;
        flex: 0 0 auto;
        gap: 0.7rem;
        min-width: 0;
        padding: 0.1rem 0 0 0.1rem;
        text-decoration: none;
      }

      .melo-gallery .brand-lockup:hover {
        color: inherit;
        text-shadow: none;
      }

      .melo-gallery .brand-logo {
        height: 2.65rem;
        object-fit: contain;
        width: 2.65rem;
      }

      .melo-gallery .brand-name {
        color: #ffb076;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.1;
      }

      .melo-gallery .brand-subtitle {
        color: #ff8a33;
        font-size: 0.76rem;
        font-weight: 600;
        margin-top: 0.15rem;
      }

      .melo-gallery .hero {
        align-items: start;
        display: grid;
        gap: 2rem;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
      }

      .melo-gallery .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
      }

      .melo-gallery .hero-logo-panel {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
      }

      .melo-gallery .hero-logo-link {
        display: block;
        margin-left: auto;
        max-width: min(360px, 100%);
        text-decoration: none;
        width: 100%;
      }

      .melo-gallery .hero-logo {
        aspect-ratio: 1 / 1;
        object-fit: contain;
        width: 100%;
      }

      .melo-gallery .hero-site-link {
        align-self: flex-end;
        animation: siteLinkPulse 2.4s ease-in-out infinite;
        color: #ff9b45;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0;
        margin-top: 0.24rem;
        text-align: center;
        text-decoration: none;
        text-shadow:
          0 0 10px rgba(255, 107, 0, 0.5),
          0 0 22px rgba(255, 107, 0, 0.22);
        width: min(360px, 100%);
      }

      .melo-gallery .hero-site-link:hover {
        color: #ffc08a;
        text-shadow:
          0 0 14px rgba(255, 107, 0, 0.72),
          0 0 28px rgba(255, 107, 0, 0.32);
      }

      @keyframes siteLinkPulse {
        0%,
        100% {
          opacity: 0.74;
        }

        50% {
          opacity: 1;
        }
      }

      .melo-gallery .top-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: flex-end;
      }

      .melo-gallery .top-links .pill {
        white-space: nowrap;
      }

      .melo-gallery .top-actions {
        align-items: center;
        display: flex;
        flex: 1;
        flex-wrap: nowrap;
        gap: 0.55rem;
        justify-content: flex-end;
        min-width: 0;
      }

      .melo-gallery .volume-control {
        align-items: center;
        background: rgba(255, 107, 0, 0.1);
        border: 1px solid rgba(255, 107, 0, 0.34);
        border-radius: 999px;
        display: flex;
        gap: 0.55rem;
        padding: 0.45rem 0.65rem;
      }

      .melo-gallery .volume-button {
        align-items: center;
        appearance: none;
        background: transparent;
        border: 0;
        color: #ffb076;
        cursor: pointer;
        display: inline-flex;
        height: 2rem;
        justify-content: center;
        padding: 0;
        width: 2rem;
      }

      .melo-gallery .volume-button:hover, .melo-gallery .volume-button:focus-visible {
        color: #ff6b00;
        outline: none;
      }

      .melo-gallery .volume-button svg {
        display: block;
        height: 1.55rem;
        width: 1.55rem;
      }

      .melo-gallery .volume-button svg path {
        stroke: currentColor;
      }

      .melo-gallery .volume-button svg[hidden] {
        display: none;
      }

      .melo-gallery .volume-slider {
        accent-color: #ff6b00;
        cursor: pointer;
        width: 4.5rem;
      }

      .melo-gallery audio {
        display: none;
      }

      .melo-gallery .player {
        align-items: center;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .melo-gallery .progress-button {
        appearance: none;
        background: transparent;
        border: 0;
        cursor: pointer;
        min-width: 0;
        padding: 0.75rem 0;
        touch-action: none;
        user-select: none;
        width: 100%;
      }

      .melo-gallery .progress-button:focus-visible {
        outline: 2px solid rgba(255, 107, 0, 0.8);
        outline-offset: 4px;
      }

      .melo-gallery .progress-track {
        align-items: center;
        background: rgba(255, 107, 0, 0.16);
        border: 1px solid rgba(255, 107, 0, 0.3);
        border-radius: 999px;
        box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
        display: flex;
        height: 0.56rem;
        overflow: visible;
        position: relative;
        width: 100%;
      }

      .melo-gallery .progress-fill {
        background: linear-gradient(90deg, #ff6b00, #ff9b45);
        border-radius: inherit;
        box-shadow: 0 0 14px rgba(255, 107, 0, 0.55);
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        transition: width 0.08s linear;
        width: 0;
      }

      .melo-gallery .progress-knob {
        background: #ff6b00;
        border: 2px solid #ffc08a;
        border-radius: 999px;
        box-shadow:
          0 0 8px rgba(255, 107, 0, 0.7),
          0 0 16px rgba(255, 107, 0, 0.28);
        height: 1rem;
        left: 0;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: left 0.08s linear;
        width: 1rem;
        z-index: 2;
      }

      .melo-gallery .duration {
        color: #ffb076;
        font-family: "Courier New", monospace;
        font-size: 0.78rem;
        min-width: 4.4rem;
        text-align: right;
      }

      .melo-gallery .voice-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr);
      }

      .melo-gallery .card-heading {
        align-items: center;
        border-bottom: 1px solid rgba(249, 115, 22, 0.2);
        display: flex;
        gap: 0.75rem;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
      }

      .melo-gallery .voice-name {
        color: #fb923c;
        font-size: 1.125rem;
        font-weight: 700;
        line-height: 1.75rem;
      }

      .melo-gallery .voice-code {
        color: #9ca3af;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1rem;
        text-transform: uppercase;
      }

      .melo-gallery a {
        color: #ff6b00;
      }

      .melo-gallery a:hover {
        color: #ff8a33;
        text-shadow: 0 0 12px rgba(255, 107, 0, 0.42);
      }

      @media (max-width: 720px) {
        .melo-gallery .topbar {
          align-items: flex-start;
          flex-direction: column;
          margin-bottom: 1rem;
        }

        .melo-gallery .top-links {
          flex-wrap: wrap;
          justify-content: flex-start;
        }

        .melo-gallery .top-actions {
          flex-wrap: wrap;
          justify-content: flex-start;
          width: 100%;
        }

        .melo-gallery .volume-slider {
          width: min(9rem, 42vw);
        }

        .melo-gallery .player {
          grid-template-columns: 1fr;
        }

        .melo-gallery .duration {
          text-align: left;
        }
      }

      @media (min-width: 640px) {
        .melo-gallery .content-shell {
          padding: 1rem 1.5rem;
        }
      }

      @media (min-width: 768px) {
        .melo-gallery .voice-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 1140px) {
        .melo-gallery .hero {
          grid-template-columns: 1fr;
        }

        .melo-gallery .hero-logo-panel {
          justify-content: flex-start;
        }

        .melo-gallery .hero-logo-link {
          margin-left: 0;
          max-width: 220px;
        }

        .melo-gallery .hero-logo {
          max-width: 220px;
        }

        .melo-gallery .hero-site-link {
          align-self: flex-start;
          width: min(220px, 100%);
        }
      }

      @media (min-width: 1024px) {
        .melo-gallery .content-shell {
          padding-left: 2rem;
          padding-right: 2rem;
        }
      }

      @media (min-width: 1280px) {
        .melo-gallery .voice-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }
      }

      @media (max-width: 639px) {
        .melo-gallery .page-title {
          font-size: 2.25rem;
        }

        .melo-gallery .intro-copy {
          font-size: 1rem;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .melo-gallery {
          scroll-behavior: auto;
        }

        .melo-gallery .brand-card, .melo-gallery .hero-site-link, .melo-gallery .progress-fill, .melo-gallery .progress-knob {
          animation: none;
          transition: none;
        }
      }