/* Copyright 2026-Present Aktis Inc.
   The web player (/music/): a side bar, the content, the YouTube video window, a bar of what plays
   at the bottom. Colours, type and controls come from the site's own site.css.
   author Andrew Terekhine
   since 2026-11-25 */

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 14px 96px;
    border-inline-end: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side .logo { padding: 2px 10px 22px; }
.side a.item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--control);
    color: var(--soft);
    font-size: 15px;
    font-weight: 500;
}
.side a.item:hover { color: var(--text); }
.side a.item[aria-current] { color: var(--text); background: rgba(184, 24, 41, .26); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 14px 10px; }
.side .get {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}
.side .get small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }

.content { padding: 18px clamp(18px, 3vw, 36px) 120px; min-width: 0; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar .search {
    flex: 1;
    max-width: 520px;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 15px;
}
.bar .spacer { flex: 1; }
.bar .logo { display: none; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-block: 34px 6px; }
.head h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: var(--track-display); }
.head .mascot { width: 92px; }
.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-block: 14px 6px;
    scrollbar-width: none;
}
.chips a {
    flex: none;
    padding: 8px 16px;
    border-radius: var(--control);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--soft);
    font-size: 14px;
    font-weight: 500;
}
.chips a[aria-current] { background: var(--crimson); border-color: transparent; color: #fff; }
.row { padding-top: 34px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 16px; }
.row-head h2 { font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cover { display: flex; flex-direction: column; gap: 10px; }
.cover img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
}
.cover b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.cover span { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.cover span .icon { color: var(--crimson); }
.station {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
}
.station i {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(184, 24, 41, .22);
    color: var(--text);
}
.station div { min-width: 0; }
.station b {
    display: block;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.station span { color: var(--faint); font-size: 13px; }
.genre { position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 10px;
    overflow: hidden; border: 1px solid var(--line); display: block; }
.genre img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.genre::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(9, 9, 11, .9), rgba(9, 9, 11, .15) 60%); }
.genre b { position: absolute; inset: auto auto 12px 14px; font-size: 20px; font-weight: 500; }
.genre small {
    position: absolute;
    inset: 12px 12px auto auto;
    font-size: 12px;
    color: var(--body);
    background: rgba(9, 9, 11, .6);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 8px;
}

.playing {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 15;
    height: 78px;
    padding-inline: 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    background: rgba(16, 16, 18, .72);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    border-top: 1px solid var(--line);
}
.playing .now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.playing .now img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.playing .now > div { min-width: 0; }
.playing .now b, .playing .now span { display: block; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; }
.playing .now b { font-size: 15px; font-weight: 500; }
.playing .now span { color: var(--faint); font-size: 13px; }
.playing .keys { display: flex; align-items: center; gap: 14px; color: var(--text); }
.playing .keys .dim { color: var(--soft); }
.playing .keys i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--text);
    color: var(--carbon);
}
.playing .side-keys { justify-self: end; display: flex; align-items: center; gap: 12px;
    color: var(--soft); }
.playing .level {
    width: 110px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .16);
}
.playing .level u { display: block; width: 68%; height: 100%; border-radius: 2px;
    background: var(--crimson); }
.tabs-bottom { display: none; }

/* sign in */
.sign {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    position: relative;
    isolation: isolate;
}
.sign::before { content: ""; position: absolute; inset: 0 0 auto 0; margin-inline: auto;
    width: min(100%, 980px); aspect-ratio: 1672 / 941; z-index: -1; opacity: .55;
    background: url(../s/hero.webp) center / contain no-repeat;
    -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent);
    mask-image: radial-gradient(closest-side, #000 50%, transparent); }
.sign-card { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center;
    gap: 14px; text-align: center; padding: 36px 30px 30px; background: rgba(16, 16, 18, .72);
    -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px);
    border: 1px solid var(--line); border-radius: 20px; }
.sign-card .mascot { width: 84px; margin-top: 10px; }
.sign-card h1 { font-size: 34px; letter-spacing: var(--track-display); }
.sign-card p { color: var(--soft); max-width: 22em; }
.sign-card .button { width: 100%; padding: 14px 20px; font-size: 16px; }
.sign-card .buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.sign-card .guest { color: var(--soft); font-size: 15px; font-weight: 500; padding: 8px; }
.sign-card .guest:hover { color: var(--text); }
.sign-card small { color: var(--faint); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.sign-card small a { color: var(--soft); text-decoration: underline;
    text-decoration-color: var(--crimson); text-underline-offset: 3px; }

@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { display: none; }
    .bar .logo { display: flex; }
    .bar .search { display: none; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content { padding-bottom: 170px; }
    .playing { inset: auto 0 58px 0; height: 64px; grid-template-columns: 1fr auto; }
    .playing .side-keys, .playing .keys .dim, .playing .keys .skip { display: none; }
    .tabs-bottom {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 15;
        height: 58px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: var(--carbon);
        border-top: 1px solid var(--line);
    }
    .tabs-bottom a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--faint);
        font-size: 11px;
        font-weight: 500;
    }
    .tabs-bottom a[aria-current] { color: var(--text); }
}

/* pages of one kind of music */
.lead { color: var(--soft); max-width: 44em; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; }
.who i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    font-style: normal;
    font-weight: 600;
}
.watch {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
}
.watch h1 { font-size: 30px; margin-block: 8px 4px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px;
    margin-top: 12px; }
.row-head .hint { margin-top: 0; }
.hint .icon { color: var(--crimson); }
.tracks { list-style: none; margin: 18px 0 0; padding: 0; }
.tracks li {
    display: grid;
    grid-template-columns: 20px 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: var(--control);
    color: var(--faint);
    font-size: 13px;
}
.tracks li[aria-current="true"] { background: rgba(255, 255, 255, .08); }
.tracks img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; display: block; }
.tracks b {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rows { display: flex; flex-direction: column; }
.rows a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
}
.rows img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; }
.rows b { display: block; font-size: 15px; font-weight: 500; }
.rows div span { color: var(--faint); font-size: 13px; }
.content .help-card { margin-top: 40px; }

@media (max-width: 860px) {
    .watch { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    /* a phone keeps the logo and the country in the top row, the sign in sits in the tabs */
    .bar .wide, .bar .button { display: none; }
    .pick select { max-width: 7em; }
    /* a station name needs the whole width */
    .grid:has(.station) { grid-template-columns: minmax(0, 1fr); }
}

/* the real player: country pick, hearts, the video window, messages */
.pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--control);
    background: rgba(255, 255, 255, .07);
    color: var(--text);
}
.pick select {
    background: none;
    border: 0;
    outline: 0;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    max-width: 11em;
}
.pick select option { color: #000; }
.cover-art { position: relative; }
/* a chart picture is a video frame, wide */
.cover-art img { background: var(--graphite); aspect-ratio: 16 / 9; }
.heart {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 9, 11, .6);
    color: var(--soft);
    cursor: pointer;
}
.heart[aria-pressed="true"] { color: var(--crimson); background: #fff; }
.cover-art .heart { position: absolute; top: 8px; right: 8px; }
.station .heart { margin-inline-start: auto; flex: none; background: none; }
.station .heart[aria-pressed="true"] { background: none; color: #ff5a6a; }
.station[aria-current="true"] { border-color: var(--crimson); }
.genre-plain {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    aspect-ratio: 16 / 9;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(184, 24, 41, .34), transparent 60%),
        var(--graphite);
}
.genre-plain b { font-size: 20px; font-weight: 500; }
.genre-plain small { color: var(--soft); font-size: 12px; }
.genre-plain:hover { border-color: var(--line-strong); }
.head .lead { margin-top: 10px; }
.more { font-size: 14px; }

.dock {
    position: sticky;
    top: 18px;
    align-self: start;
    margin-top: 28px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}
.dock iframe, .dock #yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#dock-close {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 9, 11, .8);
    color: var(--text);
    cursor: pointer;
}
/* away from the page of the list the video stays on screen as a small window */
.dock.mini {
    position: fixed;
    inset: auto 18px 96px auto;
    z-index: 16;
    width: 340px;
    margin: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.dock.mini #dock-close { display: grid; }
.content.watching {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 0 28px;
    align-content: start;
}
.content.watching .bar { grid-column: 1 / -1; }
.queue-side { padding-top: 28px; }
.queue-side h1 { font-size: 30px; margin-block: 8px 4px; }
.tracks { max-height: calc(100vh - 330px); overflow-y: auto; }
.tracks li { cursor: pointer; }
.tracks li:hover { background: rgba(255, 255, 255, .04); }
.tracks .by { display: block; }

.playing .now i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(184, 24, 41, .26);
    font-style: normal;
}
.round {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    color: var(--carbon);
    cursor: pointer;
}
/* previous and next of a playlist of the app, quieter than play */
.round.step { width: 36px; height: 36px; background: none; color: var(--text);
    border: 1px solid var(--line-strong); }
.round.step:hover { background: rgba(255, 255, 255, .08); }
.playing input[type="range"] { width: 110px; accent-color: var(--crimson); }
.content .sign-card { margin: 40px auto 0; background: var(--graphite); }
.content .sign-card h2 { font-size: 26px; }
/* the account sign in: Google draws its own button in a frame (kept light, a dark frame gets a
   white box), the Apple button stands under it at the same size */
.sign-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-top: 8px; min-height: 40px; }
.sign-google { min-height: 40px; color-scheme: light; }
.sign-card .sign-apple { width: 260px; height: 40px; padding: 0 12px; gap: 8px; font-size: 14px;
    border-radius: 4px; }
/* a line of words in a row of cards takes the whole row */
.grid > .lead { grid-column: 1 / -1; }
/* a playlist without a video to take its picture from */
.cover-blank { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--faint);
    background: var(--graphite); border: 1px solid var(--line); border-radius: 10px; }
/* a track that only plays in the app, a track without a picture */
.tracks li.off { cursor: default; }
.tracks li.off b, .tracks li.off img, .tracks li.off i { opacity: .45; }
.tracks li small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.tracks li i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px;
    background: var(--graphite); color: var(--faint); }
.toast {
    position: fixed;
    inset: auto 0 100px 0;
    z-index: 30;
    width: fit-content;
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    padding: 10px 16px;
    background: var(--raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: 14px;
}
form.search { margin: 0; }

@media (max-width: 860px) {
    .content.watching { display: block; }
    .dock { top: 8px; z-index: 5; }
    .dock.mini { inset: auto 10px 132px auto; width: 210px; }
    .tracks { max-height: none; }
    .playing .keys .button { padding: 7px 12px; }
    .toast { bottom: 140px; }
}