button {
  /* Resets most properties to their initial or inherited values */
  all: unset;
  /* Retain default pointer cursor behavior for usability */
  cursor: pointer;
}
/* Ensure keyboard accessibility by providing a visible focus indicator */
button:focus {
  outline: blue 1px auto;
}
/* ── DIVIDER ── */
.divider {
  position: relative;
  z-index: 10;
  height: 1px;
  margin: 1.5rem 4rem;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}
/* ── GRID ── */
.grid {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 4rem 6rem;
  max-width: 960px;
  margin: 0 auto;
}
/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.25, .8, .25, 1), box-shadow 0.3s;
  animation: fadeUp 0.6s both;
  width: 80%;
  margin: 0 auto;
}
.card:nth-child(2) {
  animation-delay: 0.1s;
}
.card:nth-child(3) {
  animation-delay: 0.2s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 20px 50px rgba(255, 255, 0, 0.6), 0 0 0 1px var(--accent);
}
.card:hover .thumb-overlay {
  opacity: 1;
}
.card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1);
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.thumb img {
  width: 100%;
  height: 101%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.card:hover .thumb img {
  transform: scale(1.03);
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity 0.3s;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 100px;
  height: 100px;
  background: linear-gradient(to top, #4C6DB4 0%, #3EBDE0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
  backdrop-filter: blur(4px);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}
.play-btn svg {
  margin-left: 5px;
}
.duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
}
/* ── MODAL BACKDROP ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(46 46 46 / 85%);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
/* ── MODAL ── */
.modal {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}
.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}
.modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* ── MODAL WRAPPER ── */
.modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
}
.modal-close {
  position: absolute;
  top: -60px;
  right: -60px;
  z-index: 10;
  width: 80px;
  height: 80px;
  background: #167ac6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  color: #ffffff;
}
.modal-close:hover {
  transform: rotate(90deg);
}
@media (max-width: 600px) {
  header {
    padding: 2rem 1.5rem 0;
  }
  .divider {
    margin: 1.2rem 1.5rem;
  }
  .grid {
    padding: 0 1.5rem 4rem;
    gap: 1rem;
  }
}
@media (max-width: 1128px) {
.modal-close {
  position: absolute;
  top: -80px;
  right: 0px;
  z-index: 10;
  width: 60px;
  height: 60px;
}
}