:root {
  --s9-ink: #f4f0e8;
  --s9-muted: rgba(244, 240, 232, .62);
  --s9-line: rgba(244, 240, 232, .17);
  --s9-pink: #da4f86;
  --s9-green: #69bc9f;
  --s9-black: #08090a;
}

body:has(.s9-shell) { overflow: hidden !important; }

.s9-shell,
.s9-shell * { box-sizing: border-box; }

.s9-shell {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: auto;
  color: var(--s9-ink);
  background: var(--s9-black);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.s9-background,
.s9-video,
.s9-shade,
.s9-grain,
.s9-light { position: fixed; inset: 0; width: 100%; height: 100%; }

.s9-background { overflow: hidden; background: radial-gradient(circle at 50% 35%, #272025 0, #090a0b 56%, #050506 100%); }
.s9-video { object-fit: cover; filter: saturate(.76) contrast(1.08) brightness(.55); }
.s9-shade { background: linear-gradient(180deg, rgba(4,5,6,.42), rgba(4,5,6,.72) 72%, rgba(4,5,6,.91)); }
.s9-grain { opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.s9-light { opacity: .23; filter: blur(45px); transform-origin: 50% 0; mix-blend-mode: screen; }
.s9-light-pink { background: conic-gradient(from 168deg at 24% -8%, transparent 0 44%, var(--s9-pink) 48%, transparent 55%); animation: s9-sweep-pink 15s ease-in-out infinite alternate; }
.s9-light-green { background: conic-gradient(from 190deg at 77% -10%, transparent 0 44%, var(--s9-green) 49%, transparent 56%); animation: s9-sweep-green 18s ease-in-out infinite alternate; }

@keyframes s9-sweep-pink { to { transform: rotate(6deg) translateX(4vw); opacity: .35; } }
@keyframes s9-sweep-green { to { transform: rotate(-7deg) translateX(-4vw); opacity: .32; } }
.s9-gate {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

.s9-kicker { font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--s9-muted); }
.s9-shell .s9-gate h1, .s9-shell .s9-header h1 { margin: 8px 0 14px; color: #fff !important; font-family: Inter, "Helvetica Neue", Arial, sans-serif !important; font-size: clamp(44px, 7.5vw, 104px); line-height: .88; letter-spacing: -.055em; font-weight: 900; text-wrap: balance; }
.s9-gate h1 { max-width: 1050px; }
.s9-gate > p { margin: 0 0 36px; font-family: Georgia, serif; font-style: italic; font-size: clamp(20px, 2.8vw, 34px); line-height: 1.32; }
.s9-code-form { width: min(520px, 100%); }
.s9-code-form label { display: block; margin-bottom: 9px; color: var(--s9-muted); font-size: 12px; }
.s9-code-row { display: flex; border: 1px solid var(--s9-line); background: rgba(9, 10, 11, .62); backdrop-filter: blur(16px); }
.s9-code-row input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--s9-ink); background: transparent; padding: 16px; font-size: 18px; }
.s9-code-row button, .s9-submit-feedback { border: 0; background: var(--s9-ink); color: #111; padding: 0 20px; font-weight: 800; cursor: pointer; }
.s9-form-message, .s9-feedback-message { min-height: 22px; color: var(--s9-muted); font-size: 13px; }

.s9-room { position: relative; z-index: 2; width: min(1320px, 100%); height: 100%; min-height: 660px; margin: 0 auto; padding: 18px clamp(20px, 4vw, 56px); display: flex; flex-direction: column; overflow: hidden; }
.s9-header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--s9-line); padding-bottom: 12px; }
.s9-shell .s9-header h1 { max-width: 850px; font-size: clamp(30px, 4.4vw, 58px); margin-bottom: 0; }
.s9-private-mark { border: 1px solid var(--s9-line); padding: 8px 11px; font-size: 10px; letter-spacing: .16em; color: var(--s9-muted); }
.s9-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: clamp(28px, 5vw, 68px); padding: 16px 0; }
.s9-now-playing { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.s9-playing-copy { text-align: center; }
.s9-track-number { font-size: 11px; letter-spacing: .16em; color: var(--s9-muted); }
.s9-shell .s9-playing-copy h2 { margin: 6px auto 5px; max-width: 620px; color: #fff !important; font-family: Inter, "Helvetica Neue", Arial, sans-serif !important; font-size: clamp(38px, 4.2vw, 62px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.s9-playing-copy p { margin: 0; color: var(--s9-muted); font-family: Georgia, serif; font-style: italic; }
.s9-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 15px 0 9px; }
.s9-controls button { color: var(--s9-ink); cursor: pointer; }
.s9-icon-button { width: 44px; height: 44px; border: 1px solid var(--s9-line); border-radius: 50%; background: rgba(0,0,0,.24); font-size: 20px; }
.s9-shell .s9-play { width: 66px; height: 66px; padding: 0 !important; border: 0; border-radius: 50%; background: var(--s9-ink); color: #111 !important; font-family: Inter, "Helvetica Neue", Arial, sans-serif !important; font-size: 12px !important; font-weight: 900; line-height: 1 !important; letter-spacing: 0 !important; white-space: nowrap; }
.s9-timeline { display: grid; grid-template-columns: 38px 1fr 38px; gap: 9px; align-items: center; color: var(--s9-muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.s9-progress { width: 100%; accent-color: var(--s9-ink); }
.s9-track-panel { min-height: 0; border: 1px solid var(--s9-line); background: rgba(8,9,10,.5); backdrop-filter: blur(18px); align-self: stretch; display: flex; flex-direction: column; }
.s9-track-heading { display: flex; justify-content: space-between; gap: 20px; padding: 12px 17px; border-bottom: 1px solid var(--s9-line); color: var(--s9-muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.s9-tracklist { flex: 1 1 auto; min-height: 0; list-style: none; margin: 0; padding: 0; overflow: auto; }
.s9-tracklist li { margin: 0; border-bottom: 1px solid rgba(244,240,232,.085); }
.s9-tracklist button { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border: 0; padding: 5px 14px; text-align: left; color: #fff; background: transparent; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.2; }
.s9-tracklist button:hover, .s9-tracklist button.is-active { background: rgba(244,240,232,.1); }
.s9-tracklist button.is-active { box-shadow: inset 3px 0 0 var(--s9-pink); }
.s9-list-number, .s9-list-duration { color: var(--s9-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.s9-footer { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--s9-line); padding-top: 12px; }
.s9-feedback-open { border: 0; padding: 0; background: transparent; color: var(--s9-ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; font: inherit; }
.s9-presave { display: inline-block; border: 1px solid var(--s9-line); padding: 12px 16px; color: var(--s9-ink) !important; text-decoration: none !important; font-size: 12px; font-weight: 800; }

.s9-feedback-dialog { width: min(560px, calc(100% - 32px)); color: var(--s9-ink); border: 1px solid var(--s9-line); background: rgba(12,13,14,.97); padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.s9-feedback-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.s9-feedback-form { position: relative; padding: 34px; }
.s9-feedback-form h2 { margin: 8px 0 24px; font-size: 32px; letter-spacing: -.04em; }
.s9-feedback-form label { display: block; margin: 15px 0; font-size: 12px; font-weight: 700; }
.s9-feedback-form label span { color: var(--s9-muted); font-weight: 400; }
.s9-feedback-form input, .s9-feedback-form select, .s9-feedback-form textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--s9-line); border-radius: 0; background: #161718; color: var(--s9-ink); padding: 12px; font: inherit; }
.s9-dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: var(--s9-ink); font-size: 28px; cursor: pointer; }
.s9-submit-feedback { width: 100%; min-height: 48px; margin-top: 8px; }

@media (max-width: 820px) {
  .s9-shell { position: fixed; }
  .s9-room { height: auto; min-height: 100%; padding: 24px 18px 32px; overflow: visible; }
  .s9-header { align-items: center; }
  .s9-private-mark { display: none; }
  .s9-layout { grid-template-columns: 1fr; padding-top: 26px; gap: 34px; }
  .s9-tracklist { max-height: none; }
  .s9-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .s9-presave { text-align: center; }
}

@media (max-width: 560px) {
  .s9-code-row { flex-direction: column; }
  .s9-code-row button { min-height: 50px; }
  .s9-gate h1 { font-size: 48px; }
  .s9-header h1 { font-size: 34px; }
  .s9-playing-copy h2 { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  .s9-light { animation: none !important; }
  .s9-video { display: none; }
}
