/* Music Fever 105 FM — styles extraits de l'ancien index.html */
:root {
      --bg: #080605;
      --panel: rgba(13, 12, 11, 0.72);
      --panel-soft: rgba(18, 16, 14, 0.58);
      --stroke: rgba(255, 255, 255, 0.12);
      --stroke-soft: rgba(255, 255, 255, 0.08);
      --text: #f5eee6;
      --muted: rgba(245, 238, 230, 0.66);
      --orange: #ff743d;
      --orange2: #ff9a4d;
      --green: #8fd052;
      --red: #e85d45;
      --yellow: #ffc66d;
      --body: 'Archivo Narrow', Arial, sans-serif;
      --display: 'Oswald', Arial, sans-serif;
      --brand: 'Monoton', cursive;
      --logo-url: url('/logo-music-fever-transparent.png');
      --bg-image: url('/fondfunk.png');
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; }
    body {
      font-family: var(--body);
      color: var(--text);
      background: var(--bg);
      overflow-x: hidden;
    }
    button, input { font: inherit; }
    button { color: inherit; }

    #maintenanceBanner {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      background: #d91515;
      color: #fff;
      padding: 14px 18px;
      text-align: center;
      font-size: 21px;
      font-weight: 800;
      letter-spacing: 0.04em;
    }

    .page {
      min-height: 100vh;
      position: relative;
      padding: 34px 36px 36px;
      overflow: hidden;
      background:
        radial-gradient(circle at 48% 34%, rgba(83, 47, 28, 0.28) 0%, rgba(20, 14, 10, 0.30) 32%, rgba(4, 3, 3, 0.94) 74%),
        linear-gradient(rgba(0,0,0,0.16), rgba(0,0,0,0.50)),
        var(--bg-image) center center / cover no-repeat,
        linear-gradient(135deg, #090706 0%, #120c09 45%, #050404 100%);
    }

    .page::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(90deg, transparent 0 49.95%, rgba(255,255,255,0.025) 50%, transparent 50.05% 100%),
        linear-gradient(180deg, transparent 0 50.4%, rgba(255,255,255,0.015) 50.5%, transparent 50.6% 100%);
      opacity: 0.16;
    }

    .page::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle at center, transparent 0 56%, rgba(0,0,0,0.72) 100%);
      opacity: 0.78;
    }

    .screen {
      width: min(1440px, 100%);
      min-height: 920px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .site-logo {
      position: absolute;
      top: -34px;
      left: 96px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: var(--logo-url) center / contain no-repeat;
      border: 0;
      box-shadow: none;
      cursor: default;
    }

    .top-nav {
      width: min(760px, calc(100% - 410px));
      margin: 4px auto 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 48px;
      text-align: center;
    }

    .station-link {
      border: 0;
      background: transparent;
      padding: 0 0 16px;
      cursor: pointer;
      position: relative;
      min-width: 0;
    }

    .station-link::after {
      content: '';
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 0;
      height: 3px;
      background: rgba(255,255,255,0.92);
      transform: scaleX(0);
      opacity: 0;
      transition: 160ms ease;
    }

    .station-link:hover::after,
    .station-link.active::after {
      transform: scaleX(1);
      opacity: 1;
    }

    .station-link strong {
      display: block;
      font-family: var(--display);
      font-size: 32px;
      line-height: 1;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .station-link span {
      display: block;
      font-size: 13px;
      line-height: 1.15;
      color: rgba(255,255,255,0.78);
      white-space: nowrap;
    }

    .station-link[data-station="discofever"] strong,
    .station-link[data-station="funkfever"] strong,
    .station-link[data-station="housefever"] strong { color: var(--red); }

    .fullscreen-btn {
      position: absolute;
      top: -6px;
      right: 0;
      z-index: 12;
      height: 38px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid rgba(255,116,61,0.72);
      background: rgba(0,0,0,0.10);
      color: var(--orange2);
      font-family: var(--display);
      font-weight: 700;
      font-size: 14px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .fullscreen-btn:hover { background: rgba(255,116,61,0.11); }

    .hidden-hint {
      display: none;
    }

    .brand-block {
      width: 440px;
      margin: 28px auto 42px;
      text-align: center;
      position: relative;
    }

    .brand-logo-mark {
      display: none;
    }

    .brand-title {
      position: relative;
      font-family: var(--brand);
      font-size: 48px;
      line-height: 0.95;
      letter-spacing: 0.08em;
      word-spacing: 0.24em;
      color: rgba(255,255,255,0.94);
      text-transform: uppercase;
      white-space: nowrap;
      text-shadow: 0 8px 30px rgba(0,0,0,0.55);
    }

    .brand-freq {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-top: 14px;
      font-family: var(--display);
      color: #ff8a4f;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      text-shadow: 0 0 12px rgba(255,116,61,0.30);
    }

    .brand-freq::before,
    .brand-freq::after {
      content: '';
      width: 42px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,116,61,0.82));
    }

    .brand-freq::after {
      background: linear-gradient(90deg, rgba(255,116,61,0.82), transparent);
    }

    .layout {
      display: grid;
      grid-template-columns: 820px 335px;
      gap: 24px;
      align-items: start;
      justify-content: center;
      position: relative;
    }

    .deck-wrap { position: relative; }

    .deck-panel {
      position: relative;
      height: 524px;
      border-radius: 25px;
      border: 1px solid var(--stroke);
      background:
        radial-gradient(circle at 75% 42%, rgba(255,255,255,0.035), transparent 38%),
        linear-gradient(145deg, rgba(38,35,31,0.82), rgba(10,9,8,0.86));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -20px 80px rgba(0,0,0,0.42),
        0 20px 60px rgba(0,0,0,0.28);
      overflow: hidden;
    }

    .deck-panel::before,
    .deck-panel::after,
    .screw.s3,
    .screw.s4 {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.32), transparent 12%),
        radial-gradient(circle, #171615 0 38%, #050505 42% 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.20), inset 0 0 3px rgba(0,0,0,0.9);
      opacity: 0.72;
    }
    .deck-panel::before { left: 18px; top: 18px; }
    .deck-panel::after { right: 18px; bottom: 18px; }
    .screw.s3 { left: 18px; bottom: 18px; }
    .screw.s4 { right: 18px; top: 18px; }

    .vinyl-area {
      position: absolute;
      left: 18px;
      top: 24px;
      width: 470px;
      height: 500px;
      display: grid;
      place-items: center;
    }

    .vinyl {
      position: relative;
      width: 438px;
      height: 438px;
      border-radius: 50%;
      background:
        radial-gradient(circle at center, transparent 0 16.5%, rgba(255,255,255,0.90) 16.8% 17.3%, #080808 17.6% 100%),
        repeating-radial-gradient(circle, rgba(255,255,255,0.055) 0 1px, transparent 1px 6px);
      box-shadow:
        0 0 0 5px #050505,
        0 0 0 9px rgba(255,255,255,0.08),
        0 16px 34px rgba(0,0,0,0.62),
        inset 0 0 30px rgba(255,255,255,0.035);
      overflow: hidden;
      animation: vinylSpin 12s linear infinite;
      animation-play-state: paused;
      will-change: transform;
      backface-visibility: hidden;
      transform: rotate(0deg) translateZ(0);
      contain: layout paint;
      isolation: isolate;
    }

    .vinyl.playing { animation-play-state: running; }

    .vinyl::before {
      content: '';
      position: absolute;
      inset: 6%;
      border-radius: 50%;
      background: linear-gradient(35deg, transparent 0 42%, rgba(255,255,255,0.10) 49%, transparent 57% 100%);
      opacity: 0.32;
      pointer-events: none;
    }

    .vinyl::after {
      display: none;
    }

    .cover-disc {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 222px;
      height: 222px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      overflow: hidden;
      background: #eee;
      z-index: 3;
      box-shadow: 0 0 0 9px rgba(255,255,255,0.92), 0 0 0 1px rgba(0,0,0,0.35);
    }

    .cover-disc img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .cover-hole {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 22px;
      height: 22px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      background: #050505;
      z-index: 4;
      box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
    }

    .deck-controls {
      position: absolute;
      left: 535px;
      top: 30px;
      width: 265px;
      height: 475px;
    }

    .volume-block { text-align: center; margin-top: 6px; }
    .section-label {
      font-family: var(--display);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.95);
    }

    .volume-row {
      position: relative;
      display: grid;
      grid-template-columns: 28px 1fr 28px;
      gap: 10px;
      align-items: center;
      margin-top: 20px;
    }

    .volume-scale {
      position: absolute;
      left: 50px;
      right: 50px;
      top: -13px;
      height: 8px;
      background: repeating-linear-gradient(90deg, rgba(255,255,255,0.62) 0 1px, transparent 1px 23px);
      opacity: 0.7;
    }

    .speaker { font-size: 19px; color: rgba(255,255,255,0.84); }

    .volume-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: #040404;
      box-shadow: inset 0 1px 3px rgba(255,255,255,0.18), 0 0 0 1px rgba(255,255,255,0.06);
      outline: 0;
    }

    .volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      background: radial-gradient(circle at 35% 30%, #fff, #c7c2bb 33%, #5d5751 72%, #191715 100%);
      box-shadow: 0 4px 14px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.30);
    }

    .volume-slider::-moz-range-thumb {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 50%;
      cursor: pointer;
      background: radial-gradient(circle at 35% 30%, #fff, #c7c2bb 33%, #5d5751 72%, #191715 100%);
      box-shadow: 0 4px 14px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.30);
    }

    .eq-box {
      margin: 42px auto 0;
      width: 256px;
      transform: translateX(0);
      padding: 14px 18px 16px;
      border-radius: 11px;
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(0,0,0,0.22);
      text-align: center;
    }

    .eq-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 13px;
    }

    .eq-title {
      font-family: var(--display);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.82);
    }

    .eq-power {
      min-width: 54px;
      height: 25px;
      border-radius: 999px;
      border: 1px solid rgba(255,116,61,0.62);
      background: rgba(0,0,0,0.20);
      color: rgba(255,255,255,0.70);
      font-family: var(--display);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.06em;
      cursor: pointer;
    }

    .eq-power.active {
      border-color: rgba(143,208,82,0.80);
      background: rgba(143,208,82,0.16);
      color: #b9f078;
    }

    .eq-box.eq-off .knob-wrap {
      opacity: 0.48;
    }

    .eq-box.eq-off .knob {
      cursor: default;
    }

    .eq-knobs {
      margin-top: 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

    .eq-name {
      display: block;
      font-family: var(--display);
      font-size: 12px;
      text-transform: uppercase;
      margin-bottom: 11px;
      color: rgba(255,255,255,0.84);
    }

    .knob-wrap { position: relative; min-height: 86px; }

    .knob {
      position: relative;
      width: 58px;
      height: 58px;
      margin: 0 auto 7px;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 50%;
      background: radial-gradient(circle at 35% 28%, #363331 0 16%, #1b1918 38%, #070707 72%, #000 100%);
      box-shadow: 0 9px 18px rgba(0,0,0,0.65), inset -6px -7px 14px rgba(0,0,0,0.82), inset 5px 4px 10px rgba(255,255,255,0.055);
      cursor: ns-resize;
      transform: rotate(var(--knob-rotation, 0deg));
      transition: transform 90ms linear;
    }

    .knob::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 8px;
      width: 5px;
      height: 15px;
      transform: translateX(-50%);
      border-radius: 999px;
      background: #ffd35f;
      box-shadow: 0 0 7px rgba(255, 211, 95, 0.9);
    }

    .knob-scale {
      display: none;
    }

    .knob-value {
      display: block;
      margin-top: 0;
      font-size: 11px;
      color: rgba(255,255,255,0.72);
      font-weight: 700;
    }

    .play-button {
      position: absolute;
      left: 76px;
      bottom: 24px;
      width: 124px;
      height: 124px;
      border-radius: 50%;
      border: 3px solid var(--orange);
      background:
        radial-gradient(circle at 42% 32%, rgba(255,255,255,0.13), transparent 26%),
        radial-gradient(circle, #272421 0 48%, #0f0d0c 72%, #030303 100%);
      box-shadow:
        0 0 0 7px rgba(255,116,61,0.16),
        0 0 28px rgba(255,116,61,0.55),
        inset 0 0 0 2px rgba(255,255,255,0.08),
        0 15px 30px rgba(0,0,0,0.65);
      cursor: pointer;
      display: grid;
      place-items: center;
    }

    .play-button::before {
      content: '';
      width: 0;
      height: 0;
      margin-left: 7px;
      border-top: 21px solid transparent;
      border-bottom: 21px solid transparent;
      border-left: 32px solid rgba(255,255,255,0.88);
      filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    }

    .play-button.playing::before {
      width: 30px;
      height: 45px;
      margin-left: 0;
      border: 0;
      background: linear-gradient(90deg, rgba(255,255,255,0.9) 0 10px, transparent 10px 20px, rgba(255,255,255,0.9) 20px 30px);
    }

    .status-strip {
      position: absolute;
      left: 0;
      top: 544px;
      width: 820px;
      min-height: 74px;
      border-radius: 13px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(8,7,6,0.60);
      display: grid;
      grid-template-columns: minmax(220px, 1fr) 248px 248px;
      column-gap: 10px;
      align-items: center;
      padding: 0 12px;
      overflow: hidden;
    }

    .status-strip::before,
    .status-strip::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 1px;
      background: rgba(255,255,255,0.08);
    }
    .status-strip::before,
    .status-strip::after { display: none; }

    .antenna {
      display: none;
    }

    .stream-status {
      padding-left: 8px;
      line-height: 1.25;
    }

    .stream-status .label {
      display: block;
      font-family: var(--display);
      color: var(--orange2);
      font-size: 14px;
      font-weight: 600;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .stream-status .value {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 700;
      color: rgba(255,255,255,0.92);
    }

    .green-dot {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 11px rgba(143,208,82,0.85);
    }

    .bitrate { color: rgba(255,255,255,0.70); font-weight: 400; }

    .connection-btn,
    .install-app-btn {
      justify-self: center;
      width: 100%;
      height: 62px;
      border-radius: 15px;
      border: 1px solid rgba(255,116,61,0.82);
      background: rgba(0,0,0,0.20);
      cursor: pointer;
      display: grid;
      grid-template-columns: 40px 1fr;
      gap: 5px;
      align-items: center;
      padding: 0 12px;
    }

    .install-app-btn[hidden] { display: none !important; }
    .connection-btn.active { background: rgba(255,116,61,0.12); }

    .install-app-btn {
      border-color: rgba(143,208,82,0.86);
      background: linear-gradient(135deg, rgba(143,208,82,0.20), rgba(255,116,61,0.12));
      box-shadow: 0 0 18px rgba(143,208,82,0.12), 0 10px 26px rgba(0,0,0,0.22);
    }

    .install-app-btn:hover {
      background: linear-gradient(135deg, rgba(143,208,82,0.28), rgba(255,116,61,0.18));
    }

    .connection-btn .cloud,
    .install-app-btn .install-icon { font-size: 23px; text-align: center; }
    .connection-btn .txt,
    .install-app-btn .txt { text-align: left; line-height: 1.18; min-width: 0; }
    .connection-btn .txt strong,
    .install-app-btn .txt strong {
      display: block;
      font-family: var(--display);
      font-size: 14px;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .connection-btn .txt span,
    .install-app-btn .txt span {
      display: block;
      color: var(--orange2);
      font-weight: 700;
      font-size: 12px;
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .install-app-btn .txt span { color: #b9f078; }

    .card {
      border-radius: 18px;
      border: 1px solid var(--stroke);
      background: rgba(18, 16, 14, 0.68);
      box-shadow: 0 14px 34px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.035);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .now-card {
      min-height: 570px;
      padding: 26px 22px 22px;
    }

    .card-title {
      margin: 0 0 18px;
      font-family: var(--display);
      font-size: 20px;
      line-height: 1;
      color: var(--orange);
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .now-row {
      display: grid;
      grid-template-columns: 80px minmax(0, 1fr);
      gap: 16px;
      align-items: center;
      padding-bottom: 26px;
      border-bottom: 1px solid var(--stroke-soft);
    }

    .now-cover {
      width: 80px;
      height: 80px;
      border-radius: 5px;
      overflow: hidden;
      background: #eee;
      box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }
    .now-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .now-meta { min-width: 0; overflow: hidden; }

    .marquee-wrap {
      display: block;
      max-width: 100%;
      overflow: hidden;
      white-space: nowrap;
    }

    .marquee-inner {
      display: inline-block;
      min-width: 100%;
      white-space: nowrap;
      will-change: transform;
    }

    .is-marquee .marquee-inner {
      animation: textMarquee var(--marquee-duration, 11s) linear infinite;
    }

    @keyframes textMarquee {
      0%, 12% { transform: translateX(0); }
      88%, 100% { transform: translateX(calc(-1 * var(--marquee-distance, 0px))); }
    }

    .track-artist {
      font-family: var(--display);
      font-size: 23px;
      font-weight: 700;
      color: rgba(255,255,255,0.96);
      line-height: 1.08;
      white-space: nowrap;
      overflow: hidden;
    }

    .track-title {
      margin-top: 6px;
      font-size: 16px;
      color: rgba(255,255,255,0.80);
      white-space: nowrap;
      overflow: hidden;
    }

    .time-line {
      margin-top: 13px;
      font-size: 17px;
      color: rgba(255,255,255,0.85);
    }
    .time-line .elapsed { color: var(--orange); font-weight: 700; }

    .history { margin-top: 24px; }

    .history-list {
      display: flex;
      flex-direction: column;
    }

    .history-item {
      min-height: 64px;
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) 42px;
      gap: 11px;
      align-items: center;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .history-item:last-child { border-bottom: 0; }

    .history-thumb {
      width: 36px;
      height: 36px;
      border-radius: 3px;
      overflow: hidden;
      background: rgba(255,255,255,0.16);
    }
    .history-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .history-main { min-width: 0; }
    .history-artist {
      font-family: var(--display);
      font-size: 16px;
      font-weight: 700;
      color: rgba(255,255,255,0.95);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .history-title {
      margin-top: 4px;
      font-size: 13px;
      color: rgba(255,255,255,0.66);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .history-time {
      color: rgba(255,255,255,0.58);
      font-size: 13px;
      text-align: right;
    }

    .hidden-panel {
      position: absolute;
      left: calc(50% + 467px);
      top: 0;
      width: 250px;
      min-height: 418px;
      padding: 26px 20px;
      z-index: 8;
      transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

    .hidden-panel.is-closed {
      opacity: 0;
      visibility: hidden;
      transform: translateX(24px);
      pointer-events: none;
    }

    .close-hidden {
      position: absolute;
      right: 19px;
      top: 18px;
      width: 28px;
      height: 28px;
      border: 0;
      background: transparent;
      font-size: 29px;
      line-height: 1;
      color: #fff;
      cursor: pointer;
      opacity: 0.92;
    }

    .hidden-panel .card-title { margin-bottom: 20px; color: var(--orange2); }

    .menu-row {
      display: grid;
      grid-template-columns: 32px 1fr;
      gap: 13px;
      padding: 19px 0;
      border-top: 1px solid rgba(255,255,255,0.12);
    }
    .menu-row:first-of-type { border-top: 1px solid rgba(255,255,255,0.16); }
    .menu-icon { font-size: 22px; color: rgba(255,255,255,0.90); padding-top: 2px; }
    .menu-label {
      font-family: var(--display);
      font-size: 14px;
      font-weight: 700;
      color: rgba(255,255,255,0.92);
      text-transform: uppercase;
    }
    .menu-value {
      margin-top: 6px;
      font-family: var(--display);
      font-size: 27px;
      font-weight: 700;
      line-height: 1;
      color: var(--orange);
    }
    .menu-value.green { color: var(--green); }
    .menu-sub {
      margin-top: 5px;
      font-size: 13px;
      color: rgba(255,255,255,0.68);
    }
    .menu-action {
      border: 0;
      background: transparent;
      padding: 0;
      text-align: left;
      cursor: pointer;
      color: inherit;
    }

    .menu-action:hover .menu-label,
    .menu-action:hover .menu-sub {
      color: #fff;
    }

    .qr-box {
      position: absolute;
      right: 8px;
      top: 48px;
      width: 118px;
      padding: 12px;
      border-radius: 11px;
      border: 1px solid rgba(255,255,255,0.13);
      background: rgba(10,9,8,0.72);
      text-align: center;
    }

    .qr-box img {
      display: block;
      width: 100%;
      height: auto;
      background: #fff;
      border-radius: 3px;
    }
    .qr-box .label {
      margin-top: 7px;
      font-family: var(--display);
      font-size: 13px;
      font-weight: 700;
      color: rgba(255,255,255,0.92);
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .support-box {
      position: absolute;
      left: calc(50% + 240px);
      top: 165px;
      width: 365px;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: rgba(255,244,221,0.88);
      font-family: var(--display);
      text-transform: uppercase;
      text-shadow: 0 2px 10px rgba(0,0,0,0.72);
      z-index: 6;
    }

    .support-box::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: -12px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,116,61,0.62), transparent);
      opacity: 0.78;
    }

    .support-copy {
      display: block;
      min-width: 0;
      font-size: 14px;
      line-height: 1.12;
      letter-spacing: 0.045em;
      color: rgba(255,255,255,0.88);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .support-btn {
      flex: 0 0 auto;
      min-width: 112px;
      min-height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,116,61,0.92);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255,116,61,0.34), rgba(255,154,77,0.18));
      color: #fff1e6;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 0.055em;
      text-decoration: none;
      box-shadow: 0 0 24px rgba(255,116,61,0.28), 0 12px 28px rgba(0,0,0,0.30);
    }

    .support-btn:hover {
      background: rgba(255,116,61,0.28);
      color: #fff1e6;
    }

    .footer-basque {
      position: absolute;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      width: min(900px, 82vw);
      text-align: center;
      color: rgba(255,244,221,0.72);
      font-family: var(--display);
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.20em;
      text-transform: uppercase;
      text-shadow: 0 2px 12px rgba(0,0,0,0.85);
      pointer-events: none;
    }

    .footer-basque strong {
      color: rgba(255,255,255,0.92);
      font-weight: 700;
    }

    .logo-stamp {
      display: none;
    }

    .mobile-extra {
      display: none;
    }

    .audio {
      position: absolute;
      width: 0;
      height: 0;
      opacity: 0;
      pointer-events: none;
    }

    .audio-menu-hotspot {
      display: none;
    }

    @keyframes vinylSpin {
      from { transform: rotate(0deg) translateZ(0); }
      to { transform: rotate(360deg) translateZ(0); }
    }

    @supports (-moz-appearance: none) {
      .page::before { display: none; }
      .page::after { opacity: 0.72; }
      .vinyl::before { opacity: 0.20; }
      .deck-panel,
      .status-strip,
      .now-card,
      .hidden-panel {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }

      @media (max-width: 1450px) and (min-width: 861px) {
        .screen {
          transform: none !important;
          width: 1440px;
        }
        .page {
          overflow-x: auto;
          min-height: 980px;
        }
      }
    }

    @media (max-width: 1450px) {
      .screen { transform-origin: top center; transform: scale(calc((100vw - 42px) / 1440)); width: 1440px; }
      .page { min-height: calc(920px * ((100vw - 42px) / 1440) + 60px); }
    }

    @media (max-width: 860px) {
      html, body {
        min-height: 100%;
        overflow-x: hidden;
      }

      body { overscroll-behavior: none; }

      .page {
        min-height: 100svh;
        padding: 10px 12px 14px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
      }

      .page::before { display: none; }
      .page::after { opacity: 0.74; }

      .screen {
        width: 100%;
        min-height: 100svh;
        margin: 0;
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 6px;
        touch-action: pan-y;
      }

      .site-logo,
      .fullscreen-btn,
      .qr-box,
      .logo-stamp {
        display: none !important;
      }

      .brand-block {
        order: 1;
        display: block !important;
        width: 100%;
        margin: 0 0 10px;
        text-align: center;
        flex: 0 0 auto;
        position: relative;
        padding-bottom: 8px;
      }

      .brand-block::after {
        content: '';
        position: absolute;
        left: 18%;
        right: 18%;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,116,61,0.68), rgba(255,255,255,0.40), rgba(255,116,61,0.68), transparent);
      }

      .brand-title {
        font-size: clamp(30px, 10.5vw, 42px);
        line-height: 0.9;
        letter-spacing: 0.055em;
        word-spacing: 0.08em;
        white-space: nowrap;
      }

      .brand-freq {
        display: none;
      }

      /* 1 — Titre puis stations tout en haut */
      .top-nav {
        order: 2;
        width: 100%;
        margin: 0 0 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(18px, 5.2vw, 28px);
        flex: 0 0 auto;
        text-align: center;
        position: relative;
        padding: 0 10px 10px;
      }

      .top-nav::after {
        content: '';
        position: absolute;
        left: 4%;
        right: 4%;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), rgba(255,116,61,0.58), rgba(255,255,255,0.34), transparent);
      }

      .station-link {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0 0 7px;
      }

      .top-nav .station-link:not(:last-child)::before {
        content: '';
        position: absolute;
        right: calc(-1 * clamp(10px, 2.7vw, 15px));
        top: 0.48em;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255,116,61,0.86);
        box-shadow: 0 0 6px rgba(255,116,61,0.42);
      }

      .station-link::after {
        left: 8px;
        right: 8px;
        height: 2px;
      }

      .station-link strong {
        margin: 0;
        font-size: clamp(15px, 4.85vw, 20px);
        line-height: 1;
        letter-spacing: 0.012em;
        white-space: nowrap;
      }

      .station-link span { display: none; }

      .screen > .install-app-btn {
        order: 3;
        width: 100%;
        min-height: 44px;
        height: 44px;
        grid-template-columns: 34px 1fr;
        padding: 0 13px;
        margin: 0 0 2px;
        border-radius: 14px;
      }

      .screen > .install-app-btn .install-icon { font-size: 20px; }
      .screen > .install-app-btn .txt strong { font-size: 13px; }
      .screen > .install-app-btn .txt span { font-size: 11px; }

      /* 2 — Vinyle + bouton play uniquement */
      .layout {
        order: 4;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        width: 100%;
      }

      .deck-wrap {
        flex: 0 0 auto;
        width: 100%;
        height: clamp(178px, 28svh, 226px);
        min-height: clamp(178px, 28svh, 226px);
        position: relative;
        display: block;
      }

      .deck-panel {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 16px;
        overflow: hidden;
        background:
          radial-gradient(circle at 50% 38%, rgba(255,255,255,0.035), transparent 38%),
          linear-gradient(145deg, rgba(38,35,31,0.72), rgba(8,7,6,0.86));
      }

      .deck-panel::before,
      .deck-panel::after,
      .screw.s3,
      .screw.s4 {
        width: 9px;
        height: 9px;
        opacity: 0.50;
      }
      .deck-panel::before { left: 12px; top: 12px; }
      .deck-panel::after { right: 12px; bottom: 12px; }
      .screw.s3 { left: 12px; bottom: 12px; }
      .screw.s4 { right: 12px; top: 12px; }

      .vinyl-area {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
        padding: 10px 0 clamp(48px, 7svh, 58px);
      }

      .vinyl {
        display: block;
        width: min(58vw, 198px, 23.5svh);
        height: min(58vw, 198px, 23.5svh);
        box-shadow:
          0 0 0 4px #050505,
          0 0 0 7px rgba(255,255,255,0.07),
          0 12px 24px rgba(0,0,0,0.56),
          inset 0 0 22px rgba(255,255,255,0.03);
      }

      .cover-disc {
        width: 48%;
        height: 48%;
        box-shadow: 0 0 0 5px rgba(255,255,255,0.92), 0 0 0 1px rgba(0,0,0,0.35);
      }

      .cover-hole {
        width: 15px;
        height: 15px;
      }

      .deck-controls {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
      }

      .volume-block {
        display: none !important;
      }

      .deck-controls .play-button {
        pointer-events: auto;
      }

      .play-button {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        width: clamp(58px, 15vw, 68px);
        height: clamp(58px, 15vw, 68px);
        border-width: 2px;
        z-index: 5;
        box-shadow:
          0 0 0 5px rgba(255,116,61,0.13),
          0 0 22px rgba(255,116,61,0.46),
          inset 0 0 0 1px rgba(255,255,255,0.07),
          0 10px 22px rgba(0,0,0,0.58);
      }

      .play-button::before {
        margin-left: 5px;
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 19px;
      }

      .play-button.playing::before {
        width: 20px;
        height: 29px;
        background: linear-gradient(90deg, rgba(255,255,255,0.9) 0 7px, transparent 7px 15px, rgba(255,255,255,0.9) 15px 22px);
      }

      /* 3 — Now Playing + Previously Played */
      .now-card {
        order: 3;
        width: 100%;
        max-width: none;
        flex: 0 0 clamp(330px, 48svh, 430px);
        min-height: 0;
        height: auto;
        padding: 11px 14px 10px;
        border-radius: 16px;
        overflow: hidden;
      }

      .card-title {
        margin: 0 0 8px;
        font-size: clamp(16px, 5.2vw, 20px);
        line-height: 1;
      }

      .now-row {
        grid-template-columns: clamp(46px, 14vw, 56px) minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 8px;
      }

      .now-cover {
        width: clamp(46px, 14vw, 56px);
        height: clamp(46px, 14vw, 56px);
      }

      .track-artist {
        font-size: clamp(17px, 5.4vw, 21px);
        line-height: 1.05;
      }

      .track-title {
        margin-top: 3px;
        font-size: clamp(13px, 4vw, 15px);
      }

      .time-line {
        margin-top: 5px;
        font-size: clamp(13px, 4vw, 15px);
      }

      .history {
        margin-top: 9px;
        min-height: 0;
      }

      .history-item {
        min-height: clamp(34px, 5.7svh, 41px);
        grid-template-columns: 32px minmax(0, 1fr) 36px;
        gap: 8px;
      }

      .history-thumb {
        width: 31px;
        height: 31px;
      }

      .history-artist {
        font-size: clamp(13px, 4.2vw, 16px);
      }

      .history-title {
        margin-top: 1px;
        font-size: clamp(11px, 3.5vw, 13px);
      }

      .history-time {
        font-size: 11px;
      }

      .history-item:nth-child(n+7) {
        display: none;
      }

      /* Tipeee entre vinyle et Now Playing */
      .layout > .support-box {
        order: 2;
        position: static;
        width: 100%;
        min-height: 34px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        text-align: center;
      }

      .support-box::after {
        display: none;
      }

      .support-copy {
        flex: 0 1 auto;
        max-width: calc(100% - 88px);
        font-size: 11px;
        letter-spacing: 0.035em;
      }

      .support-btn {
        min-width: 78px;
        min-height: 30px;
        font-size: 12px;
      }

      /* Ensuite : EQ, HLS, footer */
      .mobile-extra {
        order: 5;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 7px;
        padding-bottom: 8px;
      }

      .mobile-extra .eq-box {
        display: none !important;
      }

      .mobile-extra .eq-header {
        margin-bottom: 8px;
      }

      .mobile-extra .eq-knobs {
        gap: 12px;
      }

      .mobile-extra .knob-wrap {
        min-height: 60px;
      }

      .mobile-extra .eq-name {
        margin-bottom: 6px;
        font-size: 10px;
      }

      .mobile-extra .knob {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
      }

      .mobile-extra .knob::before {
        top: 5px;
        width: 3px;
        height: 10px;
      }

      .mobile-extra .status-strip {
        display: grid !important;
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        min-height: 75px;
        grid-template-columns: 1fr;
        border-radius: 14px;
      }

      .mobile-extra .status-strip::before,
      .mobile-extra .status-strip::after {
        display: none;
      }

      .mobile-extra .stream-status {
        padding: 9px 12px 4px;
      }

      .mobile-extra .stream-status .label {
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        white-space: normal;
      }

      .mobile-extra .stream-status .value {
        gap: 7px;
        font-size: 15px;
        white-space: nowrap;
      }

      .mobile-extra .green-dot {
        width: 10px;
        height: 10px;
      }

      .mobile-extra .connection-btn {
        width: calc(100% - 16px);
        height: 35px;
        min-height: 35px;
        margin: 0 8px 8px;
        padding: 0 11px;
        grid-template-columns: 30px 1fr;
        border-radius: 12px;
      }

      .mobile-extra .connection-btn .cloud { font-size: 18px; }
      .mobile-extra .connection-btn .txt strong { font-size: 12px; }
      .mobile-extra .connection-btn .txt span { font-size: 11px; }

      .footer-basque {
        order: 6;
        display: block !important;
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 4px 0 0;
        font-size: 10px;
        letter-spacing: 0.10em;
        line-height: 1.35;
      }

      .hidden-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 12px;
        width: auto;
        min-height: 0;
        max-height: calc(100svh - 24px);
        overflow: auto;
        z-index: 50;
      }

      .hidden-panel.is-closed { display: none; }
    }


/* V5 — fenêtre propre pour l'ajout à l'écran d'accueil */
.install-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.62);
}

.install-help-modal.is-hidden {
  display: none !important;
}

.install-help-card {
  position: relative;
  width: min(430px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(143,208,82,0.55);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,116,61,0.18), transparent 34%),
    linear-gradient(145deg, rgba(23,20,17,0.96), rgba(6,5,5,0.98));
  color: rgba(255,255,255,0.92);
  padding: 24px 22px 20px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.72), 0 0 30px rgba(143,208,82,0.12);
  text-align: left;
}

.install-help-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.install-help-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(143,208,82,0.70);
  color: #b9f078;
  background: rgba(143,208,82,0.12);
  font-size: 24px;
  margin-bottom: 14px;
}

.install-help-card h2 {
  margin: 0 36px 8px 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.install-help-card p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
}

.install-help-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.install-help-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
  line-height: 1.25;
}

.install-help-step b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,116,61,0.20);
  color: #ffb07a;
  font-family: var(--display);
  font-size: 14px;
}

.install-help-ok {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,116,61,0.78);
  background: rgba(255,116,61,0.20);
  color: #fff1e6;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.install-help-ok:hover {
  background: rgba(255,116,61,0.30);
}

@media (max-width: 860px) {
  .install-help-card {
    width: min(360px, calc(100vw - 30px));
    padding: 22px 18px 18px;
  }
  .install-help-card h2 { font-size: 22px; }
  .install-help-card p { font-size: 15px; }
  .install-help-step { font-size: 14px; }
}
