/*
  Sadie Coleman
  Date: 2025-07-20
  Project: JavaScript30 #11 – Custom Video Player
  Source: https://javascript30.com

  Description:
  - Styling for the custom video player interface.
  - Responsive layout with centered video and controls.
  - Custom styles for buttons and sliders for better user experience.
  - Hover and focus states enhanced for accessibility.
  - Progress bar animated smoothly during video playback.
  - Maintains video aspect ratio and adapts to fullscreen.
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0e0e0e;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.player {
  max-width: 720px;
  width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 99, 255, 0.3);
}

.viewer {
  width: 100%;
  height: auto;
  display: block;
  background: black;
}

/* Controls layout */
.player__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #222;
  padding: 1rem;
}

.player__button,
.slider-container .slider-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player__button:hover,
.slider-container .slider-icon:hover {
  transform: scale(1.2);
  color: #f0f;
}

/* Sliders */
.player__slider {
  width: 100px;
  cursor: pointer;
  accent-color: #f0f;
  background: #444;
  border-radius: 5px;
  appearance: none;
  height: 5px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 1rem;
}

.slider-icon {
  font-size: 1.2rem;
}

/* Progress bar */
.progress {
  flex: 1;
  height: 10px;
  background: #444;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress__filled {
  width: 0;
  background: linear-gradient(90deg, #f0f, #00f0ff);
  height: 100%;
  transition: width 0.1s linear;
}
