/* ============================================================
   VidHost - Main Stylesheet
   ============================================================ */

:root {
  --bg:      #0a0a0f;
  --surface: #12121a;
  --surface2:#1a1a26;
  --surface3:#222234;
  --accent:  #6c63ff;
  --accent2: #ff6584;
  --green:   #4ade80;
  --red:     #f87171;
  --yellow:  #facc15;
  --text:    #e8e8f0;
  --muted:   #6b6b80;
  --border:  #2a2a3a;
  --radius:  14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
}
.btn-nav:hover { background: #5a52e0 !important; }

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,.13) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.badge-pill {
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.3);
  color: #a89fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
h1.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
}
h1.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 500px; margin-bottom: 44px; }

/* ── UPLOAD CARD ── */
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 560px;
  position: relative; z-index: 1;
}
.tabs-row {
  display: flex; gap: 8px;
  background: var(--surface2);
  padding: 5px; border-radius: 12px;
  margin-bottom: 26px;
}
.tab-btn {
  flex: 1; padding: 10px;
  border: none; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.tab-btn.active { background: var(--accent); color: #fff; }

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(108,99,255,.05);
}
.drop-zone input[type=file] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.drop-icon {
  width: 58px; height: 58px;
  background: rgba(108,99,255,.14);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 14px;
}
.drop-zone h3 { font-family: 'Syne', sans-serif; margin-bottom: 5px; }
.drop-zone p { color: var(--muted); font-size: .83rem; }
.size-pill {
  display: inline-block; margin-top: 10px;
  background: rgba(108,99,255,.1); color: var(--accent);
  padding: 3px 12px; border-radius: 20px; font-size: .78rem;
}

/* Remote section */
.remote-section { display: none; }
.remote-section.show { display: block; }
.local-section.hide { display: none; }

.form-label { font-size: .83rem; color: var(--muted); font-weight: 500; display: block; margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .93rem;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }
.input-group { margin-bottom: 14px; }
.platform-note {
  background: rgba(108,99,255,.08);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .8rem;
  color: #a89fff;
  margin-top: 8px;
}

/* Buttons */
.btn-upload {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none; border-radius: 12px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: .98rem; font-weight: 700;
  cursor: pointer; margin-top: 16px;
  transition: all .3s;
}
.btn-upload:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(108,99,255,.4); }

/* Progress */
.progress-wrap { display: none; margin-top: 18px; }
.progress-wrap.show { display: block; }
.prog-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.prog-bar-bg { background: var(--surface2); border-radius: 10px; height: 7px; overflow: hidden; }
.prog-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 10px; width: 0; transition: width .3s; }
.prog-speed { font-size: .78rem; color: var(--muted); margin-top: 5px; text-align: center; }

/* Result box */
.result-box { display: none; background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.22); border-radius: 12px; padding: 15px; margin-top: 14px; }
.result-box.show { display: block; }
.result-box .rb-label { font-size: .83rem; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.result-row { display: flex; gap: 8px; }
.result-row input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: .83rem; outline: none; }
.copy-btn { background: var(--accent); border: none; color: #fff; padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: .82rem; white-space: nowrap; transition: background .2s; }
.copy-btn:hover { background: #5a52e0; }

/* ── STATS ROW ── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 560px; margin: 36px auto 0;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-lbl { color: var(--muted); font-size: .78rem; margin-top: 3px; }

/* ── VIDEO GRID ── */
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto 20px; padding: 0 20px;
}
.section-head h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  max-width: 1100px; margin: 0 auto 60px; padding: 0 20px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.vc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
}
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vc-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0; transition: opacity .2s;
}
.video-card:hover .vc-play { opacity: 1; }
.play-circle {
  width: 52px; height: 52px;
  background: rgba(108,99,255,.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.vc-source-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 5px;
}
.vc-body { padding: 14px; }
.vc-title { font-weight: 500; font-size: .93rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

.no-thumb {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--surface3);
  font-size: 2.5rem; gap: 4px;
}
.no-thumb small { font-size: .75rem; color: var(--muted); font-family: 'DM Sans',sans-serif; }

/* ── VIDEO PLAYER PAGE ── */
.player-layout {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.player-main {}
.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.player-wrap iframe,
.player-wrap video {
  width: 100%; height: 100%;
  border: none; display: block;
}
.player-info { margin-top: 18px; }
.player-title { font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.player-meta { display: flex; gap: 16px; font-size: .83rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 14px; }
.player-meta span { display: flex; align-items: center; gap: 5px; }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.action-btn {
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans',sans-serif;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.action-btn.primary:hover { background: #5a52e0; }
.player-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* SHARE BOX */
.share-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.share-box h4 { font-family: 'Syne', sans-serif; font-size: .9rem; margin-bottom: 12px; }
.share-row { display: flex; gap: 8px; margin-bottom: 10px; }
.share-row input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: .8rem; outline: none; }

/* REPORT LINK */
.report-link { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: right; }
.report-link a { color: var(--red); text-decoration: underline; }

/* SIDEBAR */
.player-sidebar {}
.sidebar-section { margin-bottom: 22px; }
.sidebar-title { font-family: 'Syne', sans-serif; font-size: .93rem; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-size: .75rem; }
.related-card {
  display: flex; gap: 10px;
  padding: 10px;
  border-radius: 10px;
  transition: background .2s;
  margin-bottom: 6px;
}
.related-card:hover { background: var(--surface); }
.rel-thumb { width: 88px; height: 54px; background: var(--surface2); border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { flex: 1; min-width: 0; }
.rel-title { font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.rel-meta { font-size: .74rem; color: var(--muted); }

/* ── REPORT PAGE ── */
.page-container { max-width: 680px; margin: 50px auto; padding: 0 20px 60px; }
.page-container h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; margin-bottom: 8px; }
.page-container .sub { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .9rem; transition: border-color .2s; }
.radio-option:hover { border-color: var(--accent); }
.radio-option input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 20px;
  font-size: .88rem; transform: translateY(80px); opacity: 0;
  transition: all .3s; z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(74,222,128,.4); color: var(--green); }
.toast.error   { border-color: rgba(248,113,113,.4); color: var(--red); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 40px 24px; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; max-width: 1100px; margin: 0 auto 24px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 6px; }
.footer-brand p { color: var(--muted); font-size: .83rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { text-align: center; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); padding-top: 18px; max-width: 1100px; margin: 0 auto; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { order: 2; }
}
@media (max-width: 600px) {
  .navbar { padding: 14px 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 16px 40px; }
  .upload-card { padding: 22px; }
}
