/*
 * The member's account pages (/account, /notifications) alone (PageStylesheets.cs, #303).
 */

/* --- The profile picture (DECISIONS #105) --------------------------------------- */
.account-avatar {
    margin-block: var(--aq-space-6) var(--aq-space-8);
}

.account-avatar__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--aq-space-4) var(--aq-space-6);
    align-items: start;
}

.account-avatar__current {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    border: 2px solid var(--aq-accent);
    border-radius: 50%;
    background: var(--aq-bg-200);
    color: var(--aq-accent-light);
    font-family: var(--aq-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    object-fit: cover;
}

.account-avatar__stage {
    display: grid;
    gap: var(--aq-space-2);
    max-width: 15rem;
    margin-top: var(--aq-space-4);
}

/* The canvas is the circle: what shows is exactly what is kept. */
.account-avatar__stage canvas {
    width: 15rem;
    max-width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--aq-accent);
    border-radius: 50%;
    background: var(--aq-bg-200);
    cursor: grab;
    touch-action: none;
}

.account-avatar__stage canvas:active {
    cursor: grabbing;
}

.account-avatar__stage canvas:focus-visible {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 4px;
}

.account-avatar__remove {
    grid-column: 2;
}

@media (max-width: 575.98px) {
    .account-avatar__row {
        grid-template-columns: 1fr;
    }

    .account-avatar__remove {
        grid-column: 1;
    }
}

/* ---- Tabs & Playthroughs: sending (phase 4) ------------------------------- */
.tabs-alert--ok {
    border-color: rgb(74 222 128 / 45%);
    background: rgb(74 222 128 / 8%);
    color: var(--aq-text-100);
}

.tabs-alert--error {
    border-color: rgb(248 113 113 / 55%);
    background: rgb(248 113 113 / 8%);
    color: var(--aq-text-100);
}

.tabs-alert--team {
    border-color: var(--aq-accent);
    background: color-mix(in srgb, var(--aq-accent) 8%, var(--aq-bg-200));
}

.tabs-alert__title {
    color: var(--aq-accent-light);
    font-weight: 600;
}

.tabs-alert__small {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.tabs-form {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-4);
    padding: var(--aq-space-6);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
}

.tabs-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--aq-space-2);
    margin: 0;
}

.tabs-form__label {
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.tabs-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--aq-space-4);
}

.tabs-field {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-1);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--aq-text-200);
    font-size: var(--aq-text-sm);
}

.tabs-field legend {
    float: none;
    margin-bottom: var(--aq-space-1);
    font-size: var(--aq-text-sm);
}

.tabs-drop input[type="file"] {
    padding: var(--aq-space-6) var(--aq-space-3);
    border-style: dashed;
    border-color: color-mix(in srgb, var(--aq-accent) 50%, var(--aq-border-strong));
}

.tabs-choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-2);
}

.tabs-choice input {
    position: absolute;
    opacity: 0;
}

.tabs-choice input:focus-visible + span {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 2px;
}

.tabs-check {
    display: flex;
    gap: var(--aq-space-2);
    align-items: flex-start;
    color: var(--aq-text-100);
    font-size: var(--aq-text-sm);
}

.tabs-current-file {
    margin: 0;
    padding: var(--aq-space-2) var(--aq-space-3);
    border: 1px solid rgb(74 222 128 / 35%);
    border-radius: var(--aq-radius);
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

.tabs-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aq-space-3);
}

.tabs-steps,
.tabs-rules {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
    padding-inline-start: var(--aq-space-5);
    color: var(--aq-text-200);
    font-size: var(--aq-text-xs);
}

.tabs-mine__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--aq-space-3);
}

.tabs-mine__intro {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.tabs-rows {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tabs-row {
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    background: var(--aq-bg-200);
}

.tabs-row__main {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: var(--aq-space-3);
}

.tabs-row__thumb {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 2.5rem;
    overflow: hidden;
    border-radius: var(--aq-radius-sm);
    background: var(--aq-bg-100);
    color: var(--aq-accent-light);
    font-size: 0.625rem;
    font-weight: 700;
}

.tabs-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tabs-row__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tabs-row__text strong {
    overflow: hidden;
    color: var(--aq-text-100);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabs-row__text small,
.tabs-row__when {
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.tabs-row__action {
    display: flex;
    gap: var(--aq-space-3);
    font-size: var(--aq-text-xs);
    font-weight: 600;
}

.tabs-row__note {
    margin: var(--aq-space-2) 0 0 calc(4.5rem + var(--aq-space-3));
    color: var(--aq-text-300);
    font-size: var(--aq-text-xs);
}

.tabs-row__note--team {
    color: var(--aq-accent-light);
}

.tabs-state {
    padding: 1px var(--aq-space-2);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-pill);
    color: var(--aq-text-200);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.tabs-state--inreview {
    border-color: color-mix(in srgb, var(--aq-primary) 60%, transparent);
    color: color-mix(in srgb, var(--aq-primary) 55%, white);
}

.tabs-state--approved {
    border-color: rgb(74 222 128 / 55%);
    color: #4ade80;
}

.tabs-state--changesrequested {
    border-color: rgb(251 191 36 / 55%);
    color: #fbbf24;
}

.tabs-state--rejected {
    border-color: rgb(248 113 113 / 55%);
    color: #f87171;
}

@media (max-width: 699.98px) {
    .tabs-row__main {
        grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    }

    .tabs-row__thumb {
        width: 3.5rem;
    }

    .tabs-row__when,
    .tabs-row__action {
        grid-column: 2 / -1;
    }

    .tabs-row__note {
        margin-inline-start: 0;
    }
}

/* ---- "Posting as", band and Fan Club timelines (Bands & Fan Clubs phase 10; Figma S06, S24, S31, M4) ---- */

/* The profile song (DECISIONS #200; Figma S13, S14). */
.account-song {
    display: flex;
    flex-direction: column;
    gap: var(--aq-space-3);
    max-width: 520px;
    margin-bottom: var(--aq-space-4);
}

.account-song__remove {
    align-self: flex-start;
}

.account-song__search {
    max-width: 520px;
    margin-bottom: var(--aq-space-3);
}

/* --- Group chat radio, phase 3: the player (docs/chat-radio-plan.md) ---------------------- */

/* What the member's Spotify does now, on the profile (global radio, phase 8; Figma page 45, M14). */
.account-spotify__state {
    display: grid;
    gap: var(--aq-space-1);
    margin: 0 0 var(--aq-space-4);
    padding: 0;
    color: var(--aq-text-200);
    list-style: none;
}

/* --- The member's streaming platform (DECISIONS #420) ---------------------------- */
.streaming-options {
    display: grid;
    gap: var(--aq-space-3);
    margin: var(--aq-space-4) 0 var(--aq-space-6);
    padding: 0;
    border: 0;
}

.streaming-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--aq-space-4);
    min-height: 64px;
    padding: var(--aq-space-3) var(--aq-space-4);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-md);
    background: var(--aq-bg-200);
    color: var(--aq-text-100);
    cursor: pointer;
    transition: border-color var(--aq-transition), background-color var(--aq-transition);
}

.streaming-option:hover {
    border-color: var(--aq-accent);
}

.streaming-option:has(.streaming-option__input:checked) {
    border-color: var(--aq-accent);
    background: var(--aq-bg-300);
}

.streaming-option:has(.streaming-option__input:focus-visible) {
    outline: 2px solid var(--aq-accent-light);
    outline-offset: 2px;
}

/* The real radio stays in the card (a tap, the keyboard and a screen reader all use it); its look is the ring on the right. */
.streaming-option__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.streaming-option__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--aq-text-300);
}

.streaming-option__text {
    display: grid;
    flex: 1;
    gap: var(--aq-space-1);
    min-width: 0;
}

.streaming-option__name {
    font-weight: 600;
}

.streaming-option__hint {
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
}

.streaming-option__radio {
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--aq-text-300);
    border-radius: 50%;
}

.streaming-option__input:checked ~ .streaming-option__radio {
    border-color: var(--aq-accent);
    background: radial-gradient(circle, var(--aq-accent) 0 45%, transparent 50%);
}

/* The mandatory screen: one question, the five answers, one button. */
.streaming-choice {
    display: grid;
    gap: var(--aq-space-2);
}

.streaming-choice__eyebrow {
    margin: 0;
    color: var(--aq-accent-light);
    font-size: var(--aq-text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.streaming-choice__title {
    margin: 0;
    font-family: var(--aq-font-display);
    font-size: 1.75rem;
}

.streaming-choice__text {
    margin: 0;
    color: var(--aq-text-200);
}

.streaming-choice__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.streaming-choice__note {
    margin: 0;
    color: var(--aq-text-300);
    font-size: var(--aq-text-sm);
    text-align: center;
}
