* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px;
  font-family: Arial, sans-serif;
  text-align: center;
}

a {
  color: #000;
  text-decoration: none;
}

h1 {
  margin-bottom: 30px;
}

.videos {
  display: inline-block;
  text-align: left;
}

.card {
  margin: 20px;
  display: inline-block;
  width: 320px;
  vertical-align: top;
}

.thumb-wrap {
  width: 320px;
  height: 180px;
  background: #111; /* Solid dark background */
  position: relative;
  overflow: hidden;
}

.thumb {
  width: 320px;
  height: 180px;
  display: block;
  opacity: 0;
  transition: opacity .2s;
}

.thumb.loaded {
  opacity: 1;
}

.title {
  margin-top: 8px;
}

.views {
  color: #666;
  font-size: 12px;
}

/* Spinner is now static (no animation: spin) */
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.error-box {
  width: 320px;
  height: 180px;
  background: #111;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.player-wrap {
  display: inline-block;
  text-align: left;
  max-width: 900px;
}

.back {
  display: block;
  margin-bottom: 20px;
}

.back svg {
  width: 22px;
  height: 22px;
  fill: #000;
  display: block;
}

.player {
  width: 854px;
  height: 480px;
  background: #000;
  position: relative;
}

.player-thumb {
  position: absolute;
  inset: 0;
  width: 854px;
  height: 480px;
  object-fit: cover;
  filter: blur(2px);
  opacity: .65;
}

.player video {
  width: 854px;
  height: 480px;
}

.player-title {
  margin-top: 20px;
  font-size: 20px;
}

.player-views {
  color: #666;
}

.load-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 13px;
}

.load-overlay .spinner {
  position: static;
  transform: none;
  width: 28px;
  height: 28px;
}

.load-msg {
  margin-top: 10px;
  color: #bbb;
}

.notfound {
  padding: 40px;
}