.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-nav {
  display: flex;
  gap: 80px;
  margin-top: .5rem;
}

.social-nav a {
  text-decoration: none;
  color: inherit;
}

.icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-stack img {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 6px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-stack:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.icon-stack:hover .icon-label {
  color: #0077cc;
  transition: color 0.3s ease;
}

.icon-label {
  font-size: 14px;
  text-align: center;
}

body {
  font-family: Arial, sans-serif;
  margin: 0; padding: 0;
  background: #fafafa;
  color: #333;
}

h1 {
  text-align: center;
}

table {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f4f4f4;
  font-size: 1.1rem;
}

/* Zebra–stripe the body rows */
tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* Highlight a row on hover */
tbody tr:hover {
  background: #f0f0f0;
}

/* Make the header stick to the top */
thead th {
  position: sticky;
  top: 0;
  background: #f4f4f4;
  z-index: 1;
}

/* A little extra line-height for readability */
td {
  line-height: 1.5;
}

/* == PREVIEW BOX (16:9) == */
.preview {
  position: relative;
  width: 200px;
  aspect-ratio: 16/9;
  margin: 0 auto;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.preview video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* == MODAL == */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.open {
  display: flex;
}
.modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.modal-content video {
  width: 100%;
  height: 100%;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
  background: #fff;
  margin-top: 2rem;
}

/* Mobile layout */
@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #ddd;
  }
  td {
    position: relative;
    padding-left: 50%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
  }
  tr {
    display: block;
    margin: 0 0 1rem 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  table {
    background: transparent !important;
    box-shadow: none !important;
  }
  .preview {
    width: 100%;
    margin: 0.5rem 0;
  }
  /* fallback if <video poster> isn’t supported */
  .preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* --- Modal safety fixes --- */
#videoModal {               /* make the closed modal non-interactive */
  pointer-events: none;
}

#videoModal.open {          /* only catch clicks when open */
  pointer-events: auto;
}

#videoModal:not(.open) .modal-close {  /* hide the × when closed */
  display: none;
}
