:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#5f6368;
  --muted2:#7a7f85;
  --stroke:#e6e7ea;
  --card:#ffffff;
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --accent:#e3ff00;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height:1.5;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.container{
  width:min(1200px, 92vw);
  margin:0 auto;
  padding: 26px 0 98px; /* leave space for bottom nav */
}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:var(--accent); color:#000;
  padding:10px 12px; border-radius:12px;
}
.skip-link:focus{left:12px; z-index:99999}

.h1{
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.2px;
}
.h2{
  margin:0;
  font-size: clamp(18px, 2.2vw, 24px);
}
.sub{
  margin:0;
  color: var(--muted);
  max-width: 78ch;
}

.page-header{
  padding: 10px 0 18px;
}

.breadcrumb{
  display:flex; align-items:center; gap:8px;
  color: var(--muted2);
  font-size: 13px;
}
.breadcrumb a{color: var(--muted2)}
.breadcrumb a:hover{color: var(--text)}
.sep{opacity:.6}

/* Ads */
.ad-block{
  margin: 14px 0;
  padding: 14px;
  border:1px dashed #cfd3d8;
  border-radius: var(--radius);
  background:#fbfbfc;
}
.ad-label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:#6b7280;
}
.ad-box{
  margin-top: 8px;
  color:#444;
}

/* Filters */
.filters{
  margin: 16px 0 18px;
}
.filter-row{
  display:grid;
  grid-template-columns: 1.4fr .7fr .7fr auto;
  gap:10px;
  align-items:stretch;
}
.search-wrap{
  position:relative;
}
.input, .select{
  width:100%;
  padding: 12px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background:#fff;
  color: var(--text);
  outline:none;
}
.input:focus, .select:focus{
  border-color: rgba(227,255,0,.9);
  box-shadow: 0 0 0 3px rgba(227,255,0,.18);
}
.select{border-radius: 12px}
.btn{
  border:1px solid var(--stroke);
  background:#fff;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.20);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.btn:active{transform: translateY(0) scale(.99)}

.btn-accent{
  background: var(--accent);
  color:#000;
  border-color: rgba(227,255,0,.9);
}
.btn-accent:hover{
  box-shadow: 0 0 0 3px rgba(227,255,0,.18), 0 10px 28px rgba(0,0,0,.08);
}
.btn-outline:hover{
  background:#f7f7f8;
}

@media (max-width: 920px){
  .filter-row{grid-template-columns: 1fr 1fr}
}
@media (max-width: 560px){
  .filter-row{grid-template-columns: 1fr}
  .btn{width:100%}
}

/* Sections */
.section{margin-top: 18px}
.section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  margin-bottom: 10px;
}
.link{
  color:#111;
  font-size: 14px;
}
.link:hover{color:#000; text-decoration: underline}
.hint{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* Trending row */
.trending-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.trending-row::-webkit-scrollbar{height:8px}
.trending-row::-webkit-scrollbar-thumb{background:#dfe3e7; border-radius:999px}

/* Card */
.t-card{
  min-width: 290px;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

/* Make whole card clickable */
.t-card-link{
  display:block;
  padding:12px;
  text-decoration:none;
  color: inherit;
  height:100%;
}

.t-card:hover{
  transform: translateY(-2px);
  border-color: rgba(227,255,0,.55);
  box-shadow: 0 0 0 3px rgba(227,255,0,.14), 0 12px 30px rgba(0,0,0,.10);
}

.t-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(227,255,0,.35);
  border:1px solid rgba(227,255,0,.65);
  font-size: 12px;
  font-weight: 800;
  color:#000;
}

.t-name{
  margin:10px 0 6px;
  font-size: 16px;
}

.t-desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

.t-foot{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color: var(--muted2);
}

.t-cta{
  font-weight:800;
  color:#111;
}

.t-card:hover .t-cta{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Latest Articles — horizontal scroll on ALL devices (like Trending) */
/* Latest row (same behavior as Trending) */
.latest-row{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.latest-row::-webkit-scrollbar{height:8px}
.latest-row::-webkit-scrollbar-thumb{
  background:#dfe3e7;
  border-radius:999px;
}

/* Latest card */
.latest-card{
  min-width: 290px;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

/* Whole card clickable */
.latest-card-link{
  display:block;
  padding:12px;
  text-decoration:none;
  color: inherit;
  height:100%;
}

.latest-card:hover{
  transform: translateY(-2px);
  border-color: rgba(227,255,0,.55);
  box-shadow: 0 0 0 3px rgba(227,255,0,.14), 0 12px 30px rgba(0,0,0,.10);
}

/* Title */
.latest-name{
  margin:10px 0 6px;
  font-size: 16px;
}

/* Description */
.latest-desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* Bottom row: Went live | Unlock it */
.latest-foot{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color: var(--muted2);
}

.latest-cta{
  font-weight:800;
  color:#111;
}

.latest-card:hover .latest-cta{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;

}
/* A–Z bar */
.az-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 10px 0 0;
}
.az-btn{
  border:1px solid var(--stroke);
  background:#fff;
  color:#111;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.az-btn:hover{transform: translateY(-1px)}
.az-btn.active{
  background: var(--accent);
  border-color: rgba(227,255,0,.9);
  color:#000;
}

/* Articles grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}

.article-card{
  grid-column: span 4;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

/* Make entire card clickable */
.card-link{
  display:block;
  height:100%;
  color: inherit;
  text-decoration:none;
}

.article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(227,255,0,.55);
  box-shadow: 0 0 0 3px rgba(227,255,0,.14), 0 12px 30px rgba(0,0,0,.10);
}

.article-inner{padding: 14px}

.logo{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid #e9eaee;
  background: #f6f7f9;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  color:#111;
}

.h2-title{
  margin: 10px 0 6px;
  font-size: 18px;
}

/* Clean 2-line clamp without -webkit warnings */
.desc{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-height: calc(1.45em * 2); /* 2 lines */
  overflow:hidden;
}

/* Row: Category (left) + Unlock it (right) */
.line{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background:#fff;
  color:#111;
  font-weight: 700;
}

.unlock{
  font-weight: 800;
  color:#111;
}

.article-card:hover .unlock{
  color:#000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Row: Went live (left) + Quick mins (right) */
.meta2{
  margin-top: 8px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color: var(--muted2);
  font-size: 12px;
}

@media (max-width: 980px){
  .article-card{grid-column: span 6}
}
@media (max-width: 560px){
  .article-card{grid-column: span 12}
}
/* Ad in grid */
.grid-ad{
  grid-column: span 12;
  border:1px dashed #cfd3d8;
  border-radius: var(--radius);
  background:#fbfbfc;
  padding: 14px;
}

/* Load more */
.load-more-wrap{
  margin: 16px 0 0;
  display:flex;
  justify-content:center;
}
.load-more-wrap .btn{
  min-width: 220px;
}

/* Footer */
.footer{
  margin-top: 22px;
  border-top: 1px solid var(--stroke);
  padding-top: 16px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-sub{color: var(--muted); font-size: 13px}
.footer-copy{color: var(--muted2); font-size: 13px}

/* Bottom nav (white version) */
/* Bottom nav (WHITE GLASS like Home) */
.bottom-nav{
  position: fixed;
  left:0; right:0; bottom:0;
  height: 76px;
  background: rgba(255,255,255,.78); /* glass */
  border-top: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 9999;
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color: rgba(0,0,0,.52);
  font-size: 12px;
  transition: transform .12s ease, color .12s ease;
}
.nav-ico svg{width:22px; height:22px}
.nav-item:hover{
  transform: translateY(-1px);
  color: rgba(0,0,0,.72);
}
.nav-item.active{
  color: #111;
}
.nav-item.active .nav-ico{
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(227,255,0,.18));
}
.nav-dot{
  width:6px; height:6px;
  border-radius:999px;
  background: transparent;
}
.nav-item.active .nav-dot{
  background: var(--accent);
  box-shadow: 0 0 14px rgba(227,255,0,.22);
}

/* Screen reader */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}