/* 橙果短剧 · Apple Player 风格播放界面 */

#hgApp.hg {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 18px 0 8px;
  padding: clamp(18px, 2.6vw, 38px);
  overflow: hidden;
  color: var(--aw-surface-input);
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(255, 92, 58, 0.30), transparent 62%),
    radial-gradient(860px 520px at 100% -4%, rgba(255, 159, 10, 0.17), transparent 66%),
    linear-gradient(180deg, #0b0b0f 0%, #07070a 58%, #0a090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(22px, 3vw, 36px);
  box-shadow:
    0 40px 90px rgba(15, 10, 25, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#hgApp.hg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 240px at 78% 18%, rgba(255, 119, 68, 0.12), transparent 70%),
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.04) 38%, transparent 54%);
}

#hgApp.hg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 42%);
}

/* ---------- 顶部 ---------- */

#hgApp .hg-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

#hgApp .hg-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#hgApp .hg-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--aw-radius-lg);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(150deg, #ff8a3d 0%, #ff5a3c 46%, var(--aw-color-danger) 100%);
  box-shadow:
    0 14px 30px rgba(255, 86, 52, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 18px rgba(160, 28, 10, 0.24);
}

#hgApp .hg-brand-txt {
  min-width: 0;
}

#hgApp .hg-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 180, 150, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hgApp h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

#hgApp .hg-brand-txt p {
  margin: 7px 0 0;
  color: rgba(245, 245, 247, 0.58);
  font-size: 13.5px;
  line-height: 1.5;
}

#hgApp .hg-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

#hgApp .hg-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: var(--aw-radius-pill);
  background: rgba(48, 209, 88, 0.08);
  color: #7ee2a0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

#hgApp .hg-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aw-color-success);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
}

#hgApp .hg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--aw-radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.18s ease, background 0.18s ease;
}

#hgApp .hg-pill:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
#hgApp .hg-pill svg { width: 16px; height: 16px; }

/* ---------- 主布局 ---------- */

#hgApp .hg-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  align-items: start;
}

#hgApp .hg-player {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--aw-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#hgApp .hg-windowbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 8px 8px 6px;
}

#hgApp .hg-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

#hgApp .hg-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

#hgApp .hg-dots i:nth-child(2) { background: #febc2e; }
#hgApp .hg-dots i:nth-child(3) { background: var(--aw-color-success); }

#hgApp .hg-window-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

#hgApp .hg-window-title b {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

#hgApp .hg-window-title small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hgApp .hg-window-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

#hgApp .hg-window-actions button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

#hgApp .hg-window-actions button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
#hgApp .hg-window-actions svg { width: 14px; height: 14px; }

/* ---------- 屏幕 ---------- */

#hgApp .hg-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(500px, 64vh, 700px);
  overflow: hidden;
  border-radius: var(--aw-radius-lg);
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(255, 92, 58, 0.18), transparent 70%),
    #030304;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

#hgApp .hg-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.32s ease, box-shadow 0.32s ease;
}

#hgApp .hg-screen.phone {
  background:
    radial-gradient(420px 360px at 50% 12%, rgba(255, 125, 72, 0.22), transparent 72%),
    linear-gradient(180deg, #131318, #08080b);
}

#hgApp .hg-screen.phone iframe {
  width: 390px;
  max-width: 100%;
  border: 8px solid #1c1c1f;
  border-radius: var(--aw-radius-xl);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

#hgApp .hg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 16%, transparent 72%, rgba(0, 0, 0, 0.54));
}

#hgApp .hg-screen-note {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--aw-radius-pill);
  color: rgba(255, 255, 255, 0.56);
  background: rgba(10, 10, 12, 0.46);
  font-size: 10px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

/* ---------- Apple 玻璃控制条 ---------- */

#hgApp .hg-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--aw-radius-pill);
  background: rgba(26, 26, 29, 0.58);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  transform: translateX(-50%);
}

#hgApp .hg-ctrl {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

#hgApp .hg-ctrl:hover { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-1px); }
#hgApp .hg-ctrl:active { transform: scale(0.94); }
#hgApp .hg-ctrl.on { color: #ffb088; background: rgba(255, 120, 70, 0.22); border-color: rgba(255, 140, 95, 0.38); }
#hgApp .hg-ctrl svg { width: 18px; height: 18px; }

#hgApp .hg-ctrl-main {
  width: 54px;
  height: 54px;
  margin: 0 2px;
  border: 0;
  color: #fff;
  background: linear-gradient(150deg, #ff9a48 0%, #ff5a3c 52%, var(--aw-color-danger) 100%);
  box-shadow:
    0 10px 26px rgba(255, 80, 44, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -6px 14px rgba(150, 26, 8, 0.28);
}

#hgApp .hg-ctrl-main:hover {
  background: linear-gradient(150deg, #ffab60 0%, #ff6647 52%, var(--aw-color-danger) 100%);
  transform: translateY(-1px) scale(1.02);
}

#hgApp .hg-ctrl-main svg { width: 22px; height: 22px; margin-left: 3px; }

#hgApp .hg-dock svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#hgApp .hg-ctrl-main svg path {
  fill: currentColor;
  stroke: none;
}

/* ---------- 屏幕下方信息条 ---------- */

#hgApp .hg-underbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 10px 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11.5px;
}

#hgApp .hg-underbar > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.4;
}

#hgApp .hg-ios-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8a4c;
  box-shadow: 0 0 0 3px rgba(255, 133, 74, 0.15);
}

#hgApp .hg-viewswitch {
  display: flex;
  flex: none;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--aw-radius-pill);
  background: rgba(255, 255, 255, 0.05);
}

#hgApp .hg-viewswitch button {
  height: 27px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--aw-radius-pill);
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

#hgApp .hg-viewswitch button.on {
  color: #1b0d06;
  background: var(--aw-surface-input);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

/* ---------- 右侧 ---------- */

#hgApp .hg-side {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

#hgApp .hg-status-card { grid-column: 1; grid-row: 1 / span 2; }
#hgApp .hg-qr-card { grid-column: 2; grid-row: 1; }
#hgApp .hg-tip { grid-column: 2; grid-row: 2; }

#hgApp .hg-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--aw-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#hgApp .hg-status-card { padding: 18px; }

#hgApp .hg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

#hgApp .hg-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: var(--aw-radius-pill);
  color: #82e6a5;
  background: rgba(48, 209, 88, 0.08);
  font-size: 10px;
  letter-spacing: 0;
}

#hgApp .hg-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

#hgApp .hg-state.off { color: #ffb08a; border-color: rgba(255, 138, 76, 0.24); background: rgba(255, 138, 76, 0.08); }

#hgApp .hg-app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}

#hgApp .hg-app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--aw-radius-md);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(150deg, #ff9a48, #ff5a3c 60%, var(--aw-color-danger));
  box-shadow: 0 10px 22px rgba(255, 80, 44, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#hgApp .hg-app-txt { min-width: 0; flex: 1; }
#hgApp .hg-app-txt b { display: block; color: #fff; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
#hgApp .hg-app-txt small { display: block; margin-top: 3px; color: rgba(255, 255, 255, 0.42); font-size: 10.5px; }

#hgApp .hg-app-badge {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--aw-radius-sm);
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#hgApp .hg-card-copy {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11.5px;
  line-height: 1.72;
}

#hgApp .hg-card-copy b { color: rgba(255, 255, 255, 0.82); font-weight: 500; word-break: break-all; }

#hgApp .hg-card-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

#hgApp .hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--aw-radius-md);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

#hgApp .hg-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
#hgApp .hg-btn svg { width: 14px; height: 14px; }
#hgApp .hg-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

#hgApp .hg-btn-primary {
  border: 0;
  color: #1c0d06;
  background: linear-gradient(150deg, #ffa35a, #ff6a48);
  box-shadow: 0 8px 20px rgba(255, 86, 52, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

#hgApp .hg-btn-primary:hover { background: linear-gradient(150deg, #ffb476, #ff7a58); }
#hgApp .hg-btn-primary svg path { fill: currentColor; stroke: none; }

#hgApp .hg-facts {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

#hgApp .hg-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 10.5px;
}

#hgApp .hg-facts span { color: rgba(255, 255, 255, 0.34); }
#hgApp .hg-facts b { color: rgba(255, 255, 255, 0.72); font-weight: 500; text-align: right; }

#hgApp .hg-qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

#hgApp .hg-qr-copy { min-width: 0; flex: 1; }
#hgApp .hg-qr-copy > span { color: rgba(255, 170, 130, 0.62); font-size: 9px; font-weight: 700; letter-spacing: 0.15em; }
#hgApp .hg-qr-copy b { display: block; margin: 6px 0 7px; color: #fff; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
#hgApp .hg-qr-copy small { display: block; color: rgba(255, 255, 255, 0.44); font-size: 10.5px; line-height: 1.6; }

#hgApp .hg-qr {
  flex: none;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  padding: 9px;
  border-radius: var(--aw-radius-lg);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

#hgApp .hg-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }

#hgApp .hg-tip {
  padding: 15px 17px;
  border: 1px dashed rgba(255, 160, 110, 0.22);
  border-radius: var(--aw-radius-lg);
  background: rgba(255, 130, 70, 0.05);
}

#hgApp .hg-tip span { color: #ffb48a; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
#hgApp .hg-tip p { margin: 5px 0 0; color: rgba(255, 255, 255, 0.46); font-size: 10.5px; line-height: 1.65; }

/* ---------- 底部三种看法 ---------- */

#hgApp .hg-modes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#hgApp .hg-modes article {
  padding: 15px 17px 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--aw-radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

#hgApp .hg-mode-no { display: block; margin-bottom: 7px; color: rgba(255, 138, 90, 0.65); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; }
#hgApp .hg-modes b { display: block; color: rgba(255, 255, 255, 0.88); font-size: 12.5px; font-weight: 600; }
#hgApp .hg-modes p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.40); font-size: 10.5px; line-height: 1.62; }

/* ---------- Toast ---------- */

#hgApp .hg-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 999;
  max-width: min(86vw, 420px);
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--aw-radius-pill);
  color: #fff;
  background: rgba(22, 22, 25, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

#hgApp .hg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 全屏 ---------- */

#hgApp .hg-screen:fullscreen,
#hgApp .hg-screen:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  background: #000;
}

#hgApp .hg-screen:fullscreen iframe,
#hgApp .hg-screen:-webkit-full-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

#hgApp .hg-screen:fullscreen .hg-screen-note { display: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 820px) {
  #hgApp.hg { margin: 10px 0 6px; padding: 16px; border-radius: var(--aw-radius-lg); }
  #hgApp .hg-head { align-items: flex-start; margin-bottom: 16px; }
  #hgApp .hg-mark { width: 48px; height: 48px; border-radius: var(--aw-radius-md); font-size: 21px; }
  #hgApp .hg-head-side .hg-live { display: none; }
  #hgApp .hg-pill { height: 36px; padding: 0 13px; font-size: 11.5px; }
  #hgApp .hg-window-title small { display: none; }
  #hgApp .hg-screen { height: clamp(470px, 66vh, 640px); border-radius: var(--aw-radius-md); }
  #hgApp .hg-screen.phone { background: #030304; }
  #hgApp .hg-screen.phone iframe { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  #hgApp .hg-screen-note { display: none; }
  #hgApp .hg-dock { bottom: 12px; gap: 5px; padding: 6px; }
  #hgApp .hg-ctrl { width: 38px; height: 38px; }
  #hgApp .hg-ctrl svg { width: 16px; height: 16px; }
  #hgApp .hg-ctrl-main { width: 50px; height: 50px; }
  #hgApp .hg-underbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 4px 3px; }
  #hgApp .hg-side { display: flex; flex-direction: column; }
  #hgApp .hg-modes { grid-template-columns: minmax(0, 1fr); }
  #hgApp .hg-toast { bottom: 22px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  #hgApp.hg { padding: 13px; border-radius: var(--aw-radius-lg); }
  #hgApp .hg-head { gap: 10px; }
  #hgApp .hg-brand { gap: 11px; }
  #hgApp .hg-eyebrow { display: none; }
  #hgApp h1 { font-size: 26px; }
  #hgApp .hg-brand-txt p { margin-top: 4px; font-size: 11.5px; }
  #hgApp .hg-head-side { gap: 0; }
  #hgApp .hg-pill { height: 33px; padding: 0 10px; font-size: 10.5px; gap: 5px; }
  #hgApp .hg-pill svg { width: 13px; height: 13px; }
  #hgApp .hg-player { padding: 8px; border-radius: var(--aw-radius-lg); }
  #hgApp .hg-windowbar { height: 40px; }
  #hgApp .hg-dots i { width: 8px; height: 8px; }
  #hgApp .hg-screen { height: clamp(480px, 66vh, 580px); }
  #hgApp .hg-dock { bottom: 10px; }
  #hgApp .hg-ctrl { width: 36px; height: 36px; }
  #hgApp .hg-ctrl-main { width: 48px; height: 48px; }
  #hgApp .hg-card { border-radius: var(--aw-radius-lg); }
  #hgApp .hg-qr-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  #hgApp .hg-qr { width: 118px; height: 118px; padding: 8px; border-radius: var(--aw-radius-md); }
  #hgApp .hg-qr-copy b { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  #hgApp * { transition: none !important; }
}
