/* LOUDER — Baba Yaga v5. This stylesheet is isolated to /baba-yaga/.
   The original silver/violet borders and headings are preserved in
   media/baba-yaga-decor-v7.png. No second, drawn control is interactive.
   The functional audio/video engine in player.js is unchanged. */
:root {
  --ink:#070310; --aubergine:#12071d; --panel:#0e051a;
  --enamel:#47135c; --gold:#e8dcf8; --gold-muted:#bcaad4;
  --fuchsia:#d72aff; --text:#f7f1ff;
}
html,body {background:#03010a;color:#f7f1ff;}
.louder-app {width:min(100%,1650px,calc((100dvh - 24px) * 1.77));}
.louder-app > .work-info, .louder-app > .signature {display:none!important;}

@media (min-width:751px) {
  .palace {
    aspect-ratio:1672 / 941;
    background:#060411 url('../media/baba-yaga-decor-v7.png') center / 100% 100% no-repeat;
  }
  /* Real video stays entirely inside the original printed bezel. */
  .palace .screen {
    left:6.68%; top:26.06%; width:45.79%; height:44.76%;
    border:0; border-radius:1.50cqw; overflow:hidden;
    background:#000;box-shadow:none;
  }
  .palace .screen video {
    position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;object-position:center;border-radius:inherit;background:#000;
  }
  .palace .screen-play {
    width:5.8cqw;height:5.8cqw;min-width:44px;min-height:44px;
    background:radial-gradient(circle at 40% 30%,#8226a7,#320948 75%);
    border:.14cqw solid #e7d9ff;border-radius:50%;
    box-shadow:0 0 .7cqw #b026dd,0 0 0 .25cqw rgba(50,12,79,.7);
    color:#fff;
  }
  .palace .screen-play-icon {opacity:1;font-size:2.25cqw;}
  .palace .screen-message {font-size:.61cqw;}

  /* Panel shapes occupy only the CLEANED inner area of the original frames.
     NEVER paint over any silver edges or the floral headings. */
  .palace .panel {
    position:absolute;z-index:3;overflow:hidden;
    border:0;box-shadow:none;border-radius:.22cqw;
    background:#0e051a;font-size:.76cqw;
  }
  .palace .mobile-panel-title {display:none;}
  .palace .subtitle-panel {
    left:54.85%;top:30.69%;width:24.12%;height:13.25%;
    padding:.18cqw .48cqw .26cqw;
  }
  .palace .subtitle-controls {
    height:100%;display:flex;flex-direction:column;
    justify-content:space-between;gap:.16cqw;
  }
  .palace .subtitle-controls>label:first-child {font-size:.71cqw;color:#f0e7ff;}
  .palace .subtitle-row {grid-template-columns:minmax(0,1fr) 2.65cqw;gap:.42cqw;}
  .palace .subtitle-row select,.palace .tiny-ornament {
    height:1.87cqw;font-size:.81cqw;
    background:#100719;border-color:#ad97c6;color:#f5efff;
  }
  .palace .tiny-ornament {box-shadow:0 0 .33cqw rgba(231,36,255,.45);}
  .palace .subtitle-controls p {font-size:.60cqw;min-height:0;line-height:1.1;color:#dbcae7;}
  .palace .subtitle-panel .upload-button {width:72%;min-height:1.77cqw;align-self:center;}

  .palace .sound-panel {
    left:54.85%;top:52.60%;width:25.12%;height:18.18%;
    padding:.22cqw .46cqw .30cqw;
  }
  .palace .sound-content {height:100%;gap:.13cqw;justify-content:space-around;}
  .palace .extra-tracks {display:contents;}
  .palace .track-row {
    grid-template-columns:1.23cqw minmax(0,1fr) 5.43cqw 2.15cqw;
    gap:.28cqw;min-height:1.96cqw;padding:0 .08cqw;
  }
  .palace .track-name {font-size:.70cqw;color:#f1e6fc;}
  .palace .track-tick {width:1.12cqw;height:1.12cqw;font-size:.78cqw;border-color:#d7c5ea;}
  .palace .track-tick.enabled {background:#af1bea;box-shadow:0 0 .3cqw rgba(231,36,255,.45);}
  .palace .track-row output {font-size:.62cqw;color:#ece4ff;}
  .palace .track-volume {accent-color:#d72aff;}
  .palace .track-uploads {grid-template-columns:1fr 1.18fr 1fr;gap:.16cqw;margin-top:.03cqw;}
  .palace .track-uploads .upload-button {font-size:.50cqw;min-height:1.61cqw;padding:.12cqw .05cqw;}
  .palace .upload-button {
    border-color:#ad96d4;color:#fbf3ff;
    background:linear-gradient(#5b1b78,#240b36);
  }

  /* Only one transport: THIS live HTML bar provides the frame. The art contains no bar. */
  .palace .transport {
    position:absolute;
    left:8.00%;top:73.75%;width:84.00%;height:8.20%;
    min-height:0;margin:0;padding:.1cqw 1.05cqw;
    display:grid;grid-template-columns:22% minmax(0,1fr) 28%;
    gap:.43cqw;align-items:center;
    background:linear-gradient(180deg,#250b38 0%,#0e051b 51%,#160525 100%);
    border:.13cqw solid #d9c8fa;border-radius:3.55cqw;
    box-shadow:inset 0 0 0 .11cqw rgba(145,49,190,.9),0 0 .4cqw rgba(224,37,255,.44);
    z-index:5;color:#f0e4ff;
  }
  .palace .transport-group {height:100%;gap:.22cqw;min-width:0;}
  .palace .transport-left,.palace .transport-right {justify-content:space-around;}
  .palace .transport-center {gap:.44cqw;}
  .palace .nav-btn {
    color:#e7ddff;width:2.16cqw;height:2.16cqw;
    font-size:1.18cqw;border:0;background:transparent;
  }
  .palace .nav-btn.boxed {width:2.25cqw;height:1.98cqw;font-size:.95cqw;border:1px solid #bba7dc;}
  .palace .main-play {
    width:4.06cqw;height:4.06cqw;
    background:radial-gradient(circle at 42% 30%,#8c26b6,#34074b 75%);
    border:.14cqw solid #d5c4f5;color:#fff;
    box-shadow:0 0 0 .14cqw rgba(61,19,89,.8),0 0 .65cqw #d227fa;
  }
  .palace .main-play span {font-size:1.7cqw;}
  .palace .time {font-size:.73cqw;color:#f1e6ff;min-width:1.9cqw;}
  .palace #timeline {width:100%;height:1.12cqw;accent-color:#d22cfd;}
  .palace #master-volume {width:4.5cqw;accent-color:#d22cfd;}
  .palace #master-mute {font-size:1.10cqw;}
}

@media (max-width:750px) {
  .louder-app {width:100%;padding:0 10px 15px;}
  .palace {aspect-ratio:auto;background:none;display:flex;flex-direction:column;}
  .mobile-masthead {
    background:#160522 url('../media/baba-masthead.webp') center / cover no-repeat;
    border-bottom:1px solid #b99bde;
  }
  .screen {
    background:#050310 url('../media/baba-video-poster.webp') center / cover no-repeat;
    border:2px solid #bea9df;border-radius:16px;
    box-shadow:0 0 12px rgba(217,50,255,.32);
  }
  .screen video {object-fit:contain;background:#000;}
  .screen-play {background:#521778;border:2px solid #e4d7ff;color:#fff;box-shadow:0 0 8px #be2df1;}
  .screen-play-icon {opacity:1;}
  .panel {background:linear-gradient(145deg,#170724,#260b35);border:2px solid #b9a8df;box-shadow:none;}
  .mobile-panel-title {color:#ebe0fc;border-color:#764890;}
  .subtitle-row select,.tiny-ornament {border-color:#b9a8df;color:#fff;background:#0e061a;}
  .track-name,.track-row output {color:#f6efff;}
  .track-tick.enabled {background:#8e1abf;}
  .transport {background:linear-gradient(#260d3b,#10051c);border-color:#baa6e1;}
  .main-play {border:2px solid #e1d1ff;background:#602082;color:#fff;box-shadow:0 0 0 3px #2a103e,0 0 0 5px #caaff0;}
  .nav-btn,.time {color:#e9ddff;}
  .nav-btn.boxed {border-color:#b9a8df;}
}
