/* ===== БАЗА ===== */
:root {
  --bg-body: #020617;
  --bg-surface: rgba(15, 23, 42, 0.98);
  --bg-surface-alt: rgba(15, 23, 42, 0.9);
  --border-soft: rgba(148, 163, 184, 0.3);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.16);
  --accent-strong: #0ea5e9;
  --danger: #f97373;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.16s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Inter', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #1f2937 0, #020617 45%, #000 100%);
  min-height: 100%;
}

/* Единая высота и центрирование контента */
body {
  display: flex;
  flex-direction: column;
}

.sv-main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== ГРИД / КОНТЕЙНЕР ===== */

.sv-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.sv-section {
  padding: 42px 0;
}

.sv-section-alt {
  background: radial-gradient(circle at top, #0b1220 0, #020617 55%, #000 100%);
}

.sv-grid {
  display: grid;
  gap: 20px;
}

.sv-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sv-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .sv-grid-2,
  .sv-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== HEADER / НАВИГАЦИЯ ===== */

.sv-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.94),
    rgba(15, 23, 42, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.sv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-logo-text {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: #e9f7ff;
}

.sv-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-nav-link {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sv-nav-link:hover {
  color: #e2e8f0;
  background: rgba(30, 64, 175, 0.4);
}

.sv-nav-link--active {
  background: var(--accent-soft);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.6);
}

.sv-nav-link--pill {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.sv-nav-link--pill:hover {
  background: rgba(34, 197, 94, 0.17);
}

.sv-nav-link--danger {
  background: rgba(248, 113, 113, 0.09);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.sv-nav-link--danger:hover {
  background: rgba(248, 113, 113, 0.16);
}

/* ===== HERO ===== */

.sv-hero {
  padding-top: 56px;
}

.sv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .sv-hero-grid {
    grid-template-columns: 1fr;
  }
}

.sv-hero-title {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
}

@media (min-width: 1000px) {
  .sv-hero-title {
    font-size: 34px;
  }
}

.sv-hero-text {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 480px;
}

.sv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== КАРТОЧКИ / ПАНЕЛИ ===== */

.sv-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.sv-card-dashboard {
  min-height: 170px;
}

.sv-card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-access-wrapper {
  display: flex;
  justify-content: center;
}

.sv-access-card {
  max-width: 420px;
  text-align: center;
}

/* ===== ТЕКСТЫ / ЗАГОЛОВКИ ===== */

.sv-section-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.sv-page-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.sv-block-title {
  margin: 0 0 10px;
  font-size: 17px;
}

.sv-muted {
  color: var(--text-muted);
  font-size: 13px;
}

.sv-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.sv-list li + li {
  margin-top: 4px;
}

/* ===== КНОПКИ ===== */

.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.sv-btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #0f172a;
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.5),
    0 20px 40px rgba(15, 23, 42, 0.8);
}

.sv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.7),
    0 24px 50px rgba(15, 23, 42, 0.9);
}

.sv-btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.sv-btn-ghost:hover {
  background: rgba(30, 64, 175, 0.5);
  border-color: rgba(129, 140, 248, 0.9);
}

.sv-btn-full {
  width: 100%;
}

/* маленькая кнопка */
.sv-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ===== ФОРМЫ ===== */

.sv-label {
  font-size: 13px;
  color: #e2e8f0;
}

.sv-input,
.sv-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.sv-input::placeholder,
.sv-textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.sv-input:focus,
.sv-textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.98);
}

.sv-textarea {
  resize: vertical;
}

/* Сообщения форм */
.sv-error {
  color: #fecaca;
  font-size: 13px;
}

.sv-success {
  color: #bbf7d0;
  font-size: 13px;
}

/* ===== ДЭШБОРД / СТАТИСТИКА ===== */

.sv-dashboard-grid {
  margin-top: 20px;
}

.sv-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sv-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}

.sv-stat-label {
  color: var(--text-muted);
}

.sv-stat-value {
  font-weight: 600;
}

.sv-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.mt-lg {
  margin-top: 26px;
}

/* Карточки в гриде "для игроков / для клубов" */
.sv-grid-cards .sv-card {
  height: 100%;
}

/* ===== СПИСОК ИГРОКОВ (CLUB) ===== */

.players-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* Базовая карточка */
.player-card {
  position: relative;
  border-radius: 16px;
  padding: 16px 20px;
  background: radial-gradient(
      circle at top left,
      rgba(0, 255, 220, 0.08),
      rgba(0, 20, 40, 0.9)
    );
  border: 1px solid rgba(0, 255, 255, 0.45);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.12),
    inset 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Компактная версия для блока "Последние заявки" */
.player-card.player-card--compact {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
}

/* Верхняя часть карточки */
.player-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-main-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.player-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Имя, позиция, возраст */
.player-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.player-name {
  font-weight: 600;
}

.player-position-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #00f5ff, #00c8ff, #0090ff);
  color: #021019;
  font-weight: 600;
}

.player-age-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(0, 255, 200, 0.5);
  background: rgba(0, 255, 200, 0.08);
}

/* Строка с страной и email */
.player-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.player-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.player-flag {
  font-size: 1.1rem;
}

.player-country-text {
  opacity: 0.9;
}

.player-email a {
  font-size: 0.84rem;
  text-decoration: underline;
}

/* Блок с датой анкеты */
.player-created {
  text-align: right;
  font-size: 0.78rem;
  opacity: 0.75;
}

.player-created-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  opacity: 0.6;
}

.player-description {
  margin-top: 4px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Нижняя часть карточки */
.player-card-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 15, 30, 0.9);
}

.player-tag.muted-tag {
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.85;
}

/* Кнопка "Видео игрока" внутри карточки */
.player-card-bottom .sv-btn {
  white-space: nowrap;
}

/* ===== ПЛАВНОЕ ПОЯВЛЕНИЕ СТРАНИЦЫ ===== */

body {
  opacity: 0;
  transform: translateY(8px);
  animation: sv-page-fade 0.45s ease-out forwards;
}

@keyframes sv-page-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== КНОПКИ: ХОВЕР + НАЖАТИЕ ===== */

button,
.sv-btn {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

button:hover,
.sv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

button:active,
.sv-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

/* ===== ПОЛЯ ФОРМЫ: ФОКУС ===== */

input[type='text'],
input[type='number'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='date'],
textarea,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

input[type='text']:focus,
input[type='number']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='tel']:focus,
input[type='date']:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(32, 243, 208, 0.9);
  box-shadow: 0 0 0 1px rgba(32, 243, 208, 0.55);
  background-color: rgba(255, 255, 255, 0.02);
}

/* FOOTER */

.sv-footer {
  padding: 16px 0 22px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: radial-gradient(circle at top, #020617 0, #000 60%);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ЛОГОТИП SCOUTVERSE */

.sv-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  background-color: #020712;
  box-shadow: 0 0 20px rgba(0, 240, 200, 0.7);
}

/* ===== МОДАЛКА ДЛЯ ВИДЕО ===== */

.sv-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.sv-modal.is-open {
  display: flex;
}

.sv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
}

.sv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100% - 32px);
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(34, 211, 238, 0.25);
  padding: 14px 14px 18px;
}

.sv-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.sv-modal-close:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sv-modal-body {
  margin-top: 14px;
}

.sv-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.sv-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ===== ВИДЕО-СТРАНИЦА (player-video) ===== */

.pv-video-shell {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(34, 211, 238, 0.4);
  padding-top: 56.25%; /* 16:9 */
}

.pv-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* маленькая кнопка внутри карточек игроков */
.sv-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
/* ===== Разделители + больше воздуха ===== */
.sv-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.45),
    rgba(148, 163, 184, 0.25),
    transparent
  );
  margin: 0;
}

/* Блок “MVP” под hero */
.sv-inline-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.sv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
  color: #c9f7ff;
}

/* Мини-блоки в hero карточке */
.sv-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.sv-mini-stat-title {
  font-weight: 700;
  font-size: 13px;
}

/* Заголовок секции */
.sv-section-head {
  margin-bottom: 16px;
}

/* Callout блок */
.sv-callout {
  padding: 18px;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.96);
}

.sv-callout-title {
  font-weight: 700;
  margin-bottom: 6px;
}

/* Кнопка “Войти” меньше и аккуратнее */
.sv-btn-compact {
  padding: 8px 14px;
  font-size: 13px;
}
/* ================================
   MOBILE / RESPONSIVE (НЕ ЛОМАЕМ ДИЗАЙН)
   Просто добавь в КОНЕЦ styles.css
   ================================ */

/* Чуть больше «воздуха» и нормальная ширина на телефоне */
@media (max-width: 600px) {
  .sv-container {
    padding: 0 14px;
  }

  .sv-section {
    padding: 28px 0;
  }

  /* Header: чтобы не давило */
  .sv-header-inner {
    height: auto;
    padding: 10px 0;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Навигация: не ломаем, делаем “скролл-ленту” */
  .sv-nav {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .sv-nav::-webkit-scrollbar {
    height: 6px;
  }
  .sv-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
  }

  .sv-nav-link {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 7px 12px;
  }

  /* HERO: шрифты поменьше */
  .sv-hero {
    padding-top: 22px;
  }

  .sv-hero-title {
    font-size: 24px;
    line-height: 1.15;
  }

  .sv-hero-text {
    font-size: 13px;
    max-width: 100%;
  }

  .sv-hero-actions {
    gap: 8px;
  }

  .sv-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Карточки: меньше паддинга */
  .sv-card {
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  /* Сетки: гарантированно в 1 колонку на телефоне */
  .sv-grid-2,
  .sv-grid-3,
  .sv-hero-grid {
    grid-template-columns: 1fr !important;
  }

  /* Формы: чтобы инпуты и кнопки были “жирные” для пальца */
  .sv-input,
  .sv-textarea {
    padding: 11px 12px;
    font-size: 15px;
  }

  .sv-label {
    font-size: 12px;
  }

  /* Кнопка “Войти” / “Отправить” — не огромная, но удобная */
  .sv-btn-full {
    width: 100%;
  }

  /* Разделители: меньше расстояния */
  .sv-divider {
    margin: 0;
  }

  /* Карточки игроков на мобиле: чтобы не расползались */
  .player-main-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-created {
    text-align: left;
  }

  .player-card-bottom {
    align-items: stretch;
  }

  .player-card-bottom > div:last-child {
    width: 100%;
  }

  .player-card-bottom .sv-btn,
  .player-card-bottom a.sv-btn {
    width: 100%;
    justify-content: center;
  }

  /* Модалка видео: нормально на телефоне */
  .sv-modal-dialog {
    width: calc(100% - 22px);
    padding: 12px;
    border-radius: 16px;
  }

  .sv-video-wrapper {
    border-radius: 12px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
  .sv-hero-title { font-size: 22px; }
  .sv-nav-link { font-size: 11px; padding: 6px 10px; }
}
