:root {
  --red: #0b2a6f;
  --red-2: #061a46;
  --gold: #ffcc00;
  --gold-2: #d8a800;
  --bg: #07080c;
  --text: #f5f6ff;
  --muted: #b9bfd3;
}
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 480px at 20% -10%, rgba(11, 42, 111, 0.35), transparent 65%), linear-gradient(180deg, #071a3d 0%, #07080c 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 204, 0, 0.25);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--bg);
  background: linear-gradient(145deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.45), inset 0 1px 2px rgba(255,255,255,0.35);
  font-weight: 700;
}
.brand-logo {
  display: block;
  max-width: 70%;
  height: auto;
  object-fit: contain;
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.4px;
}
.nav .btn.admin {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: var(--text);
  border: 1px solid rgba(255, 204, 0, 0.35);
  box-shadow: 0 6px 16px rgba(11, 42, 111, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav .btn.admin:hover {
  filter: brightness(1.05);
}
.nav {
  display: flex;
  align-items: center;
}
.nav .btn.visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2), #ffcc6a);
  background-size: 200% 200%;
  color: var(--bg);
  border: 1px solid rgba(255, 204, 0, 0.45);
  box-shadow: 0 8px 18px rgba(255, 204, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: shimmer 3.5s ease infinite, glow 4s ease-in-out infinite;
  white-space: nowrap;
}
.btn.visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2), #ffcc6a);
  background-size: 200% 200%;
  color: var(--bg);
  border: 1px solid rgba(255, 204, 0, 0.45);
  box-shadow: 0 8px 18px rgba(255, 204, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: shimmer 3.5s ease infinite, glow 4s ease-in-out infinite;
  white-space: nowrap;
}
.nav .btn.visit .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn.visit .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.nav .btn.visit:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}
.btn.visit:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glow {
  0% { box-shadow: 0 8px 18px rgba(255, 204, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.22); }
  50% { box-shadow: 0 12px 28px rgba(255, 204, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.28); }
  100% { box-shadow: 0 8px 18px rgba(255, 204, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.22); }
}
.btn.edit {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--bg);
  border: 1px solid rgba(255, 204, 0, 0.45);
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  font-weight: 600;
}
.btn.edit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn.delete {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: var(--text);
  border: 1px solid rgba(255, 204, 0, 0.35);
  box-shadow: 0 6px 16px rgba(11, 42, 111, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  font-weight: 600;
}
.btn.delete:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.main {
  padding: 16px;
  flex: 1 0 auto;
}
.hero {
  text-align: center;
  padding: 16px 8px;
}
.hero-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}
.hero-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.marquee-block {
  margin-top: 8px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #08162f, #050810);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 18s linear infinite;
}
.marquee-item {
  display: inline-block;
  padding: 8px 10px;
  white-space: nowrap;
  color: var(--muted);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    transform: none;
  }
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.35);
  background: linear-gradient(180deg, #08162f, #050810);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.card-media {
  aspect-ratio: 14 / 9;
  background: #0f0f0f;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-preview {
  height: clamp(180px, 28vw, 340px);
}
.edit-preview img {
  object-fit: contain;
}
.card-body {
  padding: 12px 12px 14px;
}
.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.card-date {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed rgba(255, 204, 0, 0.25);
  padding-top: 8px;
}
.empty {
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255, 204, 0, 0.4);
  border-radius: 12px;
}
.footer {
  margin-top: 22px;
  padding: 18px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 204, 0, 0.25);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open {
  display: flex;
}
.modal-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  max-width: min(92vw, 900px);
}
.modal-dialog .btn.visit {
  position: static;
  justify-self: center;
  margin-top: 8px;
}
.modal-dialog .btn.visit .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.modal-img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 204, 0, 0.25);
}
@media (min-width: 640px) {
  .main {
    padding: 20px;
  }
  .brand-logo {
  max-width: 35%;
}
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .hero-title {
    font-size: 18px;
  }
}
