:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0b5fff;
  --radius:10px;
  --max-width:1100px;
  --gap:18px;
  --shadow: 0 6px 18px rgba(15,23,42,0.06);
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

.container{
  max-width:var(--max-width);
  margin:28px auto;
  padding:0 20px;
}

.site-header{
  background:linear-gradient(90deg,#ffffff 0%, #f2f6ff 100%);
  box-shadow:var(--shadow);
  border-radius:12px;
  padding:22px 0;
}

.site-header h1{
  margin:0;
  font-size:20px;
  letter-spacing:0.2px;
}

.tagline{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.panel{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  margin-top:16px;
  box-shadow:var(--shadow);
}

.panel-header h2{ margin:0 0 6px; font-size:16px; }
.muted{ color:var(--muted); font-size:13px; margin:0; }

.upload-row{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-top:12px;
}

.dropzone{
  flex:1 1 360px;
  min-height:140px;
  border-radius:8px;
  border:1px dashed rgba(11,95,255,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, rgba(11,95,255,0.02), transparent);
  position:relative;
  padding:12px;
}

.dropzone input[type="file"]{
  position:absolute; inset:0; opacity:0; cursor:pointer;
}

.drop-ui{text-align:center; color:var(--muted); font-size:14px}
.preview{ flex:1 1 500px; display:flex; align-items:center; justify-content:center; }
.preview video{
  max-width:100%;
  aspect-ratio: 16 / 9;   /* or 9/16 if portrait */
  border-radius:8px;
  background:#000;
  box-shadow:0 4px 14px rgba(2,6,23,0.06);
}

.editable{
  min-height:100px;
  border:1px solid #eef2ff;
  padding:12px;
  border-radius:8px;
  background:linear-gradient(180deg, #fff, #fbfdff);
  margin-top:10px;
}

.controls{ display:flex; gap:12px; align-items:center; margin-top:10px; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--accent);
  color:white;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  box-shadow:0 6px 18px rgba(11,95,255,0.12);
}
.btn input{ display:none; }
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  margin-top:12px;
}

.card{
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-radius:10px;
  padding:8px;
  border:1px solid #eef2ff;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  height:100%;
}

.card video{
  width:100%;
  height:100%;
  height:auto;
  object-fit:cover;
  border-radius:8px;
  background:#000;
}

.card .meta{ font-size:13px; color:var(--muted); display:flex; justify-content:space-between; align-items:center; gap:8px; }

.foot-note{
  margin-top:18px;
  padding:12px 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* Responsive tweaks */
@media (max-width:720px){
  .upload-row{ flex-direction:column; }
  .preview video{ max-height:220px; }
}
