/* ====== БАЗА ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

.schedule-container {
  max-width: 1200px;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(128, 128, 128, 0.03) 0%, rgba(128, 128, 128, 0.1) 100%), #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #DB2744;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.header h2 {
  font-size: 28px;
  color: #023466;
  margin-bottom: 10px;
  font-weight: 600;
}

.header .date {
  font-size: 24px;
  color: #DB2744;
  margin-bottom: 15px;
  font-weight: 500;
}

.header .theme {
  font-size: 15px;
  color: #023466;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 35px;
  line-height: 1.4;
}

/* ====== КНОПКА БИЛЕТА ====== */
.btn-ticket {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #DB2744 0%, #c91d38 100%);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(219, 39, 68, 0.3);
}

.btn-ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 39, 68, 0.4);
  background: linear-gradient(135deg, #c91d38 0%, #DB2744 100%);
}

.btn-ticket-center {
  text-align: center;
  margin: 50px 0;
}

/* ====== ЭЛЕМЕНТЫ РАСПИСАНИЯ ====== */
.schedule-item {
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(2, 52, 102, 0.02) 0%, rgba(219, 39, 68, 0.02) 100%);
  border-radius: 15px;
  border-left: 5px solid #DB2744;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(219, 39, 68, 0.15);
}

.schedule-item.break {
  background: linear-gradient(135deg, rgba(219, 39, 68, 0.05) 0%, rgba(219, 39, 68, 0.1) 100%);
  border-left-color: #023466;
  text-align: center;
}

.schedule-item.highlight {
  background: linear-gradient(135deg, rgba(219, 39, 68, 0.04) 0%, rgba(2, 52, 102, 0.04) 100%);
  border-left-width: 6px;
}

.time {
  font-size: 22px;
  font-weight: 700;
  color: #DB2744;
  margin-bottom: 15px;
  display: inline-block;
  padding: 8px 20px;
  background: rgba(219, 39, 68, 0.1);
  border-radius: 25px;
}

.session-title {
  font-size: 24px;
  font-weight: 600;
  color: #023466;
  margin-bottom: 20px;
  line-height: 1.3;
}

.speaker {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 2px solid rgba(2, 52, 102, 0.2);
}

.speaker.featured {
  background: rgba(219, 39, 68, 0.03);
  padding: 15px 15px 15px 20px;
  border-radius: 8px;
  border-left-color: #DB2744;
  border-left-width: 3px;
}

.speaker-name {
  font-size: 18px;
  font-weight: 600;
  color: #023466;
  margin-bottom: 5px;
}

.speaker-title {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.speaker-topic {
  font-size: 15px;
  color: #023466;
  font-style: italic;
  line-height: 1.4;
}

.speaker-topic.highlight-topic {
  font-weight: 600;
  color: #DB2744;
  font-style: normal;
}

.discussion {
  margin-top: 20px;
  padding: 15px 25px;
  background: rgba(2, 52, 102, 0.05);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #023466;
  text-align: center;
}

.award-info {
  background: rgba(219, 39, 68, 0.08);
  padding: 15px 20px;
  border-radius: 10px;
  margin: 15px 0;
  font-size: 15px;
  color: #023466;
  line-height: 1.6;
  border-left: 3px solid #DB2744;
}

.award-info a {
  color: #DB2744;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.award-info a:hover {
  text-decoration: underline;
}

.note {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-top: 10px;
}

.social-handle {
  color: #DB2744;
  font-weight: 600;
}

/* ====== АДАПТИВ 768px ====== */
@media (max-width: 768px) {
  .schedule-container {
    padding: 40px 20px;
    border-radius: 15px;
  }

  .header h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .header h2 {
    font-size: 20px;
  }

  .header .date {
    font-size: 18px;
  }

  .header .theme {
    font-size: 16px;
  }

  .btn-ticket {
    padding: 14px 30px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .schedule-item {
    padding: 20px 15px;
    margin-bottom: 25px;
  }

  .time {
    font-size: 18px;
    padding: 6px 15px;
  }

  .session-title {
    font-size: 20px;
  }

  .speaker {
    padding-left: 15px;
    margin-bottom: 15px;
  }

  .speaker-name {
    font-size: 16px;
  }

  .speaker-title {
    font-size: 14px;
  }

  .speaker-topic {
    font-size: 14px;
  }

  .discussion {
    font-size: 16px;
    padding: 12px 15px;
  }

  .award-info {
    font-size: 14px;
    padding: 12px 15px;
  }
}

/* ====== АДАПТИВ 480px ====== */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .schedule-container {
    padding: 30px 15px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header h2 {
    font-size: 18px;
  }

  .header .date {
    font-size: 16px;
  }

  .header .theme {
    font-size: 15px;
  }
}

/* ====== GLASS BADGE ====== */
.glass-badge {
  position: fixed;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.badge-content:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.badge-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.timer-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timer-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.timer-value {
  font-size: 22px;
  font-weight: 700;
  color: #d32f2f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.badge-button {
  display: block;
  background: #d32f2f;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}

.badge-button:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
  color: #ffffff;
}

.badge-button:active { transform: translateY(0); }

/* Десктоп для бейджа */
@media (min-width: 769px) {
  .glass-badge {
    top: 20px;
    right: 20px;
    max-width: 300px;
  }
  .btn-mobile { display: none; }
}

/* Мобильный для бейджа */
@media (max-width: 768px) {
  .glass-badge {
    bottom: env(safe-area-inset-bottom, 16px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 380px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .badge-content { padding: 14px 18px; gap: 10px; }
  .badge-text { font-size: 14px; text-align: center; }
  .timer-block { text-align: center; }
  .timer-label { font-size: 11px; }
  .timer-value { font-size: 20px; }
  .badge-button { padding: 11px 18px; font-size: 14px; }
  .btn-desktop { display: none; }
}

@media (max-width: 360px) {
  .badge-text { font-size: 13px; }
  .timer-value { font-size: 18px; }
  .badge-button { font-size: 13px; padding: 10px 16px; }
}

/* Стабильный белый текст на кнопке бейджа */
#glassBadge .badge-button,
#glassBadge .badge-button:link,
#glassBadge .badge-button:visited,
#glassBadge .badge-button:hover,
#glassBadge .badge-button:active,
#glassBadge .badge-button:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

#glassBadge .badge-button * {
  color: inherit !important;
  text-decoration: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* ====== САМЫЙ НИЗ: ПРИБИТЬ ЦВЕТ ВСЕХ .btn-ticket ====== */
html body .schedule-container a.btn-ticket.btn-ticket,
html body .schedule-container a.btn-ticket.btn-ticket:link,
html body .schedule-container a.btn-ticket.btn-ticket:visited,
html body .schedule-container a.btn-ticket.btn-ticket:hover,
html body .schedule-container a.btn-ticket.btn-ticket:active,
html body .schedule-container a.btn-ticket.btn-ticket:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* для Safari/iOS */
  text-decoration: none !important;
  mix-blend-mode: normal;
  filter: none !important;
}

/* Если внутри кнопок будут вложенные элементы */
a.btn-ticket * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-decoration: inherit !important;
}
