* { box-sizing: border-box }
[hidden] { display: none !important }
html { background: #101020; color: #fff; color-scheme: dark; font: 17px Roboto, Arial, sans-serif }
body { margin: 0; padding: 12px 20px }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px }
h1 { color: #58e5a5; font-size: 22px; margin: 0; padding: 12px 8px; overflow-wrap: anywhere }
h2 { font-size: 24px; font-weight: 500; padding: 0 8px; margin: .45em 0 }
button, input, select { font: inherit; color: inherit; border: 3px solid transparent; border-radius: 14px; min-height: 48px; padding: 8px 12px; background: #34304f }
button { cursor: pointer; white-space: pre-line }
button:focus, input:focus, select:focus { outline: 0; border-color: #58e5a5 }
button:active { border-color: #fff }
input:not([type=checkbox]), select { background: #29273d; width: 100%; min-height: 56px }
input::placeholder { color: #bbbbc9 }
input[type=checkbox] { min-height: 0; accent-color: #58e5a5 }
.stack { display: grid; gap: 10px; padding: 6px; align-items: start }
.login { margin: 0 auto; width: min(100%, 460px); text-align: center }
.brand { display: block; margin: 0 auto; width: 100px; height: 110px; object-fit: contain }
.purple { background: #6739a6 }
.profile-row { display: grid; grid-template-columns: 1fr auto; gap: 10px }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 160px 100px; gap: 10px; padding: 6px }
.live { grid-row: span 2; background: #236656; font-size: 22px }
.series { background: #443c88 }
.home-note, .count { padding: 6px 8px; color: #d5d4e2 }
.browse { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; align-items: start }
.categories { display: grid; gap: 4px; padding: 4px; max-height: 70vh; overflow-y: auto }
.categories button { text-align: left }
.categories [aria-pressed=true] { background: #6739a6 }
.category-select { display: none }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px }
.card { min-width: 0; padding: 7px; background: #29273d; text-align: center }
.card img { display: block; width: 100%; height: 150px; object-fit: contain; margin-bottom: 8px; border-radius: 6px }
.card span { display: block; overflow-wrap: anywhere }
.card small { display: block; margin-top: 4px; color: #d5d4e2 }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 }
.detail-art { width: min(220px, 80vw); height: 220px; object-fit: contain }
.player { position: fixed; inset: 0; background: #000; z-index: 2 }
.player video { width: 100%; height: 100%; object-fit: contain; display: block }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 20px; background: rgba(16,16,32,.92) }
.player-buttons { display: flex; flex-wrap: wrap; gap: 8px }
.player-controls input { min-height: 26px }
#status:empty { display: none }
#status { position: fixed; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: min(650px, 90vw); padding: 12px 18px; margin: 0; background: #34304f; border-radius: 12px }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap }
@media (max-width: 699px) {
  .categories { display: none }
  .category-select { display: block }
  .browse { grid-template-columns: 1fr }
}
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; grid-template-rows: none }
  .tiles button { min-height: 85px; grid-row: auto }
}
