
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Noto Sans,sans-serif;background:#0b0f14;color:#e8ecf1}
a{color:inherit}
.topbar{position:sticky;top:0;z-index:10;display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:rgba(16,22,29,.9);backdrop-filter:blur(6px);border-bottom:1px solid #1e293b;flex-wrap:wrap}
.topbar h1{margin:0;font-size:1.1rem;font-weight:700;letter-spacing:.3px}
.controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.controls input[type="search"], .controls select{background:#0f1720;border:1px solid #1f2a3a;color:#e8ecf1;padding:.5rem .6rem;border-radius:.6rem;outline:none}
.controls input[type="search"]{width:20rem;max-width:55vw}
.type-toggle{display:flex;align-items:center;gap:.3rem;font-size:.85rem;opacity:.9}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px;padding:16px}
.card{position:relative;background:#0f1720;border:1px solid #1e293b;border-radius:.8rem;overflow:hidden}
.card button{all:unset;display:block;width:100%;height:100%;cursor:pointer}
.thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:#0b0f14}
.thumb img,.thumb video{max-width:100%;max-height:100%;display:block}
.meta{display:flex;align-items:center;justify-content:space-between;padding:.5rem .6rem;border-top:1px solid #1e293b}
.name{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80%}
.badge{font-size:.7rem;opacity:.7;border:1px solid #334155;border-radius:.4rem;padding:.1rem .3rem}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#0f1720;border:1px solid #1e293b;padding:.5rem .75rem;border-radius:.6rem;opacity:0;transition:opacity .2s, bottom .2s;pointer-events:none}
.toast.show {
  opacity: 1;
  bottom: 26px;
  pointer-events: auto;
}
.modal.hidden{display:none}
.modal{position:fixed;inset:0;display:grid;place-items:center}



.modal-backdrop{position:absolute;inset:0;background:rgba(2,6,12,.75)}
.modal-card{position:relative;background:#0f1720;border:1px solid #1e293b;border-radius:1rem;max-width:min(92vw,900px);max-height:min(90vh,800px);display:flex;flex-direction:column;overflow:hidden}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #1e293b}
.modal-content{padding:1rem;display:grid;place-items:center;background-color: #0b0f14;}
.modal-content img,.modal-content video{max-width:100%;max-height:70vh}
.close{font-size:1.2rem;cursor:pointer;padding:.2rem .4rem;border-radius:.4rem}
.close:hover{background:#16202b}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 1em;
  display: none;           /* shown via JS */
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.cookie-banner__content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-banner button {
  background: #4CAF50;
  border: none;
  padding: 0.5em 1em;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 768px){
  .topbar{gap:.5rem}
  .controls input[type="search"]{max-width:100%;flex:1 1 100%}
}
@media (max-width: 480px){
  .controls select, .controls label{font-size:.85rem}
  .grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
}
