
:root{
  --bg:#000;
  --accent:#e50914;
  --card-shadow: rgba(0,0,0,0.6);
}
html, body {
  margin:0;
  padding:0;
  height:100%;
  background: var(--bg);
  color:#fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow:hidden;
}
#backgroundImg {
  position: fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index:-5;
  filter: brightness(0.28);
}
#introScreen {
  position: fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  z-index:6000;
}
#introVideo {
  width:100%;
  height:100%;
  object-fit:cover;
}
#loginScreen {
  position: fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.85);
  z-index:6001;
  visibility:hidden;
  opacity:0;
  transition: opacity .35s;
}
#loginScreen.show {
  visibility:visible;
  opacity:1;
}
.loginBox {
  width:320px;
  padding:24px;
  background:#111;
  border-radius:10px;
  text-align:center;
}
.loginBox h2 {
  margin:0 0 12px 0;
}
.loginBox input {
  width:100%;
  padding:10px;
  margin:8px 0;
  border-radius:6px;
  border:1px solid #222;
  background:#111;
  color:#fff;
  box-sizing:border-box;
}
.loginBox button {
  width:100%;
  padding:10px;
  border-radius:6px;
  border:none;
  background: var(--accent);
  color:#fff;
  font-weight:bold;
  cursor:pointer;
}
#profileScreen {
  display:flex;
  height:100vh;
  width:100%;
  padding-left:48px;
  padding-top:40px;
  flex-direction:row;
  gap:30px;
  align-items:flex-start;
}
.profilesCol {
  display:flex;
  flex-direction:column;
  gap:12px;
}
#profileList {
  background: rgba(20,20,20,0.7);
  padding:18px;
  border-radius:10px;
  max-width:260px;
}
.profile {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  background: rgba(40,40,40,0.8);
  border-radius:8px;
  cursor:pointer;
  transition: transform .12s, background .12s;
}
.profile:hover {
  transform: translateX(6px);
}
.profile img {
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:8px;
  border:2px solid transparent;
}
.profile span {
  font-size:16px;
  font-weight:600;
}
#newAccountBtn {
  margin-top:8px;
  background: var(--accent);
  border:none;
  color:white;
  padding:8px 10px;
  border-radius:6px;
  cursor:pointer;
}
.overlay {
  position: fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.75);
  z-index:7000;
}
.popup {
  width:360px;
  background:#121212;
  padding:18px;
  border-radius:12px;
  text-align:center;
}
.popup h3 {
  margin-top:0;
}
.avatarGrid {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin:10px 0;
}
.avatarGrid img {
  width:64px;
  height:64px;
  border-radius:8px;
  cursor:pointer;
  border:3px solid transparent;
}
.avatarGrid img.selected {
  border-color: var(--accent);
}
.popup select, .popup input {
  width:92%;
  padding:8px;
  margin:8px 0;
  border-radius:6px;
  border:1px solid #333;
  background:#111;
  color:#fff;
}
.popup .actions {
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:12px;
}
.btn {
  padding:8px 12px;
  border-radius:6px;
  border:none;
  cursor:pointer;
}
.btn.primary {
  background: var(--accent);
  color:#fff;
}
.btn.ghost {
  background:#222;
  color:#fff;
}
#appScreen {
  display:none;
  height:100%;
  width:100%;
  overflow-y:auto;
}
#appTopBar {
  display:flex;
  align-items:center;
  padding:12px 24px;
  background: rgba(0,0,0,0.8);
  gap:16px;
  position: sticky;
  top:0;
  z-index:1000;
}
#activeAvatarSmall {
  width:60px;
  height:60px;
  border-radius:8px;
  cursor:pointer;
  object-fit:cover;
  border:2px solid #fff;
}
#accountMenu {
  position:absolute;
  top:72px;
  left:12px;
  display:none;
  flex-direction:column;
  background:#111;
  border-radius:8px;
  padding:8px;
  gap:8px;
  z-index:1001;
}
#accountMenu button {
  background:#222;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  text-align:left;
}
#accountMenu button.delete {
  background:#630101;
  color:#fff;
}
#accountMenu button:hover {
  background: var(--accent);
}
#searchContainer {
  padding:16px 24px;
}
#searchInput {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:none;
  background:#111;
  color:#fff;
}
.categoryBlock {
  margin:16px 0;
}
.categoryTitle {
  font-size:20px;
  font-weight:bold;
  margin-left:24px;
  margin-bottom:8px;
}
.categoryRow {
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-left:24px;
  padding-bottom:8px;
}
.categoryRow::-webkit-scrollbar {
  height:8px;
}
.categoryRow::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius:4px;
}
.mediaCard {
  min-width:200px;
  height:300px;
  position:relative;
  border-radius:8px;
  overflow:hidden;
  background:#111;
  cursor:pointer;
  flex-shrink:0;
}
.mediaCard img.mediaThumb {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}
.mediaCard .fskBadge {
  position:absolute;
  top:8px;
  left:8px;
  background: rgba(0,0,0,0.7);
  color:#fff;
  font-size:12px;
  padding:2px 6px;
  border-radius:4px;
}
.mediaCard .mediaLabel {
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color:#fff;
  font-size:14px;
  padding:8px;
  box-sizing:border-box;
}
.trailerVideo {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  object-fit:cover;
}
#videoOverlay .popup {
  width:90%;
  max-width:1000px;
  padding:0;
  background:transparent;
}
#videoOverlay video {
  border-radius:10px;
  overflow:hidden;
}

