/* =========================================================
   TikLora — design system
   ========================================================= */
:root {
  --bg: #07070b;
  --bg-soft: #0d0d15;
  --bg-card: #13131e;
  --bg-elev: #1a1a2a;
  --border: rgba(255,255,255,.07);
  --border-2: rgba(255,255,255,.13);
  --text: #f4f4fb;
  --text-dim: #9b9bb3;
  --text-mute: #65657c;
  --pink: #fe2c55;
  --pink-2: #ff4d6d;
  --cyan: #25f4ee;
  --purple: #7c5cff;
  --green: #2dd4a7;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --max: 1140px;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --glow-pink: 0 0 50px rgba(254,44,85,.30);
  font-synthesis-weight: none;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
code {
  background: rgba(255,255,255,.07); padding: 1px 7px; border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; color: var(--cyan);
}
b { font-weight: 700; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,11,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; font-size: 11px; box-shadow: var(--glow-pink);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* result-page top bar */
.result-nav { gap: 18px; }
.nav-search { flex: 1; max-width: 560px; }
.search-row.compact { padding: 6px 6px 6px 14px; border-radius: 14px; }
.search-row.compact .search-icon { width: 17px; height: 17px; }
.search-row.compact #search-input { font-size: 14.5px; padding: 9px 4px; }
.search-row.compact .btn-primary { padding: 9px 20px; font-size: 14px; }
.back-link { color: var(--text-dim); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.back-link:hover { color: var(--text); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 70px 0 50px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -40% 20% auto 20%; height: 600px;
  background:
    radial-gradient(closest-side, rgba(254,44,85,.22), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(37,244,238,.16), transparent),
    radial-gradient(closest-side at 30% 60%, rgba(124,92,255,.18), transparent);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 100px; margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 60px); font-weight: 900; line-height: 1.05;
  letter-spacing: -.03em; margin-bottom: 18px;
}
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--pink) 60%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 17px; max-width: 580px; margin: 0 auto 36px; }
.hero-sub b { color: var(--text); }

/* search box */
.search-box { max-width: 660px; margin: 0 auto; }
.search-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 18px; padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-row:focus-within {
  border-color: var(--pink);
  box-shadow: var(--shadow), 0 0 0 4px rgba(254,44,85,.12);
}
.search-icon { width: 20px; height: 20px; color: var(--text-mute); flex-shrink: 0; }
#search-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px; font-family: inherit; padding: 12px 4px;
}
#search-input::placeholder { color: var(--text-mute); }
.btn-ghost {
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #fff; border: none; padding: 12px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s;
  white-space: nowrap; box-shadow: 0 6px 20px rgba(254,44,85,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(254,44,85,.45); }
.btn-primary:active { transform: translateY(0); }
.search-hint { margin-top: 14px; font-size: 13px; color: var(--text-mute); }

.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 46px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat:nth-child(1) b { color: var(--pink); }
.hero-stat:nth-child(2) b { color: var(--cyan); }
.hero-stat:nth-child(3) b { color: var(--purple); }
.hero-stat:nth-child(4) b { color: var(--green); }
.hero-stat span { font-size: 12.5px; color: var(--text-mute); }

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-dim); font-size: 16px; margin-bottom: 46px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature-ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; margin-bottom: 16px;
}
.ic-pink { background: rgba(254,44,85,.14); color: var(--pink-2); }
.ic-cyan { background: rgba(37,244,238,.12); color: var(--cyan); }
.ic-purple { background: rgba(124,92,255,.14); color: var(--purple); }
.ic-green { background: rgba(45,212,167,.12); color: var(--green); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  text-align: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 24px;
}
.step-num {
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff;
  box-shadow: 0 8px 22px rgba(254,44,85,.3);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* faq */
.faq-list { margin-top: 30px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--text-mute); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--text-dim); font-size: 14.5px; }

/* =========================================================
   RESULTS
   ========================================================= */
.results-section { min-height: 200px; padding: 30px 0 60px; }
.results-section.has-result { padding-top: 50px; }

.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1); border-top-color: var(--pink);
  margin: 40px auto; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- profile ---- */
.profile-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.profile-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; text-align: center; position: relative; overflow: hidden;
}
.profile-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(135deg, rgba(254,44,85,.25), rgba(124,92,255,.18));
}
.profile-card .avatar {
  position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg-card); margin: 0 auto 14px;
  box-shadow: var(--shadow);
}
.profile-card .p-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 7px; }
.profile-card .verified { color: var(--cyan); font-size: 16px; }
.profile-card .p-handle { color: var(--text-dim); font-size: 14.5px; margin-bottom: 12px; }
.profile-card .p-bio { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 22px; min-height: 20px; }
.profile-card .p-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.p-stat { background: var(--bg-elev); padding: 16px 8px; }
.p-stat .n { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.p-stat .l { font-size: 11.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; }

/* dashboard averages */
.dash {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-head h3 { font-size: 17px; font-weight: 700; }
.dash-head .tag { font-size: 12px; color: var(--text-mute); background: rgba(255,255,255,.05); padding: 4px 11px; border-radius: 100px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-cell { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; }
.dash-cell .dv { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dash-cell .dl { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.dash-cell.accent .dv { color: var(--pink-2); }

/* ---- video grid ---- */
.grid-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 18px; }
.grid-head h3 { font-size: 18px; font-weight: 700; }
.grid-head .count { font-size: 13.5px; color: var(--text-mute); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.v-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s;
}
.v-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.v-thumb { position: relative; aspect-ratio: 9/16; background: var(--bg-elev); overflow: hidden; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.v-card:hover .v-thumb img { transform: scale(1.06); }
.v-badge {
  position: absolute; bottom: 8px; left: 8px; display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.62); backdrop-filter: blur(6px); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px;
}
.v-dur { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.v-play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.v-card:hover .v-play { opacity: 1; }
.v-play span {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(254,44,85,.85); color: #fff; font-size: 20px;
}
.v-meta { padding: 11px 13px; }
.v-desc {
  font-size: 13px; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px; min-height: 36px;
}
.v-stats { display: flex; gap: 13px; font-size: 12px; color: var(--text-mute); }
.v-stats span { display: flex; align-items: center; gap: 3px; }

.load-more-wrap { text-align: center; margin-top: 30px; }
.btn-load {
  background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text);
  padding: 13px 34px; border-radius: 12px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-load:hover { border-color: var(--pink); color: var(--pink-2); }
.btn-load:disabled { opacity: .5; cursor: default; }

/* ---- video result ---- */
.video-result { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.vr-layout { display: grid; grid-template-columns: 380px 1fr; gap: 0; }
.vr-media { position: relative; aspect-ratio: 9/16; background: #000; max-height: 560px; }
.vr-media img, .vr-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-body { padding: 32px 34px; display: flex; flex-direction: column; }
.vr-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.vr-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.vr-author .an { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.vr-author .au { font-size: 13px; color: var(--text-dim); }
.vr-author .verified { color: var(--cyan); }
.vr-caption { font-size: 15px; line-height: 1.55; margin-bottom: 20px; color: var(--text); }
.vr-stats { display: flex; flex-wrap: wrap; gap: 22px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.vr-stat { display: flex; flex-direction: column; }
.vr-stat .v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.vr-stat .k { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; }
.vr-dl-label { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 13px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s; border: none;
}
.dl-btn .arr { font-size: 16px; }
.dl-btn.hd { background: linear-gradient(135deg, var(--pink), var(--pink-2)); color: #fff; box-shadow: 0 8px 24px rgba(254,44,85,.32); }
.dl-btn.hd:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(254,44,85,.42); }
.dl-btn.std { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-2); }
.dl-btn.std:hover { border-color: var(--cyan); color: var(--cyan); }
.dl-btn.nowm { background: linear-gradient(135deg, var(--cyan), #6df); color: #05121a; }
.dl-note { margin-top: 16px; font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }
.dl-note a { color: var(--cyan); }
.vr-date { font-size: 12.5px; color: var(--text-mute); margin-top: auto; padding-top: 18px; }

/* ---- messages ---- */
.msg { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.5; }
.msg.error { background: rgba(254,44,85,.1); border: 1px solid rgba(254,44,85,.35); color: #ffb3c2; }
.msg.info { background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.35); color: #cfc3ff; }
.msg.ok { background: rgba(45,212,167,.1); border: 1px solid rgba(45,212,167,.35); color: #8fe9d4; }

/* ---- oembed-only card ---- */
.oe-card { display: flex; gap: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.oe-card img { width: 180px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 44px 0 34px; margin-top: 30px; }
.footer-inner { text-align: center; }
.footer-brand { font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.footer-tag { color: var(--text-mute); font-size: 13px; font-weight: 400; margin-bottom: 18px; }
.footer-disc { color: var(--text-mute); font-size: 12.5px; max-width: 620px; margin: 0 auto 16px; line-height: 1.6; }
.footer-copy { color: var(--text-mute); font-size: 12.5px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .profile-wrap { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .vr-layout { grid-template-columns: 1fr; }
  .vr-media { max-height: 420px; margin: 0 auto; max-width: 280px; }
  .vr-body { padding: 24px; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .result-nav { flex-wrap: wrap; }
  .result-nav .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .back-link { font-size: 13px; }
  .hero { padding: 48px 0 36px; }
  .search-row { flex-wrap: wrap; padding: 8px; }
  #search-input { width: 100%; padding: 10px 8px; order: -1; }
  .btn-ghost, .btn-primary { flex: 1; justify-content: center; }
  .hero-stats { gap: 26px; }
  .hero-stat b { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .section { padding: 56px 0; }
  .oe-card { flex-direction: column; }
  .oe-card img { width: 100%; max-width: 220px; }
}
