* { box-sizing: border-box; }
body {
  background: #0A0A0A;
  color: #CCCCCC;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: #fff; font-weight: 500; margin: 0; }
a { color: inherit; text-decoration: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.logo { font-family: 'Montserrat', sans-serif; font-size: 22px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; letter-spacing: 0.02em; }
.logo__icon { width: 30px; height: 30px; }
.logo .accent { color: #00BFFF; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-size: 14px;
  color: #CCCCCC;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-header nav a:hover { color: #fff; border-color: #00BFFF; }
.club-filter {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}
.club-filter option {
  color: #ffffff;
  background-color: #111111;
  font-weight: 600;
}

main { max-width: 1600px; margin: 0 auto; padding: 48px 64px 64px; }

.matches-section, .feed-section { margin-bottom: 56px; }
.matches-section h2, .feed-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid #00BFFF;
}

.matches-carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.matches-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; flex: 1; scrollbar-width: none; }
.matches-row::-webkit-scrollbar { display: none; }
.carousel-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.carousel-arrow:hover { background: rgba(0,191,255,0.15); border-color: #00BFFF; }
.match-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 18px;
  min-width: 230px;
  flex-shrink: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.match-card:hover { border-color: rgba(0,191,255,0.4); transform: translateY(-2px); }
.match-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.match-team { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.match-team + .match-team { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 4px; padding-top: 10px; }
.team-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.match-team span { color: #fff; font-size: 14px; font-weight: 500; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feed-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.feed-card:hover { border-color: rgba(0,191,255,0.4); transform: translateY(-2px); }
.feed-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #042C53, #0033A0);
  display: flex; align-items: center; justify-content: center;
  color: #B5D4F4; font-size: 13px;
}
.feed-body { padding: 16px; }
.feed-title { color: #fff; font-size: 15px; margin-bottom: 12px; line-height: 1.4; }
.feed-meta { display: flex; justify-content: space-between; font-size: 12px; color: #888; }

.muted { color: #666; font-size: 14px; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #888;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  main { padding: 32px 24px; }
  .site-header { padding: 16px 24px; }
  main { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .feed-grid { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}

/* --- match-team as link --- */
.match-team { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.match-team + .match-team { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 4px; padding-top: 10px; }
.match-team span { color: #fff; font-size: 14px; font-weight: 500; }
.match-team:hover span { color: #00BFFF; }

/* --- club hero --- */
.club-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.club-hero__logo { width: 84px; height: 84px; object-fit: contain; }
.club-hero h1 { font-size: 28px; }
.club-hero__city { color: #888; font-size: 14px; margin-top: 4px; }

/* --- match list (club page) --- */
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: 110px 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 22px 30px;
  font-size: 19px;
}
.match-row__date { color: #888; font-size: 14px; }
.match-row__side { display: flex; align-items: center; gap: 16px; color: #fff; font-weight: 500; }
.match-row__side--home { justify-content: flex-end; text-align: right; }
.match-row__side--away { justify-content: flex-start; text-align: left; }
.match-row__side img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.match-row__side:hover { color: #00BFFF; }
.match-row__vs { color: #555; font-size: 22px; }

@media (max-width: 700px) {
  .match-row { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .match-row__side--home, .match-row__side--away { justify-content: center; text-align: center; }
}

/* --- roster --- */
.roster-group-title { font-size: 15px; color: #999; margin: 24px 0 12px; font-weight: 400; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.roster-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  font-size: 15px;
  transition: border-color 0.15s, transform 0.15s;
}
.roster-card:hover { border-color: rgba(0,191,255,0.4); transform: translateY(-2px); }
.roster-card img, .roster-card__noimg {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; display: block;
  background: rgba(255,255,255,0.08);
}
.roster-card span { color: #fff; font-weight: 500; }

/* --- birthdays --- */
.birthday-section { margin-bottom: 56px; }
.birthday-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.birthday-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 10px 24px 10px 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.birthday-card:hover { border-color: rgba(0,191,255,0.4); transform: translateY(-2px); }
.birthday-card img, .birthday-card__noimg {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,0.08); flex-shrink: 0;
}
.birthday-card__name-first { color: #fff; font-size: 17px; font-weight: 500; line-height: 1.25; }
.birthday-card__name-last { color: #fff; font-size: 17px; font-weight: 500; line-height: 1.25; }
.birthday-card__meta { color: #00BFFF; font-size: 13px; margin-top: 2px; }


/* --- player detail --- */
.roster-card { display: block; }

.player-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; }
.player-hero__photo, .player-hero__noimg {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,0.08); flex-shrink: 0;
}
.player-hero h1 { font-size: 28px; margin-bottom: 10px; }
.player-hero__meta { display: flex; align-items: center; gap: 16px; color: #999; font-size: 14px; flex-wrap: wrap; }
.player-hero__number { color: #00BFFF; font-weight: 700; font-size: 16px; }
.player-hero__club { display: flex; align-items: center; gap: 8px; color: #ccc; }
.player-hero__club img { width: 22px; height: 22px; object-fit: contain; }
.player-hero__club:hover { color: #00BFFF; }

.player-info-section { margin-bottom: 48px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.info-card__label { color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.info-card__value { color: #fff; font-size: 18px; font-weight: 500; }

.stats-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.stats-table th, .stats-table td { padding: 14px 16px; text-align: center; font-size: 14px; }
.stats-table th { color: #888; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,0.08); }
.stats-table td:first-child, .stats-table th:first-child { text-align: left; color: #fff; font-weight: 500; }
.stats-table tbody tr + tr td { border-top: 1px solid rgba(255,255,255,0.06); }

/* --- season stats table --- */
.season-stats-table th, .season-stats-table td { font-size: 13px; padding: 10px 14px; }
.season-stats-table td:nth-child(3) a { color: #ccc; }
.season-stats-table td:nth-child(3) a:hover { color: #00BFFF; }

.feed-thumb { position: relative; overflow: hidden; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }

/* --- Видео-карусели (КХЛ / клубы) --- */
.video-section {
  margin: 32px 0;
}

.video-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-row {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
}

.video-card {
  flex: 0 0 calc((100% - 16px * 5) / 6);
  min-width: 160px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg, #fff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.video-card:hover {
  transform: translateY(-2px);
}

.video-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
  overflow: hidden;
}

.video-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__noimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333, #555);
}

.video-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  padding: 8px 10px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: 12px;
  color: #888;
  padding: 0 10px 10px;
}

@media (max-width: 900px) {
  .video-card {
    flex: 0 0 calc((100% - 16px * 2) / 3);
  }
}

@media (max-width: 560px) {
  .video-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

/* --- Видео-карусели: увеличенный размер (4 в ряд) + click-to-play --- */
.video-card {
  flex: 0 0 calc((100% - 16px * 3) / 4);
  min-width: 220px;
}

.video-card__thumb {
  cursor: pointer;
}

.video-card__thumb iframe {
  border: 0;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: none;
}

.video-card__title {
  font-size: 15px;
}

@media (max-width: 900px) {
  .video-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 560px) {
  .video-card {
    flex: 0 0 100%;
  }
}

/* --- Читаемость заголовков видео-карточек --- */
.video-card__title {
  color: #111;
  font-weight: 700;
}

/* --- Читаемость заголовков видео-карточек --- */
.video-card__title {
  color: #111;
  font-weight: 700;
}

/* --- video-card__title теперь ссылка на SEO-страницу видео --- */
.video-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.video-card__title:hover {
  text-decoration: underline;
}

/* --- Видео клуба: статичная сетка 3 в ряд --- */
.club-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 560px) {
  .club-video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Хлебные крошки --- */
.breadcrumbs {
  font-size: 13px;
  color: #888;
  margin: 16px 0;
}

.breadcrumbs a {
  color: #888;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs__sep {
  margin: 0 6px;
}

.breadcrumbs__current {
  color: #333;
}

/* --- Страница видео --- */
.video-detail {
  max-width: 900px;
  margin: 0 auto 40px;
}

.video-detail h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.video-detail__player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-detail__player iframe,
.video-detail__player img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-detail__meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
}

.video-detail__meta a {
  color: inherit;
}

.video-detail__desc {
  font-size: 15px;
  line-height: 1.5;
}


/* --- players list --- */
.players-list-section { margin-bottom: 56px; }
.players-list-section h1 { font-size: 26px; margin-bottom: 24px; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.player-list-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.player-list-card:hover { border-color: rgba(0,191,255,0.4); transform: translateY(-2px); }
.player-list-card img, .player-list-card__noimg {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,0.08); margin-bottom: 12px;
}
.player-list-card__name { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }
.player-list-card__club { color: #00BFFF; font-size: 12px; margin-top: 4px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.pagination a { color: #00BFFF; text-decoration: none; font-weight: 600; }
.pagination a:hover { text-decoration: underline; }
.pagination__current { color: #999; font-size: 14px; }
