*{ box-sizing:border-box; }
html{ scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body{
	margin:0;
	background:var(--bg);
	color:var(--text);
	font-family:'Inter', system-ui, sans-serif;
	font-size:15px;
	line-height:1.6;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1,h2,h3,h4{
	font-family:'Chakra Petch', 'Inter', sans-serif;
	font-weight:600;
	margin:0;
	color:var(--text);
	letter-spacing:.2px;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
img,svg{ display:block; max-width:100%; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

.wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }

header{
	position:sticky; top:0; z-index:40;
	background:rgba(16,19,26,.92);
	backdrop-filter:blur(8px);
	border-bottom:1px solid var(--border);
	padding-top: env(safe-area-inset-top, 0px);
}
.header-inner{ display:flex; align-items:center; gap:20px; height:68px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Chakra Petch',sans-serif; font-weight:700; font-size:19px; flex-shrink:0; }
.logo-mark{ width:32px; height:32px; border-radius:8px; background:linear-gradient(160deg, var(--accent), var(--accent-dark)); display:flex; align-items:center; justify-content:center; color:#1a0f06; font-size:16px; font-weight:700; }
.logo small{ display:block; font-family:'Inter',sans-serif; font-weight:400; font-size:10.5px; color:var(--text-dim); letter-spacing:.4px; }
nav.main-nav{ display:flex; align-items:center; gap:4px; }
nav.main-nav a{ padding:8px 12px; border-radius:8px; font-size:14px; color:var(--text-dim); transition:background .15s, color .15s; }
nav.main-nav a:hover, nav.main-nav a.active{ color:var(--text); background:var(--surface-2); }
.cat-dropdown{ position:relative; }
.cat-menu{ position:absolute; top:calc(100% + 8px); left:0; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; min-width:220px; padding:6px; display:none; flex-direction:column; gap:2px; box-shadow:0 12px 28px rgba(0,0,0,.35); }
.cat-dropdown:hover .cat-menu, .cat-dropdown:focus-within .cat-menu{ display:flex; }
.cat-menu button{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:none; border:none; color:var(--text); text-align:left; padding:9px 10px; border-radius:7px; font-size:13.5px; width:100%; }
.cat-menu button:hover{ background:var(--surface); }
.cat-dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.cat-count{ color:var(--text-faint); font-family:var(--mono); font-size:11.5px; margin-left:auto; }
.header-search{ flex:1; max-width:360px; margin-left:auto; position:relative; display:flex; align-items:center; }
.header-search input{ width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:8px; padding:9px 12px 9px 36px; font-size:13.5px; font-family:inherit; }
.header-search input:focus{ outline:none; border-color:var(--accent); }
.header-search svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-faint); }
.menu-toggle{ display:none; background:none; border:1px solid var(--border); border-radius:8px; width:40px; height:40px; align-items:center; justify-content:center; color:var(--text); margin-left:auto; }
.mobile-panel{ display:none; flex-direction:column; gap:2px; padding:10px 20px 16px; border-bottom:1px solid var(--border); background:var(--bg); }
.mobile-panel.open{ display:flex; }
.mobile-panel a, .mobile-panel button.cat-item{ padding:10px 6px; font-size:14px; color:var(--text-dim); text-align:left; background:none; border:none; display:flex; align-items:center; gap:8px; width:100%; }
.mobile-search{ margin:8px 0 4px; position:relative; }
.mobile-search input{ width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:8px; padding:10px 12px 10px 36px; font-size:14px; }
.mobile-search svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-faint); }

.ad-slot{ border:1px dashed var(--border-strong); border-radius:var(--radius); background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--text-faint); font-size:12px; min-height:90px; }
.ad-slot span{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.ad-slot .ad-label{ font-family:var(--mono); font-size:10.5px; letter-spacing:.5px; }
.ad-leaderboard{ margin:16px auto; max-width:1180px; padding:0 20px; }
.ad-leaderboard .ad-slot{ min-height:80px; }
.ad-infeed{ grid-column:1/-1; min-height:110px; }
.ad-sidebar .ad-slot{ min-height:250px; }
.ad-footer{ min-height:80px; margin-top:6px; }

.hero{ padding:48px 0 28px; border-bottom:1px solid var(--border); }
.hero h1{ font-size:clamp(26px,4vw,36px); max-width:640px; }
.hero p{ color:var(--text-dim); max-width:520px; margin:12px 0 26px; font-size:15px; }
.search-big{ position:relative; max-width:560px; }
.search-big svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:var(--text-faint); }
.search-big input{ width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:15px 16px 15px 46px; font-size:15.5px; font-family:inherit; }
.search-big input:focus{ outline:none; border-color:var(--accent); }
.search-meta{ margin-top:10px; font-size:12.5px; color:var(--text-faint); font-family:var(--mono); }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.chip{ display:flex; align-items:center; gap:7px; border:1px solid var(--border); background:var(--surface); padding:8px 14px; border-radius:999px; font-size:13px; color:var(--text-dim); transition:border-color .15s, color .15s, background .15s; }
.chip:hover{ color:var(--text); border-color:var(--border-strong); }
.chip.active{ color:var(--text); background:var(--surface-2); border-color:var(--chip-color, var(--accent)); }
.chip .cat-dot{ background:var(--chip-color); }

.content-layout{ display:grid; grid-template-columns:1fr 280px; gap:28px; padding:32px 0 60px; align-items:start; }
.sidebar{ position:sticky; top:88px; display:flex; flex-direction:column; gap:20px; }
.sidebar-box{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.sidebar-box h4{ font-size:12.5px; text-transform:none; color:var(--text-dim); margin-bottom:10px; font-family:'Inter',sans-serif; font-weight:600; }
.stat-row{ display:flex; justify-content:space-between; font-size:13px; padding:6px 0; border-bottom:1px solid var(--border); }
.stat-row:last-child{ border-bottom:none; }
.stat-row span:last-child{ font-family:var(--mono); color:var(--text-dim); }
.results-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.results-head h2{ font-size:17px; }
.results-count{ font-size:12.5px; color:var(--text-faint); font-family:var(--mono); }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:10px; border-left:3px solid var(--card-color, var(--accent)); }
.card-top{ display:flex; align-items:flex-start; gap:10px; }
.card-icon{ width:34px; height:34px; border-radius:8px; flex-shrink:0; background:color-mix(in srgb, var(--card-color) 18%, var(--surface-2)); display:flex; align-items:center; justify-content:center; color:var(--card-color); }
.card-icon svg{ width:18px; height:18px; }
.card-title{ font-size:14.5px; font-weight:600; line-height:1.35; }
.card-cat{ font-size:11px; color:var(--card-color); font-family:var(--mono); margin-top:2px; }
.card-preview{ overflow:hidden; border:1px solid var(--border); border-radius:8px; background:#000; aspect-ratio:16 / 9; }
.card-preview video{ display:block; width:100%; height:100%; object-fit:contain; }
.card-desc{ font-size:13px; color:var(--text-dim); flex:1; }
.card-meta{ display:flex; gap:12px; font-size:11.5px; color:var(--text-faint); font-family:var(--mono); flex-wrap:wrap; }
.card-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{ font-size:10.5px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-dim); padding:2px 8px; border-radius:999px; }
.card-actions{ display:flex; gap:8px; margin-top:4px; }
.btn-download{ flex:1; display:flex; align-items:center; justify-content:center; gap:7px; background:var(--accent); color:#1a0f06; font-weight:600; font-size:13px; padding:9px 12px; border-radius:8px; border:none; }
.btn-download svg{ width:15px; height:15px; }
.btn-download:hover{ background:#ffa460; }
.btn-copy{ background:var(--surface-2); border:1px solid var(--border); color:var(--text-dim); width:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; }
.btn-copy svg{ width:15px; height:15px; }
.btn-copy:hover{ color:var(--text); border-color:var(--border-strong); }
.empty-state{ grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--text-dim); }
.empty-state svg{ width:38px; height:38px; margin:0 auto 14px; color:var(--text-faint); }
.empty-state h3{ font-size:16px; margin-bottom:6px; color:var(--text); }
.empty-state p{ font-size:13.5px; }

.view{ display:none; }
.view.active{ display:block; }
.page-hero{ padding:40px 0 8px; }
.page-hero h1{ font-size:26px; }
.page-body{ padding:20px 0 60px; max-width:720px; }
.page-body h2{ font-size:17px; margin-top:26px; margin-bottom:8px; }
.page-body p, .page-body li{ font-size:14px; color:var(--text-dim); }
.page-body ul{ padding-left:20px; margin:8px 0; }
.page-body li{ margin-bottom:6px; }
.updated-note{ font-size:12px; color:var(--text-faint); font-family:var(--mono); margin-top:4px; }

footer{ border-top:1px solid var(--border); padding:36px 0 28px; margin-top:20px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:24px; margin-bottom:26px; }
.footer-col h4{ font-size:12.5px; color:var(--text-dim); margin-bottom:10px; font-family:'Inter',sans-serif; font-weight:600; }
.footer-col a, .footer-col p{ display:block; font-size:13px; color:var(--text-dim); padding:4px 0; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:20px; border-top:1px solid var(--border); font-size:12px; color:var(--text-faint); flex-wrap:wrap; gap:10px; }
.disclaimer{ font-size:11.5px; color:var(--text-faint); max-width:560px; line-height:1.6; }

#cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:60; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:12px; padding:16px 18px; display:none; align-items:center; gap:16px; flex-wrap:wrap; box-shadow:0 16px 40px rgba(0,0,0,.4); max-width:640px; margin:0 auto; padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px)); }
#cookie-banner.show{ display:flex; }
#cookie-banner p{ font-size:12.5px; color:var(--text-dim); flex:1; min-width:200px; margin:0; }
#cookie-banner .cookie-actions{ display:flex; gap:8px; }
.btn-cookie-accept{ background:var(--accent); color:#1a0f06; font-weight:600; font-size:12.5px; padding:8px 14px; border-radius:7px; border:none; }
.btn-cookie-reject{ background:none; border:1px solid var(--border); color:var(--text-dim); font-size:12.5px; padding:8px 14px; border-radius:7px; }

@media (max-width:860px){
	.content-layout{ grid-template-columns:1fr; }
	.sidebar{ position:static; flex-direction:row; overflow-x:auto; }
	.sidebar-box{ min-width:220px; }
	.footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:700px){
	nav.main-nav, .header-search{ display:none; }
	.menu-toggle{ display:flex; }
	.footer-grid{ grid-template-columns:1fr; }
}
