/* Auto-Mix-Render (Claude, 21.11.2026): page specifics on top of clubmix-tool-jobs.css (cmt-). Dark by default,
   html.light below (docs/clubmix/THEME.md). Settings left, track list / result right; one screen on 1920x1080, one
   column on phones. Colours: the cmt tokens, acid, ice blue and neutral greys only. Plain CSS, no Tailwind. */
.cmt-amx {
    --amx-ice: #4fe3e0;
    --amx-ice-soft: rgba(79, 227, 224, .14);
    --amx-block: rgba(255, 255, 255, .045);
    --amx-grid: #2c2c31;
    --wave: #5f5f66;
    --wave-played: #eeff70;
}
html.light .cmt-amx {
    --amx-ice: #0b6e75;
    --amx-ice-soft: rgba(11, 110, 117, .1);
    --amx-block: rgba(0, 0, 0, .045);
    --amx-grid: #e3e3e0;
    --wave: #c4c4c8;
    --wave-played: #0b6e75;
}
.cmt-amx .amx-grid { grid-template-columns: minmax(21rem, 27rem) 1fr; height: clamp(32rem, calc(100vh - 15rem), 54rem); }
.cmt-amx .amx-grid > .cmt-panel { min-width: 0; }
.cmt-amx .cmt-flow { gap: .3rem; padding-block: .6rem; }
.cmt-amx .cmt-stage { gap: .3rem; }
.cmt-amx .cmt-field { gap: .15rem; }
.cmt-amx .cmt-field legend, .cmt-amx .cmt-label { margin-bottom: .05rem; }
.cmt-amx .cmt-steps li { font-size: .75rem; gap: .1rem; }
.cmt-amx .cmt-steps li span { width: 1.4rem; height: 1.4rem; }
.amx-drop { padding: .5rem .7rem; gap: .1rem; }
.amx-drop span { font-size: .75rem; }
.amx-drop .cmm-pick-btn { padding: .2rem .55rem; font-size: .75rem; }
.amx-row { flex-direction: row; align-items: center; gap: .5rem; }
.amx-row .cmt-label { margin: 0; flex: none; }
.amx-row select, .amx-row input { flex: 1; min-width: 0; }
.cmt-amx input[type=text] { background: var(--t-raised); color: var(--t-fg); border: 1px solid var(--t-line2); border-radius: .5rem;
    padding: .35rem .55rem; font: inherit; }
.cmt-amx select { padding: .35rem .5rem; }
.amx-seg { padding: .18rem; gap: .18rem; }
.amx-seg span { padding: .22rem .1rem; font-size: .75rem; line-height: 1.15; }
.amx-seg4 { grid-template-columns: repeat(4, 1fr); }
.cmt-amx #amx-profile-hint, .cmt-amx #amx-price-note, .cmt-amx .amx-night { font-size: .75rem; line-height: 1.3; }
.amx-night[data-tone=night] { color: var(--amx-ice); }
.amx-tempo { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.amx-tempo .cmt-consent { align-items: center; font-size: .8125rem; color: var(--t-fg); }
.amx-tempo .cmt-consent input { margin-top: 0; }
.cmt-amx .amx-tempo input[type=number] { width: 5.2rem; padding: .25rem .4rem; }
.amx-tempo input:disabled { opacity: .5; }
.cmt-amx .cmt-consent { font-size: .75rem; line-height: 1.3; }
.amx-result { gap: .5rem; }
.amx-rights { font-size: .75rem; margin-top: .6rem; }
.amx-tracks { display: flex; flex-direction: column; gap: .35rem; min-height: 0; flex: 1; }
.amx-tracks-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.amx-tracks-head h2 { margin: 0; font-size: 1rem; }
.amx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; overflow: auto; min-height: 0; }
.amx-item { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto auto; align-items: center; gap: .5rem; padding: .35rem .55rem;
    border: 1px solid var(--t-line); border-radius: .625rem; background: var(--t-raised); position: relative; }
.amx-num { font: 700 .75rem/1 var(--t-mono); color: var(--t-muted); text-align: right; }
.amx-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amx-info { font: 500 .75rem/1.2 var(--t-mono); color: var(--t-muted); white-space: nowrap; }
.amx-tools { display: flex; gap: .2rem; }
.amx-mini { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: .5rem; border: 1px solid var(--t-line2);
    background: transparent; color: var(--t-fg); cursor: pointer; font-size: .875rem; line-height: 1; }
.amx-mini:hover { border-color: var(--amx-ice); color: var(--amx-ice); }
.amx-mini:disabled { opacity: .35; cursor: not-allowed; }
.amx-up { position: absolute; left: .55rem; right: .55rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--t-line); overflow: hidden; }
.amx-up i { display: block; height: 100%; width: 0; background: var(--amx-ice); transition: width .3s; }
.amx-view { display: flex; flex-direction: column; gap: .5rem; min-height: 0; flex: 1; }
.amx-tiles { margin: 0; }
.amx-tiles dd { font-size: clamp(.8rem, 1vw, .98rem); }
.amx-player { display: flex; align-items: center; gap: .6rem; }
.amx-scrubber { flex: 1; min-width: 0; display: grid; gap: .18rem; }
.amx-wave { width: 100%; height: 3.15rem; display: block; border-radius: .625rem; background: var(--t-raised); border: 1px solid var(--t-line); cursor: pointer; }
.amx-time { font: 600 .8125rem/1 var(--t-mono); color: var(--t-muted); white-space: nowrap; min-width: 6.5rem; text-align: right; }
.amx-scrubber input { width: 100%; margin: 0; accent-color: var(--amx-ice); }
.amx-now, .amx-playback-status { margin: 0; overflow-wrap: anywhere; }
.amx-now { display: flex; gap: .45rem; align-items: baseline; min-width: 0; }
.amx-now > span { white-space: nowrap; }
.amx-now > bdi { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--t-fg); font-weight: 700; }
.amx-playback-status { color: var(--t-muted); }
.amx-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: .6rem;
    min-height: 8rem; flex: 1 1 0; align-items: start; }
.amx-body > * { max-height: 100%; overflow: auto; box-sizing: border-box; }
.amx-table-wrap { overflow: auto; min-height: 0; border: 1px solid var(--t-line); border-radius: .75rem; }
.amx-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.amx-table th, .amx-table td { padding: .28rem .45rem; border-bottom: 1px solid var(--t-line); text-align: left; font-variant-numeric: tabular-nums;
    white-space: nowrap; }
.amx-table thead th { position: sticky; top: 0; background: var(--t-panel); font: 700 .62rem/1.4 var(--t-mono); text-transform: uppercase;
    letter-spacing: .06em; color: var(--t-muted); }
.amx-table[data-playable] tbody tr { cursor: pointer; }
.amx-table[data-playable] tbody tr:hover, .amx-table tbody tr[data-current] { background: var(--amx-ice-soft); }
.amx-table tbody tr[data-current] td:first-child { box-shadow: inset 3px 0 var(--amx-ice); }
.amx-chapter, .amx-transition-start { padding: .1rem .15rem; border: 0; border-radius: .18rem; background: transparent; color: var(--amx-ice); font: inherit; cursor: pointer; }
.amx-transition-start { display: block; min-height: 24px; font-size: .75rem; text-decoration: underline; text-underline-offset: .15em; }
.amx-chapter:disabled, .amx-transition-start:disabled { color: var(--t-muted); cursor: default; }
.amx-td-name { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.amx-energy { display: inline-block; width: 3.5rem; height: .45rem; border-radius: 999px; background: var(--t-line); overflow: hidden; vertical-align: middle; }
.amx-energy i { display: block; height: 100%; background: linear-gradient(90deg, var(--amx-ice), #eeff70); }
html.light .amx-energy i { background: var(--amx-ice); }
.amx-rel { display: inline-block; padding: .05rem .4rem; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid var(--amx-ice);
    color: var(--amx-ice); }
.amx-rel[data-rel=diagonal], .amx-rel[data-rel=boost2], .amx-rel[data-rel=boost7], .amx-rel[data-rel=unknown] { border-color: var(--t-line2); color: var(--t-muted); }
.amx-rel[data-rel=clash] { border-color: var(--t-bad); color: var(--t-bad); }
.amx-style { font-size: .75rem; color: var(--t-muted); }
.amx-chart { margin: 0; background: var(--t-raised); border: 1px solid var(--t-line); border-radius: .75rem; padding: .45rem .6rem .4rem;
    min-width: 0; display: flex; flex-direction: column; }
.amx-chart figcaption { font: 700 .64rem/1.4 var(--t-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--t-muted); }
.amx-chart svg { width: 100%; height: auto; display: block; }
.amx-grid-line { stroke: var(--amx-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.amx-mark { stroke: var(--amx-ice); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; vector-effect: non-scaling-stroke; }
.amx-energy-line { fill: none; stroke: #eeff70; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
html.light .amx-energy-line { stroke: var(--amx-ice); }
.amx-energy-dot { fill: var(--amx-ice); }
.amx-warnings { margin: 0; padding-left: 1.1rem; font-size: .8125rem; color: var(--t-warn); }
.amx-warnings:empty { display: none; }
.amx-view .cmt-downloads { margin-top: 0; }
.amx-view .cmt-hint { font-size: .75rem; }
.amx-view .amx-rights { margin-top: 0; }
.cmt-amx .cmt-status[data-tone=warn] { color: var(--t-warn); }

@media (max-width: 900px) {
    .cmt-amx .amx-grid { grid-template-columns: 1fr; height: auto; }
    .amx-body { grid-template-columns: 1fr; grid-template-rows: auto; flex: none; }
    .amx-body > * { max-height: none; }
    .amx-table-wrap { max-width: 100%; overflow-x: auto; }
    .amx-item { grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
    .amx-info { grid-column: 2; grid-row: 2; }
    .amx-tools { grid-column: 3; grid-row: 1 / span 2; }
    .amx-time { min-width: 0; }
    .amx-td-name { max-width: 9rem; }
}

.amx-cover {
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    box-sizing: border-box;
    vertical-align: middle;
    overflow: hidden;
    border: 1px solid var(--t-line2);
    border-radius: .25rem;
    background: var(--t-raised);
    color: var(--t-muted);
    font-size: .8125rem;
}
.amx-td-name .amx-cover { margin-inline-end: .4rem; }
.amx-cover:not([data-cover-ready])::before { content: '♪'; }
.amx-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.amx-now .amx-cover { flex: none; width: 1.65rem; height: 1.65rem; align-self: center; }
