/* ================================================
   TEMA GLOBAL
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #05060a;
  --bg-elevated: #101319;
  --bg-soft: #171b23;
  --primary: #fbbf24; 
  --primary-soft: rgba(251, 191, 36, 0.15);
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-soft: #27303f;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #111827, #020617 55%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* ================================================
   LAYOUT
=================================================== */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.space {
  padding-top: 32px;
  padding-bottom: 40px;
}

/* ================================================
   CABEÇALHO ESTILO PORTO
=================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.header-porto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  background: none;
  border: none;
  color: #f3f4f6;
  font-size: 24px;
  cursor: pointer;
}

.brand-inline {
  display: flex;
  align-items: center;
}

.brand-inline-logo {
  height: 28px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .brand-inline-logo {
    height: 24px;
  }
}

.header-search {
  display: flex;
  justify-content: flex-end;
}

.header-search input {
  width: 200px;
  max-width: 50vw;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.7);
  background: #ffffff;
  color: #111827;
  font-size: 0.85rem;
}

.header-search input::placeholder {
  color: #6b7280;
}

/* MENU DROPDOWN */

.menu-dropdown {
  display: none;
  width: 100%;
  background: #0b0e13;
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.menu-dropdown.open {
  display: block;
}

.menu-dropdown .menu-item {
  display: block;
  padding: 12px 20px;
  color: #e5e7eb;
}

.menu-dropdown .menu-item:hover {
  background: rgba(148,163,184,0.1);
}

/* ================================================
   TÍTULOS
=================================================== */

.title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--primary-soft), transparent);
}

/* ================================================
   GRID + CARDS
=================================================== */

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tile {
  background: radial-gradient(circle at top left, #1f2933, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  transition: 0.2s;
}

.tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--primary);
}

/* ================================================
   LOGO DENTRO DOS CARDS — AJUSTADO
=================================================== */

.tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-img img,
.tile-img video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================================================
   MINI PLAYER — AJUSTADO
=================================================== */

.tile-replay .tile-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.tile-replay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}

/* ================================================
   HORÁRIO DOS REPLAYS NO CARD
=================================================== */

.replay-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  text-align: center;
}

/* ================================================
   LINKS "Informações da Arena" — CHIP AMARELO ESTILO PÁGINA 3
=================================================== */

.tile-arena-info {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  background: var(--primary);
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s;
}

.tile-arena-info:hover {
  background: #fcd34d;
  transform: scale(1.03);
}

/* ================================================
   NOMES DAS QUADRAS — AJUSTADO
=================================================== */

.tile-quadra-name {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

/* ================================================
   CHIPS E BOTÕES
=================================================== */

.chip {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,0.18);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(148,163,184,0.4);
}

.chip-primary {
  background: var(--primary);
  color: #111827;
  border-color: var(--primary);
  font-weight: 600;
}

/* ================================================
   FORM / CARD
=================================================== */

.form-card {
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--text);
}

/* ================================================
   LISTAGEM VAZIA
=================================================== */

.empty {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.7);
  text-align: center;
  color: var(--text-soft);
}

/* ================================================
   EDITOR DE VÍDEO — AJUSTADO
=================================================== */

.editor-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.editor-video-box {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.editor-video-box video {
  width: 100%;
  height: auto;
  display: block;
}

.editor-controls {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.25);
  margin-top: 10px;
}

.editor-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.editor-option {
  margin-bottom: 16px;
}

.editor-button {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #111;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 12px;
}

/* ================================================
   RESPONSIVIDADE
=================================================== */

@media (max-width: 600px) {
  .header-search input {
    width: 150px;
  }

  .tile {
    padding: 10px;
  }

  .tile-arena-name {
    font-size: 0.9rem;
  }

  .chip {
    font-size: 0.75rem;
  }
}
.tile-arena-name {
  text-align: center;
  width: 100%;
  display: block;
}
.tile-arena-footer {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
