
:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --text:#111827;
  --text-soft:#374151;
  --muted:#6b7280;
  --line:#e5e7eb;
  --line-soft:#f0f2f5;
  --black:#111827;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --blue-soft:#eff6ff;
  --footer:#10151d;
  --radius-sm:8px;
  --radius:12px;
  --radius-lg:16px;
  --shadow-sm:0 4px 14px rgba(15,23,42,.05);
  --shadow:0 14px 36px rgba(15,23,42,.08);
  --container:1360px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:15px;
  letter-spacing:-.012em;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
.container{width:min(var(--container),94%);margin:auto}
.skip-link{position:absolute;left:-999px;top:8px;z-index:999;background:#fff;padding:10px;border-radius:8px}
.skip-link:focus{left:8px}

/* Header */
.header-wrap{
  position:sticky;
  top:0;
  z-index:99;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.header{
  min-height:66px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.055em;
}
.logo-mark{
  width:34px;
  height:34px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--black);
  color:#fff;
  font-weight:900;
}
.logo span:last-child b{color:var(--blue)}
.nav{
  display:flex;
  align-items:center;
  gap:18px;
  justify-self:start;
}
.nav a{
  position:relative;
  color:#1f2937;
  font-size:14px;
  font-weight:650;
  padding:23px 0 21px;
}
.nav a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:999px;
  background:transparent;
}
.nav a.active,
.nav a:hover{color:var(--blue)}
.nav a.active:after{background:var(--blue)}
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.icon-btn{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#111827;
}
.header-search{
  width:240px;
  height:40px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
}
.header-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  font:inherit;
  font-size:14px;
}
.upload-btn,
.search-btn,
.download-btn,
.view-all,
.donate-btn{
  transition:.16s ease;
}
.upload-btn{
  height:40px;
  border-radius:10px;
  background:var(--black);
  color:#fff;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:750;
}
.upload-btn:hover{background:var(--blue)}

/* Hero */
.hero{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.hero-inner{
  min-height:178px;
  padding:24px 0 22px;
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
}
.hero h1{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.06em;
  font-weight:900;
}
.hero h1 span{color:var(--blue)}
.hero p{
  margin:0 0 17px;
  color:var(--muted);
  line-height:1.55;
  max-width:680px;
}
.hero-search{
  height:52px;
  width:min(680px,100%);
  display:flex;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow-sm);
}
.hero-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:0 17px;
  font:inherit;
}
.search-btn{
  border:0;
  background:var(--black);
  color:#fff;
  padding:0 24px;
  font-weight:800;
  cursor:pointer;
}
.search-btn:hover{background:var(--blue)}
.popular{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
}
.popular a{
  padding:5px 9px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  color:#374151;
  font-size:12px;
  font-weight:550;
}
.popular a:hover{
  color:#fff;
  background:var(--black);
  border-color:var(--black);
}
.hero-art{display:none!important}

/* Layout */
.layout,
.full-layout{
  display:block!important;
  padding:18px 0 0;
}
.side-panel,
.sidebar{display:none!important}
.content{width:100%;min-width:0}

/* Section */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 15px;
}
.section-head h1,
.section-head h2{
  margin:0;
  font-size:21px;
  line-height:1.2;
  font-weight:820;
  letter-spacing:-.04em;
}
.section-head h1:before,
.section-head h2:before{
  content:"";
  display:block;
  width:30px;
  height:3px;
  border-radius:999px;
  background:var(--blue);
  margin-bottom:9px;
}
.tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tabs a{
  font-size:13px;
  color:#4b5563;
  font-weight:650;
  padding:8px 11px;
  border-radius:999px;
}
.tabs a.active{
  color:#fff;
  background:var(--black);
}
.view-all{
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:9px 13px;
  color:#374151;
  font-size:13px;
  font-weight:650;
}
.view-all:hover{
  background:var(--black);
  color:#fff;
  border-color:var(--black);
}

/* Ads */
.ad{
  display:grid;
  place-items:center;
  text-align:center;
  min-height:82px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  color:#9ca3af;
  line-height:1.45;
  font-size:13px;
}
.ad-wide{margin:18px 0}
.ad-rect{min-height:250px}

/* Masonry Cards */
.masonry{
  columns:5 210px;
  column-gap:14px;
}
.asset-card{
  display:inline-block;
  width:100%;
  break-inside:avoid;
  margin:0 0 14px;
  background:#fff;
  border:1px solid transparent;
  border-radius:12px;
  overflow:hidden;
  transition:.16s ease;
}
.asset-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:var(--line);
}
.asset-preview{
  display:grid;
  place-items:center;
  padding:2px;
  background-color:#fff;
  background-image:
    linear-gradient(45deg,rgba(0,0,0,.035) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(0,0,0,.035) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(0,0,0,.035) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.035) 75%);
  background-size:24px 24px;
  background-position:0 0,0 12px,12px -12px,-12px 0;
}
.asset-preview img{
  width:100%;
  height:auto;
  object-fit:contain;
}
.asset-preview.square img{width:96%}
.asset-preview.tall img{width:84%}
.asset-body{
  padding:9px 10px 10px;
}
.asset-body h3{
  margin:0 0 6px;
  font-size:13.5px;
  line-height:1.35;
  font-weight:500;
  color:#374151;
  letter-spacing:-.012em;
}
.asset-card:hover h3{color:#111827}
.meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:#8b95a5;
  font-size:12px;
}

/* Detail */
.breadcrumb{
  margin:16px 0;
  color:#6b7280;
  font-size:13px;
}
.breadcrumb a{color:#111827}
.detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px;
}
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
.detail-preview{
  min-height:520px;
}
.detail-preview img{
  max-width:100%;
  max-height:510px;
  object-fit:contain;
}
.download-card h1{
  margin:0 0 10px;
  font-size:27px;
  line-height:1.13;
  font-weight:850;
  letter-spacing:-.055em;
}
.download-card p{
  margin:0 0 13px;
  color:#4b5563;
  line-height:1.55;
}
.download-btn {
    width: 100%;
    border: 0;
    background: var(--black);
    color: #fff;
    border-radius: 11px;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    display: block;
    text-align: center;
}
.download-btn:hover{background:var(--blue)}
.donate-mini{display:none}
.file-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  font-size:14px;
}
.file-table td{
  padding:9px 0;
  border-bottom:1px solid #f1f5f9;
}
.file-table td:last-child{
  text-align:right;
  color:#6b7280;
}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}
.tags a{
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:13px;
  color:#374151;
}
.tags a:hover{
  background:var(--black);
  color:#fff;
  border-color:var(--black);
}

/* Forms / pages */
.page-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:28px;
  margin:20px 0;
  line-height:1.75;
}
.page-panel h1{
  margin-top:0;
  font-size:32px;
  letter-spacing:-.05em;
}
.form{
  display:grid;
  gap:12px;
  max-width:760px;
}
.form input,
.form textarea,
.form select{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:13px 14px;
  font:inherit;
  outline:none;
  background:#fff;
}
.form textarea{min-height:150px;resize:vertical}

/* Pagination */
.pagination{
  display:flex;
  justify-content:center;
  gap:7px;
  margin:22px 0;
}
.pagination a{
  min-width:36px;
  padding:9px 11px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  color:#374151;
  font-size:13px;
  text-align:center;
}
.pagination a.active{
  background:var(--black);
  color:#fff;
  border-color:var(--black);
}

/* Footer */
.footer{
  background:var(--footer);
  color:#d1d5db;
  margin-top:30px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:26px;
  padding:32px 0;
}
.footer h3{
  margin:0 0 11px;
  color:#fff;
  font-size:15px;
}
.footer p,
.footer a{
  color:#d1d5db;
  font-size:14px;
  line-height:1.75;
}
.footer a{display:block}
.footer a:hover{color:#fff}
.social{
  display:flex;
  gap:10px;
  margin-top:13px;
}
.social span{
  width:30px;
  height:30px;
  border-radius:999px;
  background:#28313d;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:13px;
}
.footer-donate{
  margin-top:16px;
}
.footer-donate .donate-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.donate-btn{
  min-height:43px;
  border-radius:10px;
  border:1px solid #374151;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#1f2937;
  color:#fff;
  font-weight:800;
  font-size:14px;
}
.donate-btn:hover{
  background:var(--blue);
  border-color:var(--blue);
}
.subscribe{
  height:42px;
  display:flex;
  border:1px solid #374151;
  border-radius:10px;
  overflow:hidden;
  background:#1f2937;
}
.subscribe input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  padding:0 12px;
  color:#fff;
  outline:0;
}
.subscribe button{
  width:42px;
  border:0;
  background:#000;
  color:#fff;
}
.copy{
  text-align:center;
  border-top:1px solid #1f2937;
  padding:14px 0;
  color:#9ca3af;
  font-size:13px;
}

/* Removed blocks */
.seo-block:has(h2:first-child){display:none}

/* Responsive */
@media(max-width:1180px){
  .header{grid-template-columns:1fr}
  .nav{order:3;overflow:auto}
  .header-actions{justify-self:start}
  .masonry{columns:4 200px}
  .detail-layout{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:820px){
  .header-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr auto;
  }
  .header-search{width:100%}
  .upload-btn{grid-column:1/3;justify-content:center}
  .hero h1{font-size:30px}
  .hero-search{height:auto;display:grid}
  .hero-search input{height:50px}
  .search-btn{height:48px}
  .section-head{display:block}
  .tabs{margin-top:10px}
  .masonry{columns:3 160px;column-gap:11px}
  .asset-card{margin-bottom:11px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:540px){
  .container{width:95%}
  .nav{gap:14px}
  .masonry{columns:2 145px;column-gap:10px}
  .asset-body h3{font-size:13px}
  .detail-preview{min-height:330px}
  .footer-grid{grid-template-columns:1fr}
  .footer-donate .donate-actions{grid-template-columns:1fr}
}

/* Minimal search-first version */
:root{
  --bg:#fafafa;
  --surface:#ffffff;
  --text:#111111;
  --text-soft:#333333;
  --muted:#666666;
  --line:#eaeaea;
  --line-soft:#f2f2f2;
  --black:#111111;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --footer:#111111;
}
.header{
  min-height:64px;
}
.nav a{
  color:#222!important;
}
.nav a.active,
.nav a:hover{
  color:#111!important;
}
.nav a.active:after{
  background:#111!important;
}
.logo-mark,
.upload-btn,
.search-btn,
.download-btn,
.pagination a.active{
  background:#111!important;
}
.upload-btn:hover,
.search-btn:hover,
.download-btn:hover{
  background:#2563eb!important;
}
.hero{
  background:#fff!important;
}
.hero-inner{
  min-height:150px!important;
  padding:20px 0 18px!important;
}
.hero h1{
  font-size:32px!important;
}
.asset-card{
  border-color:transparent!important;
  background:#fff!important;
}
.asset-card:hover{
  border-color:#eaeaea!important;
}
.asset-body h3{
  color:#333!important;
  font-weight:500!important;
}
.asset-card:hover h3{
  color:#111!important;
}
.footer-grid{
  grid-template-columns:1.4fr repeat(3,1fr)!important;
}
.footer-donate,
.pagination{
  display:none!important;
}
.load-more-wrap{
  display:flex;
  justify-content:center;
  margin:26px 0 8px;
}
.load-more-btn{
  border:1px solid #111;
  background:#111;
  color:#fff;
  border-radius:10px;
  min-width:150px;
  height:44px;
  font-weight:750;
  cursor:pointer;
}
.load-more-btn:hover{
  background:#2563eb;
  border-color:#2563eb;
}
.infinite-note{
  text-align:center;
  color:#888;
  font-size:13px;
  margin:10px 0 24px;
}
@media(max-width:760px){
  .footer-grid{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:520px){
  .footer-grid{
    grid-template-columns:1fr!important;
  }
}


/* FINAL GAP FIX — keep old layout, fix only image edge gaps */
.asset-preview{
  padding:0!important;
  overflow:hidden!important;
  line-height:0!important;
  display:block!important;
  background:#fff!important;
  background-image:none!important;
}

.asset-preview img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  margin:0!important;
  vertical-align:top!important;
}

/* For wide demo/background previews: fill the full card width and remove tiny SVG/canvas gaps */
.asset-preview.wide img,
.asset-preview:not(.square):not(.tall) img{
  width:100%!important;
  height:auto!important;
  object-fit:cover!important;
}

/* For square and tall images: keep clean full preview, no checker padding */
.asset-preview.square img,
.asset-preview.tall img{
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
}

/* Detail page: no surrounding preview gap */
.detail-preview{
  padding:0!important;
  overflow:hidden!important;
  line-height:0!important;
  background:#fff!important;
  background-image:none!important;
}

.detail-preview img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
}

/* Card image area should not show checkerboard border */
.asset-card{
  overflow:hidden!important;
}


/* Donate page */
.donate-page{
  max-width:760px;
  margin:36px auto 54px;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:16px;
  padding:34px;
  text-align:center;
}
.donate-page h1{
  margin:0 0 12px;
  font-size:34px;
  line-height:1.12;
  letter-spacing:-.055em;
}
.donate-page p{
  color:#555;
  line-height:1.7;
  margin:0 auto 22px;
  max-width:560px;
}
.donate-buttons{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:24px auto;
  max-width:520px;
}
.donate-page .donate-button{
  min-height:48px;
  border-radius:10px;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.donate-page .donate-button:hover{
  background:#2563eb;
}
.donate-email{
  display:inline-block;
  margin-top:8px;
  padding:10px 14px;
  border:1px solid #e8e8e8;
  border-radius:999px;
  color:#333;
  background:#fafafa;
  font-size:14px;
}
.donate-note{
  margin-top:20px!important;
  color:#777!important;
  font-size:14px;
}
@media(max-width:560px){
  .donate-page{
    padding:24px 18px;
  }
  .donate-buttons{
    grid-template-columns:1fr;
  }
}
