/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ─── Base ─── */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f0f4fa;
  color: #1f2937;
}

/* ─── Header ─── */
.header {
  background: linear-gradient(135deg, #1b2a4a 0%, #2563eb 100%);
  height: 280px;
  position: relative;
  color: white;
}

.overlay {
  background-color: rgba(27, 42, 74, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.branding h1 {
  font-size: 2rem;
  color: #fff;
}

.logo {
  width: 42px;
  height: 42px;
}

#video-url {
  width: 70%;
  max-width: 620px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 10px;
  margin-top: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#video-url:focus {
  border-color: #2563eb;
}

/* ─── Controls ─── */
.controls {
  max-width: 1100px;
  margin: 30px auto;
  text-align: center;
}

.format-options {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1rem;
  color: #4b5563;
}

.format-options label {
  cursor: pointer;
}

button#play-btn {
  background-color: #2563eb;
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

button#play-btn:hover {
  background-color: #1d4ed8;
}

/* ─── Video Container ─── */
.video-container {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 16px;
}

/* Style the Video.js player wrapper */
.video-js {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

/* Ensure the internal video keeps proper aspect */
.video-js .vjs-tech {
  object-fit: contain;
}

/* Keep control bar visible and clickable */
.video-js .vjs-control-bar {
  z-index: 2;
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #2563eb;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .header {
    height: 240px;
  }

  .branding h1 {
    font-size: 1.5rem;
  }

  #video-url {
    width: 85%;
    font-size: 0.9rem;
  }

  .format-options {
    flex-direction: column;
    gap: 10px;
  }
}
