/* ==========================================================================
   MICKEY MOUSE PHONE HARDWARE SHELL
   Classic 80s novelty phone: red body, rotary dial face, handset on top,
   Mickey ears peeking over, yellow shoe base, coiled cord.
   ========================================================================== */

body.mickey-active #player.has-hardware {
  position: relative;
  padding: 120px 40px 96px 40px;
  background:
    radial-gradient(ellipse at 30% 30%, #ff4a3a 0%, #c8261a 50%, #880a10 100%);
  border: 3px solid #4a0706;
  border-radius: 20px 20px 16px 16px;
  box-shadow:
    inset 0 6px 12px #ffffff40,
    inset 0 -10px 20px #4a070680,
    inset 8px 0 10px #ffffff15,
    inset -8px 0 10px #4a070640,
    0 12px 36px #00000080;
  overflow: visible;
}

/* ---- Mickey ears on top ---- */
body.mickey-active .hw-mk-ears {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
body.mickey-active .hw-mk-ear {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #4a4a4a 0%, #1a1a1a 70%, #000 100%);
  border: 3px solid #000;
  box-shadow:
    inset 0 4px 8px #505050,
    inset 0 -4px 8px #000,
    0 6px 14px #00000080;
}
body.mickey-active .hw-mk-ear-l { top: 10px; left: 0; }
body.mickey-active .hw-mk-ear-r { top: 10px; right: 0; }

/* ---- Handset (horizontal capsule resting across the top) ---- */
body.mickey-active .hw-mk-handset {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 420px;
  height: 52px;
  z-index: 3;
  pointer-events: none;
}
body.mickey-active .hw-mk-handset-bar {
  position: absolute;
  top: 16px;
  left: 50px;
  right: 50px;
  height: 22px;
  background:
    linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow:
    inset 0 2px 1px #5a5a5a,
    inset 0 -2px 1px #000,
    0 4px 8px #00000080;
}
body.mickey-active .hw-mk-handset-ear,
body.mickey-active .hw-mk-handset-mouth {
  position: absolute;
  top: 0;
  width: 60px;
  height: 52px;
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 30% 30%, #4a4a4a 0%, #1a1a1a 60%, #000 100%);
  border: 2px solid #000;
  box-shadow:
    inset 0 3px 4px #5a5a5a,
    inset 0 -3px 4px #000,
    0 6px 10px #00000080;
}
body.mickey-active .hw-mk-handset-ear { left: 0; }
body.mickey-active .hw-mk-handset-ear::after,
body.mickey-active .hw-mk-handset-mouth::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  background:
    radial-gradient(circle, #000 0%, #000 40%, transparent 40%) 0 0/6px 6px;
  opacity: 0.8;
}
body.mickey-active .hw-mk-handset-mouth { right: 0; }

/* Cradle bumps under the handset */
body.mickey-active .hw-mk-cradle {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 360px;
  height: 14px;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
  z-index: 2;
}
body.mickey-active .hw-mk-cradle span {
  width: 40px;
  height: 14px;
  background:
    radial-gradient(ellipse at 50% 30%, #ff7a6a 0%, #a81810 80%, #4a0706 100%);
  border: 1px solid #4a0706;
  border-radius: 20px 20px 2px 2px;
  box-shadow: inset 0 2px 2px #ffffff60, 0 2px 4px #00000060;
}

/* Rotary dial face — surrounds the LCD */
body.mickey-active .hw-mk-dial {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #e8e8e8 40%, #a0a0a0 80%, #606060 100%);
  border: 4px solid #4a0706;
  box-shadow:
    inset 0 4px 8px #ffffff80,
    inset 0 -6px 12px #808080,
    0 6px 14px #00000060;
  z-index: 1;
  pointer-events: none;
}
body.mickey-active .hw-mk-dial::before {
  /* inner finger-stop ring */
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #f0f0f0 50%, #c0c0c0 100%);
  box-shadow: inset 0 2px 3px #808080;
}
body.mickey-active .hw-mk-dial::after {
  /* finger stop notch at bottom */
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 14px;
  background: #2a2a2a;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px #505050;
}

body.mickey-active .hw-mk-dial-ring {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
}
body.mickey-active .hw-mk-dial-num {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #d8d8d8 60%, #a0a0a0 100%);
  border: 1px solid #808080;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 -2px 2px #00000020,
    inset 0 2px 2px #ffffffa0;
  transform: rotate(calc(var(--i) * -36deg + 162deg)) translateY(-92px) rotate(calc(var(--i) * 36deg - 162deg));
}
body.mickey-active .hw-mk-dial-num em {
  font-family: 'Georgia', serif;
  font-size: 15px;
  font-weight: bold;
  font-style: normal;
  color: #1a1a1a;
}

/* Brand label under LCD */
body.mickey-active .hw-mk-brand {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}
body.mickey-active .hw-mk-brand-text {
  font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
  font-size: 22px;
  color: #ffd700;
  text-shadow: 0 1px 0 #4a0706, 0 2px 4px #00000080;
  font-weight: bold;
}
body.mickey-active .hw-mk-brand-sub {
  font-family: 'Georgia', serif;
  font-size: 8px;
  font-style: italic;
  letter-spacing: 0.15em;
  color: #ffd70080;
}

/* Coiled cord decoration on left */
body.mickey-active .hw-mk-cord {
  position: absolute;
  left: -18px;
  top: 100px;
  width: 26px;
  height: 180px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 4px,
      #1a1a1a 4px 7px,
      transparent 7px 10px
    );
  border-radius: 6px;
  opacity: 0.6;
  pointer-events: none;
}

/* Yellow shoe base at the bottom */
body.mickey-active .hw-mk-feet {
  position: absolute;
  bottom: -18px;
  left: 20px;
  right: 20px;
  height: 34px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
body.mickey-active .hw-mk-feet span {
  width: 45%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, #ffd700 0%, #c89800 70%, #805a00 100%);
  border: 2px solid #4a0706;
  border-radius: 60% 60% 22% 22% / 40% 40% 100% 100%;
  box-shadow:
    inset 0 2px 4px #fff5a0,
    inset 0 -3px 4px #805a00,
    0 6px 12px #00000060;
}

/* ---- Hide real chrome; center real content inside the dial ---- */

body.mickey-active #player.has-hardware .title-bar {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

/* LCD sits dead-center in the dial face */
body.mickey-active #player.has-hardware .lcd-section {
  position: relative;
  z-index: 5;
  margin: 86px auto 0;
  width: 180px;
  max-width: 180px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a0505 0%, #0a0204 100%);
  border: 2px solid #4a0706;
  border-radius: 6px;
  box-shadow:
    inset 0 0 12px #00000080,
    0 0 0 1px #ffd70060,
    0 3px 8px #00000080;
}

body.mickey-active #player.has-hardware .lcd-time-digits,
body.mickey-active #player.has-hardware .lcd-marquee {
  color: #ffd700;
  text-shadow: 0 0 4px #ffd70080, 0 0 10px #ffb00060;
}

/* Visualizer + seek bar tucked under the dial */
body.mickey-active #player.has-hardware .viz-container,
body.mickey-active #player.has-hardware .seek-bar-container {
  position: relative;
  z-index: 5;
  max-width: 60%;
  margin: 4px auto;
  background: #0a0204;
  border-radius: 4px;
  border: 1px solid #4a0706;
}

body.mickey-active #player.has-hardware .controls-section,
body.mickey-active #player.has-hardware .feature-bar {
  position: relative;
  z-index: 5;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  body.mickey-active #player.has-hardware { padding: 100px 20px 80px 20px; }
  body.mickey-active .hw-mk-ears { width: 180px; height: 90px; top: -44px; }
  body.mickey-active .hw-mk-ear { width: 70px; height: 70px; }
  body.mickey-active .hw-mk-dial { width: 210px; height: 210px; top: 78px; }
  body.mickey-active .hw-mk-dial-num { width: 28px; height: 28px; margin: -14px 0 0 -14px; transform: rotate(calc(var(--i) * -36deg + 162deg)) translateY(-74px) rotate(calc(var(--i) * 36deg - 162deg)); }
  body.mickey-active .hw-mk-dial-num em { font-size: 12px; }
  body.mickey-active #player.has-hardware .lcd-section { width: 140px; max-width: 140px; margin-top: 74px; }
}
