* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(255,255,255,.075);
  --panel-strong: rgba(255,255,255,.11);
  --text: #eef3ff;
  --muted: #9aa8c7;
  --line: rgba(255,255,255,.14);
  --accent: #77f4c7;
  --accent-2: #8cb8ff;
  --danger: #ff8c8c;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(119,244,199,.20), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(140,184,255,.18), transparent 32rem),
    linear-gradient(145deg, #06070b 0%, #111827 100%);
}
a { color: inherit; }
.home-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(8,10,15,.78);
  backdrop-filter: blur(18px) saturate(150%);
}
.home-brand { text-decoration: none; font-weight: 950; letter-spacing: -.05em; font-size: 1.35rem; }
.home-tabs { display: flex; gap: 8px; align-items: center; }
.home-tabs a {
  text-decoration: none;
  color: var(--muted);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .9rem;
}
.home-tabs a:hover, .home-tabs a:focus-visible { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.07); outline: none; }
.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}
.hero {
  min-height: 300px;
  display: grid;
  align-content: center;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,244,199,.20), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
  margin: 0 0 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  letter-spacing: -.09em;
  line-height: .87;
  margin-bottom: 22px;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -.055em; margin-bottom: 0; }
h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -.02em; }
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: var(--accent); color: #04120d; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,.08); }
.hint { color: var(--muted); }
.panel {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.compact-head { align-items: center; }
.search { min-width: min(360px, 100%); color: var(--muted); font-size: .85rem; }
.search span { display: block; margin-bottom: 8px; }
.search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.search input:focus { border-color: rgba(119,244,199,.65); box-shadow: 0 0 0 4px rgba(119,244,199,.10); }
.quick-links {
  display: grid;
  gap: 10px;
}
.quick-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.075);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.quick-link:hover, .quick-link:focus-visible { transform: translateY(-2px); border-color: rgba(119,244,199,.55); background: rgba(255,255,255,.12); outline: none; }
.quick-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(119,244,199,.14);
  color: var(--accent);
  font-weight: 950;
}
.quick-main { min-width: 0; }
.quick-title { display: block; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-desc { display: block; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.quick-open { color: var(--accent-2); font-weight: 900; }
.mini-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: .86rem; }
.mini-stats span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}
.mini-stats strong { color: var(--text); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  display: grid;
  gap: 14px;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(119,244,199,.55); background: rgba(255,255,255,.14); outline: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .86rem; }
.badge { padding: 5px 9px; border-radius: 999px; background: rgba(119,244,199,.14); color: var(--accent); font-weight: 800; }
.desc { color: var(--muted); line-height: 1.45; }
.card-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.small-link { color: var(--accent-2); font-weight: 800; text-decoration: none; }
.empty { color: var(--muted); padding: 20px 0 0; }
.file-page .hero { min-height: 260px; }
.preview { display: grid; gap: 20px; }
.preview-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0,0,0,.24);
  overflow: hidden;
  min-height: 160px;
  display: grid;
  place-items: center;
}
.preview-box img, .preview-box video { max-width: 100%; max-height: 76vh; display: block; }
.preview-box audio { width: min(720px, 90%); }
.preview-box iframe { width: 100%; height: min(78vh, 760px); border: 0; background: #fff; }
.file-info { display: grid; gap: 10px; color: var(--muted); }
.file-info strong { color: var(--text); }
@media (max-width: 760px) {
  .home-top { min-height: 58px; }
  .home-tabs a { padding: 0 9px; font-size: .82rem; }
  .shell { width: min(100% - 20px, 1120px); padding: 18px 0 40px; }
  .hero { padding: 28px; border-radius: 24px; min-height: 260px; }
  .panel { padding: 18px; border-radius: 22px; }
  .section-head { display: grid; align-items: start; gap: 18px; }
  .compact-head { align-items: start; }
  .mini-stats { justify-content: flex-start; }
  .quick-link { grid-template-columns: auto 1fr; }
  .quick-open { display: none; }
}
