:root{
  /* Light grey base + red accent */
  --bg0:#f4f5f7;
  --bg1:#eef0f3;
  --panel: rgba(255,255,255,0.72);
  --panel2: rgba(255,255,255,0.58);
  --text:#121316;
  --muted:#5b616d;
  --border: rgba(0,0,0,0.10);

  --accent:#e60023;     /* red */
  --accent2:#ff4a4a;    /* brighter red */
  --shadow: 0 14px 35px rgba(0,0,0,0.12);
  --radius: 18px;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: linear-gradient(120deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* Color shifting background */
.bgShift{
  position: fixed;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 10% 15%, rgba(230,0,35,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 25%, rgba(255,74,74,0.16), transparent 60%),
    radial-gradient(900px 600px at 40% 90%, rgba(0,0,0,0.06), transparent 60%),
    linear-gradient(120deg, #f7f8fa, #eef0f3);
  filter: blur(18px) saturate(115%);
  animation: drift 14s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}
@keyframes drift{
  0%   { transform: translate(-2%, -1%) rotate(-1deg) scale(1.02); }
  50%  { transform: translate(1%, 2%) rotate(1deg) scale(1.05); }
  100% { transform: translate(3%, -1%) rotate(0deg) scale(1.03); }
}

a{ color:inherit; text-decoration:none; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244,245,247,0.70);
  border-bottom: 1px solid var(--border);
}

.navRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.brandBadge{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow);
}

.tabs{ display:flex; gap: 8px; align-items:center; }
.tab{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.tabActive{
  color: var(--text);
  border-color: rgba(230,0,35,0.35);
  background: rgba(230,0,35,0.10);
}

.actions{ display:flex; gap: 10px; align-items:center; }

.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 950;
  font-size: 13px;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover{ border-color: rgba(0,0,0,0.18); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.btn:active{ transform: translateY(1px); }

.btnPrimary{
  border-color: rgba(230,0,35,0.35);
  background: linear-gradient(135deg, rgba(230,0,35,0.16), rgba(255,74,74,0.10));
}
.btnDanger{
  border-color: rgba(230,0,35,0.40);
  background: rgba(230,0,35,0.10);
  color: var(--accent);
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  color: var(--text);
  font-weight: 900;
  outline: none;
}
.input::placeholder{ color: rgba(91,97,109,0.65); }

.searchWrap{ display:flex; gap: 10px; align-items:center; margin-top: 14px; }
.searchWrap .input{ flex: 1; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid{ grid-template-columns: 1fr; } }

.card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.thumb{
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(0,0,0,0.35);
  font-weight: 950;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.cardBody{ padding: 12px; }
.title{ margin:0; font-size: 15px; font-weight: 950; line-height: 1.2; }
.meta{ margin-top: 8px; display:flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 900; }
.pill{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 999px;
}

.sectionTitle{ margin: 18px 0 8px 0; font-size: 18px; font-weight: 1000; }
.subtle{ color: var(--muted); font-weight: 900; }

.notice{
  border: 1px solid rgba(230,0,35,0.22);
  background: rgba(230,0,35,0.06);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
}

.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 100;
}
.modal{
  width: min(900px, 100%);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(245,246,248,0.92);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,0.30);
}
.modalHeader{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.modalTitle{ font-weight: 1000; }
.modalBody{ padding: 14px; }

.player{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.05);
}
.player iframe, .player video{ width:100%; height:100%; border:0; display:block; }

.formGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px){ .formGrid{ grid-template-columns: 1fr; } }
.label{ font-size: 12px; color: var(--muted); font-weight: 1000; margin-bottom: 6px; }
.field{ display:flex; flex-direction: column; gap: 6px; }

hr.sep{ border:none; border-top: 1px solid var(--border); margin: 14px 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandLogo {
  height: 28px;
  width: auto;
  display: block;
}
.brandLogo{
  width:36px;
  height:36px;
  border-radius:10px;
  object-fit:cover;
  box-shadow: var(--shadow);
}

/* “Upload” + “Go Live” always visible */
.authBtns{ display:flex; gap:10px; align-items:center; }

/* Fun motion: bounce + subtle flicker */
.btnWiggle{
  position: relative;
  animation-name: btnBounce, btnFlicker;
  animation-timing-function: ease-in-out, steps(1,end);
  animation-iteration-count: infinite, infinite;
}

/* Bounce */
@keyframes btnBounce{
  0%, 85%, 100% { transform: translateY(0); }
  88% { transform: translateY(-2px); }
  92% { transform: translateY(1px); }
  96% { transform: translateY(-1px); }
}

/* Flicker (very light, not seizure-y) */
@keyframes btnFlicker{
  0%, 86%, 100% { filter: none; }
  87% { filter: brightness(1.05); }
  89% { filter: brightness(0.98); }
  91% { filter: brightness(1.06); }
  93% { filter: brightness(1.00); }
}

/* Make Go Live visually distinct */
.btnLive{
  border-color: rgba(230,0,35,0.55);
  background: linear-gradient(135deg, rgba(230,0,35,0.20), rgba(255,74,74,0.16));
}

/* Disabled but still visible */
button:disabled{
  cursor:not-allowed;
  opacity:0.65;
}


/* --- Added for Upload/Go Live + player --- */
.sep{ border:0; border-top:1px solid rgba(0,0,0,0.10); margin:12px 0; }
.playerWrap{ border-radius:18px; overflow:hidden; border:1px solid rgba(0,0,0,0.10); background:rgba(255,255,255,0.55); }
.player{ width:100%; height:60vh; border:0; display:block; }
.formGrid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field .label{ font-weight:950; font-size:12px; opacity:0.75; margin-bottom:6px; }
@media (max-width: 740px){
  .formGrid{ grid-template-columns:1fr; }
  .player{ height:52vh; }
}
