/* Фон только у html: фон у body закрывает картинку с камеры */
html { background: #111; color-scheme: dark; }
body { margin: 0; color: #f4efe6; font-family: Georgia, "Times New Roman", serif; }
[hidden] { display: none !important; }
h1 { font-weight: normal; font-size: 32px; margin: 0; text-align: center; }
a { color: inherit; }
button { font: inherit; font-size: 20px; padding: 14px 36px; border: 1px solid #f4efe6; border-radius: 999px; background: transparent; color: inherit; }
button:disabled { opacity: .5; }
input { font: inherit; font-size: 20px; padding: 12px; text-align: center; color: inherit; background: transparent; border: 1px solid #f4efe6; border-radius: 8px; box-sizing: border-box; max-width: 100%; }
#login { display: grid; gap: 14px; justify-items: center; }
#status { min-height: 1.5em; margin: 0; text-align: center; line-height: 1.5; }
.link { border: 0; padding: 6px; font-size: 14px; opacity: .7; text-decoration: underline; }
/* Камера */
.ar, .ar body { height: 100%; }
#start { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; z-index: 10; background: #111; }
#start p { max-width: 320px; line-height: 1.5; margin: 0; }
#open { display: flex; flex-direction: column; align-items: center; gap: 20px; }
#hint { position: fixed; left: 0; right: 0; bottom: 32px; text-align: center; z-index: 5; font-size: 16px; text-shadow: 0 1px 4px #000; pointer-events: none; transition: opacity .4s; }
#hint.hidden { opacity: 0; }
/* Список */
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 24px; justify-items: center; }
#list { width: 100%; }
#search { text-align: center; }
#search label { display: block; margin-bottom: 10px; }
#page { width: 120px; }
figure { margin: 0 0 48px; }
figure button { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; }
figure button::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; text-shadow: 0 1px 8px #000; }
figure img, figure video { display: block; width: 100%; border-radius: 6px; background: #000; }
figcaption { margin-top: 8px; }
