@font-face {
  font-family: 'League Spartan';
  src: url('https://raw.githubusercontent.com/TKiscoding/TKHUB/dev/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'League Spartan', Arial, sans-serif;
  background-color: #141414;
  color: white;
}

.login-container, .app-container {
  padding: 2rem;
  text-align: center;
}

button {
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 4px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px 20px;
}

#userInfo {
  display: flex;
  align-items: center;
  gap: 10px;
}

#userInfo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.video-card {
  background: #222;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  max-width: 800px;
  margin: 30px auto 0;
}

.video-card img {
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
}

.stream-output iframe {
  max-width: 100%;
}

.meta {
  font-size: 0.9em;
  color: #bbb;
}

.settings {
  margin-top: 30px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
}

.settings h3 {
  margin-top: 0;
}

.settings label {
  display: block;
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  color: #bbb;
  background-color: #1a1a1a;
  margin-top: 40px;
}

.footer a {
  color: #e50914;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}
/* Navigation Buttons */
.app-nav {
  text-align: center;
  margin: 20px 0;
}

.app-nav ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 15px;
}

.app-nav ul li {
  display: inline;
}

.app-nav button {
  background-color: transparent;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid white;
  border-radius: 4px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-nav button:hover {
  background-color: white;
  color: #141414;
}

/* Overlay container */
.overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
}

/* Blur background */
.overlay-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  z-index: 1;
}

/* Overlay content */
.overlay-inner {
  position: relative;
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  max-height: 800px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Close button */
.close-overlay {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #e50914;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.close-overlay:hover {
  background: #b0070a;
}

/* Controls buttons inside overlay */
.overlay-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  background: #111;
  border-bottom: 1px solid #222;
  z-index: 3;
}

.overlay-controls button {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.overlay-controls button:hover {
  background-color: white;
  color: #141414;
}

/* Overlay content container */
.overlay-content {
  flex: 1;
  position: relative;
}

/* Loading spinner */
.overlay-loading {
  position: absolute;
  z-index: 5;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ffffff55;
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hidden state for spinner */
.overlay-loading.hidden {
  opacity: 0;
  visibility: hidden;
}
