/* Ed Naish — shared styles */
:root {
  --blue: #0047FF;
  --ink: #000000;
  --grey: #8F8F8F;
  --nav-bg: rgba(18, 18, 18, 0.65);
  --btn-bg: rgba(23, 23, 23, 0.8);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pixel: 'Bitcount Grid Single', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #ffffff; color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; }
body { overflow: hidden; }
a { color: var(--blue); }
button { font: inherit; }
.page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

/* Menu bar */
.site-nav { flex: none; background: var(--nav-bg); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 14px 16px; font-family: var(--pixel); font-size: 16px; position: relative; z-index: 30; }
.site-nav a { color: #ffffff; text-decoration: none; }
.site-nav a:hover { color: #cfd8ff; }
.site-nav a[aria-current="page"] { color: var(--blue); }

/* Body: sidebar + scrolling area */
.layout { flex: 1 1 auto; min-height: 0; display: flex; }
.side { flex: none; width: 300px; padding: 0 0 0 28px; display: flex; flex-direction: column; justify-content: center; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side button { display: block; border: 0; background: transparent; padding: 0; margin: 0; text-align: left; cursor: pointer; text-transform: uppercase; white-space: nowrap; font-family: var(--pixel); letter-spacing: 0.02em; font-size: 15px; line-height: 1.7; color: var(--grey); transition: font-size .55s var(--ease), color .3s ease, margin .55s var(--ease); }
.side button:hover { color: #555555; }
.side button[aria-current="true"] { font-size: 26px; line-height: 1.2; color: var(--blue); margin: 6px 0; }

/* Mobile row of options */
.strip { display: none; flex: none; gap: 18px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid #EDEDED; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; border: 0; background: transparent; padding: 6px 0; min-height: 36px; cursor: pointer; text-transform: uppercase; white-space: nowrap; font-family: var(--pixel); font-size: 14px; color: var(--grey); }
.strip button[aria-current="true"] { color: var(--blue); }

.scroller { flex: 1 1 auto; min-width: 0; position: relative; overflow-y: auto; padding: 0 16px; scrollbar-width: none; overscroll-behavior: contain; }
.scroller::-webkit-scrollbar { display: none; }

/* Shared card overlay pieces */
.card { position: relative; border-radius: 12px; overflow: hidden; background: #111111; box-shadow: rgba(0,0,0,0.1) 0 1px 15px 0; }
.card video, .card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.who { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 3; pointer-events: none; }
.who img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; flex: none; }
.who span { color: #ffffff; font-weight: 500; font-size: 16px; letter-spacing: -0.04em; text-shadow: 0 1px 6px rgba(0,0,0,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who svg { flex: none; }
.tag { margin-left: auto; flex: none; background: var(--nav-bg); color: #ffffff; font-family: var(--pixel); font-size: 13px; padding: 5px 9px; border-radius: 8px; text-shadow: none !important; }
.round { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--btn-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pill { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--btn-bg); color: #ffffff; font-family: var(--pixel); font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.wash { position: absolute; inset: 0; background: #ffffff; opacity: 0; pointer-events: none; transition: opacity .4s ease; z-index: 6; }

/* Video controls bar */
.controls { position: absolute; left: 12px; right: 12px; bottom: 12px; display: none; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
.controls .row { display: flex; align-items: center; gap: 8px; }
.controls input[type=range] { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
.controls .time { flex: 1 1 auto; color: #ffffff; font-family: var(--pixel); font-size: 14px; white-space: nowrap; }
.cbtn { width: 40px; height: 40px; flex: none; border-radius: 999px; border: 0; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #ffffff; }
.cbtn.unmute { width: auto; padding: 0 14px; gap: 8px; background: var(--blue); font-family: var(--pixel); font-size: 14px; }
.bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 999px; border: 0; background: var(--btn-bg); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.show-controls .controls { display: flex; }
.show-controls.paused .bigplay { display: flex; }

@media (max-width: 760px) {
  .side { display: none; }
  .strip { display: flex; }
  .site-nav { gap: 6px 12px; font-size: 13px; padding: 12px 8px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .scroller { padding: 0 12px; }
}
