/* samaOS
   A dark desktop built on translucent materials. Surfaces are neutral
   graphite and get lighter as they rise; the only colour is the wallpaper
   (which is the CPU) and one blue for anything you can act on. */

:root {
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --accent: #0a84ff; --danger: #ff453a; --ok: #32d74b; --wait: #ff9f0a;
  --fg: #f2f2f5; --fg2: rgba(235, 235, 245, 0.62); --fg3: rgba(235, 235, 245, 0.38);
  --mat: rgba(34, 35, 40, 0.72); --mat-hi: rgba(52, 53, 60, 0.7); --line: rgba(255, 255, 255, 0.09);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --blur: blur(28px) saturate(1.8);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0c0f; color: var(--fg); font: 400 13px/1.45 var(--sys); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(10, 132, 255, 0.6); outline-offset: 2px; }
.os { position: fixed; inset: 0; }

/* the wallpaper: a tiny canvas the scheduler paints, blown up and blurred */
.wall { position: absolute; inset: -6%; width: 112%; height: 112%; filter: blur(46px) saturate(1.25); opacity: 0; transition: opacity 1.2s ease; }
.up .wall { opacity: 1; }
.wall-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(11, 12, 15, 0.1), rgba(11, 12, 15, 0.72)); }
.wall-note { position: absolute; right: 18px; bottom: 96px; margin: 0; font-size: 11.5px; color: var(--fg3); }

/* menu bar */
.menubar { position: absolute; z-index: 5000; top: 0; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 2px; padding: 0 10px;
  background: rgba(22, 23, 27, 0.5); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 0.5px 0 var(--line); }
.mb-item { padding: 0 10px; height: 24px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 13px; background: none; border: 0; font-variant-numeric: tabular-nums; }
.mb-item.sys { font-weight: 700; }
.mb-item.sys:hover, .mb-item.sys[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
.mb-item.app { font-weight: 600; }
.mb-right { margin-left: auto; display: flex; color: var(--fg2); }
.menu { position: absolute; top: 30px; left: 8px; min-width: 250px; padding: 6px; border-radius: 12px; background: rgba(40, 41, 47, 0.78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); display: grid; }
.menu button, .menu a { text-align: left; background: none; border: 0; color: var(--fg); text-decoration: none; padding: 0 10px; min-height: 30px; display: flex; align-items: center; border-radius: 6px; font-size: 13px; }   /* 12 outer − 6 padding */
.menu button:hover, .menu a:hover { background: var(--accent); }
.menu hr { border: 0; height: 0.5px; background: var(--line); margin: 5px 8px; }

/* dock */
.dock { position: absolute; z-index: 4000; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 26px;
  background: rgba(40, 41, 47, 0.45); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  opacity: 0; translate: 0 20px; transition: opacity 600ms var(--spring), translate 600ms var(--spring); }
.up .dock { opacity: 1; translate: 0 0; }
.dock-app { position: relative; width: 58px; height: 58px; padding: 0; border: 0; background: none; display: grid; place-items: center; transition: transform 200ms var(--spring); }
.dock-app .tile { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;          /* 26 outer − 8 padding */
  background: linear-gradient(180deg, #3a3b42, #24252a); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35); transition: transform 200ms var(--spring); }
.dock-app svg { width: 26px; height: 26px; fill: none; stroke: #f2f2f5; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock-app:hover .tile { transform: translateY(-6px) scale(1.08); }
.dock-app:active .tile { transform: scale(0.97); }
.dock-app .tip { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; background: rgba(40, 41, 47, 0.85);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); opacity: 0; pointer-events: none; transition: opacity 150ms; }
.dock-app:hover .tip, .dock-app:focus-visible .tip { opacity: 1; }
.dock-app .dot { position: absolute; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg2); opacity: 0; transition: opacity 200ms; }
.dock-app.running .dot { opacity: 1; }

/* windows */
.desk { position: absolute; inset: 0; }
.win { position: absolute; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--mat); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(255, 255, 255, 0.14) inset; }
.win.focused { background: var(--mat-hi); box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.2) inset; }
.bar { height: 40px; flex: none; display: flex; align-items: center; padding: 0 6px; cursor: default; user-select: none; touch-action: none; position: relative; }
.light { width: 34px; height: 40px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.light i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: background 150ms; }
.win.focused .light.close i { background: #ff5f57; } .win.focused .light.min i { background: #febc2e; }
.light:hover i { filter: brightness(1.15); }
.bar .title { position: absolute; left: 80px; right: 80px; text-align: center; font-weight: 600; font-size: 13px; color: var(--fg2); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.focused .bar .title { color: var(--fg); }
.body { flex: 1; min-height: 0; display: flex; }
.body > * { flex: 1; min-width: 0; }
.grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; }

/* buttons: one blue for the main action, everything else quiet */
.btn { min-height: 30px; padding: 0 14px; border: 0; border-radius: 8px; font-weight: 600; font-size: 13px; transition: transform 160ms var(--spring), background-color 160ms; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.quiet { background: rgba(255, 255, 255, 0.1); color: var(--fg); }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.16); }
.btn.danger { background: var(--danger); color: #fff; }

/* terminal: content, so it's opaque */
.term { display: flex; flex-direction: column; background: #121317; font: 400 13px/1.55 var(--mono); }
.t-out { flex: 1; overflow-y: auto; padding: 10px 14px 0; scrollbar-width: thin; }
.t-out p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.t-out .echo { color: var(--fg); } .t-out .dim { color: var(--fg3); } .t-out .err { color: #ff7b72; }
.t-in { display: flex; align-items: center; gap: 8px; padding: 4px 14px 12px; }
.t-pr { color: var(--fg3); white-space: nowrap; }
.t-in input { flex: 1; min-width: 0; min-height: 28px; font: inherit; color: #fff; background: none; border: 0; outline: 0; caret-color: var(--accent); }
.t-in.busy .t-pr, .t-in.busy input { visibility: hidden; }
.t-in.busy::before { content: 'running · Ctrl-C to stop'; color: var(--fg3); font-size: 12px; }

/* editor */
.ed { display: flex; flex-direction: column; background: #15161a; }
.ed-tools { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 0.5px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.ed-path { flex: 1; min-width: 0; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, 0.07); color: var(--fg); font: 500 13px var(--mono); outline: 0; }
.ed-path:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.5); }
.ed-state { font-size: 12px; color: var(--fg3); min-width: 46px; }
.ed-main { flex: 1; min-height: 0; display: flex; }
.ed-gut { margin: 0; padding: 12px 10px 12px 0; width: 46px; flex: none; text-align: right; color: var(--fg3); font: 400 13px/1.6 var(--mono); overflow: hidden; user-select: none; background: rgba(255, 255, 255, 0.02); font-variant-numeric: tabular-nums; }
.ed-text { flex: 1; resize: none; border: 0; outline: 0; padding: 12px 14px; background: none; color: var(--fg); font: 400 13px/1.6 var(--mono); tab-size: 2; white-space: pre; caret-color: var(--accent); }
.ed-out { height: 34%; min-height: 90px; display: flex; flex-direction: column; border-top: 0.5px solid var(--line); background: #111216; }
.ed-out-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 14px; font-size: 12px; font-weight: 600; color: var(--fg2); }
.ed-log { flex: 1; overflow-y: auto; padding: 0 14px 10px; font: 400 12.5px/1.55 var(--mono); }
.ed-log p { margin: 0; white-space: pre-wrap; } .ed-log .dim { color: var(--fg3); } .ed-log .err { color: #ff7b72; }

/* files */
.files { display: flex; flex-direction: column; background: rgba(18, 19, 23, 0.5); }
.f-tools { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 0.5px solid var(--line); }
.f-tools .btn { font-size: 18px; min-width: 44px; }
.f-path { font-weight: 600; color: var(--fg2); font-family: var(--mono); font-size: 12.5px; }
.f-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.f-list li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 8px; cursor: default; }
.f-list li:hover { background: rgba(255, 255, 255, 0.05); }
.f-list li.sel { background: var(--accent); }
.f-list li.sel em { color: rgba(255, 255, 255, 0.8); }
.f-list b { font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.f-list em { font-style: normal; font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
.f-ic { width: 22px; height: 22px; display: grid; place-items: center; }
.f-ic.dir svg { width: 20px; height: 20px; fill: rgba(10, 132, 255, 0.35); stroke: #6cb4ff; stroke-width: 1.5; }
.f-ic.file { width: 16px; height: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); margin-left: 3px; }

/* monitor */
.mon { display: flex; flex-direction: column; overflow: auto; background: rgba(18, 19, 23, 0.5); }
.m-head { padding: 12px 14px 8px; border-bottom: 0.5px solid var(--line); }
.m-graph { width: 100%; height: 70px; display: block; border-radius: 8px; background: rgba(0, 0, 0, 0.35); }
.m-sum { margin: 8px 0 0; color: var(--fg2); font-variant-numeric: tabular-nums; }
.m-sum b { color: var(--fg); font-weight: 600; }
.m-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.m-table th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.04em; color: var(--fg3); padding: 8px 10px; }
.m-table td { padding: 0 10px; height: 38px; border-top: 0.5px solid var(--line); }
.m-table td:first-child { width: 20px; } .m-table td i { display: block; width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 70% 60%); }
.m-table .st { color: var(--ok); }
.m-table .sleeping .st { color: var(--wait); }
.m-table .done { color: var(--fg3); } .m-table .done .st { color: var(--fg3); }
.m-table td:last-child { text-align: right; }
.m-empty { color: var(--fg3); padding: 16px 14px; margin: 0; }

/* display */
.disp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(12, 13, 16, 0.7); }
.disp canvas { width: min(100%, 384px); aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; background: #000; box-shadow: 0 0 0 0.5px var(--line); }
.d-foot { width: min(100%, 384px); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--fg3); }

/* about */
.about { position: absolute; z-index: 6000; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); }
.about-card { width: min(360px, calc(100vw - 32px)); padding: 26px 24px 20px; border-radius: 20px; text-align: center; background: rgba(40, 41, 47, 0.82); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); }
.about-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #3a3b42, #24252a); }
.about-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.about h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.about p { margin: 0 0 10px; color: var(--fg2); line-height: 1.5; }
.about .about-by { font-size: 12px; color: var(--fg3); }
.about .btn { min-height: 44px; width: 100%; margin-top: 6px; border-radius: 12px; }

/* boot */
.boot { position: absolute; z-index: 9000; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; background: #000; transition: opacity 700ms ease; }
.boot b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.boot i { width: 160px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.boot i span { display: block; height: 100%; width: 100%; background: #fff; border-radius: 2px; transform-origin: left; animation: load 1s var(--spring) both; }
@keyframes load { from { transform: scaleX(0); } }
.boot.gone { opacity: 0; pointer-events: none; }

/* phones: windows fill the screen between the menu bar and the dock */
@media (max-width: 700px) {
  .win { left: 6px !important; right: 6px; top: 36px !important; width: auto !important; height: calc(100% - 128px) !important; }
  .grip { display: none; }
  .wall-note { display: none; }
  .dock-app { width: 50px; height: 50px; } .dock-app .tile { width: 46px; height: 46px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall, .dock, .boot { transition: opacity 200ms; }
  .boot i span { animation: none; }
  .dock-app:hover .tile { transform: none; }
}

/* resume */
.resume { overflow-y: auto; padding: 22px 22px 26px; background: rgba(18, 19, 23, 0.55); scrollbar-width: thin; }
.r-head { padding-bottom: 18px; margin-bottom: 6px; border-bottom: 0.5px solid var(--line); }
.r-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.r-head p { margin: 4px 0 14px; color: var(--fg2); }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.r-actions .btn { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; border-radius: 10px; }
.r-sec { margin: 16px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3); }
.r-job { padding: 14px 0; border-bottom: 0.5px solid var(--line); }
.r-job header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.r-job header b { font-size: 16px; font-weight: 600; }
.r-job header span { font-size: 12px; color: var(--fg3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-role { margin: 2px 0 8px; color: var(--fg2); font-size: 12.5px; }
.r-job ul { margin: 0; padding-left: 17px; display: grid; gap: 5px; }
.r-job li { line-height: 1.5; color: rgba(242, 242, 245, 0.88); }
.r-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.r-links a { color: #6cb4ff; text-decoration: none; font-weight: 500; }
.r-links a:hover { text-decoration: underline; }
.r-foot { margin: 14px 0 0; color: var(--fg3); font-size: 12px; }

/* sims */
.sims { display: flex; flex-direction: column; background: #11131d; }
.sims iframe { flex: 1; width: 100%; border: 0; background: #11131d; }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 12px; color: var(--fg3); border-top: 0.5px solid var(--line); }
.s-foot .btn { display: inline-flex; align-items: center; text-decoration: none; }
.r-sims-row { margin: 10px 0 2px; }
.r-st { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 2px; color: var(--fg2); background: rgba(255, 255, 255, 0.08); }

/* the resume notification */
.notify { position: absolute; z-index: 5500; top: 40px; left: 50%; width: min(460px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(40, 41, 47, 0.78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  transform: translateX(-50%); animation: notifyIn 500ms 1400ms var(--spring) both; transition: opacity 300ms, transform 400ms var(--spring); }
.notify.out { opacity: 0; transform: translate(-50%, -16px); }
@keyframes notifyIn { from { opacity: 0; transform: translate(-50%, -24px) scale(0.96); } }
.n-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #3a3b42, #24252a); }   /* 18 − 12 padding, rounded to taste */
.n-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notify b { font-size: 13.5px; font-weight: 600; }
.notify p { margin: 2px 0 0; font-size: 12.5px; color: var(--fg2); line-height: 1.4; }
.n-go { white-space: nowrap; }
.n-x { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; font-size: 14px; line-height: 22px; color: var(--fg); background: rgba(70, 71, 78, 0.95); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 150ms; }
.notify:hover .n-x, .n-x:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .notify { animation: none; } }

/* resume, full screen: fills everything under the menu bar, text in a readable column */
.win.full { left: 0 !important; top: 30px !important; width: 100% !important; height: calc(100% - 30px) !important; border-radius: 0; z-index: 4500 !important;
  transition: left 400ms var(--spring), top 400ms var(--spring), width 400ms var(--spring), height 400ms var(--spring), border-radius 400ms var(--spring); }
.win.full .grip { display: none; }
.win.full .resume { padding: 40px max(24px, calc((100% - 760px) / 2)) 60px; font-size: 14.5px; }
.win.full .r-head h2 { font-size: 40px; }
.win.full .r-job header b { font-size: 18px; }
.win.full .r-job li { font-size: 15px; }
.r-full[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .win.full { transition: none; } }

/* accomplishments callout at the top of the resume */
.r-acc { margin: 16px 0 4px; padding: 14px 16px; border-radius: 14px; background: rgba(10, 132, 255, 0.12); box-shadow: inset 0 0 0 0.5px rgba(10, 132, 255, 0.45); }
.r-acc-h { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6cb4ff; }
.r-acc p:last-child { margin: 0; font-size: 15px; line-height: 1.5; }
.r-acc b { color: #fff; }
.r-acc .r-acc-sub { margin-top: 8px !important; }


/* Cadence, as it looks on the desktop */
.cdn { --neon-pink: #ff00ff; --neon-cyan: #00ffff; --neon-purple: #9d00ff; --album: #00e5ff;
  position: relative; display: flex; flex-direction: column; padding: 18px 22px 10px; overflow: hidden; color: #fff; }
.cdn .cn { position: absolute; width: 22px; height: 22px; z-index: 2; }
.cdn .c-tl { top: 6px; left: 6px; border-top: 3px solid var(--neon-cyan); border-left: 3px solid var(--neon-cyan); filter: drop-shadow(0 0 6px var(--neon-cyan)); }
.cdn .c-tr { top: 6px; right: 6px; border-top: 3px solid var(--neon-pink); border-right: 3px solid var(--neon-pink); filter: drop-shadow(0 0 6px var(--neon-pink)); }
.cdn .c-bl { bottom: 6px; left: 6px; border-bottom: 3px solid var(--neon-pink); border-left: 3px solid var(--neon-pink); filter: drop-shadow(0 0 6px var(--neon-pink)); }
.cdn .c-br { bottom: 6px; right: 6px; border-bottom: 3px solid var(--neon-cyan); border-right: 3px solid var(--neon-cyan); filter: drop-shadow(0 0 6px var(--neon-cyan)); }
.cdn-head { display: grid; gap: 1px; padding: 4px 6px 6px; }
.cdn-title { font: 600 15px 'Inter', var(--sys); }
.cdn-artist { font: 400 12.5px 'Inter', var(--sys); color: rgba(255, 255, 255, 0.6); }
.cdn-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 12px; }
.cdn-vis { position: relative; width: 200px; aspect-ratio: 1; }
.cdn-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cdn-arc { position: absolute; inset: 14%; width: 72%; height: 72%; transform: rotate(-90deg); }
.cdn-arc circle { fill: none; stroke-width: 7; }
.cdn-arc .arc-bg { stroke: rgba(255, 255, 255, 0.12); }
.cdn-arc .arc-fg { stroke: var(--album); stroke-linecap: round; filter: drop-shadow(0 0 6px var(--album)); transition: stroke-dashoffset 250ms linear, stroke 600ms; }
.cdn-art { position: absolute; inset: 22%; width: 56%; height: 56%; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55); }
.cdn-ctl { position: absolute; inset: 22%; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 50%; opacity: 0; transition: opacity 200ms; }
.cdn-vis:hover .cdn-ctl, .cdn-ctl:focus-within, .cdn:not(.playing) .cdn-ctl { opacity: 1; }
.cdn-ctl button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; font-size: 13px; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 160ms var(--spring); }
.cdn-ctl .cdn-play { width: 44px; height: 44px; font-size: 15px; }
.cdn-ctl button:active { transform: scale(0.94); }
.cdn-lines { position: relative; list-style: none; margin: 0 0 0 -10px; padding: 34px 0 34px 10px; display: grid; align-content: start; gap: 12px; align-self: stretch; height: 100%; box-sizing: border-box; overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.cdn-lines::-webkit-scrollbar { display: none; }
.cdn-lines li { cursor: pointer; opacity: 0.45; transition: opacity 300ms, transform 300ms; }
.cdn-lines li.active { opacity: 1; transform: translateX(4px); }
.cdn-lines li em { display: block; font-style: normal; font: 400 11.5px 'Inter', var(--sys); color: rgba(255, 255, 255, 0.55); margin-top: 2px; text-shadow: none; text-transform: none; letter-spacing: 0; }
.cdn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px 2px; font: 400 11.5px 'Inter', var(--sys); }
.cdn-foot a { color: rgba(255, 255, 255, 0.7); }
.cdn-styles { display: inline-flex; gap: 4px; }
.cdn-styles button { border: 0; border-radius: 6px; padding: 5px 9px; min-height: 28px; font: 600 11px 'Inter', var(--sys); color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.cdn-styles button.on { color: #fff; background: rgba(255, 255, 255, 0.18); }

/* style: cyberpunk billboard */
.cdn.cy-cyberpunk { background:
    linear-gradient(rgba(0, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(160deg, rgba(10, 14, 35, 0.97), rgba(22, 8, 42, 0.96));
  background-size: 22px 22px, 22px 22px, 100% 100%; box-shadow: inset 0 0 0 2px rgba(0, 255, 255, 0.55), inset 0 0 22px rgba(0, 255, 255, 0.14); }
.cy-cyberpunk .cdn-lines .lt { font: 700 17px/1.25 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--neon-pink);
  text-shadow: 0 0 5px var(--neon-pink), 0 0 12px var(--neon-pink), 0 0 30px var(--neon-purple); }
.cy-cyberpunk .cdn-lines li.active .lt { color: var(--neon-cyan); text-shadow: 0 0 5px var(--neon-cyan), 0 0 12px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 50px var(--neon-pink); animation: cdnflicker 0.15s infinite alternate; }
@keyframes cdnflicker { 50% { opacity: 0.94; } }

/* style: ethereal glass */
.cdn.cy-ethereal { background: radial-gradient(120% 120% at 20% 10%, rgba(255, 170, 200, 0.5), transparent 60%), radial-gradient(120% 120% at 90% 90%, rgba(90, 200, 230, 0.45), transparent 60%), linear-gradient(160deg, #37506b, #2a2340); }
.cy-ethereal .cn { display: none; }
.cy-ethereal .cdn-lines .lt { font: italic 400 21px/1.25 'Playfair Display', serif; color: rgba(255, 255, 255, 0.95); filter: blur(0.5px); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3); }
.cy-ethereal .cdn-lines li.active .lt { filter: none; color: #fff; text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5); }

/* style: retro terminal */
.cdn.cy-retro { background: radial-gradient(120% 100% at 50% 50%, #031a06, #000 85%); }
.cy-retro .cn { border-color: #00ff00 !important; filter: drop-shadow(0 0 6px #00ff00); }
.cy-retro .cdn-lines .lt { font: 400 17px 'Courier Prime', 'Courier New', monospace; color: #00ff00; text-shadow: 0 0 5px #00ff00, 0 0 10px rgba(0, 255, 0, 0.5); }
.cy-retro .cdn-lines .lt::before { content: '> '; opacity: 0.6; }
.cy-retro .cdn-lines li.active .lt::after { content: '█'; margin-left: 2px; animation: cdnblink 0.5s steps(1) infinite; }
@keyframes cdnblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cy-cyberpunk .cdn-lines li.active .lt, .cy-retro .cdn-lines li.active .lt::after { animation: none; } }
