:root {
  --primary-color: #4f8df5;
  --secondary-color: #2c3e50;
  --font-color: white;
  --background-gradient: linear-gradient(to bottom, #2c3e50, #4f8df5);
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Arial', sans-serif;
  color: var(--font-color);
}

.player {
  max-width: 80vw;
  min-width: 700px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

#video-player {
  width: 100%;
  height: 360px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--font-color);
  border-radius: 15px;
}

/* URL Input Section */
.url-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px 15px 0 0;
  width: 100%;
}

.url-input-container input {
  flex: 1;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  margin-right: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--font-color);
  transition: background 0.3s ease, transform 0.2s ease;
}

.url-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.url-input-container input:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.url-input-container button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--font-color);
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.url-input-container button:hover {
  background: rgba(79, 141, 245, 0.9);
  transform: scale(1.05);
}

.url-input-container button:focus {
  outline: none;
  box-shadow: 0 0 10px var(--primary-color);
}
