.padded-panel,
.feature-player,
.playlist-strip,
.room-activity,
.public-profile,
.profile-editor,
.premium-coming-soon {
    padding: 22px;
}

.feature-player {
    padding: 16px;
}

.feature-player .section-heading {
    margin-bottom: 12px;
}

.feature-player .lyrics-choice {
    margin-bottom: 12px;
}

.feature-player .track-grid {
    gap: 12px;
}

.hero-grid {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    min-height: min(760px, calc(100vh - 140px));
    padding: clamp(28px, 5vw, 74px) 0 clamp(34px, 5vw, 80px);
}

.hero-grid::before,
.hero-grid::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hero-grid::before {
    right: min(38%, 520px);
    bottom: 11%;
    width: clamp(180px, 22vw, 340px);
    height: clamp(116px, 13vw, 190px);
    border: 1px solid rgba(231, 169, 95, 0.14);
    background:
        linear-gradient(180deg, rgba(231, 169, 95, 0.12), rgba(214, 111, 150, 0.055)),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.08) 28px 30px),
        repeating-linear-gradient(0deg, transparent 0 32px, rgba(255, 255, 255, 0.06) 32px 34px);
    box-shadow: 0 0 90px rgba(231, 169, 95, 0.14);
    opacity: 0.72;
    transform: perspective(460px) rotateY(-12deg) rotateZ(-1deg);
}

.hero-grid::after {
    left: -7%;
    top: 9%;
    width: 54%;
    height: 72%;
    background:
        linear-gradient(90deg, rgba(88, 213, 246, 0.13), transparent 62%),
        linear-gradient(180deg, rgba(214, 111, 150, 0.08), transparent 46%);
    filter: blur(22px);
    opacity: 0.68;
}

.hero-copy {
    max-width: 820px;
    min-width: 0;
    padding: 18px 0;
}

.signal,
.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 720;
}

.signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(167, 184, 218, 0.12);
    border-radius: 999px;
    background: rgba(7, 11, 24, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.signal-dot,
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 18px rgba(84, 215, 157, 0.75);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    max-width: 920px;
    font-size: clamp(3.4rem, 7vw, 7.35rem);
    line-height: 0.93;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.02),
        0 26px 70px rgba(0, 0, 0, 0.54);
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 2vw, 2rem);
    letter-spacing: 0;
}

h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-lede {
    max-width: 650px;
    color: #c1cbdd;
    font-size: clamp(1.04rem, 1.5vw, 1.28rem);
    line-height: 1.72;
}

.hero-actions {
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.hero-actions .button {
    min-width: 172px;
    min-height: 54px;
}

.hero-mood-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(42px, 74px));
    gap: 8px;
    width: fit-content;
    margin-bottom: 20px;
}

.hero-mood-strip span {
    height: 5px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(88, 213, 246, 0.32);
}

.hero-mood-strip span:nth-child(2) {
    background: var(--violet);
    box-shadow: 0 0 18px rgba(123, 110, 246, 0.32);
}

.hero-mood-strip span:nth-child(3) {
    background: var(--mint);
    box-shadow: 0 0 18px rgba(84, 215, 157, 0.28);
}

.hero-mood-strip span:nth-child(4) {
    background: var(--rose);
    box-shadow: 0 0 18px rgba(214, 111, 150, 0.28);
}

.hero-mood-strip span:nth-child(5) {
    background: var(--amber);
    box-shadow: 0 0 18px rgba(231, 169, 95, 0.28);
}

.live-stat {
    display: grid;
    grid-template-columns: 190px minmax(280px, 1fr);
    gap: 18px;
    align-items: stretch;
    width: min(100%, 720px);
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(8, 13, 27, 0.9), rgba(16, 25, 44, 0.68)),
        rgba(8, 12, 24, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 24px 72px rgba(0, 0, 0, 0.34);
}

.live-stat p,
.library-stat p {
    margin: 0 0 4px;
    font-size: 0.86rem;
}

.live-stat strong,
.library-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.live-stat-primary {
    display: grid;
    align-content: start;
    min-width: 0;
}

.live-stat-primary .status-dot {
    margin-bottom: 14px;
}

.library-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.library-stat {
    position: relative;
    min-width: 0;
    min-height: 104px;
    padding: 13px 14px;
    border: 1px solid rgba(167, 184, 218, 0.13);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.library-stat-mark {
    display: block;
    width: 28px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(88, 213, 246, 0.34);
}

.library-stat-mark-amber {
    background: var(--amber);
    box-shadow: 0 0 18px rgba(231, 169, 95, 0.3);
}

.library-stat-mark-cyan {
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(88, 213, 246, 0.34);
}

.mini-visualizer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 6px;
    width: min(100%, 180px);
    height: 62px;
    margin-top: 12px;
}

.focus-card {
    position: relative;
    justify-self: end;
    width: 100%;
    overflow: hidden;
    padding: clamp(22px, 3vw, 34px);
    background:
        linear-gradient(145deg, rgba(11, 16, 31, 0.92), rgba(7, 10, 22, 0.82)),
        rgba(8, 12, 24, 0.86);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 30px 100px rgba(0, 0, 0, 0.52),
        0 0 70px rgba(88, 213, 246, 0.08);
}

.focus-card::before,
.focus-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.focus-card::before {
    inset: 0;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.07), transparent 28%),
        linear-gradient(300deg, rgba(231, 169, 95, 0.12), transparent 38%);
    opacity: 0.8;
}

.focus-card::after {
    right: -18%;
    bottom: -18%;
    width: 54%;
    height: 44%;
    background: linear-gradient(135deg, rgba(88, 213, 246, 0.18), rgba(123, 110, 246, 0.08));
    filter: blur(34px);
}

.focus-card > * {
    position: relative;
    z-index: 1;
}

.section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading p {
    max-width: 560px;
    margin-bottom: 0;
}

.compact-heading {
    align-items: center;
}

.sound-icon {
    display: flex;
    align-items: end;
    gap: 4px;
    width: 42px;
    height: 36px;
    padding: 4px;
    border-radius: var(--radius);
    background: rgba(88, 213, 246, 0.06);
}

.session-form,
.auth-card,
.settings-form {
    display: grid;
    gap: 18px;
}

.neon-profile-field {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.neon-profile-field legend {
    padding: 0;
    color: var(--text);
    font-weight: 760;
}

.neon-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.neon-choice {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    padding: 10px;
    border: 1px solid rgba(167, 184, 218, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.neon-choice:hover,
.neon-choice.is-selected {
    border-color: var(--neon-line);
    background:
        linear-gradient(135deg, var(--neon-soft), var(--neon-secondary-soft)),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 22px var(--neon-glow);
    transform: translateY(-1px);
}

.neon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.neon-choice-swatch {
    width: 36px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), transparent 28%),
        linear-gradient(145deg, var(--swatch-primary), var(--swatch-secondary));
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, 0.08),
        0 0 18px rgb(var(--neon-primary-rgb) / 0.18);
}

.neon-choice-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.neon-choice-copy strong,
.neon-choice-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neon-choice-copy strong {
    color: var(--text);
    font-size: 0.9rem;
}

.neon-choice-copy small,
.neon-choice-lock {
    color: var(--muted);
    font-size: 0.76rem;
}

.neon-choice-lock {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(231, 169, 95, 0.34);
    border-radius: 999px;
    background: rgba(231, 169, 95, 0.1);
    color: var(--text);
    font-weight: 760;
}

.neon-choice-reactive {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgb(var(--neon-secondary-rgb) / 0.32);
    border-radius: 999px;
    background: rgb(var(--neon-secondary-rgb) / 0.1);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 780;
}

.neon-choice-lock::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-top-width: 5px;
    border-radius: 2px;
    box-shadow: 0 -5px 0 -2px currentColor;
}

.neon-choice.is-locked {
    cursor: not-allowed;
    opacity: 0.72;
}

.neon-choice.is-locked:hover {
    transform: none;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

label span,
legend,
dt {
    color: var(--muted);
    font-size: 0.9rem;
}

.field-note {
    color: var(--subtle);
    font-size: 0.84rem;
    line-height: 1.5;
}

.duration-preview {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 760;
}

[data-audio-duration-preview][data-state="ok"],
[data-audio-duration-preview][data-state="manual"] {
    color: var(--mint);
}

[data-audio-duration-preview][data-state="pending"] {
    color: var(--cyan);
}

[data-audio-duration-preview][data-state="error"] {
    color: #ffd7e4;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    outline: none;
    padding: 0 14px;
}

textarea {
    min-height: 118px;
    padding: 12px 14px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(88, 213, 246, 0.62);
    box-shadow: 0 0 0 3px rgba(88, 213, 246, 0.12);
}

.chip-grid {
    flex-wrap: wrap;
}

.lyrics-choice {
    margin-bottom: 18px;
}

.genre-choice {
    margin-bottom: 18px;
}

.focus-card .chip-grid {
    gap: 10px;
}

.focus-card .chip-grid:not(.timer-options) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.focus-card .timer-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip,
.chip-option span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.focus-card .chip-option,
.focus-card .chip-option span {
    width: 100%;
}

.focus-card .chip-option span {
    justify-content: center;
    min-height: 48px;
}

.focus-card .infinity-option {
    grid-column: span 2;
}

.chip {
    appearance: none;
    text-decoration: none;
}

.chip-option {
    display: inline-flex;
}

.chip-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.chip.is-selected,
.chip:hover,
.chip-option.is-selected span,
.chip-option:hover span {
    border-color: rgba(88, 213, 246, 0.55);
    color: var(--text);
    background: rgba(88, 213, 246, 0.12);
}

.infinity-option img {
    width: 22px;
    height: 12px;
    opacity: 0.92;
}

