/* ═══════════════════════════════════════════════════════════════
   music.css — Music page (.mp-*) and Live page (#page-live)
   ═══════════════════════════════════════════════════════════════ */

/* ── Music page ── */
.mp {

              display: grid;
              grid-template-columns: 200px minmax(0, 1fr);
              background: 0 0;
              min-height: calc(100vh - 80px)
            }

            .mp-sidebar {

              border-right: 1px solid var(--border2);
              display: flex;
              flex-direction: column;
              position: sticky;
              top: 0;
              height: calc(100vh - 80px);
              overflow-y: auto;
              scrollbar-width: none;
              background: rgba(20, 18, 16, .55);
              backdrop-filter: blur(18px);
              -webkit-backdrop-filter: blur(18px)
            }

            html.light-mode .mp-sidebar {

              background: rgba(255, 255, 255, .55)
            }

            .mp-sidebar::-webkit-scrollbar {

              display: none
            }

            .mp-sidebar-identity {

              padding: 32px 20px 24px;
              border-bottom: 1px solid var(--border);
              display: flex;
              flex-direction: column;
              align-items: center;
              text-align: center;
              gap: 0
            }

            .mp-av-ring {

              width: 90px;
              height: 90px;
              overflow: hidden;
              border-radius: 50%;
              margin-bottom: 16px;
              flex-shrink: 0
            }

            .mp-av-ring img {

              width: 100%;
              height: 100%;
              object-fit: cover
            }

            .mp-sidebar-name {

              font-family: var(--display-name-font, Inter, sans-serif);
              font-size: 32px;
              font-weight: 400;
              letter-spacing: 3px;
              text-transform: uppercase;
              color: #000;
              background: linear-gradient(100deg, #000 0%, #000 38%, rgba(255,255,255,.86) 48%, #000 58%, #000 100%);
              background-size: 240% 100%;
              -webkit-background-clip: text;
              background-clip: text;
              -webkit-text-fill-color: transparent;
              animation: fame-title-shine 5.5s ease-in-out infinite;
              line-height: 1;
              margin-bottom: 6px
            }

            html[data-display-name-font="rock-salt"] .mp-sidebar-name {

              line-height: 1.45;
              padding: .08em .12em
            }

            .mp-sidebar-sub {

              display: none
            }

            .mp-sidebar-bio {

              display: none
            }

            .mp-sidebar-stream-link {

              display: flex;
              align-items: center;
              gap: 10px;
              padding: 12px 16px;
              text-decoration: none;
              border-bottom: 1px solid var(--border);
              transition: background .1s;
              position: relative
            }

            .mp-sidebar-stream-link::before {

              content: '';
              position: absolute;
              left: 0;
              top: 0;
              bottom: 0;
              width: 0;
              background: #000;
              transition: width .15s
            }

            .mp-sidebar-stream-link:hover::before {

              width: 3px
            }

            .mp-sidebar-stream-link:hover {

              background: var(--s1)
            }

            .mp-sidebar-stream-link .mp-stream-icon-wrap {

              width: 20px;
              height: 20px;
              flex-shrink: 0;
              position: relative;
              overflow: visible
            }

            .mp-sidebar-stream-name {

              font-family: 'DM Mono', monospace;
              font-size: 9px;
              letter-spacing: 1.5px;
              text-transform: uppercase;
              color: #000;
              flex: 1
            }

            .mp-sidebar-stream-arrow {

              font-family: 'DM Mono', monospace;
              font-size: 9px;
              color: #000;
              transition: transform .15s, color .15s
            }

            .mp-sidebar-stream-link:hover .mp-sidebar-stream-arrow {

              transform: translateX(4px);
              color: #000
            }

            .mp-eras-section {

              padding: 0
            }

            .mp-eras-header {

              position: relative;
              width: min(440px, calc(100vw - 340px));
              min-width: 380px;
              max-width: 440px;
              margin: 0 auto 18px;
              padding: 18px 64px;
              display: flex;
              align-items: center;
              justify-content: center;
              box-sizing: border-box;
              overflow: visible;
              border: 1px solid rgba(255,255,255,.38);
              border-radius: 999px;
              background:
                linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.22) 48%, rgba(255,255,255,.11)),
                rgba(255,255,255,.1);
              box-shadow:
                0 16px 34px rgba(0,0,0,.18),
                inset 0 1px 0 rgba(255,255,255,.58),
                inset 0 -14px 24px rgba(0,0,0,.045);
              backdrop-filter: blur(16px) saturate(1.16);
              -webkit-backdrop-filter: blur(16px) saturate(1.16);
              z-index: 2;
              pointer-events: auto
            }

            .mp-eras-header::before {

              content: '';
              position: absolute;
              top: 5px;
              left: 18px;
              right: 18px;
              height: 32%;
              border-radius: 999px;
              background: linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.15), transparent);
              opacity: .82;
              pointer-events: none
            }

            .mp-eras-headline {

              position: relative;
              z-index: 1;
              display: block;
              width: auto;
              margin: 0 auto;
              font-family: Mostwasted, cursive;
              font-size: clamp(32px, 4vw, 52px);
              color: #000;
              line-height: 1;
              letter-spacing: 1px;
              text-align: center;
              white-space: nowrap
            }

            /* position admin add button to the right while keeping headline centered */

            .mp-admin-actions {

              display: none;
              align-items: center;
              justify-content: center;
              gap: 7px;
              margin: 0 auto 9px;
              position: relative;
              z-index: 3;
              pointer-events: auto
            }

            body.talk-admin .mp-admin-actions {

              display: flex
            }

            .mp-admin-add {

              display: none;
              background: 0 0;
              border: 1px solid var(--border2);
              font-family: 'DM Mono', monospace;
              font-size: 7px;
              letter-spacing: 2px;
              text-transform: uppercase;
              color: var(--ink3);
              padding: 5px 12px;
              cursor: var(--fd-cursor-action);
              transition: all .15s;
              flex-shrink: 0
            }

            body.talk-admin .mp-admin-add {

              display: block
            }

            .mp-admin-add:hover {

              border-color: var(--ink);
              color: var(--ink)
            }

            .mp-eras-grid {

              display: grid;
              grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
              gap: 2px;
              background: 0 0
            }

            .mp-era-card-wrapper {

              background: 0 0
            }

            .mp-era-card-outer {

              display: flex;
              flex-direction: column;
              background: 0 0;
              cursor: var(--fd-cursor-action)
            }

            .mp-era-card-outer:hover .mp-era-card img {

              transform: scale(1.08);
              filter: grayscale(0%)
            }

            .mp-era-card {

              background: 0 0;
              position: relative;
              overflow: hidden;
              aspect-ratio: 1;
              width: 100%
            }

            .mp-era-card img {

              position: absolute;
              inset: 0;
              width: 100%;
              height: 100%;
              object-fit: cover;
              transition: transform .8s cubic-bezier(.16, 1, .3, 1);
              filter: grayscale(20%)
            }

            .mp-era-card-placeholder {

              position: absolute;
              inset: 0;
              background: repeating-linear-gradient(-45deg, var(--s1) 0, var(--s1) 8px, var(--s2) 8px, var(--s2) 16px);
              display: flex;
              align-items: center;
              justify-content: center;
              font-family: 'Bebas Neue', sans-serif;
              font-size: 11px;
              letter-spacing: 4px;
              color: var(--ink3)
            }

            .mp-era-card-foot {

              position: relative;
              z-index: 1;
              padding: 0;
              background: 0 0
            }

            .mp-era-card-foot-inner {

              display: none
            }

            .mp-era-card-tag {

              display: none
            }

            .mp-era-card-title {

              display: none
            }

            .mp-era-card-date {
  display: none;
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(237, 232, 222, .3);
  margin-top: 5px;
}

            .mp-era-card-label {

              padding: 10px 4px 4px
            }

            .mp-era-card-label-title {

              font-family: 'Cormorant Garamond', serif;
              font-weight: 700;
              font-size: 16px;
              letter-spacing: .25px;
              color: var(--ink);
              line-height: 1
            }

            .mp-era-card-label-tag {

              font-family: 'DM Mono', monospace;
              font-size: 6px;
              letter-spacing: 3px;
              text-transform: uppercase;
              color: var(--ink3);
              margin-top: 4px
            }


            .mp-era-badge {

              position: absolute;
              top: 0;
              left: 0;
              z-index: 2;
              font-family: 'DM Mono', monospace;
              font-size: 6px;
              letter-spacing: 3px;
              text-transform: uppercase;
              padding: 5px 12px
            }

            .mp-era-badge.live {

              display: none
            }

            .mp-era-badge.upcoming {

              background: var(--ink);
              color: var(--bg)
            }

            .mp-era-badge.era {

              background: rgba(0, 0, 0, .6);
              color: rgba(237, 232, 222, .4)
            }

            .era-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255,255,255,.12), transparent 34%),
    rgba(0,0,0,.84);
  z-index: 600;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  padding: 20px;
}

            .era-modal-bg.open {

              display: flex
            }

            .era-modal {
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 34%, rgba(0,0,0,.28)),
    rgba(16,16,16,.94);
  border: 1px solid rgba(255,255,255,.18);
  width: min(94vw, 980px);
  max-height: min(88vh, 720px);
  display: grid;
  grid-template-columns: minmax(300px, .94fr) minmax(330px, 1.06fr);
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,255,255,.16);
}

            .era-modal-photo {
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  position: relative;
  margin: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.16);
}

            .era-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
  transition: transform .35s ease, filter .35s ease;
}

            .era-modal-photo:hover img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.035);
}

            .era-modal-photo-empty {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.50);
  width: calc(100% - 54px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,.26);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

            .era-modal-photo-picker {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: none;
  background: rgba(0,0,0,.66);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
}

            body.talk-admin .era-modal-photo-picker {

              display: block
            }

            .era-modal-photo-picker label {
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 16px;
  display: block;
  color: rgba(255,255,255,.72);
  cursor: var(--fd-cursor-action);
  text-align: center;
}

            .era-modal-side {
  padding: 42px 42px 34px;
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

            .era-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.72);
  font-size: 16px;
  cursor: var(--fd-cursor-action);
  font-family: 'DM Mono', monospace;
  letter-spacing: 1px;
  transition: color .15s;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

            .era-modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

            .era-modal-tag {
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: 18px;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
}

            .era-modal-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--ink);
  line-height: .9;
  text-transform: none;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
  text-wrap: balance;
}

            .era-modal-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,.66);
  flex: 0 0 auto;
  white-space: pre-line;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

            .era-modal-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

            .era-modal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: all .15s;
  border-bottom: 1px solid var(--border);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

            .era-modal-link:hover {
  color: #fff;
  padding-left: 20px;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}

            .era-modal-edit {
  display: none;
  margin-top: 18px;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 16px;
}

            body.talk-admin .era-modal-edit {

              display: flex
            }

            .era-modal-edit button {

              font-family: 'DM Mono', monospace;
              font-size: 7px;
              letter-spacing: 2px;
              text-transform: uppercase;
              background: 0 0;
              border: 1px solid var(--border);
              color: var(--ink3);
              padding: 5px 10px;
              cursor: var(--fd-cursor-action);
              transition: all .15s
            }

            .era-modal-edit button:hover {

              border-color: var(--ink);
              color: var(--ink)
            }

            /* Responsive: make the era modal narrower on small screens and stack content */

            @media (max-width: 520px) {

                .era-modal {

                  width: min(92vw, 360px);
                  max-height: calc(100vh - 40px);
                  display: grid;
                  grid-template-columns: 1fr;
                  grid-template-rows: auto 1fr;
                  padding: 0;
                  border-radius: 10px;
                  }
                .era-modal-photo {

                  min-height: 0;
                  margin: 14px 14px 0;
                  aspect-ratio: 16 / 10;
                  border-bottom: 1px solid rgba(237, 232, 222, .06);
                  }
                .era-modal-photo-empty {

                  width: auto;
                  height: calc(100% - 24px);
                  aspect-ratio: auto;
                  }
                .era-modal-side {

                  min-height: 0;
                  padding: 16px 16px 18px;
                  border-left: none;
                  overflow: auto;
                  }
                .era-modal-name {

                  font-size: 22px;
                  padding-bottom: 8px;
                  margin-bottom: 8px
                  }
                .era-modal-tag {

                  font-size: 9px;
                  letter-spacing: 3px
                  }
                .era-modal-close {

                  top: 10px;
                  right: 10px
                  }
                .era-modal-desc {

                  font-size: 13px;
                  line-height: 1.5
                  }
                .era-modal-links .era-modal-link {

                  padding: 12px 14px;
                  font-size: 11px;
                  letter-spacing: 1.6px;
                  }

                .era-modal-tag {

                  font-size: 8px;
                  letter-spacing: 2.4px;
                  margin-bottom: 10px;
                  }

                .era-modal-desc {

                  margin: 10px 0 0;
                  }

                .era-modal-links {

                  margin-top: 18px;
                  gap: 9px;
                  }

}

            .mp-stream-section {

              display: none
            }

            .mp-stream-links {

              display: none
            }

            @media(max-width:780px) {

                .mp-eras-grid {

                  grid-template-columns: repeat(2, 1fr)
                  }
                .era-modal {

                  width: min(92vw, 420px);
                  max-height: calc(100vh - 40px);
                  padding: 0;
                  border-radius: 12px;
                  grid-template-columns: 1fr;
                  grid-template-rows: auto 1fr;
                  }
                .era-modal-photo {

                  min-height: 0;
                  margin: 14px 14px 0;
                  aspect-ratio: 16 / 10;
                  }
                .era-modal-photo-empty {

                  width: auto;
                  height: calc(100% - 24px);
                  aspect-ratio: auto;
                  }
                .era-modal-side {

                  min-height: 0;
                  padding: 16px 16px 18px;
                  border-left: none;
                  overflow: auto;
                  }
                .era-modal-links .era-modal-link {

                  padding: 12px 14px;
                  font-size: 11px;
                  letter-spacing: 1.6px;
                  }
                .era-modal-tag {

                  font-size: 8px;
                  letter-spacing: 2.4px;
                  margin-bottom: 10px;
                  }
                .era-modal-desc {

                  margin: 10px 0 0;
                  }
                .era-modal-name {

                  font-size: clamp(24px, 8vw, 34px);
                  }
                .era-modal-links {

                  margin-top: 18px;
                  gap: 9px;
                  }

              /* Mobile: Fix sidebar height to match content instead of full viewport */
                .mp-sidebar {

                  height: auto;
                  min-height: auto;
                  position: relative;
                  top: auto;
                  }

}

/* ── Live page ── */
#page-live {

            position: relative;
            min-height: calc(100vh - 80px);
            background: transparent;
            background-image: none;
            padding: 8px 20px 20px;
            box-sizing: border-box
          }

          .live-wrap {

            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            box-shadow: 0 0 0 1px var(--border2), 0 24px 64px rgba(0, 0, 0, .4)
          }

          .live-content {

            display: flex;
            flex-direction: row;
            align-items: stretch
          }

          .live-left {

            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden
          }

          .live-player {

            width: 100%;
            aspect-ratio: 16/9;
            flex-shrink: 0;
            background: var(--bg);
            position: relative;
            overflow: hidden
          }

          .live-offline {

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            gap: 14px;
            padding: 40px;
            background: var(--bg)
          }

          .live-offline-avatar {

            width: 72px;
            height: 72px;
            border-radius: 50%;
            border: 2px solid rgba(212, 160, 181, .3);
            overflow: hidden;
            box-shadow: 0 0 0 6px rgba(212, 160, 181, .06), 0 0 32px rgba(212, 160, 181, .12)
          }

          .live-offline-avatar img {

            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(.4) brightness(.7)
          }

          .live-offline-title {

            font-family: Inter, sans-serif;
            font-size: 28px;
            letter-spacing: 3px;
            color: var(--ink2);
            text-align: center
          }

          .live-offline-sub {

            font-family: 'DM Mono', monospace;
            font-size: 8px;
            letter-spacing: 2px;
            color: var(--ink3);
            text-transform: uppercase;
            text-align: center;
            line-height: 2
          }

          .live-offline-follow {

            font-family: 'DM Mono', monospace;
            font-size: 8px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--pk);
            text-decoration: none;
            border: 1px solid rgba(212, 160, 181, .5);
            padding: 7px 20px;
            margin-top: 4px;
            border-radius: 2px;
            transition: background .15s, border-color .15s;
            display: inline-block
          }

          .live-offline-follow:hover {

            background: rgba(212, 160, 181, .1);
            border-color: var(--pk)
          }

          .live-desc {

            background: var(--s1);
            border-top: 1px solid var(--border2);
            max-height: 200px;
            overflow-y: auto;
            position: relative;
            flex-shrink: 0
          }

          .live-desc-label {

            font-family: 'DM Mono', monospace;
            font-size: 7px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--pk);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px
          }

          .live-desc-label::after {

            content: '';
            flex: 1;
            height: 1px;
            background: rgba(212, 160, 181, .2)
          }

          .live-desc-inner {

            padding: 14px 16px
          }

          .live-desc-content {

            font-family: 'DM Mono', monospace;
            font-size: 11px;
            line-height: 1.7;
            color: var(--ink2)
          }

          .live-desc-content img {

            max-width: 100%;
            border-radius: 4px;
            margin: 8px 0;
            display: block
          }

          .live-desc-content p {

            margin: 0 0 6px
          }

          .live-desc-content p:last-child {

            margin-bottom: 0
          }

          .live-desc-empty {

            font-family: 'DM Mono', monospace;
            font-size: 9px;
            letter-spacing: 1px;
            color: var(--ink3);
            text-transform: uppercase
          }

          .live-desc-edit-btn {

            position: absolute;
            top: 10px;
            right: 12px;
            background: 0 0;
            border: 1px solid var(--border2);
            color: var(--ink3);
            font-size: 14px;
            line-height: 1;
            cursor: var(--fd-cursor-action);
            border-radius: 4px;
            padding: 2px 8px;
            transition: border-color .15s, color .15s;
            z-index: 2
          }

          .live-desc-edit-btn:hover {

            border-color: var(--pk);
            color: var(--ink)
          }

          .live-chat-panel {

            width: 280px;
            flex-shrink: 0;
            background: var(--s1);
            border-left: 1px solid var(--border2);
            display: flex;
            flex-direction: column;
            overflow: hidden
          }

          .live-chat-body {

            flex: 1;
            min-height: 200px;
            overflow: auto
          }

          #page-live ::-webkit-scrollbar {

            width: 3px
          }

          #page-live ::-webkit-scrollbar-track {

            background: 0 0
          }

          #page-live ::-webkit-scrollbar-thumb {

            background: var(--border2)
          }

.up-countdown {

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.up-countdown div {

  border-radius: 10px;
  padding: 9px 5px;
  background: rgba(0,0,0,.82);
  color: #fff;
  text-align: center;
}

.up-countdown b {

  display: block;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 26px;
  line-height: .9;
}

.up-countdown span {

  display: block;
  margin-top: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 6px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.55);
}

.up-release-live {

  align-self: flex-start;
  margin-top: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
}

.mp-era-hype-line {

  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0,0,0,.58);
}

.mp-era-card-label .up-countdown {

  margin-top: 8px;
  gap: 4px;
}

.mp-era-card-label .up-countdown div {

  padding: 5px 3px;
  border-radius: 7px;
}

.mp-era-card-label .up-countdown b {

  font-size: 16px;
}

.mp-era-card-label .up-countdown span {

  font-size: 5px;
}

.era-display-album .mp-era-card {

  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

.has-era-hype .mp-era-card {

  outline: 1px solid rgba(255,255,255,.50);
  outline-offset: -5px;
}

.is-hidden-era {

  opacity: .48;
}

.era-editor-bg {

  display: none;
  position: fixed;
  inset: 0;
  z-index: 760;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.era-editor-bg.open {

  display: flex;
}

.era-editor {
  width: min(94vw, 920px);
  max-height: min(92vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(circle at 18% 0%, rgba(212,160,181,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
    rgba(12,12,12,.94);
  color: #fff;
  box-shadow: 0 34px 100px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
}

.era-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent);
}

.era-editor-kicker {

  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}

.era-editor-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 1.2px;
  line-height: .9;
  text-transform: uppercase;
}

.era-editor-close {

  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: var(--fd-cursor-action);
}

.era-editor-body {
  padding: 20px 24px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.era-editor-grid {

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.era-editor label {

  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.era-editor label span {

  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.era-editor input, .era-editor select, .era-editor textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.075);
  color: #fff;
  padding: 11px 12px;
  font: 12px 'DM Mono', monospace;
  box-sizing: border-box;
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.era-editor textarea {

  resize: vertical;
}

.era-editor-check {

  flex-direction: row;
  align-items: center;
}

.era-editor-check input {

  width: auto;
}

.era-editor-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  position: sticky;
  bottom: 0;
  background: rgba(12,12,12,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.era-editor-actions button {

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: var(--fd-cursor-action);
}

.era-editor-actions .primary {

  background: #fff;
  color: #000;
}

.era-editor-actions .danger {

  color: #ffb6c8;
}

/* Era Builder: sectioned rollout tool with live preview. */

.era-editor-section {

  border: 1px solid rgba(255,255,255,.105);
  border-radius: 16px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.era-editor-section-title {

  margin: 0 0 12px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--pk);
}

.era-editor-section > label + label, .era-editor-section > .era-editor-grid + label, .era-editor-section > label + .era-editor-grid {

  margin-top: 12px;
}

.era-editor input:focus, .era-editor select:focus, .era-editor textarea:focus {

  outline: none;
  border-color: rgba(212,160,181,.78);
  box-shadow:
    0 0 0 3px rgba(212,160,181,.12),
    inset 0 1px 0 rgba(255,255,255,.09);
}

.era-editor-links, .stream-editor-links {

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.era-editor-link-row {

  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.6fr) 34px;
  align-items: end;
  gap: 10px;
}

.stream-editor-link-row {

  display: grid;
  grid-template-columns: minmax(110px, .55fr) minmax(130px, .7fr) minmax(220px, 1.5fr) 34px;
  align-items: end;
  gap: 10px;
}

.era-editor-remove-link {

  width: 34px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.68);
  font-size: 20px;
  line-height: 1;
  cursor: var(--fd-cursor-action);
}

.era-editor-remove-link:hover {

  border-color: rgba(255,182,200,.62);
  color: #ffb6c8;
}

.era-editor-add-link {

  margin-top: 11px;
  border: 1px dashed rgba(255,255,255,.20);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.72);
  padding: 10px 12px;
  font: 800 8px 'DM Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: var(--fd-cursor-action);
}

.era-editor-add-link:hover {

  border-color: rgba(212,160,181,.7);
  color: #fff;
}

.era-editor-preview-links {

  margin-top: 7px;
  color: rgba(255,255,255,.42);
  font-size: 8px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.stream-editor-note {

  margin: -2px 0 12px;
  color: rgba(255,255,255,.52);
  font: 10px/1.5 'DM Mono', monospace;
}

.stream-links-editor {

  width: min(94vw, 1040px);
}

.era-editor-preview-card {

  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  min-height: 132px;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    rgba(0,0,0,.22);
  overflow: hidden;
}

.era-editor-preview-cover {

  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(212,160,181,.22), rgba(255,255,255,.07)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,.42);
  font: 800 8px 'DM Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.era-editor-preview-cover img {

  width: 100%;
  height: 100%;
  object-fit: cover;
}

.era-editor-preview-copy {

  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.era-editor-preview-kicker, .era-editor-preview-hype {

  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.era-editor-preview-name {

  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.7vw, 56px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .2px;
  color: #fff;
}

.era-editor-preview-desc {

  max-width: 48ch;
  color: rgba(255,255,255,.62);
  font: 11px/1.5 'DM Mono', monospace;
}

.era-editor-preview-hype {

  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #111;
  background: rgba(255,255,255,.88);
}

@media (max-width: 620px) {

    .era-editor-grid, .era-editor-actions {

      grid-template-columns: 1fr;
      }

    .era-editor-preview-card {

      grid-template-columns: 1fr;
      }

    .era-editor-preview-cover {

      min-height: 180px;
      }

    .era-editor-link-row, .stream-editor-link-row {

      grid-template-columns: 1fr;
      }

    .era-editor-remove-link {

      width: 100%;
      height: 34px;
      }

    .mp-admin-actions {

      gap: 5px;
      margin-bottom: 7px;
      }

    .mp-admin-add {

      padding: 4px 7px;
      letter-spacing: 1px;
      }

}

/* Era modal: polished release detail panel */

html.light-mode .era-modal {

  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,245,245,.82) 52%, rgba(230,230,230,.72)),
    rgba(248,248,248,.95);
  border-color: rgba(255,255,255,.82);
  box-shadow:
    0 30px 80px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.era-modal::before {

  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255,255,255,.07) 50%, transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 28%);
  opacity: .7;
}

.era-modal-photo::after {

  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 24%, rgba(0,0,0,.30)),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 28%);
  mix-blend-mode: screen;
  opacity: .55;
}

.era-modal-meta {

  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
}

.era-modal-meta span {

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 9px;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.045);
}

.era-modal-desc:empty {

  display: none;
}

.era-modal-links iframe {

  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.30);
}

.era-modal-link span {

  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
}

html.light-mode .era-modal-tag, html.light-mode .era-modal-meta span {

  color: rgba(0,0,0,.58);
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.60);
}

html.light-mode .era-modal-desc {

  color: rgba(0,0,0,.68);
  border-top-color: rgba(0,0,0,.10);
}

html.light-mode .era-modal-link {

  color: rgba(0,0,0,.72);
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.72);
}

html.light-mode .era-modal-link span {

  background: rgba(0,0,0,.07);
}

html.light-mode .era-modal-link:hover {

  color: #000;
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.22);
}

html.light-mode .era-modal-close {

  background: rgba(255,255,255,.78);
  color: rgba(0,0,0,.66);
  border-color: rgba(0,0,0,.12);
}

.live-desc-modal-overlay {

            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .7);
            z-index: 9000;
            align-items: center;
            justify-content: center
          }

          .live-desc-modal-overlay.active {

            display: flex
          }

          .live-desc-modal {

            background: var(--s2);
            border: 1px solid var(--border2);
            border-radius: 8px;
            width: 640px;
            max-width: 94vw;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            overflow: hidden
          }

          .live-desc-modal-head {

            padding: 14px 16px;
            border-bottom: 1px solid var(--border2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0
          }

          .live-desc-modal-title {

            font-family: 'DM Mono', monospace;
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--ink2)
          }

          .live-desc-modal-close {

            background: 0 0;
            border: none;
            color: var(--ink3);
            font-size: 18px;
            cursor: var(--fd-cursor-action);
            line-height: 1;
            transition: color .15s
          }

          .live-desc-modal-close:hover {

            color: var(--ink)
          }

          .live-desc-toolbar {

            padding: 8px 12px;
            border-bottom: 1px solid var(--border2);
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            flex-wrap: wrap
          }

          .live-desc-tb-btn {

            background: 0 0;
            border: 1px solid var(--border2);
            color: var(--ink2);
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 3px;
            cursor: var(--fd-cursor-action);
            transition: border-color .15s, color .15s;
            font-family: 'DM Mono', monospace
          }

          .live-desc-tb-btn:hover {

            border-color: var(--pk);
            color: var(--ink)
          }

          .live-desc-tb-sep {

            width: 1px;
            height: 18px;
            background: var(--border2);
            flex-shrink: 0
          }

          .live-desc-editor {

            flex: 1;
            overflow-y: auto;
            padding: 14px 16px;
            min-height: 180px;
            outline: 0;
            font-family: 'DM Mono', monospace;
            font-size: 12px;
            line-height: 1.7;
            color: var(--ink)
          }

          .live-desc-editor img {

            max-width: 100%;
            border-radius: 4px;
            margin: 6px 0;
            display: block;
            cursor: var(--fd-cursor-action)
          }

          .live-desc-editor[contenteditable]:empty::before {

            content: 'Write a description — text, links, photos...';
            color: var(--ink3);
            pointer-events: none
          }

          .live-desc-modal-foot {

            padding: 12px 16px;
            border-top: 1px solid var(--border2);
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            flex-shrink: 0
          }

          .live-desc-save-btn {

            background: var(--pk);
            border: none;
            color: var(--bg);
            font-family: 'DM Mono', monospace;
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 7px 18px;
            cursor: var(--fd-cursor-action);
            border-radius: 3px;
            transition: background .15s
          }

          .live-desc-save-btn:hover {

            background: var(--pk2)
          }

          .live-desc-cancel-btn {

            background: 0 0;
            border: 1px solid var(--border2);
            color: var(--ink2);
            font-family: 'DM Mono', monospace;
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 7px 14px;
            cursor: var(--fd-cursor-action);
            border-radius: 3px;
            transition: border-color .15s
          }

          .live-desc-cancel-btn:hover {

            border-color: var(--ink2)
          }

/* ── Music page: carded glass sidebar + floating eras bubble header ── */
#page-music .mp-now-playing[hidden] {

  display: none;
}

@media (min-width: 769px) {

    #page-music .mp {

      display: grid;
      grid-template-columns: 214px minmax(0, 1fr);
      gap: 10px;
      padding: 0 10px 12px 8px;
      min-height: calc(100vh - 80px);
      }

    #page-music .mp-sidebar {

      background: transparent;
      border-right: none;
      padding: 10px 0 12px;
      gap: 10px;
      box-shadow: none;
      backdrop-filter: none;
  -webkit-backdrop-filter: none;
      overflow: visible;
      }

    #page-music .mp-sidebar-identity {

      margin: 0;
      padding: 24px 18px 20px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.30) 45%, rgba(255,255,255,.18)),
        rgba(255,255,255,.16);
      box-shadow:
        0 14px 30px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.72),
        inset 0 -18px 28px rgba(0,0,0,.035);
      backdrop-filter: blur(16px) saturate(1.18);
      -webkit-backdrop-filter: blur(16px) saturate(1.18);
      overflow: hidden;
      }

    #page-music .mp-av-ring {

      box-shadow:
        0 12px 24px rgba(0,0,0,.15),
      inset 0 1px 0 rgba(255,255,255,.24);
      }

    #page-music .mp-now-playing {

      position: fixed;
      top: 96px;
      right: 8px;
      z-index: 21;
      width: clamp(150px, calc((100vw - 440px) / 2 - 16px), 214px);
      pointer-events: auto;
      }

    #page-music .mp-now-playing .np-widget {

      width: 100%;
      border-radius: 16px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.14)),
        rgba(210,210,210,.16);
      border-color: rgba(255,255,255,.34);
      box-shadow: 0 10px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.48);
      backdrop-filter: blur(14px) saturate(1.12);
      -webkit-backdrop-filter: blur(14px) saturate(1.12);
      }

    #page-music .mp-now-playing .np-title {

      font-size: clamp(18px, 2vw, 22px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      }

    #page-music .mp-now-playing .np-artist-name {

      font-size: 10px;
      }

    #page-music .mp-eras-section {

      position: fixed;
      top: 96px;
      left: 50%;
      transform: translateX(-50%);
      width: 440px;
      max-width: 440px;
      z-index: 20;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      box-sizing: border-box;
      pointer-events: none;
      }

    #page-music .mp-eras-header .mp-admin-add {

      right: 16px;
      z-index: 2;
      }

}


/* ── Live description: hide empty box for non-admin visitors ── */
#page-live .live-desc.is-empty-live-desc:not(.has-live-desc) {

  display: none;
}

body:not(.talk-admin) #page-live .live-desc:not(.has-live-desc) {

  display: none;
}

body.talk-admin #page-live .live-desc.is-empty-live-desc {

  display: block;
}

#page-music .mp-eras-grid {

  width: min(1040px, calc(100vw - 340px));
  max-width: min(1040px, calc(100vw - 340px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
  flex: 0 0 auto;
  align-items: start;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
  background: transparent;
}

#page-music .mp-era-card-wrapper, #page-music .mp-era-card-outer {

  width: 240px;
  min-width: 0;
  max-width: 240px;
  margin: 0;
}

#page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(2)) {

  width: min(520px, calc(100vw - 340px));
}

#page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(3)) {

  width: min(780px, calc(100vw - 340px));
}

#page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(4)) {

  width: min(1040px, calc(100vw - 340px));
}

/* Desktop Discography grid uses the centered header column. */
@media (min-width: 769px) {
    #page-music .mp-eras-grid {

      width: 440px;
      max-width: 440px;
      margin: 0 auto;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
      flex: 0 0 auto;
      align-items: start;
      justify-content: center;
      gap: 18px;
      box-sizing: border-box;
      background: transparent;
      pointer-events: auto;
      }

    #page-music .mp-era-card-wrapper, #page-music .mp-era-card-outer {

      width: 240px;
      min-width: 0;
      max-width: 240px;
      margin: 0;
      }

    #page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(2)) {

      width: 520px;
      max-width: min(520px, calc(100vw - 340px));
      }

    #page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(3)) {

      width: 780px;
      max-width: min(780px, calc(100vw - 340px));
      }

    #page-music .mp-eras-grid:has(.mp-era-card-outer:nth-child(4)) {

      width: 1040px;
      max-width: min(1040px, calc(100vw - 340px));
      }

}


/* ── Desktop music header placement: streams live in header gaps only ── */
@media (min-width: 1100px) {
  body:has(#page-music.active) #nav-settings-btn {
    display: none;
  }

  #page-music.active .mp,
  #page-music .mp {
    display: block;
    padding: 0 10px 12px;
    min-height: calc(100vh - 80px);
  }

  #page-music.active .mp-sidebar,
  #page-music .mp-sidebar,
  #page-music.active .mp-sidebar-identity,
  #page-music .mp-sidebar-identity {
    display: none;
  }

}

/* Mobile never shows the desktop stream columns — the sidebar owns that range. */
#page-music .mp-desktop-streams {
  display: none;
}

/* Streams also serve the 769-1099px band, where the sidebar is hidden. */
@media (min-width: 769px) {
  body:has(#page-music.active) #nav-settings-btn {
    display: none;
  }

  #page-music .mp-desktop-streams {
    position: fixed;
    top: 16px;
    z-index: 62;
    width: clamp(120px, calc((100vw - 860px) / 2), 340px);
    min-width: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    pointer-events: none;
  }

  #page-music .mp-desktop-streams-left {
    left: 20px;
  }

  #page-music .mp-desktop-streams-right {
    right: 20px;
  }

  #page-music.active .mp-desktop-streams {
    display: grid;
  }

  #page-music .mp-desktop-streams .mp-sidebar-stream-link {
    min-height: 34px;
    height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.16)),
      rgba(255,255,255,.10);
    box-shadow:
      0 8px 18px rgba(0,0,0,.13),
      inset 0 1px 0 rgba(255,255,255,.42);
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  #page-music .mp-desktop-streams .mp-sidebar-stream-link::before,
  #page-music .mp-desktop-streams .mp-sidebar-stream-arrow {
    display: none;
  }

  #page-music .mp-desktop-streams .mp-sidebar-stream-name {
    flex: 0 1 auto;
    font-size: 7px;
    letter-spacing: 1.1px;
    color: var(--ink);
  }

  #page-music .mp-desktop-streams .mp-stream-icon-wrap {
    width: 15px;
    height: 15px;
    color: var(--pk);
  }

  #page-music .mp-desktop-streams .mp-stream-icon-wrap svg {
    color: var(--pk);
    fill: var(--pk);
  }

}

@media (min-width: 1320px) {
  #page-music .mp-desktop-streams-left,
  #page-music .mp-desktop-streams-right {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  #page-music .mp-sidebar,
  #page-music .mp-sidebar-identity {
    display: none;
  }
}

/* ── Era modal mobile fit: everything on screen, nothing behind the fixed
   bottom bar. Order: art → title → tag → link buttons → preview player.
   Title, tag and button labels are centered; the art is square (1:1). ── */

@media (max-width: 780px) {

    /* Backdrop pads for the bottom bar; scrolls only as a last resort on
       very short viewports (landscape phones). */
    .era-modal-bg {

      align-items: stretch;
      padding: 12px 12px calc(62px + env(safe-area-inset-bottom, 0px));
      overflow-y: auto;
      }

    /* margin:auto centers short modals; max-height caps tall ones above the
       bar. minmax(0,1fr) lets the side row shrink instead of overflowing. */
    .era-modal {

      margin: auto;
      max-height: 100%;
      overflow: hidden;
      grid-template-rows: auto minmax(0, 1fr);
      }

    /* Square release art, scaled to the height left over after title,
       buttons, native 152px Apple player and tag (fixed stack measured
       ≈585px); floor of 96px, and the backdrop scrolls below that. */
    .era-modal-photo {

      width: min(100%, max(96px, calc(100vh - 585px)));
      margin: 12px auto 0;
      aspect-ratio: 1 / 1;
      }

    .era-modal-photo-empty {

      width: 100%;
      height: 100%;
      aspect-ratio: auto;
      }

    /* Flex column so the tag can be visually reordered below the title */
    .era-modal-side {

      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 0;
      padding: 10px 16px 10px;
      border-left: none;
      overflow: hidden auto;
      }

    .era-modal-name,
    .era-modal-tag,
    .era-modal-meta,
    .era-modal-edit {

      flex-shrink: 0;
      }

    /* Explicit order for every flex child: title → description → buttons
       → (order:9) preview player → (order:10) tag. No defaults left to chance. */
    .era-modal-tag {

      /* Last in the stack: below the preview player (which is order:9
         inside .era-modal-links). align-self:center beats the base rule's
         flex-start so the pill box actually centers. */
      order: 10;
      align-self: center;
      font-size: 8px;
      letter-spacing: 2.4px;
      margin: 8px 0 0;
      text-align: center;
      }

    .era-modal-name {

      order: 0;
      width: 100%;
      font-size: clamp(24px, 8vw, 34px);
      padding-bottom: 6px;
      margin-bottom: 6px;
      text-align: center;
      }

    .era-modal-meta,
    .era-modal-desc {

      width: 100%;
      }

    .era-modal-desc {

      order: 3;
      flex: 0 1 auto;
      min-height: 0;
      overflow-y: auto;
      margin: 0 0 8px;
      font-size: 13px;
      line-height: 1.5;
      }

    .era-modal-links {

      order: 4;
      flex-shrink: 0;
      width: 100%;
      margin: 0;
      gap: 6px;
      }

    .era-modal-meta {

      order: 2;
      }

    .era-modal-edit {

      order: 5;
      align-self: center;
      justify-content: center;
      }

    /* Preview player keeps Apple's native 152px height so the embed's own
       UI fits; it renders below the buttons (after Edit Era). */
    .era-modal-links iframe {

      order: 9;
      margin-bottom: 0;
      }

    .era-modal-links .era-modal-link {

      justify-content: center;
      gap: 10px;
      padding: 8px 14px;
      font-size: 11px;
      letter-spacing: 1.6px;
      text-align: center;
      }

    .era-modal-close {

      top: 10px;
      right: 10px;
      }

}

