:root { --bg: #111418; --kort: #1c2128; --tekst: #e6e6e6; --dempet: #8b949e; --aksent: #3b82f6; --rod: #ef4444; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--tekst); font: 16px system-ui, sans-serif; }
header { padding: 12px 16px; }
h1 { margin: 0; font-size: 1.3rem; }
main { display: grid; gap: 16px; padding: 0 16px 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.kort { background: var(--kort); border-radius: 12px; padding: 12px; }
.kort h2 { margin: 0 0 8px; font-size: 1.05rem; display: flex; justify-content: space-between; }
.kort h2 small { color: var(--dempet); font-weight: normal; }
.video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; object-fit: contain; display: block; cursor: crosshair; }
.rad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
button, select { background: #2d333b; color: var(--tekst); border: 0; border-radius: 8px; padding: 10px 14px; font-size: 1rem; cursor: pointer; }
button:active { background: var(--aksent); }
button.pa { background: var(--rod); }
.styrekryss { display: grid; grid-template-columns: repeat(3, 56px); gap: 4px; }
.styrekryss button { padding: 14px 0; font-size: 1.2rem; }
.feil { color: var(--rod); font-size: .9rem; }
.logginn { display: block; max-width: 320px; margin: 15vh auto; padding: 16px; }
.logginn input { width: 100%; padding: 12px; font-size: 1rem; border-radius: 8px; border: 0; margin: 12px 0; }
.logginn button { width: 100%; }
.opptak { margin-top: 12px; }
.opptak summary { cursor: pointer; padding: 6px 0; }
.opptak video { width: 100%; border-radius: 8px; background: #000; margin: 6px 0; }
.opptak .liste { max-height: 420px; overflow-y: auto; }
.klipp { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; cursor: pointer; }
.klipp:hover { background: #2d333b; }
.klipp img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: #000; }
.klipp span { flex: 1; }
.klipp small { color: var(--dempet); }
.klipp a, .klipp button { color: var(--tekst); text-decoration: none; padding: 6px 10px; }
.folsomhet input { flex: 1; accent-color: var(--aksent); }
.folsomhet b { min-width: 1.5em; text-align: right; }
.folsomhet[hidden] { display: none; }
.tilbake { color: var(--dempet); text-decoration: none; font-size: .9rem; }
.fliser { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.flis { background: var(--kort); border-radius: 12px; padding: 20px 12px; color: var(--tekst); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; text-align: center; }
.flis:hover { background: #2d333b; }
.flis span { font-size: 2.4rem; }
.flis small { color: var(--dempet); font-weight: normal; }
.snarvei { padding: 0 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.snarvei small { color: var(--dempet); }
.hoved { display: flex; flex-direction: column; min-height: 100dvh; }
.hoved .snarvei { margin-top: auto; padding-bottom: 24px; }
