/* Mobile-first, single column, no framework, no build step (PLAYER-02).
   Base rules target the narrowest phone; the one media query below only
   widens padding, never adds a second column. */

* {
  box-sizing: border-box;
}

/* Load-bearing: without this, an author display rule on .state would
   silently override the hidden attribute and show two states at once. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1115;
  color: #f2f3f5;
}

.clip-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.state {
  margin-bottom: 1rem;
}

.clip-meta {
  font-size: 0.95rem;
  color: #c7cad1;
  margin: 0 0 0.5rem;
}

video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

button {
  display: block;
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  border: 1px solid #3a3f4b;
  border-radius: 0.375rem;
  background: #1c1f26;
  color: #f2f3f5;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid #6ea8fe;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary {
  margin-top: 0.75rem;
  background: #2f6fed;
  border-color: #2f6fed;
  color: #ffffff;
}

.inline-error {
  margin: 0.5rem 0 0;
  color: #ff8f8f;
  font-size: 0.9rem;
}

@media (min-width: 480px) {
  .clip-page {
    padding: 1.5rem;
  }
}

/* Phase 5 -- shared classes for the PIN and arena clip-list screens.
   Reuses the UI-SPEC's declared values (same dominant/secondary/accent/
   destructive/focus colors, same .clip-page container, same single
   breakpoint above) rather than inventing a second visual language. */

.screen-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.clip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clip-row {
  display: block;
  min-height: 56px;
  background: #1c1f26;
  border: 1px solid #3a3f4b;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 8px;
  color: #f2f3f5;
  text-decoration: none;
}

.clip-row:focus-visible {
  outline: 2px solid #6ea8fe;
  outline-offset: 2px;
}

.clip-row-quadra {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-row-time {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #c7cad1;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 1rem;
}

.pagination button {
  flex: 1 1 0;
}

.page-counter {
  font-size: 0.875rem;
  color: #c7cad1;
  white-space: nowrap;
}

.screen-hint {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #c7cad1;
  margin: 0 0 1rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0 0 4px;
}

.pin-input {
  display: block;
  width: 100%;
  min-height: 48px;
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  text-align: center;
  background: #1c1f26;
  border: 1px solid #3a3f4b;
  border-radius: 0.375rem;
  color: #f2f3f5;
  padding: 0 16px;
}

.pin-input:focus-visible {
  outline: 2px solid #6ea8fe;
  outline-offset: 2px;
}

/* Phase 5 Plan 4 -- quadra + date-shortcut filters on the clip-list screen. */

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.filter-field {
  min-width: 0;
}

.quadra-select {
  display: block;
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  background: #1c1f26;
  color: #f2f3f5;
  border: 1px solid #3a3f4b;
  border-radius: 0.375rem;
  padding: 0 12px;
}

.quadra-select:focus-visible {
  outline: 2px solid #6ea8fe;
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }
}

.date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Overrides the global `button` rule's full width/block display --
   scoped to this class only, never the default button appearance
   elsewhere on the page (pagination, Limpar filtros, etc. keep it). */
.date-pill {
  display: inline-block;
  width: auto;
  min-height: 48px;
  padding: 0 16px;
}

/* The only accent use on this screen (UI-SPEC Color) -- quadra select,
   inactive pills, pagination, and Limpar filtros all stay on the
   secondary surface so the accent isn't diluted. */
.date-pill[aria-pressed="true"] {
  background: #2f6fed;
  border-color: #2f6fed;
  color: #ffffff;
}
