/* ============================================================
   YOMI Tote — style.css
   Палитра: #080808 (фон), #111 (карточки), #FF5500 (акцент)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080808;
  --bg2: #0d0d0d;
  --card: #111111;
  --card2: #161616;
  --card-hover: #1a1a1a;
  --border: #1f1f1f;
  --border2: #2a2a2a;
  --orange: #FF5500;
  --orange-light: #FF7733;
  --orange-dim: rgba(255, 85, 0, 0.12);
  --orange-dim2: rgba(255, 85, 0, 0.06);
  --orange-glow: rgba(255, 85, 0, 0.2);
  --text: #EFEFEF;
  --text-secondary: #777;
  --text-dim: #444;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --transition: 0.18s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--orange);
  text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.logo span {
  color: var(--orange);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 85, 0, 0.3);
}

.btn--primary:hover {
  background: var(--orange-light);
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  background: #1e1410;
  color: #4a3020;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border2);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim2);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 85, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 85, 0, 0.25);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(28px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.hero__title em {
  color: var(--orange);
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   FILMS SECTION
   ============================================================ */
.films-section {
  padding: 0 0 140px;
}

.films-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

.films-count {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* ============================================================
   FILM CARD
   ============================================================ */
.films-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: default;
}

.film-card:hover {
  border-color: var(--border2);
  background: var(--card2);
}

.film-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.film-card__left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.film-card__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 1px;
}

.film-card__info {
  flex: 1;
  min-width: 0;
}

.film-title-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color var(--transition);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.3;
  white-space: normal;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.film-title-btn:hover {
  color: var(--orange);
}

.film-title-btn .info-icon {
  font-size: 10px;
  color: var(--text-dim);
  transition: color var(--transition);
  flex-shrink: 0;
  opacity: 0.6;
}

.film-title-btn:hover .info-icon {
  color: var(--orange);
  opacity: 1;
}

.film-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.film-meta__sep {
  color: var(--border2);
}

.film-meta__genre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* YOMI badge */
.yomi-cell {
  flex-shrink: 0;
  position: relative;
}

.yomi-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange-dim2);
  border: 1px solid rgba(255, 85, 0, 0.18);
  border-radius: var(--radius-xs);
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.yomi-badge:hover,
.yomi-badge.active {
  background: var(--orange-dim);
  border-color: rgba(255, 85, 0, 0.4);
}

.yomi-badge__icon {
  font-size: 13px;
  line-height: 1;
}

.yomi-badge__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yomi-badge__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.yomi-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
}

.yomi-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 16px;
  border: 6px solid transparent;
  border-bottom-color: var(--border2);
}

.yomi-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 17px;
  border: 5px solid transparent;
  border-bottom-color: var(--card2);
}

.yomi-badge:hover .yomi-tooltip,
.yomi-badge.active .yomi-tooltip {
  display: block;
}

.yomi-tooltip__title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.yomi-tooltip__val {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
}

/* Bet row */
.film-card__bet {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bet-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.bet-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.bet-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}

.bet-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--orange), 0 2px 8px rgba(255, 85, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bet-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 1px var(--orange), 0 4px 12px rgba(255, 85, 0, 0.6);
}

.bet-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.bet-slider.touched {
  background: linear-gradient(to right, var(--orange) var(--fill, 0%), var(--border2) var(--fill, 0%));
}

.bet-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--transition);
}

.bet-input-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.12);
}

.bet-input-wrap.touched {
  border-color: rgba(255, 85, 0, 0.35);
}

.bet-input {
  width: 62px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px 6px 9px;
  text-align: right;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.bet-input-suffix {
  font-size: 10px;
  color: var(--text-dim);
  padding: 0 8px 0 3px;
  white-space: nowrap;
  user-select: none;
}

/* ============================================================
   VOTE BUTTON — desktop & mobile fixed
   ============================================================ */
.vote-btn-desktop {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.vote-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.vote-btn-fixed {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 16px 20px;
  background: linear-gradient(to top, rgba(8,8,8,0.98) 70%, transparent);
}

.vote-btn-fixed .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}

@media (max-width: 768px) {
  .vote-btn-desktop {
    display: none;
  }
  .vote-btn-fixed {
    display: block;
  }
}

/* ============================================================
   MODAL — Overlay
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.open {
  display: flex;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Film detail modal */
.modal-film {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  animation: modal-in 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border2);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--border2);
  color: var(--text);
}

.modal-poster {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #151515 0%, #1e1e1e 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
  position: relative;
}

.modal-poster::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--card), transparent);
}

.modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-film-body {
  padding: 24px 28px 28px;
}

.modal-genre-tag {
  display: inline-flex;
  align-items: center;
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.modal-meta-dot {
  margin: 0 8px;
  color: var(--text-dim);
}

.modal-synopsis {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
}

.modal-yomi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange-dim2);
  border: 1px solid rgba(255, 85, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.modal-yomi-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-yomi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Registration modal */
.modal-reg {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modal-in 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-reg__header {
  margin-bottom: 28px;
}

.modal-reg__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-reg__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bet summary in modal */
.modal-bet-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.modal-bet-summary__title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.modal-bet-summary__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-bet-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.modal-bet-item__film {
  color: var(--text-secondary);
  truncate: true;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.modal-bet-item__amount {
  color: var(--orange);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.modal-bet-empty {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-label .required {
  color: var(--orange);
  margin-left: 2px;
}

.form-input {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  font-family: inherit;
  transition: all var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.12);
}

.form-input.error {
  border-color: #c53030;
  box-shadow: 0 0 0 2px rgba(197, 48, 48, 0.12);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-error {
  font-size: 11px;
  color: #fc8181;
  margin-top: 2px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit-row {
  margin-top: 22px;
}

.form-submit-row .btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}

.form-server-err {
  margin-top: 10px;
  font-size: 12px;
  color: #fc8181;
  text-align: center;
  display: none;
}

.form-server-err.visible {
  display: block;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.results-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255, 85, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.results-hero__confetti {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: confetti-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes confetti-pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.results-hero__title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.results-hero__name {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.results-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: 999px;
  padding: 8px 20px;
}

.results-hero__rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.results-hero__rank-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.results-section {
  padding: 0 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 32px;
  padding: 8px 0;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--orange);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

/* Film result card */
.film-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.film-result-card:hover {
  border-color: var(--border2);
}

.film-result-card__header {
  padding: 14px 18px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.film-result-card__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.film-result-card__date {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table thead th {
  padding: 10px 18px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.result-table thead th:last-child {
  text-align: right;
}

.result-table tbody td {
  padding: 10px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.result-table tbody tr:last-child td {
  border-bottom: none;
}

.result-table tbody td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

/* YOMI row */
.row--yomi {
  background: var(--orange-dim2);
}

.row--yomi td {
  color: var(--orange);
  font-weight: 600;
}

/* Current user row */
.row--me {
  background: rgba(255, 255, 255, 0.04);
}

.row--me td {
  color: var(--text);
  font-weight: 600;
}

/* Place badge */
.place-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  background: var(--border2);
  color: var(--text-dim);
}

.place-badge.gold {
  background: rgba(255, 195, 0, 0.12);
  color: #FFC300;
}
.place-badge.silver {
  background: rgba(170, 170, 170, 0.12);
  color: #AAAAAA;
}
.place-badge.bronze {
  background: rgba(176, 96, 48, 0.12);
  color: #B06030;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  align-items: start;
}

.footer-brand .logo {
  cursor: default;
  pointer-events: none;
  margin-bottom: 6px;
  display: inline-flex;
}

.footer-company {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-inn {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.footer-contacts-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-email {
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  transition: opacity var(--transition);
}

.footer-email:hover {
  opacity: 0.75;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-copy {
    grid-column: 1;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(197, 48, 48, 0.4);
  background: rgba(197, 48, 48, 0.1);
  color: #fc8181;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: 1;
  }
  .hero {
    padding: 52px 0 44px;
  }
  .hero__stats {
    gap: 20px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .modal-film,
  .modal-reg {
    padding: 0;
  }
  .modal-reg {
    padding: 24px 20px;
  }
  .modal-film-body {
    padding: 20px;
  }
  .film-card {
    padding: 14px 14px;
  }
  .film-card__num {
    display: none;
  }
  .bet-label {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 26px;
  }
  .hero__stats {
    gap: 14px;
  }
  .hero__stat-value {
    font-size: 22px;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fade-up 0.4s ease both;
}

.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.1s; }
.anim-delay-3 { animation-delay: 0.15s; }
