:root {
  --bg:#07090c;
  --panel:#0d1118;
  --card:#0f1622;
  --stroke:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --accent:#B7FF00;
  --accent2:#7CFF6B;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:20px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  background:
    radial-gradient(1200px 600px at 20% -20%, rgba(183,255,0,.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(124,255,107,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

/* ---------- TOP BAR ---------- */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 24px;
  background:linear-gradient(to bottom,rgba(7,9,12,.9),rgba(7,9,12,.6));
  backdrop-filter: blur(16px);
  border-bottom:1px solid var(--stroke);
}

.logo{height:42px}

/* ---------- DASHBOARD ---------- */

.app{
  padding:40px 32px;
}

/* Row title */
.row{
  margin-bottom:50px;
}

.row-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.row-header h2{
  font-size:22px;
  font-weight:700;
}

.row-header span{
  color:var(--muted);
  font-size:14px;
}

/* Horizontal scroll */
.row-scroll{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding-bottom:14px;
  scroll-behavior:smooth;
}

.row-scroll::-webkit-scrollbar{
  height:6px;
}
.row-scroll::-webkit-scrollbar-thumb{
  background:rgba(183,255,0,.4);
  border-radius:10px;
}

/* ---------- MOVIE CARD ---------- */

.movie-card{
  position:relative;
  min-width:220px;
  max-width:220px;
  background:#111;
  border-radius:18px;
  overflow:hidden;
  transition:.35s;
  box-shadow:0 0 0 rgba(183,255,0,0);
  cursor:pointer;
}

.movie-card:hover{
  transform:translateY(-8px) scale(1.04);
  box-shadow:0 0 50px rgba(183,255,0,.25);
}

.movie-card img{
  width:100%;
  height:320px;
  object-fit:cover;
}

/* platform badge */
.platform-badge{
  position:absolute;
  top:12px;
  right:12px;
  background:rgba(0,0,0,.75);
  padding:6px 14px;
  border-radius:20px;
  font-size:12px;
  color:var(--accent);
  border:1px solid rgba(183,255,0,.4);
  backdrop-filter: blur(10px);
  z-index:2;
}

/* bottom info */
.movie-info{
  padding:14px;
  background:linear-gradient(to top, rgba(0,0,0,.9), transparent);
  position:absolute;
  bottom:0;
  width:100%;
}

.movie-info h3{
  font-size:15px;
  margin:0;
}

.movie-info p{
  font-size:12px;
  color:var(--muted);
}

/* buttons */
.movie-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.movie-actions button{
  flex:1;
  border:none;
  border-radius:10px;
  padding:10px;
  background:#1a1a1a;
  color:white;
  cursor:pointer;
  transition:.2s;
}

.movie-actions button:hover{
  background:var(--accent);
  color:black;
}

.btn-remove{
  width:40px;
  flex:none;
}

/* ---------- MODAL BASE (for next phase) ---------- */

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:100;
}

.modal-content{
  width:90%;
  max-width:1100px;
  background:#0b0f15;
  border-radius:30px;
  padding:30px;
  box-shadow:0 0 80px rgba(0,0,0,.8);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
}

.modal-center {
  position: absolute;
  inset: 5vh 5vw;
  background: linear-gradient(180deg, #0e141c, #0a0f15);
  border-radius: 24px;
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 120px rgba(0,0,0,.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
}

.modal-trailer {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.modal-trailer iframe {
  width: 100%;
  height: 100%;
}

.modal-info {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px;
}

.modal-poster img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

.modal-meta h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.modal-sub {
  display: flex;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.platform {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(183,255,0,.12);
  border: 1px solid rgba(183,255,0,.4);
  color: var(--accent);
  font-size: 12px;
}

.modal-genres {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-genres span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  font-size: 12px;
}

.modal-meta p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}
