/* ============ Marvel Rivals Theme (global) ============ */
:root{
  --text:#f5f7fb;
  --muted:#cfd2da;
  --surface:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.14);

  /* set your background here (grayscale keyart) */
  --keyart:url("/assets/background/marvelrivals.jpeg");
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: system-ui, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;   /* keep horizontal hidden */
  overflow-y: auto;     /* allow vertical scroll */
  background:#0a0b10; /* fallback */
  padding-top: 64px;    /* space for the fixed header */
}

/* Background image + subtle brand glow */
.keyart{
  position:fixed; inset:0; z-index:-3;
}
.keyart::before{
  content:""; position:absolute; inset:0;
  background: var(--keyart) center/cover no-repeat;
  filter: contrast(1.08) brightness(.86);
    background:
    radial-gradient(1200px 600px at 20% -10%, rgba(232,121,249,.18), transparent 60%),
    radial-gradient(1200px 600px at 110% 110%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.75));
  backdrop-filter: blur(1.5px);
}
}
.veil{
  position:fixed; inset:0; z-index:-2;
}

/* Layout */
.wrap{
  min-height:100dvh;
  display:flex; align-items:center; justify-content:center;
  padding:56px 20px;
}
.panel{
  width:min(980px,92vw);
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding:28px clamp(18px,4vw,32px);
  box-shadow: 0 10px 35px rgba(0,0,0,.45);
  position:relative;
}
.panel:before{
  content:""; position:absolute; inset:0; border-radius:22px; padding:1px;
  background:linear-gradient(135deg, rgba(232,121,249,.55), rgba(34,211,238,.55));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.22; pointer-events:none;
}

/* Headings */
.header{text-align:center; margin-bottom:18px}
.title{margin:0; font-weight:800; letter-spacing:.2px; font-size:clamp(28px,4.6vw,44px)}
.sub{margin:8px auto 0; color:var(--muted); max-width:56ch; font-size:14px}

/* Button grid (tiles) */
.grid{display:grid; gap:18px; grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:900px){ .grid{grid-template-columns:repeat(4,minmax(0,1fr))} }

.tile{
  position:relative; display:flex; align-items:center; gap:14px;
  text-decoration:none; color:var(--text);
  border:1px solid var(--border);
  border-radius:16px; padding:16px;
  background:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .14s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.tile:hover{
  transform:translateY(-3px);
  box-shadow: 0 0 35px rgba(232,121,249,.28), 0 0 55px rgba(34,211,238,.2);
}
.label{font-weight:800; font-size:18px}
.hint{display:block; font-size:12px; color:rgba(255,255,255,.78); margin-top:3px}
.chip{
  position:absolute; right:10px; top:10px;
  font-size:11px; padding:4px 8px; border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}

/* Utility classes you can reuse on other pages */
.glass{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:18px; padding:18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color:var(--text);
}
.container{display:flex; gap:20px; align-items:center}
input[type="text"], input[type="url"], input[type="search"], input[type="number"]{
  width:100%; padding:12px 14px; font-size:14px;
  color:var(--text); background: rgba(255,255,255,.06);
  border:1px solid var(--border); border-radius:12px; outline:none;
  backdrop-filter: blur(8px);
}
input::placeholder{color:#dbe0ea99}
button, .btn{
  border:1px solid var(--border); border-radius:12px; padding:10px 16px;
  background:linear-gradient(135deg, rgba(232,121,249,.20), rgba(34,211,238,.20));
  color:var(--text); font-weight:700; cursor:pointer;
  transition:transform .14s ease, box-shadow .25s ease, background .25s ease;
}
button:hover, .btn:hover{
  transform:translateY(-2px);
  box-shadow: 0 0 28px rgba(232,121,249,.25), 0 0 40px rgba(34,211,238,.18);
  background:linear-gradient(135deg, rgba(232,121,249,.28), rgba(34,211,238,.28));
}

/* ===== Header ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
}

.nav-bar {
    display: flex;
    justify-content: center; /* Center the links horizontally */
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00bfff;
}

/* ===== Scrollable result area ===== */
#result{
  max-height: 65vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
}

#result::-webkit-scrollbar{ width:10px }
#result::-webkit-scrollbar-track{ background:rgba(255,255,255,.06); border-radius:10px }
#result::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.25); border-radius:10px }
#result::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.35) }




/* Stack sections vertically on pages like DB */
.wrap.wrap-column{
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* more compact title card */
.panel-compact{
  width: min(980px, 92vw);
  padding-block: 20px;
}
/* ===== DB Table Styling (all centered) ===== */

/* Full-width table container */
.db-block {
  width: 100%;
  max-width: 1000px;        /* remove restriction */
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  max-height: 70vh;
  overflow: auto;
  margin: 0 auto;
}

/* Table cells centered */
.data-table th,
.data-table td {
  vertical-align: middle;
  text-align: center;
  padding: 14px 20px;
  height: 48px;
}

/* Optional: evenly spread columns */
.data-table {
  width: 100%;
  table-layout: fixed; /* keeps spacing even */
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) { width: 10%; }
.data-table th:nth-child(2),
.data-table td:nth-child(2) { width: 12%; }
.data-table th:nth-child(3),
.data-table td:nth-child(3) { width: 58%; }
.data-table th:nth-child(4),
.data-table td:nth-child(4) { width: 20%; }

/* Pill buttons centered */
.data-table td .btn {
  display: inline-block;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(135deg, rgba(232,121,249,.55), rgba(34,211,238,.55));
  color: var(--text);
  text-decoration: none;
  transition: background .25s, transform .14s, box-shadow .25s;
}

.data-table td .btn:hover {
  background: linear-gradient(135deg, rgba(232,121,249,.75), rgba(34,211,238,.75));
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(232,121,249,.25), 0 0 16px rgba(34,211,238,.18);
}

/* ===== Pretty filter selects in DB header ===== */

/* tighten the filter row padding a bit */
.data-table thead tr:nth-child(2) th {
  padding: 8px 12px;
}

/* style the <select> itself */
.data-table thead tr:nth-child(2) th select{
  appearance: none;              /* remove native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  display: inline-block;
  width: 100%;
  max-width: 160px;              /* keeps them compact */
  padding: 8px 36px 8px 12px;    /* room for the chevron on the right */
  border-radius: 9999px;
  border: 1px solid var(--border);

  background:
    linear-gradient(135deg, rgba(232,121,249,.25), rgba(34,211,238,.25)),
    rgba(255,255,255,.08);
  color: var(--text);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease,
              box-shadow .25s ease, transform .12s ease;

  /* custom chevron (SVG data URI) */
  background-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='white'>\
<path d='M7 10l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.data-table thead tr:nth-child(2) th select:hover{
  background:
    linear-gradient(135deg, rgba(232,121,249,.35), rgba(34,211,238,.35)),
    rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.data-table thead tr:nth-child(2) th select:focus{
  outline: none;
  border-color: rgba(34,211,238,.55);
  box-shadow:
    0 0 0 2px rgba(34,211,238,.35),
    0 0 0 6px rgba(232,121,249,.18);
}

/* optional: make the three selects equal width + centered */
.data-table thead tr:nth-child(2) th {
  text-align: center;
}
.data-table thead tr:nth-child(2) th select {
  margin: 0 auto;                /* centers within the th */
}

/* (browser-dependent) dark dropdown panel for options */
.data-table thead tr:nth-child(2) th select option{
  background-color: #17181d;
  color: var(--text);
}

/* Firefox tweak (keeps the pill look) */
@-moz-document url-prefix() {
  .data-table thead tr:nth-child(2) th select {
    padding-right: 12px;         /* Firefox doesn’t place the bg chevron the same */
  }
}
<style>
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.video-item {
  background: rgba(0,0,0,0.25);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
</style>


