* {
  font-family: 'Times New Roman', Times, serif;
}

body {
  background: #ffffff;
  color: #000000;
  margin: 8px 16px;
}

a {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ee0000;
}

h1.logo {
  font-family: 'Times New Roman', Times, serif;
  font-size: 36px;
  margin: 0 0 12px 0;
  font-weight: bold;
  letter-spacing: -1px;
}

.nav-bar {
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
}

hr {
  border: none;
  border-top: 1px solid #000;
  margin: 8px 0;
}

table {
  border-collapse: collapse;
  font-size: 13px;
}

td, th {
  border: 1px solid #000;
  padding: 3px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eeeeee;
  font-weight: bold;
}

.star {
  color: #000;
  cursor: pointer;
  font-size: 16px;
}

.star.lit {
  color: #cc8800;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  border: 1px solid #000;
  padding: 2px 4px;
}

input[type="submit"],
button {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  cursor: pointer;
}

.section-label {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.muted {
  color: #555555;
  font-size: 12px;
}

/* Video grid (YouTube-ish, in a table) */
.vid-grid {
  border-collapse: separate;
  border-spacing: 10px 12px;
  width: 100%;
}

.vid-cell {
  border: 1px solid #ccc !important;
  padding: 0 !important;
  width: 33%;
  vertical-align: top;
  background: #fff;
}

.vid-cell-empty {
  border: none !important;
  background: transparent;
}

.vid-thumb {
  background: #111;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.vid-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vid-thumb-play {
  color: #fff;
  font-size: 30px;
  position: relative;
  z-index: 2;
}

.vid-thumb.has-thumb .vid-thumb-play {
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  padding: 6px 10px;
  font-size: 24px;
}

.vid-thumb-duration {
  position: absolute;
  bottom: 4px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  font-family: 'Times New Roman', Times, serif;
  z-index: 2;
}

.vid-thumb-av {
  position: absolute;
  bottom: 4px;
  left: 4px;
  z-index: 2;
}

.vid-card-info {
  padding: 6px 7px 8px;
}

.vid-card-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.vid-card-meta {
  font-size: 11px;
  color: #555;
}


.avatar-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
}

.avatar-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* object-fit: cover on <img> preserves animated GIF playback */
}

.avatar-sm  { width: 28px;  height: 28px;  font-size: 10px; }
.avatar-med { width: 48px;  height: 48px;  font-size: 16px; }
.avatar-lg  { width: 90px;  height: 90px;  font-size: 28px; }

/* Per-user colors */
.av-jd { background: #7a0000; }
.av-mr { background: #003080; }
.av-ck { background: #004d00; }
.av-dv { background: #3d006e; }
.av-sh { background: #7a3d00; }
.av-lc { background: #005555; }
.av-px { background: #003d3d; }
.av-bg { background: #4d2600; }
.av-me { background: #555555; }

.video-player-box {
  background: #111;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

.video-player-box span {
  color: #fff;
  font-size: 48px;
}

.comment-block {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #aaa;
}

.alert-ok  { color: #006600; }
.alert-err { color: #cc0000; }

footer {
  margin-top: 24px;
  padding-top: 6px;
  border-top: 1px solid #000;
  font-size: 11px;
  color: #555;
  text-align: center;
}
