/* ── reset / base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0a0a14; color: #e7e7ee; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; min-height: 100%; }
a { color: #4dd0e1; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at top, #1a1d3a 0%, #0a0a14 60%);
  padding: 56px 20px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #4dd0e1 0%, #2ecc71 50%, #f1c40f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.tagline { color: #8a8aa0; font-size: clamp(14px, 1.8vw, 17px); line-height: 1.5; }

/* ── tabs / search ────────────────────────────────────── */
.tabs {
  max-width: 1240px;
  margin: 28px auto 12px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tab {
  background: transparent;
  color: #8a8aa0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.tab:hover { color: #e7e7ee; border-color: rgba(255,255,255,0.18); }
.tab.active { background: #4dd0e1; color: #0a0a14; border-color: #4dd0e1; }
.search {
  margin-left: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e7e7ee;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: border-color 0.15s ease;
}
.search:focus { border-color: #4dd0e1; }
.search::placeholder { color: #5a5a72; }

/* ── card grid ────────────────────────────────────────── */
.grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: #14142a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(77,208,225,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(77,208,225,0.12);
}
.card-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1d3a center/cover no-repeat;
  position: relative;
  cursor: pointer;
}
.card-thumb::after {
  content: "▶ Play";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.card-thumb:hover::after { opacity: 1; }
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f7f7fa;
  letter-spacing: -0.01em;
}
.card-hook {
  font-size: 13px;
  color: #8a8aa0;
  line-height: 1.4;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.vote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b0b0c0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.vote:hover { background: rgba(255,255,255,0.08); color: #e7e7ee; }
.vote.active.like   { background: rgba(46,204,113,0.18); border-color: #2ecc71; color: #2ecc71; }
.vote.active.dislike{ background: rgba(231,76,60,0.18);  border-color: #e74c3c; color: #e74c3c; }
.card-foot .play-link {
  margin-left: auto;
  background: linear-gradient(135deg, #4dd0e1, #0288a8);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}
.card-foot .play-link:hover { text-decoration: none; filter: brightness(1.1); }

.recent-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(46,204,113,0.95);
  color: #0a0a14;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.play-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #e7e7ee;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ── empty state ──────────────────────────────────────── */
.empty {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  color: #8a8aa0;
  padding: 0 20px;
}
.empty h2 { font-size: 20px; margin-bottom: 8px; color: #c0c0d0; }

/* ── footer ───────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: #4a4a5e;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
