:root { color-scheme: dark; font-family: Tahoma, "Segoe UI", sans-serif; background: #070c13; color: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #67e8f9; outline-offset: 4px; }
.display-page { min-height: 100svh; display: grid; place-items: center; padding: clamp(12px, 2vw, 24px); }
.monitor { width: min(100%, 1200px); min-height: min(620px, calc(100svh - 40px)); padding: 28px 24px 20px; background: #0b111a; border-radius: 24px; display: flex; flex-direction: column; }
.monitor-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 38px; border-bottom: 1px solid #354255; color: #91a1b7; font-size: 14px; font-weight: 700; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: #e7b75a; font-size: 13px; font-weight: 400; }
.connection i { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 2px #0b111a; background: currentColor; }
.connection.online { color: #36dc8b; }
.connection.offline { color: #ffad80; }
.song { flex: 1; min-height: 195px; padding: 36px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.label { margin: 0 0 18px; color: #93a2b7; font-size: 16px; }
.song h1 { margin: 0; font-size: clamp(30px, 4.7vw, 58px); line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.artist { margin: 12px 0 0; color: #c6d0de; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.4; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { min-height: 158px; padding: 22px 12px 16px; background: #1e293b; border-radius: 16px; text-align: center; }
.metric h2 { margin: 0 0 20px; color: #94a3b8; font-size: 20px; font-weight: 600; }
.metric strong { display: block; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric .key { color: #67e8f9; }
.unit { display: block; margin-top: 12px; color: #94a3b8; font-size: 14px; }
.monitor footer { padding-top: 24px; text-align: center; color: #718197; font-size: 13px; }
.monitor.is-offline footer { color: #ffad80; }
.control-page { padding: 24px 16px 50px; }
.controller { max-width: 820px; margin: auto; }
.control-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.control-header h1 { font-size: 22px; margin: 0 0 8px; }
.control-header p { color: #94a3b8; margin: 0; font-size: 14px; }
a { color: #67e8f9; }
.panel { padding: 24px; border: 1px solid #283548; background: #0e1622; border-radius: 18px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 20px; font-size: 18px; }
label { display: grid; gap: 9px; color: #b5c2d4; font-size: 14px; }
input, select { width: 100%; min-height: 50px; border: 1px solid #39485e; border-radius: 10px; background: #172233; color: #f4f6fa; padding: 10px 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wide { grid-column: 1 / -1; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
button { min-height: 48px; border: 1px solid #3c4c64; border-radius: 10px; background: #233249; color: #f4f6fa; padding: 12px 20px; }
.primary { color: #06251e; background: #4adea0; border-color: #4adea0; font-weight: 700; }
.notice { min-height: 24px; color: #9eb2c9; font-size: 14px; line-height: 1.6; }
.queue { display: grid; gap: 10px; padding: 0; list-style: none; }
.queue button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.queue strong { display: block; font-size: 16px; }
.queue small { display: block; margin-top: 6px; color: #a6b5c8; }
.queue .active { border-color: #4adea0; background: #17372f; }
.queue .active span { color: #4adea0; }
@media (max-width: 480px) {
  .monitor { padding: 20px 16px; border-radius: 18px; min-height: calc(100svh - 24px); }
  .monitor-header { padding-bottom: 24px; font-size: 12px; }
  .connection { font-size: 11px; }
  .song { padding: 28px 0; }
  .metrics { gap: 12px; }
  .metric { min-height: 155px; }
  .metric h2 { font-size: 16px; }
  .control-header { align-items: flex-start; }
  .panel { padding: 18px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .display-page { padding: 8px; }
  .monitor { min-height: calc(100svh - 16px); padding: 14px 20px; }
  .monitor-header { padding-bottom: 14px; }
  .song { min-height: 0; padding: 14px 0; }
  .label { margin-bottom: 6px; font-size: 12px; }
  .song h1 { font-size: 30px; }
  .artist { margin-top: 4px; font-size: 18px; }
  .metric { min-height: 112px; padding: 12px; }
  .metric h2 { margin-bottom: 10px; font-size: 15px; }
  .metric strong { font-size: 34px; }
  .unit { margin-top: 6px; font-size: 12px; }
  .monitor footer { padding-top: 12px; font-size: 11px; }
}
