/* Full Side: Ryan's vinyl player as a record player you can put anywhere on the desktop.
   The turntable is the original Full Side CSS, drawn at full size and scaled to fit. */
.fs {
  --fs-bg: #0a0a0a; --fs-surface: #141414; --fs-surface2: #1a1a1a; --fs-text: #e8e4df; --fs-dim: #6b6560;
  --fs-accent: #c44b2b; --fs-accent-glow: #e85d3a; --fs-gold: #c9a84c;
  position: fixed; z-index: 30; display: flex; width: 640px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
  background: var(--fs-bg); color: var(--fs-text); font-family: 'DM Mono', ui-monospace, monospace;
  border: 1px solid #222; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.fs[hidden] { display: none; }
.fs.moving { cursor: grabbing; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); }

/* Deck: the turntable on a plinth lit by the album art */
.fs-deck { position: relative; flex: 0 0 320px; min-height: 320px; overflow: hidden; cursor: grab; display: flex; align-items: center; justify-content: center; }
.fs-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.6) brightness(0.55); opacity: 0; transition: opacity 1.5s ease; transform: scale(1.3); }
.fs-bg.active { opacity: 1; }
.fs-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-bg-overlay { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.65) 100%); }
.fs-top { position: absolute; top: 10px; left: 12px; z-index: 12; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.fs-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; }
.fs-logo span { color: var(--fs-accent); }
.fs-viz { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.fs-viz i { width: 2.5px; height: 2px; background: var(--fs-accent); border-radius: 1px; opacity: 0.75; }
.fs-close { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; pointer-events: auto; position: relative; }
.fs-close::before { content: '×'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 11px/1 system-ui, sans-serif; color: rgba(0,0,0,0.6); opacity: 0; }
.fs-close:hover::before, .fs-close:focus-visible::before { opacity: 1; }
.fs-mini { width: 12px; height: 12px; border-radius: 50%; background: #febc2e; pointer-events: auto; position: relative; }
.fs-mini::before { content: '–'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 11px/1 system-ui, sans-serif; color: rgba(0,0,0,0.6); opacity: 0; }
.fs.mini .fs-mini::before { content: '+'; }
.fs-mini:hover::before, .fs-mini:focus-visible::before { opacity: 1; }
.fs-max { width: 12px; height: 12px; border-radius: 50%; background: #28c840; pointer-events: auto; position: relative; }
.fs-max::before { content: '⤢'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 9px/1 system-ui, sans-serif; color: rgba(0,0,0,0.6); opacity: 0; }
.fs.max .fs-max::before { content: '⤡'; }
.fs-max:hover::before, .fs-max:focus-visible::before { opacity: 1; }
.fs.mini .fs-max { display: none; }
@media (pointer: coarse) { .fs-close, .fs-mini, .fs-max { width: 22px; height: 22px; } }
.fs-maxhint { display: none; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 12; padding: 5px 12px; border: 1px solid #2a2a2a; border-radius: 20px; background: rgba(10,10,10,0.6); font-size: 10px; letter-spacing: 0.08em; color: var(--fs-dim); white-space: nowrap; pointer-events: none; }
.fs-maxhint i { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: #febc2e; vertical-align: -0.5px; }
/* Max: fills the screen between the menu bar and the dock */
.fs.max { left: 16px !important; top: 52px !important; width: calc(100vw - 32px); max-width: none; height: calc(100vh - 52px - 12px); max-height: none; } /* the dock hides while Full Side fills the screen */
.fs.max .fs-deck { flex: 1 1 auto; cursor: default; }
.fs.max .fs-panel { flex: 0 0 340px; }
.fs.max .fs-maxhint { display: block; }
.fs.max .fs-hint { display: none; }
.fs-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 8.5px; color: #555; letter-spacing: 0.2em; text-transform: uppercase; pointer-events: none; z-index: 3; }

.fs-scale { --s: var(--tt, 0.7); width: calc(420px * var(--s)); height: calc(420px * var(--s)); position: relative; z-index: 2; }
.fs .turntable-container { position: absolute; left: 0; top: 0; width: 420px; height: 420px; transform: scale(var(--s)); transform-origin: top left; }
.fs .vinyl {
  width: 400px; height: 400px; border-radius: 50%; position: absolute; top: 10px; left: 10px; cursor: grab;
  background: repeating-radial-gradient(circle, transparent 0px, transparent 3px, rgba(40,40,40,0.5) 3.5px, transparent 4px), radial-gradient(circle, #111 0%, #1a1a1a 30%, #151515 60%, #111 100%);
  box-shadow: 0 0 0 3px #222, 0 0 60px rgba(0,0,0,0.8), inset 0 0 80px rgba(0,0,0,0.5);
}
.fs .vinyl.grabbing { cursor: grabbing; }
.fs .vinyl.spinning { animation: fs-spin 1.8s linear infinite; }
.fs .vinyl.manual { animation: none !important; }
@keyframes fs-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fs .vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.02) 100%); }
.fs .vinyl-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 130px; height: 130px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 20px rgba(0,0,0,0.6); background: #222; }
.fs .vinyl-label img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fs .vinyl-hole { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--fs-bg); z-index: 2; box-shadow: inset 0 0 3px rgba(0,0,0,0.8); }
.fs .scratch-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fs-accent); opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 20; text-shadow: 0 0 20px rgba(196,75,43,0.5); white-space: nowrap; }
.fs .scratch-indicator.visible { opacity: 1; }
.fs .tonearm { position: absolute; top: -10px; right: 30px; width: 180px; height: 200px; transform-origin: top right; transform: rotate(-28deg); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); z-index: 10; cursor: pointer; }
.fs .tonearm.playing { transition: transform 1s linear; }
.fs .tonearm-base { position: absolute; top: 0; right: 0; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #555, #333); border: 2px solid #444; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.fs .tonearm-arm { position: absolute; top: 12px; right: 10px; width: 160px; height: 3px; background: linear-gradient(90deg, #666, #888, #666); transform-origin: right center; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.fs .tonearm-head { position: absolute; top: 6px; left: -8px; width: 16px; height: 10px; background: #777; clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%); }
.fs .tonearm-counterweight { position: absolute; top: 4px; right: 24px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #666, #444); border: 1px solid #555; }

/* Panel under the deck */
.fs-panel { position: relative; flex: 1 1 auto; min-width: 0; padding: 12px 14px 14px; border-left: 1px solid #1f1f1f; display: flex; flex-direction: column; gap: 10px; background: var(--fs-bg); overflow-y: auto; }

.fs-now { min-width: 0; }
.fs-label { font-size: 8.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--fs-accent); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.fs-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--fs-accent); opacity: 0; }
.fs-dot.active { opacity: 1; animation: fs-pulse 1.5s ease-in-out infinite; }
@keyframes fs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.fs-title { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-artist { font-family: 'Playfair Display', serif; font-style: italic; font-size: 12px; color: var(--fs-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-progress { height: 3px; background: #1f1f1f; border-radius: 2px; overflow: hidden; }
.fs-fill { height: 100%; width: 0%; background: var(--fs-accent); }
.fs-times { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--fs-dim); font-variant-numeric: tabular-nums; margin-top: 4px; }
.fs-controls { display: flex; align-items: center; gap: 10px; }
.fs-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fs-accent); color: var(--fs-accent); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.fs-play:hover:not(:disabled) { background: var(--fs-accent); color: var(--fs-bg); box-shadow: 0 0 30px rgba(196,75,43,0.3); }
.fs-play:disabled { opacity: 0.3; cursor: not-allowed; }
.fs-vol { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--fs-dim); }
.fs-vol input { flex: 1; -webkit-appearance: none; appearance: none; height: 2px; background: #2a2a2a; border-radius: 1px; outline: none; }
.fs-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fs-dim); cursor: pointer; }
.fs-vol input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--fs-dim); cursor: pointer; }
.fs-tabs, .fs-tabs [role="tablist"] { display: flex; gap: 6px; }
.fs-tabs { justify-content: space-between; }
.fs-tabs button { height: 24px; padding: 0 10px; border: 1px solid #2a2a2a; border-radius: 20px; color: var(--fs-dim); font-family: inherit; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.fs-tabs .fs-video { height: 24px; padding: 0 10px; border: 1px solid #2a2a2a; border-radius: 20px; color: var(--fs-dim); font-family: inherit; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.fs-tabs button.on { border-color: var(--fs-accent); color: var(--fs-accent); background: rgba(196,75,43,0.08); }
.fs-crate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fs-crate[hidden] { display: none; }
.fs-record { aspect-ratio: 1; border-radius: 3px; overflow: hidden; border: 2px solid transparent; background: var(--fs-surface); transition: transform 0.2s, box-shadow 0.2s; }
.fs-record:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.fs-record.on { border-color: var(--fs-accent); }
.fs-record img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-screen { align-self: center; width: 272px; height: 200px; border-radius: 6px; overflow: hidden; background: #000; flex-shrink: 0; }
.fs-screen.off { position: absolute; left: 14px; top: 0; opacity: 0; pointer-events: none; }
.fs-screen iframe { display: block; width: 272px; height: 200px; border: 0; }
.fs-tracklist { list-style: none; margin: 0; padding: 0; height: 114px; overflow-y: auto; border-top: 1px solid #1f1f1f; }
.fs-tracklist[hidden] { display: none; }
.fs-tracklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid #151515; font-size: 10.5px; color: var(--fs-dim); }
.fs-tracklist li span:first-child { text-align: right; font-size: 9px; font-variant-numeric: tabular-nums; }
.fs-tracklist li.active { color: var(--fs-text); }
.fs-tracklist li.active span:first-child { color: var(--fs-accent); }
.fs-tracklist li.played { color: #3a3530; }
.fs-note { margin: 0; font-size: 9px; color: #4a4540; line-height: 1.5; }
.fs-note strong { color: var(--fs-gold); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .fs .vinyl.spinning { animation-duration: 6s; } }
@media (max-width: 700px) {
  .fs { flex-direction: column; width: 320px; overflow-y: auto; }
  .fs-panel { border-left: 0; border-top: 1px solid #1f1f1f; overflow: visible; }
}
/* Mini: just the spinning record. The panel (and YouTube's player inside it) stays rendered but out of sight, so the music keeps playing. */
.fs.mini { z-index: 0; width: 168px; border-radius: 50%; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.fs.mini .fs-deck { flex: 0 0 168px; width: 168px; min-height: 168px; height: 168px; border-radius: 50%; }
.fs.mini .fs-bg, .fs.mini .fs-bg-overlay, .fs.mini .fs-hint, .fs.mini .fs-logo, .fs.mini .fs-viz { display: none; }
.fs.mini .fs-top { top: 4px; left: 4px; gap: 6px; }
.fs.mini .fs-scale { --s: 0.381; }
.fs.mini .vinyl { cursor: pointer; box-shadow: 0 0 0 3px #222, 0 20px 50px rgba(0,0,0,0.75), inset 0 0 80px rgba(0,0,0,0.5); }
.fs.mini .fs-panel { position: absolute; left: 0; top: 0; width: 300px; height: 1px; padding: 0; border: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.fs-minihint { display: none; position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 9px; letter-spacing: 0.08em; color: #6b6560; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 4px #000; }
.fs.mini .fs-minihint { display: block; }
.fs.mini .fs-deck { overflow: visible; }
.fs-minihint .touch { display: none; }
@media (hover: none) { .fs-minihint .fine { display: none; } .fs-minihint .touch { display: inline; } }
.fs.mini .vinyl { cursor: grab; }
.fs.mini.moving .vinyl { cursor: grabbing; }
.fs-hint i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #febc2e; vertical-align: 0; }
