@font-face {
  font-family: 'ZXSpectrum';
  src: url('../fonts/zx.ttf');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'ZXSpectrum', monospace;
  color: #7fdf4f;
  background-color: #000;
}

#obal {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 8px;
}

#hlavicka {
  text-align: center;
  padding: 12px 0 4px;
}

#hlavicka img {
  max-width: 100%;
  height: auto;
}

#odkazy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 10px 0 18px;
  font-size: 13px;
  letter-spacing: 1px;
}

#odkazy a {
  color: #82b2e4;
  text-decoration: none;
  padding: 2px 4px;
}

#odkazy a:hover,
#odkazy a.active {
  color: #7fdf4f;
}

#obsah {
  padding: 4px 4px 24px;
}

h2 {
  color: #fff;
  font-size: 20px;
  text-align: center;
  margin: 6px 0 18px;
  font-weight: normal;
}

h4 {
  color: #fff;
  font-size: 14px;
  margin: 8px 0 4px;
}

p {
  font-size: 13px;
  line-height: 1.6;
}

em {
  color: #fff;
  font-style: normal;
}

a {
  color: #82b2e4;
  text-decoration: none;
}

a:hover {
  color: #7fdf4f;
}

a.odkaz {
  color: #7fdf4f;
}

a.odkaz:hover {
  color: #82b2e4;
}

.nadpis {
  display: block;
  color: #00ff02;
  text-align: center;
  font-size: 15px;
  margin: 10px 0;
}

.center {
  text-align: center;
}

.divider {
  text-align: center;
  margin: 18px 0;
}

.divider img {
  opacity: 0.8;
}

/* News */

.news-item {
  margin-bottom: 8px;
}

.news-meta {
  font-size: 11px;
  color: #7fdf4f;
  margin: 0 0 6px;
  font-weight: normal;
}

.news-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #234;
}

.news-body {
  margin-top: 10px;
}

/* Releases */

.release {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0;
}

.release-cover {
  display: block;
  width: 100%;
  max-width: 255px;
  text-align: center;
}

.release-cover img {
  max-width: 100%;
  height: auto;
  border: 1px solid #234;
}

.release-info {
  flex: 1 1 180px;
  font-size: 12px;
  color: #fff;
  padding-top: 4px;
}

/* Members */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.member {
  text-align: center;
}

.member img {
  max-width: 100%;
  height: auto;
  border: 1px solid #234;
}

.member p {
  color: #fff;
}

/* Links */

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.links-list li {
  margin: 12px 0;
  font-size: 14px;
}

/* Gallery */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}

.album img {
  max-width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.album:hover img {
  opacity: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.gallery-thumb {
  display: block;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.gallery-thumb:hover img {
  opacity: 1;
}

/* Lightbox */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #7fdf4f;
  font-size: 32px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 16px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-close {
  top: 10px;
  right: 10px;
}

.lightbox-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-photo {
  text-align: center;
}

.admin-photo img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.admin-photo button {
  font-family: inherit;
  background: none;
  border: none;
  color: #ff5f5f;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 0;
  width: 100%;
}

.admin-photo button:hover {
  color: #ff8080;
}

/* Admin */

.admin-form label {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 4px;
}

.admin-form input,
.admin-form textarea {
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  max-width: 400px;
  padding: 4px;
}

.admin-form textarea {
  max-width: 100%;
}

.admin-form button {
  font-family: inherit;
  background: #7fdf4f;
  color: #000;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 13px;
}

.admin-form button:hover {
  background: #00ff02;
}

.btn-danger {
  background: #ff5f5f !important;
}

.btn-danger:hover {
  background: #ff8080 !important;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid #234;
}

.admin-row-info {
  font-size: 13px;
  color: #fff;
}

.admin-row-meta {
  font-size: 11px;
  color: #7fdf4f;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-row-actions form {
  display: inline;
}

.admin-row-actions button {
  font-family: inherit;
  background: none;
  border: none;
  color: #ff5f5f;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

.admin-row-actions button:hover {
  color: #ff8080;
}

.error {
  color: #ff5f5f;
  font-size: 13px;
}

.success {
  color: #7fdf4f;
  font-size: 13px;
}

/* Footer */

#paticka {
  border-top: 1px solid #234;
  padding: 10px 4px 20px;
  font-size: 11px;
}

#dno {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

a.rss {
  font-size: 11px;
}

.copyright {
  text-align: center;
  color: #7fdf4f;
  font-size: 11px;
}

@media (max-width: 480px) {
  #odkazy {
    font-size: 12px;
    gap: 4px 14px;
  }

  h2 {
    font-size: 17px;
  }
}
