/* Thiraimax Music (1 Dec 2026). Same dark tokens as TV serials / Movies; red = playing, gold = Plus. */
.x-page { --x-gap: clamp(16px, 4vw, 48px); --x-surface: var(--tx2-surface, #141417); --x-surface-2: var(--tx2-surface-2, #1d1d22); --x-text: var(--tx2-text, #f4f4f6); --x-muted: var(--tx2-muted, #a3a3ad);
  max-width: 1440px; margin: 0 auto; padding: 28px var(--x-gap) 120px; color: var(--x-text); font-family: "Archivo", system-ui, sans-serif; }
.m-page { --m-red: #e8344a; --m-gold: #f4c04e; }
.x-page h1, .x-page h2, .x-page h3 { color: var(--x-text) !important; }
.m-page a { color: inherit; }
.m-page button { font-family: inherit; }

.m-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin: 8px 0 18px; }
.m-title h1 { margin: 0 0 6px; font: 900 clamp(40px, 6vw, 76px)/.92 "Archivo", system-ui, sans-serif; font-stretch: 72%; letter-spacing: -.01em; }
.m-sub { margin: 0; color: var(--x-muted); font-size: 15.5px; }
.m-search { position: relative; flex: 0 1 420px; }
.m-search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--x-muted); stroke-width: 2; stroke-linecap: round; }
.m-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid #2c2c33; background: var(--x-surface); color: var(--x-text); font: 500 15.5px/1 "Archivo", system-ui, sans-serif; }
.m-search input:focus { outline: 2px solid var(--x-text); outline-offset: 1px; }

.m-tabs { display: flex; gap: 6px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #24242a; }
.m-tabs a { position: relative; padding: 12px 14px 14px; font: 800 15px/1 "Archivo", system-ui, sans-serif; color: var(--x-muted); text-decoration: none; white-space: nowrap; }
.m-tabs a:hover { color: var(--x-text); }
.m-tabs a.is-on { color: var(--x-text); }
.m-tabs a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--m-red); }
.m-tabn { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--x-surface-2); font-size: 12px; color: var(--x-text); }

.m-wait, .m-empty { color: var(--x-muted); padding: 28px 0; font-size: 16px; }
.m-empty a, .m-note a { text-decoration: underline; }
.m-note { color: var(--x-muted); margin: 0 0 14px; max-width: 70ch; }
.m-h2 { margin: 28px 0 14px; font: 800 clamp(22px, 2.4vw, 28px)/1.1 "Archivo", system-ui, sans-serif; }

/* rows of tiles */
.m-sec { margin: 30px 0 0; }
.m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.m-head h2 { margin: 0; font: 800 clamp(20px, 2.2vw, 26px)/1.1 "Archivo", system-ui, sans-serif; }
.m-head p { margin: 4px 0 0; color: var(--x-muted); font-size: 13.5px; }
.m-more { font-weight: 800; font-size: 14px; text-decoration: none; color: var(--x-muted) !important; }
.m-more:hover { color: var(--x-text) !important; }
.m-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, calc((100% - 6 * 16px) / 7)); gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.m-row::-webkit-scrollbar { display: none; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }
.m-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--x-text); text-align: left; text-decoration: none; cursor: pointer; scroll-snap-align: start; }
.m-tile b { margin-top: 8px; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile small { color: var(--x-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile .m-art { transition: transform .2s ease; }
.m-tile:hover .m-art { transform: translateY(-3px); }
.m-round .m-art { border-radius: 50%; }
.m-round { align-items: center; text-align: center; }

/* cover art */
.m-art { position: relative; display: block; flex: none; overflow: hidden; border-radius: 10px; background: var(--x-surface-2); }
.m-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-art-l { width: 100%; aspect-ratio: 1; }
.m-art-s { width: 48px; height: 48px; border-radius: 7px; }
.m-art-none { background: linear-gradient(145deg, hsl(var(--h) 55% 32%), hsl(calc(var(--h) + 40) 60% 16%)); display: grid; place-items: center; }
.m-art-none b { font: 900 clamp(18px, 3vw, 44px)/1 "Archivo", system-ui, sans-serif; color: rgba(255, 255, 255, .85); }
.m-art-s.m-art-none b { font-size: 20px; }

/* a film / composer page */
.m-hero { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: end; margin: 26px 0 24px; }
.m-hero h2 { margin: 2px 0 6px; font: 900 clamp(30px, 4.6vw, 58px)/.98 "Archivo", system-ui, sans-serif; font-stretch: 80%; }
.m-hero p { margin: 0; color: var(--x-muted); }
.m-hero .m-kind { font-weight: 800; font-size: 14px; color: var(--m-red); }
.m-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #3a3a42; background: var(--x-surface-2); color: var(--x-text) !important; font: 800 15px/1 "Archivo", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.m-btn:hover { border-color: var(--x-text); }
.m-btn-gold { background: var(--m-gold); border-color: var(--m-gold); color: #1b1404 !important; }
.m-btn-gold:hover { filter: brightness(1.08); border-color: var(--m-gold); }
.m-btn-quiet { background: none; color: var(--x-muted) !important; }

/* song list */
.m-list { list-style: none; margin: 0; padding: 0; }
.m-song { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.m-song:hover { background: var(--x-surface); }
.m-songplay { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: var(--x-text); text-align: left; cursor: pointer; }
.m-num { width: 24px; text-align: right; color: var(--x-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.m-songt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-songt b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-songt small { font-size: 13.5px; color: var(--x-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-dur { color: var(--x-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.m-saved { font-size: 12px; font-weight: 800; color: var(--m-gold); }
.m-song.is-now .m-songt b { color: var(--m-red); }
.m-song.is-now .m-num { color: transparent; background: linear-gradient(var(--m-red), var(--m-red)) 4px 100%/3px 60% no-repeat, linear-gradient(var(--m-red), var(--m-red)) 10px 100%/3px 100% no-repeat, linear-gradient(var(--m-red), var(--m-red)) 16px 100%/3px 40% no-repeat; height: 16px; }

/* round icon buttons */
.m-ib { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--x-text); cursor: pointer; position: relative; }
.m-ib:hover { background: var(--x-surface-2); }
.m-ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-songsave { color: var(--x-muted); }
.m-songsave.is-on, #m-save.is-on { color: var(--m-gold); }
.m-ib.is-busy { animation: m-pulse 1s ease-in-out infinite; }
@keyframes m-pulse { 50% { opacity: .35; } }

/* the player bar */
body.m-has-bar { padding-bottom: 86px; }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: rgba(14, 14, 17, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid #26262c; color: var(--tx2-text, #f4f4f6); font-family: "Archivo", system-ui, sans-serif; }
.m-bar[hidden] { display: none; }
.m-seek { position: absolute; left: 0; right: 0; top: -9px; height: 18px; }
.m-seek input { width: 100%; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.m-seek input::-webkit-slider-runnable-track { height: 3px; background: #3a3a42; }
.m-seek input::-moz-range-track { height: 3px; background: #3a3a42; }
.m-seek input::-moz-range-progress { height: 3px; background: #e8344a; }
.m-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: #e8344a; }
.m-seek input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #e8344a; }
.m-bar-in { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 12px clamp(12px, 3vw, 40px); }
.m-now { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.m-nowt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-nowt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-nowt small { font-size: 13px; color: #a3a3ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ctl { display: flex; align-items: center; gap: 6px; }
.m-ctl .m-ib { color: #f4f4f6; }
.m-big { width: 50px; height: 50px; background: #f4f4f6 !important; color: #111 !important; }
.m-big svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.m-big .i-pause, .m-bar.is-playing .m-big .i-play { display: none; }
.m-bar.is-playing .m-big .i-pause { display: block; }
.m-opt { color: #8b8b95 !important; }
.m-opt[aria-pressed="true"] { color: #e8344a !important; }
.m-opt i { position: absolute; right: 6px; top: 6px; font: 900 10px/1 system-ui; font-style: normal; }
.m-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.m-time { color: #a3a3ad; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* join card + toast */
.m-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); }
.m-modal[hidden] { display: none; }
.m-card { position: relative; width: min(400px, 100%); padding: 26px; border-radius: 18px; background: #17171b; border: 1px solid #2c2c33; color: #f4f4f6; text-align: center; font-family: "Archivo", system-ui, sans-serif; }
.m-card .m-art-l { width: 160px; margin: 0 auto 16px; border-radius: 14px; }
.m-card h2 { margin: 0 0 8px; font: 800 22px/1.2 "Archivo", system-ui, sans-serif; color: #f4f4f6 !important; }
.m-card p { margin: 0 0 18px; color: #a3a3ad; }
.m-card .m-btn { display: flex; width: 100%; margin-top: 10px; }
.m-x { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 0; background: none; color: #a3a3ad; font-size: 26px; cursor: pointer; }
.m-toast { position: fixed; left: 50%; bottom: 104px; z-index: 1400; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: #f4f4f6; color: #111; font: 600 14.5px/1.35 "Archivo", system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.m-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
	.m-row { grid-auto-columns: 42%; }
	.m-grid { grid-template-columns: repeat(2, 1fr); }
	.m-hero { grid-template-columns: 120px 1fr; align-items: center; }
	.m-hero .m-acts { grid-column: 1 / -1; }
	.m-dur { display: none; }
	.m-bar-in { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; }
	.m-right, #m-shuf, #m-rep { display: none; }
	.m-big { width: 44px; height: 44px; }
	body.m-has-bar .m-bar { bottom: var(--tx-bottombar, 0px); }
}
@media (prefers-reduced-motion: reduce) { .m-tile .m-art, .m-toast { transition: none; } .m-ib.is-busy { animation: none; } }

/* the theme colours buttons and sliders blue on focus / press: keep ours calm */
.m-page .m-songplay, .m-page .m-songplay:hover, .m-page .m-songplay:focus, .m-page .m-songplay:active,
.m-page .m-tile, .m-page .m-tile:hover, .m-page .m-tile:focus, .m-page .m-tile:active,
.m-bar .m-now, .m-bar .m-now:hover, .m-bar .m-now:focus, .m-bar .m-now:active { background: none !important; color: var(--x-text, #f4f4f6) !important; box-shadow: none !important; }
.m-page .m-ib:focus, .m-page .m-ib:active, .m-bar .m-ib:not(.m-big):focus, .m-bar .m-ib:not(.m-big):active { background: var(--x-surface-2, #1d1d22) !important; box-shadow: none !important; }
.m-page .m-song.is-now .m-songt b { color: var(--m-red) !important; }
.m-page button:focus-visible, .m-bar button:focus-visible, .m-page a:focus-visible { outline: 2px solid #f4f4f6 !important; outline-offset: 2px; }
.m-seek input { accent-color: #e8344a; }
.m-seek input:focus { outline: none; box-shadow: none; background: none; }
.m-seek input[type=range]::-webkit-slider-thumb { -webkit-appearance: none !important; appearance: none !important; background: #e8344a !important; border: 0 !important; box-shadow: none !important; }
.m-seek input[type=range]::-moz-range-thumb { background: #e8344a !important; }
