:root {
  color-scheme: light;
  --ink: #14354a;
  --indigo: #075383;
  --violet: #167a72;
  --border: #c6e4e4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 90% 3%, #ffe3cd, transparent 38%),
              linear-gradient(125deg, #e0f7f2, #e8f7ff 60%, #fff5ec);
  min-height: 100vh;
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 4vw, 60px);
  color: #fff;
  background: linear-gradient(112deg, #065d83, #08786e 65%, #079181);
  border-bottom: 5px solid #ffbb83;
}
h1 { font-size: clamp(24px, 3.6vw, 44px); line-height: 1.13; margin: 6px 0; }
small { letter-spacing: .11em; color: #fff2d4; font-weight: 750; }
header strong { background: #ffeddd; color: #074b59; border-radius: 999px; padding: 8px 15px; }
main {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  max-width: 1500px;
  margin: auto;
  align-items: start;
}
aside, article { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: 0 10px 28px #08445a15; }
aside { background: #f8fffd; }
nav { display: grid; gap: 6px; max-height: 68vh; overflow: auto; }
h2 { color: #065775; font-size: 21px; margin: 0 0 12px; }
button {
  min-height: 42px;
  border: 1px solid #c5e4e7;
  border-radius: 10px;
  padding: 8px 13px;
  background: #e7f6fb;
  color: #124668;
  font: inherit;
  font-weight: 660;
  cursor: pointer;
  text-align: left;
}
button:hover:not(:disabled) { background: #d6edf6; }
button:disabled { opacity: .55; cursor: default; }
button[aria-current=true], button.primary { background: var(--indigo); color: #fff; border-color: transparent; }
button[aria-current=true]:hover, button.primary:hover { background: #053f68; }
button:focus-visible, input:focus-visible { outline: 3px solid #ac530c; outline-offset: 2px; }
img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #e9f7f7; border: 1px solid var(--border); border-radius: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--violet); }
label[for=seek] { display: block; margin-top: 12px; font-weight: 650; }
#task { border-left: 5px solid #dd783b; border-radius: 10px; padding: 12px 14px; margin-top: 14px; background: #fff1e5; }
#feedback { min-height: 1.4em; font-weight: 650; }
#feedback[data-result=right] { color: #146249; }
#feedback[data-result=wrong] { color: #972743; }
#feedback:empty { display: none; }
#time { font-variant-numeric: tabular-nums; }
#status { color: #31596a; font-weight: 650; }
#player:fullscreen { overflow: auto; background: #effaf8; }
#player:fullscreen img { max-height: 65vh; }
@media(max-width: 720px) { main { grid-template-columns: 1fr; padding: 12px; } aside { grid-row: 2; } nav { max-height: 260px; } }
