:root {
  --bg-color: #0f0f0f;
  --text-color: #f0f0f0;
  --accent-color: #e50914; /* Netflix Red-ish / Studio accent */
  --card-bg: #1f1f1f;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --input-bg: #333;
  --input-border: #444;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fix mobile scroll stuck issues */
.main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px; /* Space for footer/mobile nav if needed */
}

/* Studio/Login Styling */
.auth-box {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  margin: 10vh auto;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.login-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #fff;
  padding: 16px;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 16px;
  width: 100%;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Glowing Hover Effect */
.btn-primary:hover {
  background-color: #f40612;
  box-shadow: 0 0 15px var(--accent-color), 0 0 25px rgba(229, 9, 20, 0.6);
  transform: translateY(-2px);
}

.login-btn-row {
    display: flex;
    gap: 15px;
}

/* Player Styling Updates */
#playerTitle {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    pointer-events: none; /* Let clicks pass through */
    z-index: 10002;
}

.close-player-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10003;
    background: #cc0000; /* Red background */
    color: #000; /* Black text */
    border: 2px solid #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.close-player-btn:hover {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    transform: scale(1.05);
}

/* Search Input Styling */
#searchInput:focus {
    width: 250px !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.5);
    outline: none;
}