/* EyeCandy, EarCandy and Metallitor */
.ec-search { width: min(360px, 34vw); height: 34px; border-radius: 999px; padding: 0 16px; }
.ec-h { font: 700 18px/1.2 var(--display); margin: 22px 0 12px; }
.ec-h:first-child { margin-top: 4px; }
.ec-wrap { grid-template-columns: 196px minmax(0, 1fr); }
.ec-nav .ec-up { margin-top: 12px; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px 16px; }
.ec-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; border-radius: 14px; }
.ec-card:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.ec-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.35); transition: transform .18s, box-shadow .18s; }
.ec-card:hover .ec-thumb { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(226,54,31,.5); }
.ec-dur, .ec-vis { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.78); color: #fff; font: 600 11px/1 var(--sans); padding: 4px 6px; border-radius: 5px; }
.ec-vis { right: auto; left: 6px; background: rgba(142,20,7,.85); }
.ec-meta { display: flex; gap: 10px; align-items: flex-start; }
.ec-meta > .avatar { flex: none; }
.ec-meta > .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; }
.ec-ch { color: var(--muted); text-decoration: none; } .ec-ch:hover { color: var(--text); }
.ec-more { opacity: 0; flex: none; } .ec-card:hover .ec-more, .ec-more:focus { opacity: 1; }
.ec-card.wide { flex-direction: row; gap: 10px; }
.ec-card.wide .ec-thumb { width: 168px; flex: none; border-radius: 9px; }
.ec-card.wide .ec-title { font-size: 13px; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ec-chips .chip { text-decoration: none; color: inherit; padding: 6px 12px; border-radius: 999px; background: rgba(255,236,228,.07); border: 1px solid var(--line2); display: inline-flex; gap: 7px; align-items: center; }
.ec-chips .chip:hover { background: rgba(226,54,31,.18); border-color: rgba(226,54,31,.5); }
.ec-quota { margin: 0 0 14px; }
/* watch */
.ec-main.watching { max-width: 1500px; }
.ec-wrap:has(.watching) { grid-template-columns: minmax(0, 1fr); }
.ec-wrap:has(.watching) .ec-nav { display: none; }
.ec-watchwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.ec-player { background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 14px 50px rgba(0,0,0,.55); }
.ec-video { width: 100%; height: 100%; display: block; background: #000; }
.ec-wtitle { font: 700 20px/1.3 var(--display); margin: 14px 0 10px; }
.ec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ec-owner { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; margin-right: 6px; }
.ec-pill { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--line2); }
.ec-pill .btn { border: 0; border-radius: 0; }
.ec-pill .btn + .btn { border-left: 1px solid var(--line2); }
.ec-vote svg { width: 17px; height: 17px; } .ec-vote.dis svg { transform: scaleY(-1); }
.ec-vote.on { color: #fff; background: rgba(226,54,31,.35); }
.ec-desc { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,236,228,.05); border: 1px solid var(--line); }
.ec-body { white-space: pre-wrap; margin-top: 6px; line-height: 1.5; }
.ec-desc.short .ec-body { max-height: 4.5em; overflow: hidden; -webkit-mask: linear-gradient(#000 50%, transparent); mask: linear-gradient(#000 50%, transparent); }
.linklike { background: none; border: 0; color: var(--text); font-weight: 600; cursor: pointer; padding: 6px 0 0; }
.ec-next { display: flex; flex-direction: column; gap: 10px; }
.ec-autoplay { display: flex; align-items: center; gap: 8px; }
.ec-banner { height: 120px; border-radius: 16px; margin-bottom: -34px; opacity: .85; }
.ec-chead { display: flex; align-items: flex-end; gap: 16px; padding: 0 16px 18px; flex-wrap: wrap; }
.ec-chead h2 { margin: 0; font: 700 24px/1.2 var(--display); }
.mc-comments { display: flex; flex-direction: column; gap: 14px; }
.mc-cadd { display: flex; gap: 10px; align-items: flex-start; }
.mc-cadd textarea { flex: 1; resize: vertical; min-height: 36px; }
.mc-comment { display: flex; gap: 10px; align-items: flex-start; }
.mc-ctext { white-space: pre-wrap; margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.dialog:has(.mc-upform), .dialog:has(.ea-queue) { width: min(680px, calc(100vw - 32px)); }
.mc-upform { display: flex; gap: 18px; }
.mc-upside { display: flex; flex-direction: column; gap: 10px; width: 180px; flex: none; }
.mc-upform .lbl { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
@media (max-width: 1180px) { .ec-watchwrap { grid-template-columns: 1fr; } .ec-card.wide .ec-thumb { width: 200px; } }
@media (max-width: 620px) { .mc-upform { flex-direction: column; } .mc-upside { width: auto; flex-direction: row; align-items: center; } .mc-upside .mc-art.lg { width: 96px; } }
@media (max-width: 760px) { .ec-wrap, .ea-wrap { grid-template-columns: 1fr !important; } .ec-nav, .ea-nav { flex-direction: row; flex-wrap: wrap; position: static; } .ec-nav .grow, .ea-nav .grow, .ea-nav .cap { display: none; } .ec-search { width: 40vw; } }

/* EarCandy */
.mc-art { width: 44px; height: 44px; border-radius: 7px; flex: none; display: grid; place-items: center; color: rgba(255,255,255,.85); box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.mc-art.sm { width: 38px; height: 38px; border-radius: 6px; }
.mc-art.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; position: relative; }
.mc-art.xl { width: 168px; height: 168px; border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.mc-art.xl svg { width: 64px; height: 64px; opacity: .8; }
.ea-wrap { grid-template-columns: 210px minmax(0, 1fr); padding-bottom: 96px; }
.ea-head { display: flex; gap: 22px; align-items: flex-end; margin: 4px 0 22px; }
.ea-head h2 { font: 800 clamp(26px, 4vw, 46px)/1.05 var(--display); margin: 4px 0 14px; }
.ea-hbtns { display: flex; gap: 10px; align-items: center; }
.ea-play { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--text); color: #120c0a; transition: transform .12s; }
.ea-play:hover { transform: scale(1.06); }
.ea-play svg { width: 18px; height: 18px; fill: currentColor; }
.ea-play.big { width: 54px; height: 54px; background: linear-gradient(135deg, var(--red), #f05a1f); color: #fff; box-shadow: 0 8px 26px rgba(226,54,31,.45); }
.ea-play.big svg { width: 24px; height: 24px; }
.ea-notes { white-space: pre-wrap; color: var(--muted); max-width: 70ch; }
.ea-table { display: flex; flex-direction: column; }
.ea-row { display: grid; grid-template-columns: 38px minmax(0, 3fr) minmax(0, 2fr) 90px 36px 52px 36px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 9px; cursor: default; }
.ea-row.head { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 6px; }
.ea-row.head svg { width: 15px; height: 15px; }
.ea-row:not(.head):hover, .ea-row:focus-visible { background: rgba(255,236,228,.06); outline: none; }
.ea-row.playing b { color: var(--red); }
.ea-n { position: relative; display: grid; place-items: center; color: var(--muted); }
.ea-rp { position: absolute; opacity: 0; }
.ea-row:hover .ea-rp, .ea-row.playing .ea-rp { opacity: 1; } .ea-row:hover .num, .ea-row.playing .num { opacity: 0; }
.ea-tt { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ea-tt > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.ea-tt b, .ea-al { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-tt a, .ea-nt a { color: var(--muted); text-decoration: none; } .ea-tt a:hover, .ea-nt a:hover { color: var(--text); text-decoration: underline; }
.ea-like { opacity: .45; } .ea-row:hover .ea-like { opacity: .9; } .ea-like.on, .ea-bar .on { opacity: 1; color: var(--red); }
.ea-like.on svg, .ea-now .on svg { fill: currentColor; }
.ea-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 176px)); gap: 14px; }
body:has(.ea-bar:not([hidden])) .cb-notice { bottom: 104px; }
.ea-tile { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .15s; min-width: 0; }
.ea-tile:hover { background: rgba(255,236,228,.06); }
.ea-tile b, .ea-tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-tplay { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #f05a1f); color: #fff; opacity: 0; transform: translateY(6px); transition: .18s; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.ea-tplay svg { width: 20px; height: 20px; fill: currentColor; }
.ea-tile:hover .ea-tplay { opacity: 1; transform: none; }
.ea-bar { position: relative; z-index: 5; flex: none; margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 16px; border-radius: 18px;
  background: rgba(20, 13, 11, .82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--line2); box-shadow: 0 -8px 30px rgba(0,0,0,.35); }
.ea-now { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ea-nt { min-width: 0; display: flex; flex-direction: column; }
.ea-nt b, .ea-nt a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.ea-btns { display: flex; gap: 10px; align-items: center; }
.ea-one { position: absolute; top: -2px; left: calc(50% + 74px); font: 700 9px/1 var(--sans); color: var(--red); }
.ea-prog { display: flex; gap: 8px; align-items: center; width: 100%; }
.ea-t { width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.ea-seek, .ea-vol { flex: 1; accent-color: var(--red); height: 4px; cursor: pointer; }
.ea-vol { flex: none; width: 110px; }
.ea-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ea-queue { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.ea-qrow { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.ea-qrow:hover { background: rgba(255,236,228,.06); } .ea-qrow.on { color: var(--red); }
@container (max-width: 820px) { .ea-row { grid-template-columns: 34px minmax(0, 1fr) 36px 48px 36px; } .ea-al, .ea-pl { display: none; } }
@container (max-width: 660px) { .ec-wrap, .ea-wrap { grid-template-columns: minmax(0, 1fr) !important; } .ec-nav, .ea-nav { flex-direction: row; flex-wrap: wrap; position: static; } .ec-nav .grow, .ea-nav .grow, .ea-nav .cap { display: none; } .ec-nav .ec-up { margin: 0; } }
@media (max-width: 980px) { .ea-bar { grid-template-columns: minmax(0, 1fr) auto; } .ea-right { display: none; } .ea-prog { display: none; } }

/* Metallitor */
.me-app { height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.me-top { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; flex: none; border-bottom: 1px solid var(--line); background: rgba(14,10,9,.7); -webkit-backdrop-filter: var(--glass-blur-thin); backdrop-filter: var(--glass-blur-thin); }
.me-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 15px/1 var(--display); }
.me-brand svg { width: 20px; height: 20px; color: var(--red); }
.me-title { font-size: 14px; }
.me-tools { display: flex; gap: 6px; align-items: center; }
.me-app > .anim { flex: 1; min-height: 0; overflow: auto; }
.me-home { max-width: 1060px; margin: 0 auto; padding: 22px; }
.me-starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.me-start { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,236,228,.04); color: inherit; cursor: pointer; text-align: left; transition: .15s; }
.me-start:hover { border-color: rgba(226,54,31,.6); background: rgba(226,54,31,.1); transform: translateY(-1px); }
.me-sico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #f05a1f); color: #fff; flex: none; }
.me-sico svg { width: 20px; height: 20px; }
.me-list { display: flex; flex-direction: column; gap: 4px; }
.me-proj { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.me-proj:hover { background: rgba(255,236,228,.06); }
.me-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(300px, 40%); height: 100%; }
.me-wrap.norun { grid-template-columns: 220px minmax(0, 1fr); }
.me-tree, .me-run { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(10,7,6,.55); }
.me-run { border-right: 0; border-left: 1px solid var(--line); }
.me-th { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.me-file { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: 13px/1.3 var(--sans); }
.me-file span.grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-file:hover { background: rgba(255,236,228,.05); } .me-file.on { background: rgba(226,54,31,.16); }
.me-file .icon-btn { opacity: 0; } .me-file:hover .icon-btn { opacity: .8; }
.icon-btn.sm { width: 22px; height: 22px; } .icon-btn.sm svg { width: 14px; height: 14px; }
.me-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--faint); }
.me-dot.html { background: #e2361f; } .me-dot.css { background: #4a8cff; } .me-dot.js { background: #f4c23a; } .me-dot.py { background: #3fae6a; } .me-dot.md { background: #b9aaa5; }
.me-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.me-tabs { display: flex; flex: none; height: 38px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: rgba(10,7,6,.4); }
.me-tab { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); white-space: nowrap; }
.me-tab.on { color: var(--text); background: rgba(6,5,5,.85); box-shadow: inset 0 2px var(--red); }
.me-ed { flex: 1; min-height: 0; display: flex; background: rgba(6,5,5,.85); font: 13px/1.55 ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace; }
.me-gut { flex: none; width: 52px; padding: 12px 10px 40px 0; text-align: right; color: var(--faint); white-space: pre; overflow: hidden; user-select: none; }
.me-code { position: relative; flex: 1; min-width: 0; }
.me-hl, .me-ta { position: absolute; inset: 0; margin: 0; padding: 12px 14px 40px; font: inherit; white-space: pre; overflow: auto; tab-size: 2; border: 0; }
.me-hl { color: #e9dfdb; pointer-events: none; scrollbar-width: none; }
.me-ta { color: transparent; caret-color: #fff; background: transparent; resize: none; outline: none; }
.me-ta::selection { background: rgba(226,54,31,.35); color: transparent; }
.me-hl i { font-style: normal; }
.me-hl .k { color: #ff7a59; } .me-hl .s { color: #a5d6a7; } .me-hl .c { color: #7d706c; font-style: italic; } .me-hl .n { color: #f4a83a; } .me-hl .f { color: #8fc1ff; } .me-hl .a { color: #f2c07a; }
.me-none { flex: 1; display: grid; place-items: center; }
.me-frame { flex: 3; min-height: 0; border: 0; background: #fff; }
.me-console { flex: 1; min-height: 80px; overflow: auto; padding: 6px 10px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; background: rgba(6,5,5,.9); }
.me-log { white-space: pre-wrap; border-bottom: 1px solid var(--line); padding: 2px 0; }
.me-log.warn { color: var(--amber); } .me-log.error { color: #ff6b57; }
.me-person { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
@media (max-width: 900px) { .me-wrap, .me-wrap.norun { grid-template-columns: 1fr; grid-template-rows: auto minmax(320px, 1fr) minmax(280px, auto); } .me-tree { max-height: 160px; overflow: auto; } }

/* EarCandy catalog */
.ea-hello { font: 800 clamp(26px, 3.4vw, 38px)/1.1 var(--display); margin: 6px 0 14px; letter-spacing: -.01em; }
.ea-sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.ea-sect .ec-h { margin: 0; }
.ea-sect a { text-decoration: none; } .ea-sect a:hover { color: var(--text); }
.ea-tile { text-decoration: none; color: inherit; }
.ea-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.ea-artist { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; text-decoration: none; color: inherit; text-align: center; transition: background .15s, transform .15s; min-width: 0; }
.ea-artist:hover { background: rgba(255, 236, 228, .06); transform: translateY(-2px); }
.ea-artist b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-face { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.5); background-color: #2a1a17; }
.ea-face.lg { width: 96px; height: 96px; flex: none; }
.ea-top { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 18px; background: rgba(255, 236, 228, .05); border: 1px solid var(--line); text-decoration: none; color: inherit; max-width: 520px; transition: background .15s; }
.ea-top:hover { background: rgba(255, 236, 228, .09); }
.ea-top h2 { margin: 0 0 8px; font: 800 28px/1.1 var(--display); }
.ea-banner { padding: 22px; margin: -6px -6px 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(226, 54, 31, .22), rgba(226, 54, 31, 0)); }
.mc-art.round { border-radius: 50%; }
.ea-label { margin-top: 14px; }
.ea-al { text-decoration: none; } a.ea-al:hover { color: var(--text); text-decoration: underline; }
.ea-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; background: rgba(255, 236, 228, .12); color: var(--muted); }
.ea-video { position: absolute; right: 18px; bottom: 92px; z-index: 6; width: 356px; height: 200px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); border: 1px solid var(--line); animation: eaPop .3s cubic-bezier(.2, 1.2, .4, 1); }
.ea-video iframe { width: 100%; height: 100%; display: block; border: 0; }
@keyframes eaPop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.hub-main { position: relative; }
@media (max-width: 700px) { .ea-video { right: 10px; left: 10px; width: auto; bottom: 84px; } .ea-face { width: 88px; height: 88px; } }
@media (max-width: 560px) {
  .ea-row { grid-template-columns: minmax(0, 1fr) 34px 34px; gap: 6px; padding: 7px 4px; }
  .ea-row > :nth-child(1), .ea-row > :nth-child(3), .ea-row > :nth-child(4), .ea-row > :nth-child(6) { display: none; }
  .ea-tt b, .ea-tt a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ea-head { flex-direction: column; align-items: flex-start; } .ea-hello { font-size: 28px; }
}
