:root {
  --bg: #000;
  --fg: #fff;
  --muted: #bbb;
  --accent: #fff;
  --card-bg: #111;
  --card-hover: #222;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.6) 60%, rgba(0,0,0,0));
  z-index: 5;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 20px;
}

.actions {
  display: flex;
  gap: 12px;
}

.button {
  appearance: none;
  border: 1px solid #222;
  background: #0c0c0c;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.button:hover { background: #151515; }

.container {
  padding: 0 24px 24px;
}

.row {
  margin: 12px 0 24px;
}
.row-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: #222; border-radius: 8px; }
.scroller::-webkit-scrollbar-track { background: #0a0a0a; }

.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 120ms ease, background 120ms ease;
}
.card:hover { transform: translateY(-2px); background: var(--card-hover); }

.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0a0a0a;
}

.card-body {
  padding: 8px;
}
.title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Modal Player */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 10;
}
.modal.open { display: flex; }

.player {
  width: 92vw;
  max-width: 1100px;
  background: #0c0c0c;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #1e1e1e;
}
.player-title {
  font-weight: 700;
  font-size: 16px;
}
.player-close {
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
}

.player-content {
  background: #000;
}
.player-content video {
  width: 100%;
  height: 60vh;
  background: #000;
}

.player-meta {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  padding: 16px 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #101010;
}

@media (max-width: 600px) {
  .scroller { grid-auto-columns: 44vw; }
  .card { min-height: unset; }
  .player-content video { height: 50vh; }
}

