:root {
  --bg: #0d0d0d;
  --panel: #161616;
  --panel2: #121212;
  --border: #242424;
  --text: #e5e5e5;
  --muted: #9aa0a6;
  --accent: #1a3a4a;
  --danger: #7a1f1f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: radial-gradient(
      1200px 600px at 20% -10%,
      rgba(26, 58, 74, 0.35),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 100% 0%,
      rgba(122, 31, 31, 0.2),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: yellow;
  box-shadow: 0 0 0 6px rgba(122, 116, 31, 0.15);
}
.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0.9),
    rgba(18, 18, 18, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.hero p {
  margin: 0;
  color: var(--muted);
}

.anniversary {
  min-width: 280px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(26, 58, 74, 0.22);
  border: 1px solid rgba(26, 58, 74, 0.35);
}
.anniversary b {
  color: var(--text);
}
.hidden {
  display: none;
}

.controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 140px;
  gap: 10px;
}
@media (max-width: 900px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    flex-direction: column;
  }
  .anniversary {
    min-width: unset;
    width: 100%;
  }
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 0.85rem;
  color: var(--muted);
}
input,
select {
  background: rgba(22, 22, 22, 0.85);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
input:focus,
select:focus {
  border-color: rgba(26, 58, 74, 0.65);
  box-shadow: 0 0 0 4px rgba(26, 58, 74, 0.18);
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 58, 74, 0.28);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
}
.w100 {
  width: 100%;
}

.feed {
  margin-top: 18px;
}
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.feed-head h3 {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}
.grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(22, 22, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, border-color 0.08s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 58, 74, 0.5);
}
.card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.card-body {
  padding: 12px;
}
.date {
  font-size: 0.85rem;
  color: #b0b6bb;
}
.title {
  margin: 6px 0 8px;
  font-weight: 700;
}
.context {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  font-size: 0.78rem;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #cfd5da;
}
.chip.danger {
  border-color: rgba(122, 31, 31, 0.35);
  background: rgba(122, 31, 31, 0.18);
}

.empty {
  margin: 16px 0;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.modal-card {
  position: relative;
  width: min(980px, 100%);
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-card.narrow {
  width: min(640px, 100%);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  background: rgba(22, 22, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-title {
  font-weight: 800;
}
.modal-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
}
@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}
.modal-body img {
  width: 100%;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  background: #0b0b0b;
}
.meta {
  padding: 14px;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}
.about-body {
  padding: 14px;
}
code {
  color: #d7dde2;
}
.single {
  margin-top: 18px;
}
.single-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.single-head h3 {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.single-card {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: rgba(22, 22, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
@media (max-width: 900px) {
  .single-card {
    grid-template-columns: 1fr;
  }
}
.single-media img {
  width: 100%;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  background: #0b0b0b;
  filter: saturate(0.85) contrast(1.05);
}
.single-body {
  padding: 14px;
}
.single-actions {
  margin-top: 12px;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}
.single-media a {
  display: block;
  cursor: pointer;
}

.single-media a:hover img {
  filter: saturate(0.9) contrast(1.1);
  box-shadow: 0 0 0 2px rgba(26, 58, 74, 0.45);
}
