@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --card: #1c1c1c;
  --border: #2a2a2a;
  --accent: #ff4500;
  --accent2: #ff8c00;
  --text: #f0f0f0;
  --muted: #888;
  --radius: 14px;
}

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

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

/* ── OVERLAY ── */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
}
.overlay.active { display: block; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: -260px;
  width: 260px; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 1000;
  transition: left .3s ease;
  padding: 80px 0 24px;
  display: flex;
  flex-direction: column;
}
.sidebar.active { left: 0; }

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar a:hover,
.sidebar a.active {
  color: var(--text);
  background: rgba(255,69,0,.08);
  border-left-color: var(--accent);
}
.sidebar a .icon { font-size: 18px; width: 22px; text-align: center; }

/* ── HEADER ── */
header {
  position: sticky; top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.menu-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* reuse open-btn as alias */
.open-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.open-btn:hover { border-color: var(--accent); color: var(--accent); }

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 40%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* legacy .logo / .title kept for compatibility but hidden in new layout */
.logo { display: none; }
.title { display: none; }

/* search */
.search-wrap {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}
.search-container { flex: 1; max-width: 380px; margin-left: auto; }

.search-box {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
  box-shadow: none;
  margin: 0;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background .2s;
  margin: 0;
}
.search-box button:hover { background: var(--accent2); }

/* ── ANNOUNCE BAR ── */
.announce {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #fff;
}
.announce a { color: #fff; font-weight: 700; text-decoration: underline; }

/* hide old marquee */
.marq { display: none; }

/* ── AD STRIP ── */
.ad-strip {
  max-width: 728px;
  margin: 20px auto;
  text-align: center;
  padding: 0 20px;
}
.ad-strip ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
}

/* ── MAIN ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ── PAGE TITLE (sub-pages) ── */
.page-title-bar {
  margin-bottom: 24px;
}
.page-title-bar h1 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 40%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-title-bar p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
}
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── MEME GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ── CARD — INDEX PAGE (class="card") ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,69,0,.4);
  box-shadow: 0 8px 32px rgba(255,69,0,.12);
}
.card-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
  border: none;
}
.card-body {
  padding: 12px 14px 14px;
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  text-transform: capitalize;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .1s;
  font-family: inherit;
  width: 100%;
  justify-content: center;
}
.btn-download:hover { opacity: .9; transform: scale(1.01); }
.btn-download svg { width: 14px; height: 14px; }

/* ── MEME CARD — SUB PAGES (class="o") ── */
/* wrapper grid for .o cards */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}
/* remove old center tag effects */
.results center { display: contents; }

.o {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  /* reset old values */
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none;
}
.o:hover {
  transform: translateY(-3px);
  border-color: rgba(255,69,0,.4);
  box-shadow: 0 8px 32px rgba(255,69,0,.12);
}

/* video iframe inside .o — keep class="video" exactly */
.video {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  background: #000;
  display: block;
  border: none;
  border-radius: 0;
  margin: 0 !important;
}

/* h3 inside .o */
.o h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px 6px;
  line-height: 1.4;
  text-transform: capitalize;
}

/* download button inside .o — keep class="down" exactly */
.down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .1s;
  width: calc(100% - 28px);
  margin: 6px 14px 14px !important;
}
.down:hover { opacity: .9; transform: scale(1.01); }

/* anchor wrapping .down */
.o a {
  display: block;
  text-decoration: none;
}

/* ── DISCLAIMER / FOOTER STRIP (class="para") ── */
.para {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 0 !important;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.para mark {
  background: none;
  color: var(--accent2);
  font-weight: 600;
}

/* ── COUNT ── */
.count-info {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.count-info span { color: var(--accent); font-weight: 600; }

/* ── LOAD MORE ── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.btn-load {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 36px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
.btn-load:hover { border-color: var(--accent); color: var(--accent); }

/* ── FEEDBACK SECTION ── */
.feedback-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.feedback-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.feedback-section p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.feedback-section textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 10px;
}
.feedback-section textarea:focus { border-color: var(--accent); }
.btn-send {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn-send:hover { background: var(--accent2); }

/* ── FEEDBACK PAGE ── */
.o1 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  margin: 40px auto;
}
.o1 h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: 18px;
}
.txt {
  margin-bottom: 12px;
}
.txt label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}
.txt input,
.txt textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.txt input:focus,
.txt textarea:focus { border-color: var(--accent); }
.fbut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
  margin: 14px 0 0;
}
.fbut:hover { opacity: .88; }

/* ── EMPTY STATE ── */
.empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}
footer p {
  font-size: 11px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 8px;
  line-height: 1.6;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes disco {
  0%   { color: #ff4500; }
  25%  { color: #ff8c00; }
  50%  { color: #ffd700; }
  75%  { color: #ff4500; }
  100% { color: #ff8c00; }
}
.a { animation: disco 1.5s infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .logo-text { display: none; }
  .results {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .o h3 { font-size: 11px; padding: 6px 8px 4px; }
  .down { width: calc(100% - 16px); margin: 4px 8px 10px !important; font-size: 11px; padding: 7px 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 8px 10px 10px; }
  .page-title-bar h1 { font-size: 22px; }
}
