:root {
  --ink: #07111f;
  --muted: #607086;
  --line: #dfe7f1;
  --soft: #f5f8fc;
  --blue: #1688ff;
  --blue-dark: #0766d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25rem; height: 1.25rem; }

.site-shell { min-height: 100vh; overflow: hidden; background: linear-gradient(180deg, #f8fbff 0, #fff 32rem); }
.topbar { height: 80px; max-width: 1220px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(203, 216, 231, .7); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo img { display: block; width: 246px; height: auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #566579; text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link svg { width: 16px; transition: transform .2s ease; }
.back-link:hover svg { transform: translateX(3px); }

.hero { max-width: 850px; margin: 0 auto; padding: 76px 24px 62px; text-align: center; }
.eyebrow { width: fit-content; margin: 0 auto 22px; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #cce4ff; border-radius: 999px; background: #edf7ff; color: #0873e2; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { margin: 0; color: #061221; font-size: clamp(48px, 6vw, 74px); line-height: .99; letter-spacing: -.065em; font-weight: 850; }
.hero h1 span { color: var(--blue); }
.hero > p { max-width: 630px; margin: 25px auto 24px; color: #5e6e83; font-size: 17px; line-height: 1.7; }
.hero-chips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 11px; color: #6c7a8d; font-size: 12px; font-weight: 700; }
.hero-chips i { width: 3px; height: 3px; border-radius: 50%; background: #9db0c5; }

.builder { max-width: 1220px; margin: 0 auto 80px; padding: 0 24px; }
.builder-heading, .preview-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.builder-heading > div, .preview-label > div { display: flex; align-items: center; gap: 10px; }
.builder-heading p, .preview-label p { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.builder-heading > span { color: #8390a1; font-size: 11px; }
.step-number { color: #1989ff; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr); gap: 24px; align-items: start; }
.settings-column { display: grid; gap: 18px; }
.form-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(25, 53, 83, .055); overflow: hidden; }
.card-title { display: flex; align-items: center; gap: 13px; padding: 20px 23px; border-bottom: 1px solid #e8eef5; background: linear-gradient(180deg, #fff, #fbfdff); }
.card-title h2, .card-title p { margin: 0; }
.card-title h2 { font-size: 15px; letter-spacing: -.01em; }
.card-title p { margin-top: 4px; color: #758398; font-size: 11px; }
.card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #117fe9; background: #eaf5ff; }
.card-icon svg { width: 18px; }
.card-icon.swatch i { width: 17px; height: 17px; border: 3px solid #1788f7; border-radius: 50%; box-shadow: inset 4px 0 #55b1ff; }
.fields { display: grid; gap: 18px; padding: 22px 23px 24px; }
.fields label, .fields fieldset { min-width: 0; }
.fields label { display: grid; gap: 7px; }
.fields label > span, .fields legend { color: #253449; font-size: 11px; font-weight: 800; }
.fields small { color: #8996a8; font-size: 10px; line-height: 1.45; }
.compatibility-note { display: flex; align-items: center; gap: 8px; margin: -3px 0 0; padding: 9px 10px; border: 1px solid #cfe5fb; border-radius: 8px; color: #3977b5; background: #f0f8ff; font-size: 9px; line-height: 1.45; }
.compatibility-note > span { flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1688ff; font-size: 9px; font-weight: 900; }
.compatibility-note b { font-weight: 750; }
.fields input:not([type="color"]), .segmented { width: 100%; height: 43px; border: 1px solid #d7e1ec; border-radius: 9px; background: #fbfdff; color: #0c1929; outline: none; }
.fields input:not([type="color"]) { padding: 0 12px; font-size: 12px; transition: border .2s, box-shadow .2s, background .2s; }
.fields input::placeholder { color: #a2adba; }
.fields input:focus { background: #fff; border-color: #5cafff; box-shadow: 0 0 0 3px rgba(22,136,255,.1); }
.fields fieldset { margin: 0; padding: 0; border: 0; }
.fields legend { margin-bottom: 7px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented button { border: 0; border-radius: 6px; color: #708096; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.segmented button.active { background: #fff; color: #0878e9; box-shadow: 0 2px 8px rgba(18, 52, 89, .1); }
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-option { position: relative; min-width: 0; display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 9px; padding: 8px; border: 1px solid #dbe4ed; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.theme-option:hover { border-color: #9fcbf8; }
.theme-option.active { border-color: #208dff; box-shadow: 0 0 0 2px rgba(22,136,255,.09); }
.theme-option > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.theme-option > span > b { color: #172538; font-size: 10px; white-space: nowrap; }
.theme-option > span > small { overflow: hidden; color: #8794a5; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.theme-sample { position: relative; height: 42px; border-radius: 7px; overflow: hidden; background: #0d1724; }
.theme-sample.light { background: #f2f5f9; }
.theme-sample.electric { background: linear-gradient(135deg, #061b38, #0b4e9d); }
.theme-sample i { position: absolute; left: 6px; top: 8px; width: 25px; height: 25px; border-radius: 4px; background: linear-gradient(135deg,#0d83ff,#8cc9ff); }
.theme-sample b, .theme-sample em { position: absolute; left: 35px; width: 13px; height: 3px; border-radius: 3px; background: #fff; opacity: .85; }
.theme-sample b { top: 13px; }
.theme-sample em { top: 21px; width: 9px; opacity: .35; }
.theme-sample.light b { background: #1c3048; }
.radio-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border: 1px solid #bdc8d3; border-radius: 50%; background: #fff; }
.theme-option.active .radio-dot { border: 3px solid #1688ff; }
.compact-fields { align-items: end; }
.color-control { display: grid; grid-template-columns: 43px 1fr; gap: 6px; }
.color-control input[type="color"] { width: 43px; height: 43px; padding: 4px; border: 1px solid #d7e1ec; border-radius: 9px; background: #fff; cursor: pointer; }

.preview-column { min-width: 0; }
.preview-sticky { position: sticky; top: 18px; }
.preview-label > span { display: flex; align-items: center; gap: 6px; color: #79879a; font-size: 10px; }
.preview-label > span i { width: 6px; height: 6px; border-radius: 50%; background: #24c873; box-shadow: 0 0 0 3px rgba(36,200,115,.11); }
.preview-stage { position: relative; min-height: 360px; display: grid; place-items: center; padding: 38px 30px; border: 1px solid #dce7f3; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 25% 0%, rgba(95,178,255,.16), transparent 30%), radial-gradient(circle at 90% 95%, rgba(23,134,255,.12), transparent 34%), #f4f8fc; }
.stage-glow { position: absolute; width: 280px; height: 180px; border-radius: 50%; background: rgba(28, 147, 255, .12); filter: blur(55px); }
.preview-stage #preview-player { position: relative; z-index: 1; width: min(100%, 470px); }
.preview-stage .radio-player { width: 100%; }
.preview-note, .privacy-note { margin: 11px 5px 17px; color: #8995a6; text-align: center; font-size: 10px; line-height: 1.5; }
.preview-note span { color: #1b79d4; font-weight: 800; }
.generate-button { width: 100%; height: 53px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #138bff, #096bdc); box-shadow: 0 13px 26px rgba(11, 116, 224, .25); font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.generate-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(11, 116, 224, .31); }
.generate-button svg:last-child { width: 16px; }
.privacy-note { margin-bottom: 0; }
.form-error { margin: 10px 4px 0; padding: 9px 11px; border: 1px solid #ffd2d8; border-radius: 8px; color: #b22e43; background: #fff5f6; font-size: 10px; line-height: 1.45; text-align: center; }

.radio-player { --player-accent: #1688ff; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(138deg, #172332, #080e16 78%); box-shadow: 0 26px 60px rgba(10, 27, 47, .26); }
.radio-player.electric { background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--player-accent) 62%, transparent), transparent 45%), linear-gradient(140deg, #0b2341, #07101d 74%); box-shadow: 0 26px 60px color-mix(in srgb, var(--player-accent) 23%, rgba(10, 27, 47, .2)); }
.radio-player.light { color: #102033; border-color: #e1e8f0; background: #fff; box-shadow: 0 25px 55px rgba(27, 52, 79, .17); }
.player-main { display: grid; grid-template-columns: 94px 1fr 52px; align-items: center; gap: 17px; padding: 17px; }
.album-art { position: relative; width: 94px; height: 94px; border-radius: 10px; overflow: hidden; background: #263549; box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.art-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, color-mix(in srgb,var(--player-accent) 85%, white), transparent 18%), radial-gradient(circle at center,#07111f 0 9%,#132a45 10% 25%,#07111f 26% 31%,#1b3c61 32% 60%,#06101c 61%); }
.art-fallback i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--player-accent); box-shadow: 0 0 20px var(--player-accent); }
.art-fallback b { position: absolute; bottom: 7px; right: 7px; color: #fff; font-size: 7px; letter-spacing: .1em; }
.live-pill { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 999px; color: #fff; background: rgba(5,11,18,.75); backdrop-filter: blur(5px); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.live-pill i { width: 4px; height: 4px; border-radius: 50%; background: #ff445a; box-shadow: 0 0 0 2px rgba(255,68,90,.18); }
.track-details { min-width: 0; }
.station-name { display: block; overflow: hidden; margin-bottom: 7px; color: color-mix(in srgb, var(--player-accent) 80%, white); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.light .station-name { color: var(--player-accent); }
.track-details h3, .track-details p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.track-details h3 { max-width: 230px; font-size: 18px; letter-spacing: -.025em; }
.track-details p { max-width: 230px; margin-top: 5px; color: #93a1b1; font-size: 11px; }
.light .track-details p { color: #6f7e91; }
.signal-bars { height: 21px; display: flex; align-items: center; gap: 2px; margin-top: 11px; opacity: .45; }
.signal-bars i { width: 2px; max-height: 6px; border-radius: 2px; background: var(--player-accent); transition: max-height .3s ease; }
.signal-bars.active { opacity: 1; }
.signal-bars.active i { max-height: 21px; animation: pulse-bar .7s ease-in-out infinite alternate; }
.signal-bars.active i:nth-child(3n) { animation-delay: -.35s; }
.signal-bars.active i:nth-child(2n) { animation-delay: -.18s; }
@keyframes pulse-bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.play-button { width: 49px; height: 49px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--player-accent); box-shadow: 0 8px 22px color-mix(in srgb,var(--player-accent) 38%, transparent); cursor: pointer; transition: transform .2s; }
.play-button:hover:not(:disabled) { transform: scale(1.05); }
.play-button:disabled { opacity: .46; cursor: not-allowed; }
.play-button svg { width: 23px; height: 23px; }
.player-controls { height: 39px; display: grid; grid-template-columns: 17px 1fr 30px; align-items: center; gap: 8px; padding: 0 19px; border-top: 1px solid rgba(255,255,255,.075); }
.light .player-controls { border-color: #edf1f5; }
.player-controls svg { width: 15px; color: #8d9aab; }
.player-controls span { color: #7d8999; font-size: 8px; text-align: right; }
.player-controls input { --volume: 78%; width: 100%; height: 3px; margin: 0; appearance: none; border-radius: 9px; outline: 0; background: linear-gradient(to right, var(--player-accent) var(--volume), rgba(137,153,173,.24) var(--volume)); }
.player-controls input::-webkit-slider-thumb { width: 10px; height: 10px; appearance: none; border: 2px solid var(--player-accent); border-radius: 50%; background: #fff; cursor: pointer; }
.recently-played { min-height: 285px; padding: 12px 17px 14px; border-top: 1px solid rgba(255,255,255,.075); }
.light .recently-played { border-color: #edf1f5; }
.recent-heading { display: flex; align-items: center; margin-bottom: 9px; }
.recent-heading > span { color: #d7e2ee; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.light .recent-heading > span { color: #42546a; }
.recent-list { display: grid; gap: 6px; }
.recent-row { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr) 22px; align-items: center; gap: 9px; padding: 4px 7px 4px 4px; border-radius: 8px; background: rgba(255,255,255,.035); }
.light .recent-row { background: #f7f9fc; }
.recent-art { width: 35px; height: 35px; display: block; overflow: hidden; border-radius: 6px; background: #14243a; }
.recent-art img { width: 100%; height: 100%; object-fit: cover; }
.recent-art > span { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at center, var(--player-accent) 0 12%, #17304e 13% 35%, #0a1828 36%); }
.recent-art > span i { width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .8; }
.recent-info { min-width: 0; display: grid; gap: 3px; }
.recent-info b, .recent-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-info b { color: #e8eef5; font-size: 9px; }
.light .recent-info b { color: #17283b; }
.recent-info small { color: #7f8da0; font-size: 8px; }
.recent-number { color: #566476; font-size: 7px; font-weight: 800; text-align: right; }
.light .recent-number { color: #9aa6b4; }
.recent-empty { margin: 3px 0 0; padding: 11px; border-radius: 7px; color: #7f8da0; background: rgba(255,255,255,.03); font-size: 8px; line-height: 1.5; text-align: center; }
.light .recent-empty { background: #f7f9fc; }
.powered-by { height: 28px; display: flex; align-items: center; justify-content: center; color: #647284; background: rgba(0,0,0,.12); text-decoration: none; font-size: 7px; letter-spacing: .02em; }
.light .powered-by { background: #f7f9fb; }
.powered-by b { margin-left: 3px; color: #96a5b7; }
.light .powered-by b { color: #4d627a; }
.radio-player.compact .player-main { grid-template-columns: 72px 1fr 46px; padding: 12px 14px; }
.radio-player.compact .player-controls { display: none; }
.radio-player.compact .album-art { width: 72px; height: 72px; }
.radio-player.compact .track-details h3 { font-size: 15px; }
.radio-player.compact .signal-bars { display: none; }
.radio-player.compact .play-button { width: 44px; height: 44px; }
.radio-player.compact .recently-played { min-height: 167px; padding: 10px 14px 11px; }
.radio-player.compact .recent-row { grid-template-columns: 30px minmax(0,1fr) 20px; }
.radio-player.compact .recent-art { width: 30px; height: 30px; }
.radio-player.compact .powered-by { height: 25px; }

.embed-shell { min-height: 100vh; display: grid; align-content: start; padding: 0; background: transparent; }
.embed-shell .radio-player { width: 100%; box-shadow: none; }
.embed-page { margin: 0; min-height: 100vh; background: transparent; }

[hidden] { display: none !important; }
.choice-button[aria-pressed="true"] { background: #fff; color: #0878e9; box-shadow: 0 2px 8px rgba(18, 52, 89, .1); }
.theme-option[aria-pressed="true"] { border-color: #208dff; box-shadow: 0 0 0 2px rgba(22,136,255,.09); }
.theme-option[aria-pressed="true"] .radio-dot { border: 3px solid #1688ff; }
.color-control input[type="text"] { text-transform: uppercase; }
.code-section { scroll-margin-top: 24px; }
.code-section:not(.visible) .code-box { display: none; }
.code-section.visible .code-empty { display: none; }
.copy-button.success { color: #9ff0c2; border-color: rgba(71, 210, 132, .35); }

.code-section { max-width: 1000px; margin: 0 auto 100px; padding: 0 24px; }
.code-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.code-heading > div { display: flex; align-items: center; gap: 12px; }
.code-heading h2, .code-heading p { margin: 0; }
.code-heading h2 { font-size: 18px; }
.code-heading p { margin-top: 4px; color: #7c899a; font-size: 11px; }
.ready-badge { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: #15814b; background: #e9f9f0; font-size: 9px; font-weight: 800; }
.ready-badge svg { width: 13px; }
.code-box, .code-empty { border: 1px solid #dce5ef; border-radius: 14px; overflow: hidden; background: #0b1420; box-shadow: 0 16px 42px rgba(19,42,70,.1); }
.code-toolbar { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 17px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8090a3; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.code-toolbar button { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #d7e3f0; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 750; cursor: pointer; }
.code-toolbar svg { width: 13px; }
.code-box pre { max-height: 310px; margin: 0; padding: 22px; overflow: auto; color: #b9d8f8; font-family: var(--font-geist-mono), monospace; font-size: 11px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.code-empty { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8090a3; background: #f8fafc; text-align: center; }
.code-empty svg { width: 22px; height: 22px; color: #4a9df0; }
.code-empty p { margin: 0; font-size: 11px; }

.how-it-works { padding: 85px 24px 95px; border-top: 1px solid #e7edf4; background: #f8fafd; text-align: center; }
.section-kicker { margin: 0 0 12px; color: #1688ff; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.how-it-works > h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.steps { max-width: 1000px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; text-align: left; }
.steps article { display: flex; gap: 14px; }
.steps article > span { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #1688ff; background: #e8f4ff; font-size: 11px; font-weight: 900; }
.steps h3, .steps p { margin: 0; }
.steps h3 { font-size: 13px; }
.steps p { margin-top: 7px; color: #768497; font-size: 11px; line-height: 1.6; }
footer { min-height: 140px; max-width: 1220px; margin: 0 auto; padding: 35px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
footer p, footer > span { color: #7f8c9c; font-size: 10px; }
footer > span { text-align: right; }
.footer-brand img { width: 220px; }

@media (max-width: 930px) {
  .builder-grid { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
  .preview-column { order: -1; }
  .preview-stage { min-height: 330px; }
}

@media (max-width: 650px) {
  .topbar { height: 68px; }
  .brand-logo img { width: 210px; }
  .back-link { display: none; }
  .hero { padding: 54px 20px 45px; }
  .hero h1 { font-size: 46px; }
  .hero > p { font-size: 15px; }
  .hero-chips i { display: none; }
  .hero-chips { gap: 7px 13px; }
  .builder { padding: 0 14px; }
  .builder-heading > span { display: none; }
  .field-pair, .theme-picker, .steps { grid-template-columns: 1fr; }
  .preview-stage { min-height: 285px; padding: 28px 13px; }
  .player-main { grid-template-columns: 75px minmax(0,1fr) 44px; gap: 11px; padding: 13px; }
  .album-art { width: 75px; height: 75px; }
  .track-details h3 { font-size: 15px; }
  .play-button { width: 43px; height: 43px; }
  .theme-option { grid-template-columns: 68px 1fr; }
  .code-heading { align-items: flex-end; }
  .ready-badge { display: none; }
  .how-it-works { padding: 65px 24px; }
  .steps { gap: 26px; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer > span { text-align: center; }
}
