:root {
  --bg: #090914; --panel: rgba(20, 20, 36, .94); --hover: #24243b; --line: #30304a;
  --text: #f4f3fb; --muted: #aaa8c2; --accent: #9b7bff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, Roboto, Arial, sans-serif; background: radial-gradient(ellipse at 18% 8%, rgba(91,65,160,.20), transparent 34%), radial-gradient(ellipse at 82% 34%, rgba(44,77,142,.13), transparent 32%), radial-gradient(ellipse at 52% 100%, rgba(104,55,138,.12), transparent 38%), var(--bg); background-attachment: fixed; color: var(--text); min-height: 100vh; }
a, [data-go], [data-act] { cursor: pointer; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.h { margin-bottom: 16px; }

/* top bar */
.topbar { position: fixed; backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); top: 0; left: 0; right: 0; height: 56px; z-index: 10; display: flex;
  align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg); }
.left, .right { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 20px; padding: 8px; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--hover); }
.logo { font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.logo span:last-child { color: var(--accent); }
.logo-mark { background: var(--accent); color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 14px; }
.logo.big { font-size: 26px; justify-content: center; margin-bottom: 8px; }
.search { display: flex; width: 40%; max-width: 600px; }
.search input { flex: 1; padding: 9px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px 0 0 20px; color: var(--text); outline: none; }
.search input:focus { border-color: var(--accent); }
.search button { padding: 0 18px; background: var(--hover); border: 1px solid var(--line); border-left: 0;
  border-radius: 0 20px 20px 0; color: var(--text); cursor: pointer; }

/* buttons, inputs */
.pill { background: var(--hover); color: var(--text); border: 0; border-radius: 20px; padding: 9px 16px;
  cursor: pointer; font-size: 14px; display: inline-block; }
.pill:hover { background: var(--line); }
.pill.dark { background: var(--text); color: #000; font-weight: 500; }
.pill.dark.on { background: var(--hover); color: var(--text); }
.pill.liked { background: var(--accent); }
.pill.wide { width: 100%; padding: 12px; }
.pill:disabled { opacity: .5; }
input[type=text], input:not([type]), input[type=password], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 8px; outline: none; font: inherit; margin-bottom: 10px; }
input:focus, textarea:focus { border-color: var(--accent); }
input[type=file] { margin-bottom: 10px; color: var(--muted); }
.error { color: #f87171; margin-bottom: 10px; font-size: 14px; }
.link { color: var(--accent); }

/* avatar + badge */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid;
  place-items: center; font-weight: 700; flex-shrink: 0; object-fit: cover; }
.badge { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: #a78bfa; color: #fff; font-size: 10px; font-weight: 700; vertical-align: middle; }

/* layout */
.sidebar { position: fixed; background: rgba(9,9,20,.82); backdrop-filter: blur(16px); top: 56px; left: 0; bottom: 0; width: 220px; padding: 12px; overflow-y: auto; }
.sidebar.collapsed { display: none; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 2px; }
.side-item:hover, .side-item.active { background: var(--hover); }
.side-item.active { font-weight: 600; }
.side-title { color: var(--muted); font-size: 13px; margin: 16px 12px 6px; }
.content { margin: 56px 0 0 220px; padding: 20px 24px; }
.content.wide { margin-left: 0; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 10px; }

/* video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 16px; }
.card { cursor: pointer; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--panel);
  display: grid; place-items: center; font-size: 32px; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 5px; border-radius: 4px; }
.card-info { display: flex; gap: 12px; margin-top: 10px; }
.card-info h3 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* watch */
.watch { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
#player { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; }
.watch h1 { font-size: 20px; margin: 12px 0; }
.watch-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.channel, .actions { display: flex; align-items: center; gap: 12px; }
.desc { background: var(--panel); border-radius: 12px; padding: 12px; margin: 16px 0; }
.desc p { margin-top: 6px; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.comment-box { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.comment-box input { margin: 0; flex: 1; }
.comment { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.related { display: flex; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.related .thumb { width: 168px; flex-shrink: 0; font-size: 22px; }
.related h4 { font-size: 14px; margin-bottom: 4px; }

/* channels */
.banner { width: 100%; height: 180px; border-radius: 14px; background: linear-gradient(135deg, #4c1d95, #1e1b4b);
  background-size: cover; background-position: center; margin-bottom: 8px; }
.chan-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.chan-info h1 { font-size: 26px; }
.chan-info .row { margin-top: 10px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.channel-card { background: var(--panel); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.channel-card:hover { background: var(--hover); }

/* studio */
.studio-head { margin-bottom: 12px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--accent); }
.panel { background: var(--panel); border-radius: 14px; padding: 18px; margin-bottom: 16px; max-width: 900px; }
.panel h3 { margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px; }
.table td { padding: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.mini { width: 90px; font-size: 16px; border-radius: 6px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border-radius: 16px; padding: 28px; }
.auth-card h2 { text-align: center; margin-bottom: 18px; }
.auth-card .muted { text-align: center; margin-top: 12px; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { margin-left: 0; }
  .watch { grid-template-columns: 1fr; }
  .search { width: 45%; }
}
/* ===== owner badge ===== */
.owner-badge { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: 10px;
  font-weight: 700; padding: 2px 7px; border-radius: 10px; vertical-align: middle; letter-spacing: .5px; white-space: nowrap; }
select { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font: inherit; margin-bottom: 10px; outline: none; }

/* ===== shorts ===== */
.shelf { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
.short-card { width: 170px; flex: none; cursor: pointer; }
.short-card h4 { font-size: 14px; margin: 8px 0 4px; }
.thumb.vert { aspect-ratio: 9/16; }
.content.shorts-page { padding: 8px 24px; }
.shorts-feed { height: calc(100vh - 72px); max-width: 560px; margin: 0 auto; overflow-y: scroll;
  scroll-snap-type: y mandatory; scrollbar-width: none; }
.shorts-feed::-webkit-scrollbar { display: none; }
.short { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex;
  align-items: flex-end; justify-content: center; gap: 14px; padding: 4px 0; }
.short-frame { position: relative; height: 100%; aspect-ratio: 9/16; max-width: calc(100% - 70px);
  background: #000; border-radius: 16px; overflow: hidden; }
.short-video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.short-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.short-info p { margin-top: 8px; font-size: 14px; }
.short-actions { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--hover); color: var(--text);
  font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.round span { font-size: 10px; margin-top: 1px; }
.round.liked { background: var(--accent); }
/* Veyro additions */
.voice-btn { width: 42px; flex: none; border: 1px solid var(--line); border-radius: 50%; margin-left: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.voice-btn:hover, .voice-btn.listening { background: var(--accent); color: #fff; }
.home-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); margin:0 0 22px; }
.home-tab { border:0; background:transparent; color:var(--muted); padding:12px 18px; cursor:pointer; border-bottom:2px solid transparent; font:inherit; }
.home-tab.active { color:var(--text); border-color:var(--accent); font-weight:700; }
.empty.compact { padding:42px 20px; }
.upload-types { display:flex; gap:10px; margin:8px 0 12px; }
.upload-types label { display:flex; align-items:center; gap:8px; background:var(--hover); border:1px solid var(--line); border-radius:10px; padding:10px 14px; cursor:pointer; }
.upload-hint { margin-bottom:14px; }
.file-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:24px 14px; border:1px dashed #68618c; border-radius:14px; background:rgba(130,105,220,.06); margin-bottom:12px; cursor:pointer; text-align:center; }
.file-drop input { max-width:100%; margin:8px 0 0; }
.drop-icon { font-size:26px; color:var(--accent); }
#selectedFile { margin:0 0 12px; overflow-wrap:anywhere; }
.upload-progress { display:none; height:5px; background:var(--line); border-radius:8px; overflow:hidden; margin:10px 0; }
.upload-progress.show { display:block; }
.upload-progress span { display:block; height:100%; width:0; background:linear-gradient(90deg,#7657db,#b18cff); transition:width .25s ease; }
.upload-submit { margin-top:6px; }
.logo { text-decoration:none; color:var(--text); letter-spacing:-.5px; }
@media (max-width: 600px) {
  .topbar { padding:0 8px; }
  .logo { font-size:17px; }
  .left,.right { gap:5px; }
  .right .pill { padding:8px 10px; font-size:12px; }
  .search { width:auto; flex:1; margin:0 8px; min-width:90px; }
  .search input { min-width:0; padding:8px 10px; }
  .search button { padding:0 10px; }
  .voice-btn { width:34px; height:34px; margin-left:4px; }
  .content { padding:16px 12px; }
  .grid { grid-template-columns:1fr; }
  .panel { padding:14px; }
  .table { display:block; overflow-x:auto; white-space:nowrap; }
}

/* Veyro video-platform layout refresh */
:root { --bg:#0f0f0f; --panel:#181818; --hover:#272727; --line:#303030; --text:#f1f1f1; --muted:#aaa; --accent:#8b75e8; }
body { background:#0f0f0f; background-attachment:fixed; }
.topbar { height:64px; padding:0 22px; background:rgba(15,15,15,.97); border-bottom:1px solid #242424; }
.left { min-width:190px; gap:18px; }
.logo { font-size:22px; letter-spacing:-1px; }
.logo-mark { background:#8b75e8; border-radius:7px; padding:3px 7px; font-size:13px; }
.search-wrap { display:flex; align-items:center; justify-content:center; gap:12px; width:min(48%,720px); margin:0 auto; }
.search { width:100%; max-width:650px; }
.search input { height:42px; padding:0 18px; background:#121212; border:1px solid #343434; border-radius:22px 0 0 22px; font-size:16px; }
.search button { min-width:64px; background:#222; border:1px solid #343434; border-radius:0 22px 22px 0; font-size:23px; }
.voice-btn { width:42px; height:42px; margin:0; border:0; background:#222; }
.right { min-width:190px; justify-content:flex-end; }
.create-btn { border:0; border-radius:22px; padding:10px 15px; color:#f5f5f5; background:#272727; font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; }
.create-btn:hover { background:#3a3a3a; }
.sidebar { top:64px; width:240px; padding:14px 12px 28px; background:#0f0f0f; border:0; }
.side-item { min-height:44px; padding:0 14px; border-radius:10px; gap:22px; font-size:14px; }
.side-icon { width:22px; text-align:center; font-size:19px; }
.side-item.active { background:#272727; font-weight:700; }
.side-item:hover { background:#272727; }
.side-title { margin:14px 14px 8px; color:#eee; font-size:14px; font-weight:700; }
.side-sep { margin:14px 0; border-color:#303030; }
.content { margin:64px 0 0 240px; padding:22px 28px 50px; }
.content.wide { margin-left:0; }
.home-tabs { border:0; margin:0 0 12px; gap:22px; }
.home-tab { padding:8px 2px 12px; font-size:15px; }
.home-tab.active { border-color:#f1f1f1; color:#fff; }
.category-bar { display:flex; gap:12px; overflow-x:auto; padding:8px 0 20px; margin:0 0 10px; scrollbar-width:none; }
.category-bar::-webkit-scrollbar { display:none; }
.category-chip { border:0; border-radius:8px; padding:9px 13px; background:#272727; color:#f1f1f1; font-size:14px; white-space:nowrap; cursor:pointer; }
.category-chip:hover { background:#3a3a3a; }
.category-chip.selected { background:#f1f1f1; color:#111; font-weight:700; }
.feed-heading { display:flex; align-items:baseline; gap:12px; margin:8px 0 18px; }
.feed-heading h1 { font-size:22px; letter-spacing:-.4px; }
.grid { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:34px 18px; }
.card { min-width:0; }
.thumb { border-radius:12px; background:#222; }
.card-info { gap:12px; margin-top:12px; }
.card-info h3 { font-size:15px; line-height:1.4; font-weight:650; }
.card-info .avatar { width:38px!important; height:38px!important; }
.muted { color:#aaa; }
.watch { grid-template-columns:minmax(0,1fr) 390px; gap:26px; }
#player { border-radius:12px; }
.related { align-items:flex-start; gap:10px; }
.related .thumb { width:168px; border-radius:9px; }
.banner { border-radius:14px; }
.panel { background:#181818; border:1px solid #292929; }
@media (max-width:1100px) { .watch { grid-template-columns:1fr; } .watch-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
@media (max-width:900px) { .sidebar { display:none; } .content { margin-left:0; padding:18px 20px 40px; } .left,.right { min-width:unset; } .search-wrap { width:48%; } }
@media (max-width:650px) { .topbar { height:58px; padding:0 8px; gap:6px; } .left { gap:5px; } .logo { font-size:17px; } .logo-mark { display:none; } .right { gap:5px; } .right .avatar { width:30px!important;height:30px!important; } .create-btn { padding:8px 10px; font-size:12px; } .search-wrap { width:auto; flex:1; gap:5px; margin:0 4px; } .search input { height:36px; min-width:0; padding:0 10px; font-size:14px; } .search button { min-width:38px; font-size:18px; } .voice-btn { width:34px;height:34px; } .content { margin-top:58px; padding:14px 12px 36px; } .grid { grid-template-columns:1fr; gap:26px; } .thumb { border-radius:10px; } .category-bar { padding-bottom:14px; } .watch-side { display:block; } }
