/* Public plays feed (/plays) and player profiles (/players/{slug}).
   Loaded after landing.css and leans on its theme variables. */

.plays-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

.plays-wrap {
    display: grid;
    gap: 28px;
}

.plays-empty {
    color: var(--ink-dim);
}

/* Feed summary strip */

.week-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    border-radius: 12px;
    background: var(--action);
    color: var(--action-ink);
    padding: 12px 20px;
    font: 400 12px/1.5 "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
    overflow: hidden;
    white-space: nowrap;
}

html[data-theme="light"] .week-ticker {
    background: #07383d;
}

.week-ticker .status-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
}

.week-ticker-label {
    flex-shrink: 0;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

html[data-theme="light"] .week-ticker-label {
    color: #a6e3c0;
}

.week-ticker-sep {
    opacity: 0.35;
}

/* Filters */

.play-filters {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

/* .filter-row / .filter-pill styles are shared and live in landing.css. */

/* Date-grouped ledger */

.ledger-group {
    display: grid;
    gap: 12px;
}

.ledger-date {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ledger-date span {
    font: 700 11px/1.4 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
}

.ledger-date i {
    flex-grow: 1;
    border-top: 1px dashed var(--line-strong);
}

.ledger-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: var(--surface);
    padding: 48px;
    text-align: center;
}

.ledger-empty b {
    font-family: Fraunces, Georgia, serif;
    font-size: 24px;
}

.ledger-empty span {
    font-size: 14px;
    color: var(--ink-dim);
}

/* Play card */

.play-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 14px 32px -24px var(--action-shadow);
}

.play-cover {
    margin: 0;
    flex: 0 0 auto;
}

.play-cover img,
.play-cover-fallback {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--action);
    color: var(--action-ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.play-body {
    display: grid;
    gap: 8px;
    flex-grow: 1;
}

.play-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-title {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 21px;
    color: var(--ink);
}

.play-mode {
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 4px 10px;
    font: 400 10px/1.4 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
}

.play-mode.is-coop {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    color: var(--accent);
}

.play-date {
    margin: 0;
    font-size: 13px;
    color: var(--ink-mute);
}

.play-participants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.play-participant {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    background: var(--surface-hi);
}

.play-participant.is-named {
    padding-left: 6px;
    font-weight: 600;
    color: var(--ink);
}

.play-participant.is-anon {
    border-style: dashed;
    border-color: var(--line-strong);
}

.play-avatar {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--bg-2);
    color: var(--ink);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.play-participant a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.play-participant a:hover {
    text-decoration: underline;
}

.play-participant.is-winner {
    border-style: solid;
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent);
}

.play-participant.is-winner a {
    color: var(--accent);
}

.play-winner-mark {
    color: var(--accent);
}

/* Aside */

.plays-aside {
    display: grid;
    gap: 20px;
}

.aside-cta {
    display: grid;
    gap: 14px;
    border-radius: 18px;
    background:
        radial-gradient(rgba(255, 241, 220, 0.06) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
        linear-gradient(180deg, #07383d 0%, #04262a 100%);
    color: #fff1dc;
    padding: 28px;
    box-shadow: 0 20px 44px -22px rgba(7, 56, 61, 0.5);
}

.aside-kicker {
    font: 700 11px/1.4 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a6e3c0;
}

.aside-cta b {
    font-family: Fraunces, Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
}

.aside-cta p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 241, 220, 0.68);
}

.aside-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    background: #fff1dc;
    color: #07383d;
    font-size: 14px;
    font-weight: 600;
}

.aside-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 24px;
}

.aside-label {
    font: 700 11px/1.4 "JetBrains Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.aside-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-dim);
}

.aside-chip {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
}

.aside-chip.is-named {
    border: 1px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent);
    font-weight: 600;
}

.aside-chip.is-anon {
    border: 1px dashed var(--line-strong);
    background: var(--surface-hi);
    color: var(--ink-mute);
}

.aside-foot {
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-dim);
}

@media (max-width: 920px) {
    .plays-layout {
        grid-template-columns: 1fr;
    }

    .week-ticker {
        white-space: normal;
        flex-wrap: wrap;
    }
}

/* Live page: named live-session list under the anonymous aggregate */

.live-sessions-note {
    color: var(--ink-dim);
    margin: -8px 0 16px;
    font-size: 14px;
}

.live-sessions {
    margin-bottom: 32px;
}

/* Profile page */

.profile-head {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--avatar-color, var(--surface-hi));
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-live {
    color: var(--live);
    font-weight: 600;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 24px;
    display: grid;
    gap: 2px;
    min-width: 120px;
}

.profile-stat strong {
    font-size: 26px;
    color: var(--ink);
}

.profile-stat small {
    color: var(--ink-mute);
}

.profile-section-title {
    color: var(--ink);
    font-size: 22px;
    margin: 0 0 16px;
}

.profile-games {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
