/* VidNest — dark video platform UI (demo) */
:root {
  --bg: #0f0f0f; --surface: #212121; --surface2: #272727; --text: #f1f1f1;
  --muted: #aaa; --accent: #ff4d4d; --border: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: Roboto, "Segoe UI", Arial, sans-serif; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 16px; background: rgba(15,15,15,.95); backdrop-filter: blur(4px); border-bottom: 1px solid #000; }
.tb-left { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: 0; color: var(--text); font-size: 20px; padding: 8px; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--surface2); }
.brand { display: flex; align-items: center; gap: 5px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--accent); font-size: 20px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -1px; }
.brand-cc { color: var(--muted); font-size: 10px; }
.tb-center { flex: 1; max-width: 640px; display: flex; }
.search { display: flex; width: 100%; }
.search input { flex: 1; background: #121212; border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 40px 0 0 40px; font-size: 15px; outline: none; }
.search button { background: var(--surface2); border: 1px solid var(--border); border-left: 0; color: var(--text);
  padding: 0 20px; border-radius: 0 40px 40px 0; cursor: pointer; }
.tb-right { display: flex; align-items: center; gap: 12px; }
.demo-chip { font-size: 11px; color: #ffd34d; border: 1px solid #ffd34d; padding: 3px 8px; border-radius: 20px; }
.avatar-circle { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#8e44ad,#3498db);
  display: grid; place-items: center; font-weight: 700; cursor: pointer; }

.layout { display: flex; }
.sidebar { width: 210px; padding: 12px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex-shrink: 0; }
.nav-item { display: flex; align-items: center; gap: 20px; padding: 9px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 14px; }
.nav-item:hover { background: var(--surface2); }
.nav-ic { width: 22px; height: 22px; }
.nav-sep { border-top: 1px solid var(--border); margin: 10px 4px; }
.nav-note { color: var(--muted); font-size: 12px; padding: 8px; line-height: 1.5; }

.content { flex: 1; padding: 20px 24px; min-width: 0; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px; }
.chip { background: var(--surface2); color: var(--text); border: 0; padding: 7px 13px; border-radius: 8px;
  font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--text); color: #000; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 16px; }
.card { cursor: pointer; }
.thumb-wrap { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--surface); }
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.85); padding: 2px 6px;
  font-size: 12px; border-radius: 4px; }
.play-overlay { position: absolute; inset: 0; margin: auto; width: 60px; height: 42px; background: rgba(255,77,77,.92);
  color: #fff; border: 0; border-radius: 10px; font-size: 18px; opacity: 0; transition: .15s; cursor: pointer; }
.card:hover .play-overlay { opacity: 1; }
.meta { display: flex; gap: 12px; margin-top: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.v-title { font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.v-channel, .v-stats { color: var(--muted); font-size: 13px; }
.like-row { margin-top: 6px; }
.like-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; cursor: pointer; }
.like-btn:hover { color: var(--text); border-color: var(--muted); }
.foot-note { color: var(--muted); font-size: 12px; margin: 30px 0; text-align: center; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal-box { background: var(--surface); border-radius: 14px; padding: 28px; max-width: 520px; width: 100%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.6); max-height: 90vh; overflow-y: auto; }
.player-box { max-width: 860px; }
.player-box video { width: 100%; border-radius: 8px; background: #000; margin-bottom: 12px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted);
  font-size: 28px; cursor: pointer; }
.disc-badge { display: inline-grid; place-items: center; background: #ffd34d; color: #000; font-weight: 800;
  font-size: 12px; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.modal-box h2 { font-size: 20px; margin-bottom: 10px; }
.modal-box p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.modal-box ul { margin: 0 0 18px 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.btn-primary { background: var(--accent); color: #fff; border: 0; padding: 11px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.1); }

@media (max-width: 900px) { .sidebar { display: none; } .tb-center { max-width: none; } }
