:root {
    color-scheme: dark;
    --ink: #f7f8f4;
    --muted: #a7aca5;
    --line: rgba(255, 255, 255, 0.12);
    --surface: #111512;
    --surface-soft: #191e1a;
    --lime: #c8ff62;
    --danger: #ff9d8c;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #0a0d0b;
    color: var(--ink);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lime) 70%, white);
    outline-offset: 3px;
}

a {
    color: inherit;
}

.eyebrow {
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.72rem;
    text-decoration: none;
}

.brand > span:last-child {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    align-items: center;
    background: var(--lime);
    border-radius: 0.55rem;
    color: #11180c;
    display: inline-flex;
    font-weight: 950;
    height: 2rem;
    justify-content: center;
    transform: rotate(-7deg);
    width: 2rem;
}

.primary-button,
.secondary-button,
.button-link {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.primary-button {
    background: var(--lime);
    color: #10150c;
}

.secondary-button,
.button-link {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.button-link:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Owner authentication */

.auth-page {
    background:
        radial-gradient(circle at 15% 5%, rgba(200, 255, 98, 0.1), transparent 34rem),
        #0b0e0c;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.4rem);
}

.auth-shell {
    background: #101411;
    border: 1px solid var(--line);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(20rem, 0.92fr) minmax(24rem, 1.08fr);
    margin: 0 auto;
    max-width: 74rem;
    min-height: calc(100vh - clamp(2rem, 6vw, 4.8rem));
    overflow: hidden;
}

.auth-card {
    align-self: center;
    padding: clamp(2rem, 7vw, 5.5rem);
}

.auth-card > .eyebrow {
    margin: clamp(3rem, 9vh, 6rem) 0 1rem;
}

.auth-card h1 {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    letter-spacing: -0.065em;
    line-height: 0.94;
    margin: 0;
    max-width: 10ch;
}

.auth-intro {
    color: var(--muted);
    line-height: 1.65;
    margin: 1.5rem 0 2rem;
    max-width: 35rem;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-form label,
.studio-form label {
    display: grid;
    gap: 0.48rem;
}

.auth-form label > span,
.studio-form label > span:first-child {
    color: #d7dbd4;
    font-size: 0.74rem;
    font-weight: 700;
}

.auth-form input,
.studio-form input,
.studio-form select,
.studio-form textarea {
    background: #171c18;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.8rem;
    color: var(--ink);
    min-height: 3.1rem;
    padding: 0.72rem 0.85rem;
    width: 100%;
}

.auth-form input:hover,
.auth-form input:focus,
.studio-form input:hover,
.studio-form input:focus,
.studio-form select:hover,
.studio-form select:focus,
.studio-form textarea:hover,
.studio-form textarea:focus {
    border-color: rgba(200, 255, 98, 0.55);
}

.auth-form .primary-button {
    margin-top: 0.4rem;
    width: 100%;
}

.alert {
    border-radius: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
}

.alert-error {
    background: rgba(255, 104, 82, 0.1);
    border: 1px solid rgba(255, 157, 140, 0.28);
    color: #ffd3ca;
}

.security-note {
    align-items: flex-start;
    color: var(--muted);
    display: flex;
    font-size: 0.75rem;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.security-note span {
    color: var(--lime);
}

.security-note p {
    line-height: 1.5;
    margin: 0;
}

.auth-visual {
    background:
        linear-gradient(145deg, rgba(6, 11, 7, 0.16), rgba(6, 11, 7, 0.92)),
        url("/assets/default-bg.jpg") center / cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 34rem;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
}

.auth-visual::after {
    background: linear-gradient(90deg, rgba(200, 255, 98, 0.8), transparent);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 72%;
}

.auth-visual h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0;
    max-width: 12ch;
}

.preview-orbit {
    align-items: center;
    align-self: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    display: flex;
    height: min(27vw, 20rem);
    justify-content: center;
    position: relative;
    width: min(27vw, 20rem);
}

.preview-orbit::before,
.preview-orbit::after {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;
    content: "";
    inset: 12%;
    position: absolute;
}

.preview-orbit::after {
    inset: 25%;
}

.preview-disc {
    align-items: center;
    background: repeating-radial-gradient(circle, #161a17 0 4px, #252b26 5px 7px);
    border-radius: 50%;
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.55);
    display: flex;
    height: 48%;
    justify-content: center;
    width: 48%;
}

.preview-disc span {
    align-items: center;
    background: var(--lime);
    border-radius: 50%;
    color: #11170d;
    display: flex;
    font-weight: 950;
    height: 42%;
    justify-content: center;
    width: 42%;
}

/* Owner studio */

.studio-page {
    background: #0a0d0b;
    min-height: 100vh;
}

.studio-layout {
    display: grid;
    grid-template-columns: minmax(25rem, 39rem) minmax(30rem, 1fr);
    min-height: 100vh;
}

.studio-controls {
    background: #0f1310;
    border-right: 1px solid var(--line);
    padding: 1.5rem clamp(1.3rem, 4vw, 3.2rem) 2rem;
}

.studio-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.owner-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    display: grid;
    line-height: 1.1;
    padding: 0.52rem 0.85rem;
    text-align: right;
}

.owner-chip span {
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-chip strong {
    font-size: 0.72rem;
    margin-top: 0.2rem;
}

.studio-copy {
    margin: 3.6rem 0 2.3rem;
}

.studio-copy h1 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin: 0.65rem 0 1rem;
    max-width: 10ch;
}

.studio-copy > p:last-child {
    color: var(--muted);
    line-height: 1.6;
    max-width: 38rem;
}

.studio-form {
    display: grid;
    gap: 1.2rem;
}

.studio-form fieldset {
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.2rem;
}

.studio-form legend {
    color: var(--lime);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    padding: 0 0.5rem;
    text-transform: uppercase;
}

.small-field {
    max-width: 9rem;
}

.field-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr 1fr;
}

.color-control {
    align-items: center;
    background: #171c18;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.8rem;
    display: flex;
    min-height: 3.1rem;
    padding: 0.42rem 0.75rem;
}

.color-control input {
    background: none;
    border: 0;
    height: 2rem;
    min-height: 0;
    padding: 0;
    width: 2.8rem;
}

.color-control output {
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

.range-field > span {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.range-field output {
    color: var(--lime);
    font-variant-numeric: tabular-nums;
}

.studio-form input[type="range"] {
    accent-color: var(--lime);
    background: transparent;
    border: 0;
    min-height: 1.2rem;
    padding: 0;
}

.upload-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed rgba(255, 255, 255, 0.26);
    border-radius: 0.9rem;
    cursor: pointer;
    display: flex !important;
    font-size: 0.83rem;
    font-weight: 800;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.75rem;
}

.upload-actions {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr auto;
}

.upload-actions .secondary-button {
    border-radius: 0.9rem;
}

.upload-button input {
    height: 1px;
    left: -9999px;
    min-height: 0;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.upload-button > span {
    color: var(--lime) !important;
    font-size: 1.1rem !important;
}

.field-help,
.embed-heading p {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 0;
}

.embed-heading,
.embed-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.embed-heading > span {
    background: rgba(200, 255, 98, 0.1);
    border: 1px solid rgba(200, 255, 98, 0.22);
    border-radius: 999px;
    color: var(--lime);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.35rem 0.55rem;
}

.embed-size-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr 1fr;
}

.embed-size-summary {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
    margin: -0.25rem 0 0;
}

.studio-form textarea {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.69rem;
    line-height: 1.5;
    min-height: 7rem;
    resize: vertical;
}

.embed-actions a {
    color: var(--muted);
    font-size: 0.74rem;
    text-decoration: none;
}

.guardrail {
    align-items: flex-start;
    background: rgba(200, 255, 98, 0.055);
    border: 1px solid rgba(200, 255, 98, 0.16);
    border-radius: 1rem;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.guardrail > span {
    color: var(--lime);
}

.guardrail p {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

.studio-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.studio-footer > p {
    color: var(--muted);
    font-size: 0.72rem;
    margin: 0;
}

.studio-footer > div {
    display: flex;
    gap: 0.6rem;
}

.logout-form {
    margin-top: 1.4rem;
    text-align: center;
}

.logout-form button {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.7rem;
    text-decoration: underline;
}

.studio-preview {
    background:
        radial-gradient(circle at 85% 15%, rgba(200, 255, 98, 0.12), transparent 34rem),
        #090c0a;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    padding: 1.5rem;
    position: sticky;
    top: 0;
}

.preview-toolbar {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.68rem;
    justify-content: space-between;
    padding: 0 0.5rem 1rem;
    text-transform: uppercase;
}

.preview-toolbar span {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.preview-toolbar i {
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 1rem rgba(200, 255, 98, 0.7);
    height: 0.5rem;
    width: 0.5rem;
}

.studio-preview iframe {
    align-self: center;
    border: 0;
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
    display: block;
    height: 11.25rem;
    margin-inline: auto;
    max-width: 20rem;
    min-height: 11.25rem;
    width: 100%;
}

/* Public player */

.player-page {
    min-height: 100vh;
}

.player-page.is-embedded {
    background: transparent;
    display: flex;
    height: 100vh;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.player-page.is-embedded .player-stage {
    max-width: 40rem;
    width: 100%;
}

.player-stage {
    --accent: #c8ff62;
    --overlay: 0.66;
    --panel-opacity: 0.76;
    --corner-radius: 28px;
    --player-background: url("/assets/default-bg.jpg");
    align-items: center;
    display: flex;
    isolation: isolate;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(0.7rem, 3vw, 2.2rem);
    position: relative;
}

.player-background,
.player-wash {
    inset: 0;
    position: absolute;
}

.player-background {
    background: var(--player-background) center / cover;
    filter: saturate(0.78);
    transform: scale(1.03);
    z-index: -3;
}

.player-wash {
    background:
        radial-gradient(circle at 73% 24%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 24rem),
        linear-gradient(rgba(4, 7, 5, var(--overlay)), rgba(4, 7, 5, min(0.94, var(--overlay) + 0.14)));
    backdrop-filter: blur(2px);
    z-index: -2;
}

.player-stage::before,
.player-stage::after {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 50%;
    content: "";
    height: min(47vw, 32rem);
    position: absolute;
    right: -8rem;
    top: -10rem;
    width: min(47vw, 32rem);
    z-index: -1;
}

.player-stage::after {
    height: 22rem;
    left: -12rem;
    right: auto;
    top: auto;
    bottom: -12rem;
    width: 22rem;
}

.player-card {
    background: rgba(12, 16, 13, var(--panel-opacity));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--corner-radius);
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.47);
    max-width: 40rem;
    overflow: hidden;
    width: 100%;
}

.station-header,
.player-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
}

.station-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.station-branding {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.station-branding > div {
    display: grid;
    gap: 0.1rem;
}

.station-branding strong {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.station-branding small {
    color: var(--muted);
    font-size: 0.62rem;
}

.signal-mark {
    align-items: flex-end;
    display: flex;
    gap: 0.16rem;
    height: 1.2rem;
}

.signal-mark i {
    background: var(--accent);
    border-radius: 2px;
    display: block;
    height: 45%;
    width: 0.18rem;
}

.signal-mark i:nth-child(2) {
    height: 75%;
}

.signal-mark i:nth-child(3) {
    height: 100%;
}

.status-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #d8dcd7;
    display: inline-flex;
    font-size: 0.64rem;
    font-weight: 750;
    flex: 0 0 auto;
    gap: 0.45rem;
    padding: 0.42rem 0.65rem;
    white-space: nowrap;
}

.status-pill i {
    background: var(--accent);
    border-radius: 50%;
    height: 0.4rem;
    width: 0.4rem;
}

.status-pill.is-error i {
    background: var(--danger);
}

.player-main {
    align-items: center;
    display: grid;
    gap: clamp(1.4rem, 3vw, 3rem);
    grid-template-columns: minmax(9rem, 0.75fr) minmax(13rem, 1.25fr);
    padding: clamp(1.5rem, 4vw, 2.8rem);
}

.record-zone {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 13rem;
    position: relative;
}

.signal-rings,
.signal-rings i {
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 50%;
    inset: 0;
    position: absolute;
}

.signal-rings i:nth-child(1) {
    inset: 12%;
}

.signal-rings i:nth-child(2) {
    inset: 24%;
}

.signal-rings i:nth-child(3) {
    inset: 36%;
}

.record {
    align-items: center;
    background:
        repeating-radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px 7px),
        #111512;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.5);
    display: flex;
    height: min(13rem, 25vw);
    justify-content: center;
    min-height: 9rem;
    min-width: 9rem;
    position: relative;
    width: min(13rem, 25vw);
}

.record::after {
    background: var(--accent);
    border-radius: 50%;
    content: "";
    height: 11%;
    position: absolute;
    width: 11%;
}

.record span {
    align-items: center;
    background: color-mix(in srgb, var(--accent) 85%, white);
    border-radius: 50%;
    color: #11150e;
    display: flex;
    font-size: 0.78rem;
    font-weight: 950;
    height: 36%;
    justify-content: center;
    width: 36%;
}

.is-playing .record {
    animation: spin 8s linear infinite;
}

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

.track-copy .eyebrow {
    margin: 0 0 0.75rem;
}

.track-copy h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.06em;
    line-height: 0.94;
    margin: 0;
    max-width: 12ch;
    overflow-wrap: anywhere;
}

.track-artist {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    margin: 0.8rem 0 0;
    overflow-wrap: anywhere;
}

.track-status {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0.55rem 0 0;
}

.font-rounded {
    font-family: "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
}

.font-editorial .track-copy h1,
.font-editorial .station-branding strong {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.transport {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-items: center;
}

.play-button {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0.8rem 3rem color-mix(in srgb, var(--accent) 20%, transparent);
    cursor: pointer;
    display: flex;
    height: clamp(4.6rem, 9vw, 6rem);
    justify-content: center;
    transition: transform 170ms ease;
    width: clamp(4.6rem, 9vw, 6rem);
}

.play-button:hover {
    transform: scale(1.04);
}

.play-button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.5;
}

.play-icon {
    border-bottom: 0.72rem solid transparent;
    border-left: 1.1rem solid #11160e;
    border-top: 0.72rem solid transparent;
    display: block;
    margin-left: 0.2rem;
}

.is-playing .play-icon {
    border: 0;
    border-left: 0.38rem solid #11160e;
    border-right: 0.38rem solid #11160e;
    height: 1.45rem;
    margin: 0;
    width: 1.3rem;
}

.volume-control {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.volume-control button {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0.3rem;
}

.volume-control input {
    accent-color: var(--accent);
    width: 5rem;
}

.volume-control output {
    color: var(--muted);
    font-size: 0.6rem;
    font-variant-numeric: tabular-nums;
    width: 1.6rem;
}

.stream-facts {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 0;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    margin: 0.4rem 0 -2rem;
    padding-top: 1.4rem;
}

.stream-facts div {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
}

.stream-facts div:first-child {
    padding-left: 0;
}

.stream-facts div:last-child {
    border-right: 0;
}

.stream-facts dt {
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stream-facts dd {
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0.25rem 0 0;
}

.player-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.player-footer button,
.player-footer a {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.68rem;
    text-decoration: none;
}

.simple-page {
    align-items: center;
    background:
        radial-gradient(circle at 50% 0, rgba(200, 255, 98, 0.11), transparent 30rem),
        #0a0d0b;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.simple-page main {
    max-width: 35rem;
}

.simple-page .brand-mark {
    margin-bottom: 2rem;
}

.simple-page h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.simple-page p:last-child {
    color: var(--muted);
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .studio-layout {
        grid-template-columns: 1fr;
    }

    .studio-preview {
        min-height: auto;
        position: static;
    }

    .studio-preview iframe {
        max-width: 100%;
    }

    .player-main {
        grid-template-columns: minmax(9rem, 0.75fr) minmax(13rem, 1.25fr);
    }

    .transport {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        border: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-card > .eyebrow {
        margin-top: 4.5rem;
    }

    .studio-controls {
        padding: 1.1rem;
    }

    .studio-copy {
        margin-top: 3rem;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .embed-size-grid {
        grid-template-columns: 1fr;
    }

    .studio-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-footer > div,
    .studio-footer .primary-button,
    .studio-footer .button-link {
        flex: 1;
    }

    .studio-preview {
        padding: 1rem;
    }

    .studio-preview iframe {
        border-radius: 1rem;
        min-height: 0;
    }

    .player-stage {
        align-items: stretch;
        min-height: 100svh;
        padding: 0;
    }

    .player-card {
        border: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        min-height: 100svh;
    }

    .player-main {
        align-content: center;
        flex: 1;
        gap: 1.3rem;
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 1.4rem;
        text-align: center;
    }

    .record-zone {
        min-height: 11rem;
        width: 11rem;
    }

    .record {
        height: 8rem;
        min-height: 8rem;
        min-width: 8rem;
        width: 8rem;
    }

    .track-copy h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
        max-width: 13ch;
    }

    .transport {
        grid-column: auto;
        grid-template-columns: auto auto;
    }

    .stream-facts {
        grid-column: auto;
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
        width: 100%;
    }

    .stream-facts div {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.75rem;
    }

    .stream-facts div:nth-child(2) {
        border-right: 0;
    }

    .station-header,
    .player-footer {
        padding: 0.9rem 1rem;
    }

    .station-branding small {
        display: none;
    }
}

@media (max-width: 480px), (max-height: 520px) {
    .player-page.is-embedded .player-stage {
        align-items: stretch;
        min-height: 100vh;
        padding: 0.45rem;
    }

    .player-page.is-embedded .player-card {
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: min(var(--corner-radius), 1rem);
        height: calc(100vh - 0.9rem);
        min-height: 0;
    }

    .player-page.is-embedded .station-header {
        flex: 0 0 auto;
        padding: 0.5rem 0.65rem;
    }

    .player-page.is-embedded .station-branding {
        flex: 1 1 auto;
        gap: 0.5rem;
        min-width: 0;
        overflow: hidden;
    }

    .player-page.is-embedded .station-branding > div {
        min-width: 0;
    }

    .player-page.is-embedded .station-branding strong {
        display: block;
        font-size: 0.64rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .player-page.is-embedded .station-branding small {
        display: none;
    }

    .player-page.is-embedded .status-pill {
        font-size: 0.52rem;
        padding: 0.32rem 0.45rem;
    }

    .player-page.is-embedded .player-main {
        align-items: center;
        display: grid;
        flex: 1;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: stretch;
        min-height: 0;
        padding: 0.65rem;
        text-align: left;
    }

    .player-page.is-embedded .record-zone,
    .player-page.is-embedded .track-status,
    .player-page.is-embedded .volume-control,
    .player-page.is-embedded .stream-facts,
    .player-page.is-embedded .player-footer {
        display: none;
    }

    .player-page.is-embedded .track-copy {
        min-width: 0;
    }

    .player-page.is-embedded .track-copy .eyebrow {
        font-size: 0.5rem;
        margin: 0 0 0.3rem;
    }

    .player-page.is-embedded .track-copy h1 {
        display: -webkit-box;
        font-size: clamp(1rem, 6vw, 1.45rem);
        line-height: 1;
        margin: 0;
        max-width: none;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .player-page.is-embedded .track-artist {
        display: block;
        font-size: 0.7rem;
        margin: 0.35rem 0 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .player-page.is-embedded .transport {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    .player-page.is-embedded .play-button {
        height: 3.15rem;
        width: 3.15rem;
    }

    .player-page.is-embedded .play-icon {
        border-bottom-width: 0.5rem;
        border-left-width: 0.78rem;
        border-top-width: 0.5rem;
    }

    .player-page.is-embedded.is-playing .play-icon {
        border-left-width: 0.3rem;
        border-right-width: 0.3rem;
        height: 1.1rem;
        width: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
