* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0d0d0f;
  color: #f5f5f5;
}
a { color: inherit; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #2a2a2d;
  background: #111114;
}
.brand {
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
}
nav a {
  margin-left: 16px;
  color: #d7d7d7;
  text-decoration: none;
}
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 20px;
}
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}
.card {
  background: #17171b;
  border: 1px solid #2b2b31;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
h1 { font-size: 48px; margin: 0 0 12px; }
h2 { margin-top: 0; }
.muted { color: #aaa; line-height: 1.5; }
.input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  margin: 8px 0 14px;
  border-radius: 14px;
  border: 1px solid #34343a;
  background: #0f0f12;
  color: white;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  background: white;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary {
  background: transparent;
  border: 1px solid #444;
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.media-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #2a2a2d;
  padding: 16px 0;
}
video {
  width: 100%;
  max-height: 70vh;
  background: black;
  border-radius: 18px;
}
.notice {
  padding: 14px;
  background: #242018;
  border: 1px solid #5d471f;
  border-radius: 14px;
  color: #f5d7a1;
}
.error {
  padding: 14px;
  background: #2a1414;
  border: 1px solid #6b2929;
  border-radius: 14px;
  color: #ffbaba;
}
.footer {
  color: #777;
  text-align: center;
  padding: 30px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  border-bottom: 1px solid #2a2a2d;
  padding: 12px;
  text-align: left;
}

/* GarzaTV archive gallery - Option C
   Clean grid view with 100x100 thumbnails, no card box */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  gap: 28px 34px;
  margin-top: 20px;
  align-items: start;
}

.archive-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: 120px;
  overflow: visible;
}

.archive-card a {
  text-decoration: none;
}

.archive-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #202026;
  border-radius: 12px;
  margin: 0 0 8px 0;
}

.archive-card-body {
  padding: 0;
}

.archive-card-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-text,
.archive-card .small-text,
.archive-card span.small-text {
  display: block;
  font-size: 12px !important;
  color: #aaa;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.archive-actions {
  margin-top: 7px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.archive-actions .btn {
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 10px;
  margin: 0;
}

/* This overrides the global video rule only inside archive thumbnails */
.archive-card video.archive-thumb {
  width: 100px !important;
  height: 100px !important;
  max-height: 100px !important;
  object-fit: cover;
  border-radius: 12px;
  background: #202026;
}

.archive-thumb-wrap {
  position: relative;
  width: 100px;
  height: 100px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(0,0,0,.35);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  padding-left: 2px;
  pointer-events: none;
}

.video-thumb {
  pointer-events: none;
}

@media (max-width: 700px) {
  .archive-grid {
    grid-template-columns: repeat(2, 120px);
    gap: 24px;
  }
}

