/* Midnight TV refinement layer (loaded after style.css).
   Keeps the glass look, removes decorative clutter, tightens hierarchy. */

body{font-size:15px;line-height:1.55}
h1,h2,.brand{font-family:"Space Grotesk",system-ui,sans-serif;letter-spacing:-.02em}
h2{font-weight:600}

/* Poster cards: one clear hover response, titles capped at two lines */
.anime-card .poster-wrap{border-radius:14px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
@media (hover:hover){
  .anime-card:hover .poster-wrap{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.45);border-color:rgba(167,139,250,.45)}
}
.card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;font-weight:600;line-height:1.35}
.card-meta{color:var(--muted);font-size:12px}

/* Buttons */
.btn{min-height:42px;border-radius:12px;font-weight:600;transition:background-color .15s ease,transform .15s ease,opacity .15s ease}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--mtv-accent);color:#11101a;box-shadow:0 8px 24px rgba(155,140,255,.2)}
.btn.small{min-height:36px}

/* Details and section copy */
.detail-status{color:var(--muted);font-size:14px;margin-bottom:6px}
.section-head p,.page-head p{color:var(--muted)}

/* Player tools: one compact row */
.player-tools{padding:12px 14px}
.download-row{margin-top:10px;padding-top:10px}

/* Download dialog: segmented choices with a clear selected state */
.download-dialog{max-width:420px}
.download-option-label{font-size:13px;color:var(--muted);margin:18px 0 8px}
.download-choice-row span{transition:background-color .15s ease,color .15s ease}
.download-choice-row input:checked+span{background:var(--mtv-accent);color:#11101a;box-shadow:0 6px 18px rgba(155,140,255,.2)}
.download-choice-row input:focus-visible+span{outline:2px solid var(--mtv-accent-hover);outline-offset:2px}
.download-start-btn{width:100%;margin-top:22px}
.download-status{min-height:1.5em}

/* Footer: brand only */
.footer{justify-content:center;color:var(--muted);font-size:14px}

/* Focus, motion, small screens */
:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  .anime-card:hover .poster-wrap{transform:none}
}
@media (max-width:640px){
  .hero h1{font-size:clamp(28px,8vw,40px)}
  .download-dialog{padding:24px 18px}
}

/* Downloads section */
[hidden]{display:none!important}
.dl-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:4px 0 12px}
.dl-selectall{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;cursor:pointer}
.dl-selectall input,.dl-check{width:18px;height:18px;accent-color:var(--mtv-accent);cursor:pointer;flex:none}
.dl-count{color:var(--muted);font-size:14px;margin-right:auto}
.dl-buttons{display:flex;gap:8px;flex-wrap:wrap}
.dl-list{list-style:none;display:grid;gap:10px;padding:0}
.dl-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface2)}
.dl-main{display:grid;gap:3px;min-width:0}
.dl-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-meta,.dl-status{color:var(--muted);font-size:13px}
.dl-item.failed .dl-status{color:var(--danger)}
.dl-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dl-check-spacer{width:18px}
.dl-empty{color:var(--muted);padding:24px 0}
.dl-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--mtv-accent);color:#11101a;font-size:11px;font-weight:700}
@media (max-width:640px){.dl-item{grid-template-columns:auto minmax(0,1fr)}.dl-actions{grid-column:2;justify-content:flex-start}}

/* Keep both audio modes visible, with a compact row of working servers for each. */
#server-list{display:grid;gap:11px;margin-top:17px}
.server-group{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px}
.server-group-title{margin:0;color:#a99bff;font-size:10px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.server-buttons{display:flex;gap:7px;flex-wrap:wrap}
.server-btn{min-width:116px;cursor:pointer}
.server-btn strong{font-size:10px}
.server-btn span{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.server-unavailable{margin:0;color:var(--muted);font-size:11px}
@media(max-width:520px){.server-group{grid-template-columns:40px minmax(0,1fr);gap:7px}.server-btn{min-width:104px;padding:8px}.server-btn span{max-width:130px}}
