:root {
  --f1: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --f2: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --c4: #f5f5f7;
  --c5: rgba(235, 235, 245, 0.62);
  --c6: #0a84ff;
  --c7: #5e5ce6;
  --c8: #64d2ff;
  --glass-bg: rgba(28, 28, 36, 0.56);
  --glass-bg-heavy: rgba(20, 20, 26, 0.76);
  --glass-card: rgba(38, 38, 48, 0.48);
  --glass-card-hover: rgba(52, 52, 66, 0.62);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hi: rgba(255, 255, 255, 0.24);
  --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ok: #30d158;
  --er: #ff453a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #050508;
  color: var(--c4);
  font-family: var(--f1);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
}

button, input, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

/* Apple iOS 18 Mesh Wallpaper + Dynamic Album/Game Blur Layer */
#ios-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, var(--wp-1, rgba(10, 132, 255, 0.38)) 0%, transparent 52%),
    radial-gradient(circle at 82% 22%, var(--wp-2, rgba(94, 92, 230, 0.34)) 0%, transparent 55%),
    radial-gradient(circle at 50% 85%, var(--wp-3, rgba(191, 90, 242, 0.26)) 0%, transparent 60%),
    linear-gradient(180deg, #0b0c14 0%, #050508 100%);
  transition: background 0.8s ease;
}

body[data-wp="crimson"] #ios-wallpaper {
  --wp-1: rgba(255, 55, 95, 0.4);
  --wp-2: rgba(229, 56, 59, 0.32);
  --wp-3: rgba(255, 159, 10, 0.22);
}

body[data-wp="titanium"] #ios-wallpaper {
  --wp-1: rgba(142, 142, 147, 0.28);
  --wp-2: rgba(99, 99, 102, 0.24);
  --wp-3: rgba(72, 72, 74, 0.22);
}

body[data-wp="emerald"] #ios-wallpaper {
  --wp-1: rgba(48, 209, 88, 0.34);
  --wp-2: rgba(10, 132, 255, 0.28);
  --wp-3: rgba(100, 210, 255, 0.22);
}

body[data-wp="oled"] #ios-wallpaper {
  --wp-1: rgba(255, 255, 255, 0.04);
  --wp-2: rgba(255, 255, 255, 0.02);
  --wp-3: transparent;
}

#art-blur-bg {
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(210%) brightness(0.42);
  opacity: 0;
  transition: opacity 0.9s ease, background-image 0.6s ease;
}

#art-blur-bg.on {
  opacity: 0.85;
}

body.lite * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* iOS Top Status Bar & Interactive Dynamic Island */
#ios-statusbar {
  position: relative;
  z-index: 90;
  height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sb-left, .sb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  min-width: 160px;
}

.sb-right {
  justify-content: flex-end;
}

.sb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c4);
}

.sb-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--c4);
  transition: background 0.15s, transform 0.15s;
}

.sb-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

.sb-icon-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ios-battery {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ios-battery-body {
  width: 23px;
  height: 11.5px;
  border-radius: 3.5px;
  border: 1.4px solid rgba(255, 255, 255, 0.85);
  padding: 1.5px;
  display: flex;
}

.ios-battery-fill {
  width: 100%;
  height: 100%;
  border-radius: 1.5px;
  background: #30d158;
}

/* Dynamic Island (#dynamic-island) */
#dynamic-island {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  height: 34px;
  min-width: 175px;
  max-width: 380px;
  padding: 0 14px;
  border-radius: 99px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

#dynamic-island:hover {
  transform: translateX(-50%) scale(1.03);
  border-color: rgba(255, 255, 255, 0.26);
}

#dynamic-island.playing {
  min-width: 270px;
  padding: 0 10px 0 8px;
}

.di-art {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c6), var(--c7));
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.di-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#dynamic-island.playing .di-art {
  animation: diSpin 8s linear infinite;
}

@keyframes diSpin {
  to { transform: rotate(360deg); }
}

.di-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.di-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.di-eq i {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--c6);
  transition: height 0.15s;
}

#dynamic-island.playing .di-eq i:nth-child(1) { animation: eqBar 0.55s ease-in-out infinite alternate; }
#dynamic-island.playing .di-eq i:nth-child(2) { animation: eqBar 0.42s ease-in-out 0.15s infinite alternate; }
#dynamic-island.playing .di-eq i:nth-child(3) { animation: eqBar 0.62s ease-in-out 0.25s infinite alternate; }
#dynamic-island.playing .di-eq i:nth-child(4) { animation: eqBar 0.48s ease-in-out 0.08s infinite alternate; }

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Main Workspace Container (#w9k) */
#w9k {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#m8n {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Views (.v0w) */
.v0w {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.v0w.on {
  display: flex;
  flex-direction: column;
  animation: iosViewIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes iosViewIn {
  from { opacity: 0; transform: scale(0.985) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Floating iOS Springboard Glass Dock (#s3b) */
#s3b {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30, 30, 40, 0.62);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--glass-border-hi);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glass-spec);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-dock="left"] #s3b {
  left: 14px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  flex-direction: column;
}

body[data-dock="right"] #s3b {
  left: auto;
  right: 14px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  flex-direction: column;
}

#s3h {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 52px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s;
}

.d1k {
  position: relative;
  z-index: 1;
  min-width: 68px;
  height: 52px;
  padding: 0 12px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.18s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.d1k svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.d1k span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.d1k:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.d1k.on {
  color: #fff;
}

.d1k.on svg {
  stroke: var(--c6);
  filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.45));
}

/* Scrollable Page Container (.p4w) */
.p4w {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 28px 104px;
  overflow-y: auto;
  height: 100%;
}

/* iOS Large Title Header (.p4h) */
.p4h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.p4h-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.p4h h1, .p4h h2 {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.c2t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c5);
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
}

/* iOS Spotlight Search Input (.g3w) */
.g3w {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 260px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.g3w:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hi);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.g3w svg {
  width: 15px;
  height: 15px;
  stroke: var(--c5);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.g3w input {
  flex: 1;
  font-size: 13.5px;
  color: var(--c4);
  user-select: text;
}

.g3w input::placeholder { color: var(--c5); }

/* Apple Arcade Featured Hero Card (.yomi-hero) */
.yomi-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 20%, rgba(10, 132, 255, 0.28), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255, 55, 95, 0.24), transparent 55%),
    var(--glass-bg);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid var(--glass-border-hi);
  box-shadow: var(--shadow-lg), var(--glass-spec);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yomi-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.yomi-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c8);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yomi-hero-meta h3 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
}

.yomi-hero-meta p {
  color: var(--c5);
  font-size: 13px;
  max-width: 540px;
  line-height: 1.45;
}

.hero-badges {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.ios-play-pill {
  height: 40px;
  padding: 0 24px;
  border-radius: 99px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.22);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s;
  flex-shrink: 0;
}

.ios-play-pill:hover {
  transform: scale(1.04);
  filter: brightness(0.95);
}

/* Category Filter Bar (.cat-pills) */
.cat-pills {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cat-pill {
  height: 32px;
  padding: 0 15px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--c5);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.18s;
}

.cat-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.cat-pill.on {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18);
}

/* iPhone App Store / Apple Arcade Squircle Game Grid (.g9r / .g4c) */
.g9r {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.g4c {
  position: relative;
  background: var(--glass-card);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), var(--glass-spec);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s, box-shadow 0.24s;
}

.g4c:hover {
  transform: translateY(-5px) scale(1.015);
  background: var(--glass-card-hover);
  border-color: var(--glass-border-hi);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), var(--glass-spec);
}

.g4-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.g4-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.g4c:hover .g4-art-wrap img,
.g4c:hover .g4-art {
  transform: scale(1.05);
}

.g4-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.g4-glyph {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.g4-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2.5px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.g4f {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s, color 0.15s;
}

.g4c:hover .g4f, .g4f.on {
  opacity: 1;
}

.g4f.on { color: #ffd60a; }
.g4f:hover { transform: scale(1.12); color: #fff; }
.g4f svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.g4f.on svg { fill: currentColor; }

.g4-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.g4-meta {
  min-width: 0;
  flex: 1;
}

.g4n {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4-sub {
  font-size: 11px;
  color: var(--c5);
  text-transform: capitalize;
}

.g4-get {
  height: 26px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.g4c:hover .g4-get {
  background: var(--c6);
  color: #fff;
}

/* In-App iOS Fullscreen Game Sheet (#g8p) */
#g8p {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  z-index: 200;
  animation: iosSheetUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#g8p[hidden] {
  display: none !important;
}

@keyframes iosSheetUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.g8b {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  background: rgba(22, 22, 28, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.g8-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c4);
  transition: background 0.15s;
}

.g8-back:hover { background: rgba(255, 255, 255, 0.15); }
.g8-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.g8b > span {
  flex: 1;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n8b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--c4);
  transition: background 0.15s, transform 0.12s;
}

.n8b:hover { background: rgba(255, 255, 255, 0.16); transform: scale(1.05); }
.n8b svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

#g8l {
  position: absolute;
  inset: 50px 0 0 0;
  background: #060609;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 3;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

#g8l.hid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#g8g {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: blur(85px) saturate(190%);
  opacity: 0.34;
  pointer-events: none;
}

#g8i {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  animation: g8f 2.4s ease-in-out infinite;
}

@keyframes g8f {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.g8n {
  position: relative;
  font-size: 17px;
  font-weight: 700;
}

.g8q {
  position: relative;
  width: 190px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.g8q > i {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, var(--c6), var(--c8));
  border-radius: 99px;
  animation: g8s 1.15s ease-in-out infinite;
  transition: width 0.2s ease;
}

.g8q.determinate > i {
  animation: none;
}

@keyframes g8s {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.g8s {
  position: relative;
  font-size: 12px;
  color: var(--c5);
}

.g8k {
  position: relative;
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--glass-border-hi);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--c4);
}

#g8f_frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

/* =========================================================================
   APPLE MUSIC + am-lyrics / LRCLIB / TTML VIEW (#v-music / #p2m)
   ========================================================================= */
#m0g {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#m2k {
  background: var(--glass-bg);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--glass-border-hi);
  box-shadow: var(--shadow-lg), var(--glass-spec);
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#m2c {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(94, 92, 230, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#m2k.playing #m2c {
  transform: scale(1.02);
}

#m2c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#m4w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#m4n {
  min-width: 0;
  flex: 1;
}

#m4t {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#m4a {
  font-size: 13px;
  color: var(--c5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Lyrics Toggle Button (#m3y) */
#m3y {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--c5);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}

#m3y:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

#m3y.on {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

#m3y svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Scrub Progress & Volume Sliders */
#m7r, #m9r {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--c5);
}

#m7s, #m9v {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

#m7s::-webkit-slider-thumb, #m9v::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Transport Buttons (#m1r) */
#m1r {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.m5b {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c4);
  transition: background 0.15s, transform 0.15s, color 0.15s;
}

.m5b:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.06);
}

.m5b.on {
  color: var(--c6);
  background: rgba(10, 132, 255, 0.16);
}

.m5b svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.m5p {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.22);
}

.m5p:hover {
  background: #f2f2f7;
  color: #000;
}

/* Right Music Panel (#m6w): Explore / Search / Synced Lyrics (#m6y) */
#m6w {
  background: var(--glass-bg);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), var(--glass-spec);
  border-radius: 26px;
  padding: 20px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.m6-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.m6-tab-group {
  display: flex;
  gap: 6px;
}

.m6-tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c5);
  transition: all 0.15s;
}

.m6-tab.on {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.m6-source-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--c5);
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}

/* Track Rows (.m6r) */
#m6l {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m6r {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: left;
  transition: background 0.15s, transform 0.15s;
}

.m6r:hover {
  background: rgba(255, 255, 255, 0.08);
}

.m6r.on {
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.35);
}

.m6n {
  width: 22px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--c5);
  text-align: center;
}

.m6c {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.m6c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m6i {
  flex: 1;
  min-width: 0;
}

.m6i b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m6i small {
  display: block;
  font-size: 12px;
  color: var(--c5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m6-dur {
  font-size: 12px;
  color: var(--c5);
  font-variant-numeric: tabular-nums;
}

/* am-lyrics Container (#m6y) */
#m6y {
  flex: 1;
  min-height: 400px;
  max-height: 480px;
  overflow-y: auto;
  border-radius: 18px;
  padding: 8px 12px;
  position: relative;
}

#m6y[hidden] {
  display: none !important;
}

#m6y am-lyrics {
  display: block;
  width: 100%;
  height: 420px;
  --am-lyrics-highlight-color: #ffffff;
  --am-lyrics-inactive-color: rgba(255, 255, 255, 0.36);
}

.y1m {
  color: var(--c5);
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
}

.y1c {
  padding: 12px 0 4px;
  font-size: 11px;
  opacity: 0.65;
}

/* =========================================================================
   iOS GROUPED INSET SETTINGS & CREDITS (#v-settings)
   ========================================================================= */
.s0w {
  max-width: 720px;
}

.s2g {
  background: var(--glass-bg);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), var(--glass-spec);
  border-radius: 22px;
  padding: 6px 20px;
  margin-bottom: 18px;
}

.s2g h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--glass-border);
}

.s1r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.s1r:last-child {
  border-bottom: 0;
}

.s1r strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.s1r small {
  display: block;
  font-size: 12px;
  color: var(--c5);
}

.s1r select, .s1r input[type="text"] {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border-hi);
  color: var(--c4);
  font-size: 12.5px;
  user-select: text;
}

.s1r select option {
  background: #181820;
  color: #fff;
}

/* iOS Toggle Switch (.s7t) */
.s7t {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  transition: background 0.22s;
  flex-shrink: 0;
}

.s7t i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.s7t.on {
  background: #30d158;
}

.s7t.on i {
  transform: translateX(20px);
}

/* Accent Color Swatches (.k9s / .k9d) */
.k9s {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.k9d {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.k9d:hover { transform: scale(1.14); }
.k9d.on { border-color: #fff; transform: scale(1.14); }

/* Exact Credits List Matching Screenshot (#cr0) */
#cr0 {
  list-style: none;
  width: 100%;
}

#cr0 li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

#cr0 li:last-child {
  border-bottom: 0;
}

#cr0 li a {
  font-weight: 600;
  color: #f2f2f3;
  transition: color 0.15s;
}

#cr0 li a:hover {
  color: var(--c6);
}

#cr0 li span {
  color: #8a8a93;
  font-size: 13.5px;
}

@media (max-width: 820px) {
  #m0g {
    grid-template-columns: 1fr;
  }
  .yomi-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .sb-left, .sb-right {
    min-width: auto;
  }
}
