/* ===========================
   GLOBAL THEME
=========================== */
:root {
  --bg: #05060a;
  --card: #111827;
  --border: #1f2937;
  --accent: #facc15;
  --accent-soft: #fef3c7;
  --text: #f9fafb;
  --muted: #9ca3af;
  --danger: #f87171;
  --ok: #bbf7d0;
}

/* ===========================
   RESET + BASE
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 1100px;
}

/* ===========================
   NAVIGATION (GLOBAL)
=========================== */
nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

nav a:hover {
  border-color: rgba(250, 204, 21, 0.6);
  color: var(--accent-soft);
}

nav a.active {
  color: var(--accent);
  border-color: rgba(250, 204, 21, 0.9);
  background: rgba(250, 204, 21, 0.08); /* soft glow */
}

/* ===========================
   HEADERS
=========================== */
header.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

header.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.1;
}

header.page-header h1 span {
  color: var(--accent);
}

header.page-header p {
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
  line-height: 1.7;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 4px;
}

h2 {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

p {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}

/* BADGES */
.badge-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: none;
}

.badge.highlight {
  border-color: rgba(250, 204, 21, 0.9);
}

/* ===========================
   CARDS
=========================== */
.card {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  margin-bottom: 16px;
}

/* ===========================
   SECTION HEADERS + DOTS
=========================== */
.accent-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(250,204,21,0.9);
}

.accent-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(250,204,21,0.8);
}

.section-header {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-header small {
  font-size: 11px;
  color: var(--muted);
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 640px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #ffe45e;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-ghost:hover {
  border-color: rgba(250, 204, 21, 0.8);
  color: var(--accent-soft);
}

/* ===========================
   VIDEO EMBED BOXES
=========================== */
.video-embed-card {
  background: rgba(15,23,42,0.9);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(75,85,99,0.9);
  margin-top: 6px;
}

.video-embed-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-embed-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.video-embed-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-embed-box.js-video-placeholder {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.video-embed-box.js-video-placeholder:hover {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.6) inset;
  transform: translateY(-1px);
}

.video-embed-caption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* ===========================
   GENERAL LAYOUT (MAIN GRID)
=========================== */
main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 6px;
}

@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
  nav { justify-content: center; margin-bottom: 18px; }
  header.page-header { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   LISTS
=========================== */
ul {
  list-style: none;
  padding-left: 0;
}

.trait-list li {
  padding: 6px 0;
  border-bottom: 1px solid #1f2937;
  font-size: 14px;
  color: #e5e7eb;
}

.trait-list li:last-child {
  border-bottom: none;
}

.trait-list strong {
  color: var(--accent-soft);
}

/* ===========================
   PLAYER CARDS (PLAYERS PAGE)
=========================== */
.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 800px) {
  .players-grid {
    grid-template-columns: 1fr;
  }
}

.player-card {
  display: flex;
  gap: 14px;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 12px 13px;
}

.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.player-body {
  flex: 1;
}

.player-card h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: var(--accent);
}

.player-card p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
  margin: 6px 0;
}

/* ===========================
   SCHEDULE PAGE
=========================== */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .schedule-layout {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: #020617;
  color: var(--text);
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.status-msg {
  margin-top: 10px;
  font-size: 14px;
}

.status-ok { color: var(--ok); }
.status-error { color: #fca5a5; }

.schedule-date {
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent-soft);
}

.schedule-entry {
  margin-left: 10px;
  font-size: 13px;
}

.schedule-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 6px;
  border: 1px solid #4b5563;
}

.schedule-pill.approved {
  color: var(--ok);
  border-color: #22c55e;
}

.schedule-pill.pending {
  color: var(--accent-soft);
  border-color: var(--accent);
}

.schedule-box {
  background: #020617;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #374151;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ===========================
   RESULTS PAGE
=========================== */
.winner-line {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  margin-bottom: 10px;
}

.winner-line.main-winner {
  background: rgba(34,197,94,0.1);
}

.winner-line span.name {
  color: var(--ok);
  font-weight: 600;
}

.winner-line span.loss {
  color: var(--danger);
}

/* ===========================
   PRACTICE QUESTIONS PAGE
=========================== */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.qa-block-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.hover-hint {
  font-size: 13px;
  color: var(--muted);
}

.question-image,
.answer-image {
  width: 100%;
  height: auto%;            /* keep natural height */
  border-radius: 12px;
  border: 1px solid #1f2937;
  display: block;
  object-fit: contain;
}

/* Hide only visually but keep the layout space */
.answer-image {
  visibility: hidden;
}

.answer-image.answer-visible {
  visibility: visible;
}

/* ===========================
   MIRON PAGE / SPECIAL LISTS
=========================== */
.miron-lists {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 18px;
  margin-top: 16px;
}

@media (max-width: 800px) {
  .miron-lists {
    grid-template-columns: 1fr;
  }
}

.miron-lists ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.miron-lists li {
  padding: 12px;
  background: #0b1220;
  border-radius: 14px;
  border: 1px solid #1e293b;
  line-height: 1.5;
}

.miron-lists li strong {
  color: var(--accent);
}

/* ===========================
   COMMUNITY / HOME MINI CARDS
=========================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  border-radius: 14px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  font-size: 13px;
}

.mini-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--accent-soft);
}

.mini-card p {
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.mini-card ul {
  margin: 4px 0 6px 16px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.avatar img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(250, 204, 21, 0.7);
  margin-bottom: 2px;
  background: #020617;
}

/* ===========================
   FOOTER
=========================== */
footer {
  margin-top: 20px;
  font-size: 11px;
  text-align: center;
  color: #6b7280;
}

/* ===========================
   EXTRA COMPONENTS (LOGO, LISTS, MODAL)
=========================== */
.logo-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 2px;
  background: linear-gradient(145deg, #111827, #020617);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.25);
}

.title-block h1 span {
  color: var(--accent);
}

/* Video list / grid */
.video-embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.video-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  text-decoration: none;
  background: #020617;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.video-item:hover {
  border-color: rgba(250, 204, 21, 0.7);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.08), #020617 55%, #000 100%);
}

.thumb {
  width: 110px;
  min-width: 110px;
  border-radius: 8px;
  background: linear-gradient(145deg, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #111827;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
}

.video-tags {
  font-size: 11px;
  color: var(--muted);
}

.video-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.cta-block {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sidebar chips */
.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-section h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--muted);
}

/* Community + schedule preview */
.community-section {
  margin-top: 16px;
}

.community-section p.intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.schedule-preview-list {
  list-style: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  padding-left: 0;
}

.schedule-preview-list li {
  padding: 4px 0;
  border-bottom: 1px solid #1f2937;
}

/* Admin modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #4b5563;
  padding: 18px 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.modal-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-secondary:hover {
  border-color: rgba(250, 204, 21, 0.8);
}

.modal-status {
  font-size: 12px;
  margin-top: 6px;
}

.modal-status-ok {
  color: #bbf7d0;
}

.modal-status-error {
  color: #fca5a5;
}
.visitor-comments {
  display: none;
}

.visitor-comments.visible {
  display: block;
}

.hidden-note {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.player-name {
  color: var(--accent-soft);   /* light yellow */
  font-weight: 600;
}
.player-name.winner {
  color: var(--accent);        /* bright yellow */
}
.comment-name-input {
  width: 100%;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}
/* ===========================
   HOME HERO
=========================== */
.hero {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  margin-bottom: 16px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

/* Text column */
.hero-text {
  flex: 1.2;
  min-width: 260px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-meta {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.08);
}

/* Media / image column */
.hero-media {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-link {
  display: block;
  width: 100%;
  max-width: 420px;
  text-decoration: none;
  color: inherit;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(75, 85, 99, 0.9);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.9);
}

.hero-video-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.0), rgba(0,0,0,0.78));
  text-align: center;
  padding: 10px;
}

.hero-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow: 0 16px 30px rgba(0,0,0,0.9);
}

.hero-video-label {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: var(--accent-soft);
}

.hero-video-frame:hover .hero-video-image {
  transform: scale(1.06);
}

/* Responsive */
@media (max-width: 800px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-media {
    order: -1; /* show image first on mobile */
  }
}
.hero-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow: 0 16px 30px rgba(0,0,0,0.9);
}
