:root { --ink: #111; --y: #FFD400; --l: #C9B6FF; --red: #FF2E2E; --mute: #555; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #6A5ACD; }
button { font: inherit; color: var(--ink); cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
input { font: inherit; color: var(--ink); }
:focus-visible { outline: 3px solid #6A5ACD; outline-offset: 2px; }
h1, h2 { margin: 0; font-family: 'Bowlby One', sans-serif; font-weight: 400; }
p { margin: 0; }

/* ---------- utilities */
.bowl { font-family: 'Bowlby One', sans-serif; font-weight: 400; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.center { align-items: center; align-self: center; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.m { font-size: 12px; font-weight: 700; color: var(--mute); }
.note-text { font-size: 13px; font-weight: 600; color: var(--mute); line-height: 1.4; }
.err { font-size: 14px; font-weight: 800; color: #C40000; line-height: 1.35; }
.h64 { font-size: 64px; line-height: .9; letter-spacing: -1.5px; }
.h44 { font-size: 44px; line-height: .9; letter-spacing: -1px; }
.h38 { font-size: 38px; line-height: 1; letter-spacing: -1px; overflow-wrap: anywhere; }
.h22 { font-size: 22px; }
.hl-wrap { position: relative; display: inline-block; }
.hl-wrap > h1, .hl-wrap > span { position: relative; z-index: 1; font-size: 1em; }
.hl { position: absolute; background: var(--y); }
.issue { font-size: 11px; font-weight: 800; background: var(--ink); color: var(--y); padding: 2px 7px; border-radius: 4px; }
.issue.lg { font-size: 12px; padding: 4px 8px; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 20px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--ink); }
.btn.y { background: var(--y); }
.btn.l { background: var(--l); }
.btn.dark { background: var(--ink); color: var(--y); }
.btn.red { background: var(--red); color: #fff; }
.btn.tall { height: 58px; font-size: 16px; }
.btn.half { flex: 1; height: 46px; font-size: 14px; padding: 0 10px; }
.sh3 { box-shadow: 3px 3px 0 var(--ink); }
.sh4 { box-shadow: 4px 4px 0 var(--ink); }
.sh6 { box-shadow: 6px 6px 0 var(--ink); }
.link { border: 0; background: none; padding: 0; font-weight: 800; font-size: 13px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.round { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--ink); padding: 0; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--l); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Bowlby One', sans-serif; font-size: 14px; }
.mini { flex: none; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.castchip { display: flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; font-weight: 800; background: #fff; }
.chip { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; background: #fff; white-space: nowrap; }
.chip.big { padding: 6px 12px; font-size: 14px; }
.chip.l { background: var(--l); }
.status { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.count { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 800; background: var(--ink); color: var(--y); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.count.y { background: var(--y); color: var(--ink); border: 2px solid var(--ink); }
.input { height: 50px; width: 100%; min-width: 0; border: 3px solid var(--ink); border-radius: 999px; padding: 0 16px; font-weight: 700; font-size: 14px; background: #fff; outline: none; }
.input.box { height: 54px; border-radius: 14px; font-size: 16px; }
.input:focus, .code-input:focus { box-shadow: 0 0 0 3px var(--l); }
.fpill { height: 48px; padding: 0 20px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; font-family: 'Bowlby One', sans-serif; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
.fpill.on { background: var(--ink); color: var(--y); }
.fpill.sm { height: 44px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.play { width: 88px; height: 88px; flex: none; border-radius: 50%; background: var(--y); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 5px 5px 0 var(--ink); }
.play::after { content: ''; border-left: 30px solid var(--ink); border-top: 18px solid transparent; border-bottom: 18px solid transparent; margin-left: 8px; }
.play.sm { width: 56px; height: 56px; background: #fff; box-shadow: none; }
.play.sm::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }
.dur { position: absolute; bottom: 8px; right: 8px; background: #fff; border: 2px solid var(--ink); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.ydot { width: 22px; height: 22px; border-radius: 50%; background: var(--y); border: 2px solid var(--ink); flex: none; }
.empty { border: 3px dashed var(--ink); border-radius: 16px; padding: 24px; text-align: center; font-weight: 800; font-size: 16px; background: #F6F6F6; }
.empty.big { display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: 22px; }
.note { border: 3px solid var(--ink); border-radius: 18px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.note.y { background: var(--y); }
.note.l { background: var(--l); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 10; background: var(--ink); color: var(--y); border: 3px solid var(--y); border-radius: 999px; padding: 14px 22px; font-size: 15px; font-weight: 800; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }

/* ---------- shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; padding: 26px 20px 20px; border-right: 3px solid var(--ink); background: #fff; }
.brand { display: flex; flex-direction: column; gap: 6px; }
.brand-title { font-size: 30px; line-height: .9; letter-spacing: -.5px; align-self: flex-start; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav button { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; flex: none; border-radius: 999px; border: 3px solid transparent; background: #fff; font-weight: 800; font-size: 15px; text-align: left; white-space: nowrap; }
.nav button.on { background: var(--y); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nav i { width: 18px; height: 18px; flex: none; border: 2.5px solid var(--ink); }
.nav .on i { background: var(--ink); }
.new-vlog { height: 56px; }
.new-vlog .dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.side .grow { flex: 1; }
.grownups-btn { height: 46px; flex: none; border-radius: 999px; border: 3px dashed var(--ink); background: #fff; font-weight: 800; font-size: 14px; }
.me-row { display: flex; align-items: center; gap: 10px; border-top: 3px solid var(--ink); padding-top: 16px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { padding: 34px 40px 60px; display: flex; flex-direction: column; gap: 34px; }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding: 40px 72px; background: #fff radial-gradient(#111 1.2px, transparent 1.2px) 0 0 / 22px 22px; }
.login-title { position: relative; font-size: 104px; }
.login-title h1 { position: relative; z-index: 1; font-size: 1em; line-height: .86; letter-spacing: -.03em; }
.login-c { position: absolute; right: 0; top: -10px; width: 110px; height: 110px; border-radius: 50%; background: var(--l); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Bowlby One', sans-serif; font-size: 48px; transform: rotate(10deg); }
.tagline { font-size: 20px; font-weight: 600; line-height: 1.4; color: #333; max-width: 460px; background: #fff; padding: 4px 6px; align-self: flex-start; }
.login-card { justify-self: center; width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 10px 10px 0 var(--l); }
.code-input { height: 58px; width: 100%; border: 3px solid var(--ink); border-radius: 14px; padding: 0 14px; font-family: 'Bowlby One', sans-serif; font-size: 24px; letter-spacing: 2px; background: #fff; outline: none; text-transform: uppercase; }
.code-input::placeholder { text-transform: none; }
.hourglass { width: 72px; height: 72px; border-radius: 50%; background: var(--y); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 32px; }

/* ---------- home */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 10px 12px 18px; font-weight: 800; font-size: 14px; text-align: left; }
.banner b { background: var(--y); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 12px; flex: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: stretch; }
.hero { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; overflow: hidden; border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 10px 10px 0 var(--y); }
.hero .thumb { height: 360px; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid var(--ink); }
.hero .tag { position: absolute; top: 16px; left: 16px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; padding: 6px 11px; border-radius: 999px; text-transform: uppercase; }
.hero .dur { bottom: 16px; right: 16px; font-size: 13px; padding: 4px 10px; }
.hero .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 18px 20px 20px; }
.hero h2 { font-size: 32px; line-height: 1; letter-spacing: -.5px; overflow-wrap: anywhere; }
.coll { display: flex; flex-direction: column; gap: 14px; }
.coll-pill { flex: 1; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.coll-pill span:first-child { font-family: 'Bowlby One', sans-serif; font-size: 28px; letter-spacing: -.5px; text-align: left; }
.coll-pill span:last-child { font-size: 13px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card { display: block; width: 100%; padding: 0; text-align: left; overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; background: #fff; }
.card .thumb { height: 130px; position: relative; border-bottom: 3px solid var(--ink); }
.card .body { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.card .t { font-weight: 800; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
@media (hover: hover) { .card:hover .t, .hero:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; } }

/* ---------- player */
.player { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 100vh; }
.player-main { padding: 28px 32px 50px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.frame { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--l); background: #fff; }
.screen { aspect-ratio: 16 / 9; position: relative; background: #000; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.cover { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.cover .time { position: absolute; bottom: 14px; left: 14px; background: #fff; border: 2px solid var(--ink); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.progress { height: 14px; border-top: 3px solid var(--ink); display: flex; }
.progress div { background: var(--y); border-right: 3px solid var(--ink); }
.pmeta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.reacts { display: flex; gap: 8px; flex: none; }
.react { width: 62px; height: 58px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.react.on { background: var(--y); }
.react span:first-child { font-size: 20px; line-height: 1; }
.react span:last-child { font-size: 11px; font-weight: 800; }
.comments { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-left: 3px solid var(--ink); background: #FAFAFA; }
.comments-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 24px 22px 14px; border-bottom: 3px solid var(--ink); background: #fff; }
.comments-list { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.comments-head > * { white-space: nowrap; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.ctext { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; padding: 14px 22px 22px; border-top: 3px solid var(--ink); background: #fff; }
.off { margin: 22px; padding: 18px; display: flex; align-items: center; gap: 12px; border: 3px dashed var(--ink); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; }

/* ---------- requests */
.req-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
.req { border: 3px solid var(--ink); border-radius: 18px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 14px; }

/* ---------- channel */
.me-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 32px; border: 3px solid var(--ink); border-radius: 26px; background: var(--l) radial-gradient(#111 1.2px, transparent 1.2px) 0 0 / 18px 18px; box-shadow: 10px 10px 0 var(--y); }
.bigc { width: 120px; height: 120px; flex: none; border-radius: 50%; background: var(--y); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Bowlby One', sans-serif; font-size: 52px; }
.stat { flex: 1; min-width: 84px; display: flex; flex-direction: column; align-items: center; padding: 12px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.stat b { font-family: 'Bowlby One', sans-serif; font-weight: 400; font-size: 28px; line-height: 1; }
.stat span { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.pend { display: flex; gap: 14px; align-items: center; padding: 10px; border: 3px dashed var(--ink); border-radius: 16px; background: #fff; }
.pthumb { flex: none; width: 110px; height: 72px; border-radius: 10px; border: 2px solid var(--ink); }
.sq { aspect-ratio: 1; position: relative; overflow: hidden; padding: 0; border: 3px solid var(--ink); border-radius: 14px; }
.sq span { position: absolute; bottom: 8px; left: 8px; right: 8px; background: #fff; border: 2px solid var(--ink); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }

/* ---------- upload */
.up-drop { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.drop { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; cursor: pointer; border: 4px dashed var(--ink); border-radius: 26px; background: var(--l) radial-gradient(#111 1.2px, transparent 1.2px) 0 0 / 18px 18px; }
.up-arrow { width: 110px; height: 110px; border-radius: 50%; background: var(--y); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Bowlby One', sans-serif; font-size: 56px; box-shadow: 6px 6px 0 var(--ink); }
.drop-title { font-family: 'Bowlby One', sans-serif; font-size: 36px; line-height: 1; background: #fff; padding: 6px 14px; border: 3px solid var(--ink); }
.up-details { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 32px; align-items: start; }
.preview { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: 22px; background: var(--l) repeating-linear-gradient(135deg, rgba(17,17,17,.12) 0 10px, transparent 10px 24px); box-shadow: 8px 8px 0 var(--y); }
.preview video { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview .chip { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.up-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; }
.costar { height: 44px; padding: 0 14px 0 6px; display: flex; align-items: center; gap: 8px; border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 14px; }
.sent { flex: 1; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.sent p { font-size: 18px; font-weight: 600; line-height: 1.45; color: #333; max-width: 420px; }
.check { width: 140px; height: 140px; border-radius: 50%; background: var(--y); border: 4px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Bowlby One', sans-serif; font-size: 64px; box-shadow: 8px 8px 0 var(--l); transform: rotate(-6deg); }

/* ---------- PIN & grown-ups */
.pin-wrap { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.pin-card { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; padding: 32px; border: 3px solid var(--ink); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--l); }
.pdot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.keypad button { width: 76px; height: 76px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-family: 'Bowlby One', sans-serif; font-size: 26px; box-shadow: 3px 3px 0 var(--ink); }
.keypad button.y { background: var(--y); }
.gu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.gu-card { border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; }
.gthumb { width: 100%; height: 150px; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-bottom: 3px solid var(--ink); }
.table { border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.trow:last-child { border-bottom: 0; }
.tname { font-size: 14px; width: 130px; flex: none; }
.twhat { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twhen { flex: none; font-size: 12px; font-weight: 800; background: #F3F3F3; border-radius: 999px; padding: 4px 10px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border: 3px solid var(--ink); border-radius: 18px; background: #fff; }
.switch { flex: none; width: 64px; height: 36px; padding: 3px; display: flex; align-items: center; justify-content: flex-start; border: 3px solid var(--ink); border-radius: 999px; background: #fff; }
.switch.on { justify-content: flex-end; background: var(--y); }
.switch span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.wrow { display: flex; align-items: center; gap: 10px; padding: 12px; border: 3px solid var(--ink); border-radius: 16px; background: var(--y); }

/* ---------- invite */
.inv-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.bigcode { font-family: 'Bowlby One', sans-serif; font-size: 48px; line-height: 1; letter-spacing: 1px; text-align: center; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow-wrap: anywhere; }
.vchip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.vchip .x { flex: none; width: 28px; height: 28px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 12px; font-weight: 800; }

/* ---------- tablets & phones */
@media (max-width: 1100px) {
  .grid5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-grid, .gu-layout, .inv-layout, .req-layout, .up-details, .me-hero { grid-template-columns: minmax(0, 1fr); }
  .coll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coll > .row-between { grid-column: 1 / -1; }
  .player { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { position: static; width: auto; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .brand { flex: 1; }
  .brand-title { font-size: 22px; }
  .side .grow { display: none; }
  .me-row { border-top: 0; padding-top: 0; }
  .nav { order: 5; width: 100%; flex-direction: row; overflow-x: auto; padding: 0 4px 6px 0; }
  .new-vlog, .grownups-btn { order: 6; flex: 1; height: 46px; }
  .page { padding: 22px 16px 48px; gap: 26px; }
  .h64 { font-size: 46px; }
  .h44 { font-size: 34px; }
  .login { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 16px; }
  .login-title { font-size: 72px; }
  .login-c { width: 76px; height: 76px; font-size: 34px; }
  .tagline { font-size: 17px; }
  .player { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .player-main { padding: 18px 16px 24px; }
  .comments { position: static; height: auto; border-left: 0; border-top: 3px solid var(--ink); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .up-drop { grid-template-columns: minmax(0, 1fr); }
  .me-hero { padding: 22px; }
  .hero .thumb { height: 240px; }
}
@media (max-width: 600px) {
  /* bottom tab bar: all four tabs always visible and thumb-sized */
  .shell { padding-bottom: 76px; }
  .nav { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 3px solid var(--ink); overflow: visible; }
  .nav button { height: 58px; flex-direction: column; justify-content: center; gap: 4px; padding: 0 2px; border-radius: 16px; font-size: 12px; }
  .nav button.on { box-shadow: 2px 2px 0 var(--ink); }
  .toast { bottom: 96px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coll { grid-template-columns: minmax(0, 1fr); }
  .coll-pill { min-height: 72px; }
  .login-title { font-size: 60px; }
  .bigc { width: 84px; height: 84px; font-size: 38px; }
  .hero .thumb { height: 200px; }
  .hero h2 { font-size: 26px; }
  .h38 { font-size: 30px; }
  .reacts { width: 100%; }
  .react { flex: 1; width: auto; }
  .drop { min-height: 300px; }
  .drop-title { font-size: 26px; }
  .tname { width: 96px; }
  .keypad { grid-template-columns: repeat(3, 68px); }
  .keypad button { width: 68px; height: 68px; }
  .bigcode { font-size: 38px; }
}
