/* Global & Body */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 0;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global & Body */
body.login-page {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #0f2027, #203a43, #2c5364);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Login Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 300px;
  text-align: center;
}

.glass-panel h2 {
  margin-bottom: 20px;
  color: #12A5A6;
}

.glass-panel input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.glass-panel button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: linear-gradient(135deg, #12A5A6, #0ef);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.glass-panel button:hover {
  background: linear-gradient(135deg, #0ef, #12A5A6);
}

.glass-panel p {
  margin-top: 15px;
  font-size: 13px;
  color: #ccc;
}

.glass-panel p a {
  color: #12A5A6;
  text-decoration: none;
  transition: color 0.2s;
}

.glass-panel p a:hover {
  color: #0ef;
}

.success {
  color: #8f8;
  margin-bottom: 10px;
}

.error {
  color: #f88;
  margin-bottom: 10px;
}


.navbar .brand {
  font-size: 24px;
  font-weight: 600;
  color: #12A5A6;
}

.navbar .user {
  font-size: 14px;
  color: #ccc;
}

.navbar .user a {
  color: #12A5A6;
  text-decoration: none;
  margin-left: 12px;
  transition: color 0.2s;
}

.navbar .user a:hover {
  color: #0ef;
}

/* Container & Sections */
.library, h2 {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
  color: #ddd;
}

h2 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

/* Tile Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* Tile Card */
.tile {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, background 0.2s;
  backdrop-filter: blur(6px);
}

.tile:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.1);
}

.thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.title {
  text-align: center;
  padding: 10px;
  font-size: 15px;
  color: #eee;
  height: 50px;
  overflow: hidden;
}

/* Player Page */
main {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 120px);
}

.player {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 0;
}

.video-js,
.video-js video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}

video {
  display: block;
  width: 100%;
  height: auto;
}

/* Sidebar for serials */
.sidebar {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.season-label {
  font-weight: bold;
  color: #bbb;
  margin-bottom: 10px;
}

.episode {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  margin: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.episode:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

/* Login */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #111;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 300px;
  text-align: center;
}

.glass-panel input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.glass-panel button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: linear-gradient(135deg, #12A5A6, #0ef);
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.glass-panel button:hover {
  background: linear-gradient(135deg, #0ef, #12A5A6);
}

.error {
  color: #f88;
  margin-bottom: 10px;
}

.success {
  color: #8f8;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}
.player-header {
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(90deg, #12A5A6, #1E1E1E);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
