* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  overflow-x: hidden;
  background: #09090d;
  color: white;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
}

.background::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: -250px;
  top: -200px;
  background: #5c6cff;
  opacity: .25;
  filter: blur(180px);
}

.background::after {
  content: "";
  position: absolute;
  right: -250px;
  bottom: -250px;
  width: 700px;
  height: 700px;
  background: #00d0ff;
  opacity: .15;
  filter: blur(180px);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 70px;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

.logo i {
  color: #6d7cff;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: #aaa;
  transition: .3s;
}

nav a:hover {
  color: white;
}

.buttons {
  display: flex;
  gap: 15px;
}

button {
  cursor: pointer;
}

.user {
  background: none;
  border: 1px solid rgba(255, 255, 255, .1);
  color: white;
  border-radius: 12px;
  width: 64px;
  height: 64px;
}

.login {
  background: none;
  border: 1px solid rgba(255, 255, 255, .1);
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
}

.register {
  background: linear-gradient(45deg, #5b6dff, #00c6ff);
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
}

.hero {
  padding: 110px 20px;
  text-align: center;
}

.status {
  display: inline-block;
  padding: 8px 18px;
  background: #14151c;
  border-radius: 20px;
  color: #88ffaf;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero span {
  background: linear-gradient(90deg, #58a6ff, #6c63ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #9fa3b2;
  font-size: 20px;
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.primary, .secondary {
  padding: 16px 30px;
  font-size: 17px;
  border-radius: 14px;
  transition: .35s;
}

.primary {
  border: none;
  background: linear-gradient(45deg, #5b6dff, #00c6ff);
  color: white;
}

.secondary {
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, .08);
  color: white;
}

.primary:hover, .secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(91, 109, 255, .4);
}

.cards {
  width: 1200px;
  max-width: 95%;
  margin: 70px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #111218;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 35px;
  border-radius: 24px;
  transition: .35s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: #5b6dff;
  box-shadow: 0 0 35px rgba(91, 109, 255, .3);
}

.card i {
  font-size: 34px;
  margin-bottom: 25px;
  color: #6f74ff;
}

.card h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.card p {
  color: #a7a7b6;
  line-height: 1.7;
  margin-bottom: 25px;
}

.card a {
  text-decoration: none;
  color: white;
  font-weight: 600;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 25px;
    padding: 30px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 52px;
  }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}
/* ===== Общие стили для страниц ===== */
.page-section {
    padding: 60px 70px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h2 {
    font-size: 48px;
    font-weight: 800;
}

.page-header h2 i {
    color: #6d7cff;
    margin-right: 15px;
}

.page-header p {
    color: #9fa3b2;
    font-size: 18px;
    margin-top: 10px;
}

/* ===== Трансляции ===== */
.broadcast-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.broadcast-player {
    background: #111218;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.player-placeholder {
    text-align: center;
    color: #6d7cff;
}

.player-placeholder i {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    opacity: .6;
}

.player-placeholder span {
    color: #9fa3b2;
    font-size: 18px;
}

.broadcast-info {
    margin-top: 20px;
    padding: 20px;
    background: #111218;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.broadcast-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    font-weight: 600;
}

.match-teams .vs {
    color: #6d7cff;
}

.match-teams .team {
    color: white;
}

.match-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    color: #9fa3b2;
    font-size: 15px;
}

.match-stats i {
    margin-right: 8px;
}

.broadcast-side {
    background: #111218;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 25px;
}

.broadcast-side h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
}

.live-match {
    background: #14151c;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-match .match-teams.small {
    font-size: 14px;
    gap: 10px;
}

.live-match .match-teams.small span {
    color: #ccc;
}

.live-match .match-time {
    color: #88ffaf;
    font-weight: 600;
    font-size: 16px;
}

.live-badge {
    background: #ff4444;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.live-badge.waiting {
    background: #555;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ===== Записи ===== */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.record-card {
    background: #111218;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    transition: .35s;
}

.record-card:hover {
    transform: translateY(-6px);
    border-color: #5b6dff;
    box-shadow: 0 0 30px rgba(91, 109, 255, .2);
}

.record-thumbnail {
    background: #1a1b26;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.record-thumbnail i {
    font-size: 50px;
    color: #6d7cff;
    opacity: .7;
    transition: .3s;
}

.record-card:hover .record-thumbnail i {
    opacity: 1;
    transform: scale(1.1);
}

.record-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .8);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: white;
}

.record-info {
    padding: 18px 20px 20px;
}

.record-info h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.record-meta {
    display: flex;
    gap: 20px;
    color: #9fa3b2;
    font-size: 14px;
}

.record-meta i {
    margin-right: 6px;
}

/* ===== Турнирная сетка ===== */
.bracket-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 30px;
    background: #111218;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    overflow-x: auto;
}

.bracket-round {
    flex: 1;
    min-width: 200px;
}

.bracket-round h4 {
    text-align: center;
    color: #6d7cff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.bracket-match {
    background: #14151c;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .05);
    position: relative;
}

.bracket-match.final {
    border-color: #ffd700;
    background: #1a1a2e;
}

.bracket-match.third-place {
    border-color: #cd7f32;
    background: #1a1a2e;
}

.bracket-match.third-place h5 {
    color: #cd7f32;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}

.bracket-team {
    padding: 6px 0;
    font-size: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
}

.bracket-team.winner {
    color: #88ffaf;
    font-weight: 600;
}

.bracket-team.winner::before {
    content: "👑 ";
    font-size: 14px;
}

.bracket-score {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d7cff;
    font-weight: 700;
    font-size: 15px;
}

.bracket-arrow {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 30px;
    padding: 0 5px;
}

.bracket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 30px;
    background: #111218;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.bracket-legend {
    display: flex;
    gap: 30px;
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #555;
    margin-right: 8px;
    vertical-align: middle;
}

.legend-dot.winner {
    background: #88ffaf;
}

.bracket-status {
    color: #88ffaf;
    font-weight: 600;
}

.bracket-status i {
    margin-right: 10px;
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .page-section {
      padding: 40px 30px 60px;
  }

  .broadcast-grid {
      grid-template-columns: 1fr;
  }

  .bracket-wrapper {
      flex-direction: column;
      align-items: center;
  }

  .bracket-arrow {
      transform: rotate(90deg);
      padding: 5px 0;
  }

  .bracket-round {
      width: 100%;
      max-width: 400px;
  }
}

@media (max-width: 600px) {
  .page-header h2 {
    font-size: 32px;
  }

  .bracket-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .match-stats {
    flex-wrap: wrap;
    gap: 15px;
  }

  .broadcast-info h3 {
    font-size: 18px;
  }

  .match-teams {
    font-size: 16px;
    flex-wrap: wrap;
  }
}