/* -------------------------------------------------------------------------- */
/* THEME                                                                      */
/* -------------------------------------------------------------------------- */

:root {
  --bg: #06060b;
  --panel: rgba(255,255,255,0.04);
  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.14);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.45);

  --accent: #7a5cff;
  --shadow: 0 30px 120px rgba(0,0,0,0.55);
  --r: 18px;
}

/* -------------------------------------------------------------------------- */
/* RESET                                                                      */
/* -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* background subtil */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 70% 0%, rgba(122,92,255,0.18), transparent 60%),
    radial-gradient(800px 520px at 20% 20%, rgba(122,92,255,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------------------------- */
/* NAV                                                                        */
/* -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(6,6,11,0.9), rgba(6,6,11,0.6));
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122,92,255,0.9), rgba(255,255,255,0.14));
  box-shadow: 0 18px 60px rgba(122,92,255,0.18);
}

.brand-title {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0.08em;
  font-size: 18px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted2);
}

/* badge */
.pill {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* WRAP                                                                       */
/* -------------------------------------------------------------------------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 90px;
}

/* -------------------------------------------------------------------------- */
/* HERO (CONTENU UNIQUEMENT)                                                  */
/* -------------------------------------------------------------------------- */

.hero {
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(0,0,0,0.45)
  );
  padding: 36px;
  box-shadow: var(--shadow);
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted2);
}

.hero-title {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 44px;
  margin: 10px 0 12px;
}

.hero-desc {
  max-width: 60ch;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* ADD                                                                        */
/* -------------------------------------------------------------------------- */

.add {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.add-title {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
}

.add-row {
  display: flex;
  gap: 12px;
}

.add-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,0.4);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
}

.add-row input::placeholder {
  color: var(--muted2);
}

.add-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover { opacity: 0.85; }

/* -------------------------------------------------------------------------- */
/* RAIL                                                                       */
/* -------------------------------------------------------------------------- */

.rail {
  margin-top: 36px;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rail h2 {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: 20px;
}

.rail-sub {
  font-size: 13px;
  color: var(--muted2);
}

/* -------------------------------------------------------------------------- */
/* GRID                                                                       */
/* -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  min-height: 260px;
  transition: transform 120ms ease, border-color 160ms ease;
}

.item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9));
}

.item > div {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.item button {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.item button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------------------------- */
/* EMPTY / UTILS                                                              */
/* -------------------------------------------------------------------------- */

.empty {
  margin-top: 14px;
  color: var(--muted2);
  border: 1px dashed var(--stroke);
  padding: 14px;
  border-radius: 16px;
}

.hidden { display: none; }

/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 740px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 36px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}


/* -------------------------------------------------------------------------- */
/* AVAILABLE / CATALOGUE                                                      */
/* -------------------------------------------------------------------------- */

.available {
  margin-top: 48px;
}

.available-head h2 {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0.05em;
  font-size: 22px;
  margin-bottom: 4px;
}

.available-head p {
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 18px;
}

/* Filters */
.available-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.available-filters input,
.available-filters select {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13px;
}

.available-filters input::placeholder {
  color: var(--muted2);
}

.available-filters select {
  cursor: pointer;
}

/* Grid override (same tiles, calmer hover) */
.available-grid .item:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.25);
}

/* Responsive */
@media (max-width: 740px) {
  .available-filters {
    flex-direction: column;
  }
}
