:root {
  --bg: #0c0f16;
  --card: #151921;
  --text: #e0e6ec;
  --muted: #8b99a6;
  --accent: #00c9a7;
  --ring: #2a313d;
  --shadow: rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: 'Fira Sans', sans-serif; background: var(--bg); color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px; }
header h1 { margin: 8px 0 0; letter-spacing: 1px; font-weight: 600; }
.tag { margin: 6px 0 0; color: var(--muted); font-size: 0.9em; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid var(--ring); padding-bottom: 14px; margin-top: 20px; }
.tabs .grow { flex: 1; }
.tabs button, #resFilter, #searchBox {
  border: 1px solid var(--ring); background: transparent; color: var(--text);
  padding: 8px 16px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 14px;
  transition: all 0.3s ease;
}
.tabs button:hover, #resFilter:hover, #searchBox:focus { border-color: var(--accent); }
.tabs .active { background: var(--ring); border-color: var(--accent); }
.tabs .accent { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.tabs .accent:hover { opacity: 0.9; }

#resFilter, #searchBox {
  background: var(--card);
}
#searchBox {
  width: 180px;
}
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px var(--shadow);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow);
}
.thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0e1116;
}
.meta { padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.meta .title { 
  font-size: 15px;
  color: var(--text);
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
  font-weight: 500;
}
.resTag {
  font-size: 10px;
  background: var(--accent);
  color: #000;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
}
.btn {
  margin-left: auto; 
  padding: 8px 12px; 
  font-size: 14px; 
  border-radius: 10px; 
  border: 1px solid var(--ring);
  background: var(--ring); 
  color: var(--text); 
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover { 
  border-color: var(--accent); 
  background: var(--accent);
  color: var(--bg);
}
.foot {
  margin: 30px auto 40px; 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  justify-content: space-between;
  border-top: 1px solid var(--ring); 
  padding-top: 20px; 
  color: var(--muted);
  font-size: 0.9em;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.foot a:hover {
  color: var(--accent);
}
