/* ===========================================================
   BVB Fan Site — общий стиль
   Цвета клуба: жёлтый (#FDE100) и чёрный (#000000)
   =========================================================== */

:root{
  --bvb-yellow: #FDE100;
  --bvb-yellow-dark: #E5C800;
  --bvb-black: #0A0A0A;
  --bvb-black-soft: #161616;
  --bvb-grey: #1f1f1f;
  --bvb-grey-light: #2b2b2b;
  --text-main: #f2f2f2;
  --text-muted: #b7b7b7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --transition: .25s ease;
  --max-width: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bvb-black);
  color:var(--text-main);
  line-height:1.6;
}

img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Топ-полоса ---------- */
.top-bar{
  background:var(--bvb-yellow);
  color:var(--bvb-black);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-align:center;
  padding:6px 10px;
}

/* ---------- Header / Навигация ---------- */
header.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,10,10,.92);
  backdrop-filter:blur(8px);
  border-bottom:2px solid var(--bvb-yellow);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  max-width:var(--max-width);
  margin:0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:.02em;
}

.brand small{
  display:block;
  font-weight:400;
  font-size:.65rem;
  color:var(--text-muted);
  letter-spacing:.08em;
}

.crest{
  width:44px;
  height:44px;
  flex-shrink:0;
}

nav.main-nav ul{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}

nav.main-nav a{
  display:block;
  padding:10px 14px;
  font-size:.92rem;
  font-weight:600;
  border-radius:8px;
  color:var(--text-main);
  transition:background var(--transition), color var(--transition);
}

nav.main-nav a:hover,
nav.main-nav a.active{
  background:var(--bvb-yellow);
  color:var(--bvb-black);
}

.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.burger span{
  width:26px;
  height:3px;
  background:var(--bvb-yellow);
  border-radius:2px;
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:70px 0 60px;
  background:
    radial-gradient(circle at 15% 20%, rgba(253,225,0,.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(253,225,0,.08), transparent 40%),
    linear-gradient(180deg, #000 0%, #111 100%);
  overflow:hidden;
  border-bottom:1px solid var(--bvb-grey-light);
}

.hero-stripes{
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(
    115deg,
    rgba(253,225,0,.05) 0 18px,
    transparent 18px 60px
  );
  pointer-events:none;
}

.hero .container{position:relative; z-index:1;}

.hero h1{
  font-size:clamp(2rem, 5vw, 3.4rem);
  margin:0 0 14px;
  line-height:1.1;
}
.hero h1 span{color:var(--bvb-yellow);}

.hero p.lead{
  max-width:640px;
  color:var(--text-muted);
  font-size:1.08rem;
  margin-bottom:26px;
}

.btn{
  display:inline-block;
  padding:12px 24px;
  border-radius:999px;
  font-weight:700;
  background:var(--bvb-yellow);
  color:var(--bvb-black);
  transition:transform var(--transition), box-shadow var(--transition);
  border:2px solid var(--bvb-yellow);
}
.btn:hover{transform:translateY(-2px); box-shadow:0 8px 22px rgba(253,225,0,.25);}
.btn.outline{
  background:transparent;
  color:var(--bvb-yellow);
}

/* ---------- Секции ---------- */
section{
  padding:56px 0;
}
section.alt{background:var(--bvb-black-soft);}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.section-head h2{
  font-size:clamp(1.5rem, 3vw, 2.1rem);
  margin:0;
  position:relative;
  padding-left:16px;
  border-left:5px solid var(--bvb-yellow);
}

.section-head .sub{color:var(--text-muted); font-size:.95rem;}

.link-more{
  font-weight:700;
  color:var(--bvb-yellow);
  white-space:nowrap;
}
.link-more:hover{text-decoration:underline;}

/* ---------- Карточки (общие) ---------- */
.grid{
  display:grid;
  gap:22px;
}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.grid.cols-4{grid-template-columns:repeat(4,1fr);}
.grid.cols-2{grid-template-columns:repeat(2,1fr);}

.card{
  background:var(--bvb-grey);
  border:1px solid var(--bvb-grey-light);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow);
  border-color:var(--bvb-yellow);
}

.card .card-media{
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#000 0%,#222 60%, #000 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.card .card-body{padding:18px 20px;}
.card h3{margin:0 0 8px; font-size:1.05rem;}
.card p{margin:0; color:var(--text-muted); font-size:.92rem;}

.tag{
  display:inline-block;
  background:var(--bvb-yellow);
  color:var(--bvb-black);
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.tag.grey{background:var(--bvb-grey-light); color:var(--text-main);}

/* ---------- Новости ---------- */
.news-card .card-media .placeholder-icon{width:46px; height:46px; opacity:.55;}
.news-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:.75rem; color:var(--text-muted); margin-top:10px;
}

/* ---------- Ближайшие / прошедшие матчи ---------- */
.match-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
}
.match-teams{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
}
.team{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:110px;
  text-align:center;
  font-weight:700;
  font-size:.85rem;
}
.team .dot{
  width:38px; height:38px; border-radius:50%;
  background:var(--bvb-grey-light);
  display:flex; align-items:center; justify-content:center;
  font-size:.7rem; font-weight:800; color:var(--bvb-yellow);
  border:2px solid var(--bvb-yellow);
}
.vs{
  font-weight:800;
  color:var(--text-muted);
  font-size:.85rem;
}
.score{
  font-size:1.4rem;
  font-weight:800;
  color:var(--bvb-yellow);
  min-width:70px;
  text-align:center;
}
.match-meta{
  font-size:.78rem;
  color:var(--text-muted);
  text-align:right;
  min-width:120px;
}

/* ---------- Таблица ---------- */
table{
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
}
th,td{
  padding:10px 12px;
  border-bottom:1px solid var(--bvb-grey-light);
  text-align:center;
}
th{
  background:var(--bvb-grey);
  color:var(--bvb-yellow);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
td:first-child, th:first-child{text-align:left;}
tr.highlight td{background:rgba(253,225,0,.08); font-weight:700;}
.table-wrap{overflow-x:auto; border-radius:var(--radius); border:1px solid var(--bvb-grey-light);}

/* ---------- Таймлайн (история / достижения) ---------- */
.timeline{
  position:relative;
  margin-left:20px;
  padding-left:30px;
  border-left:3px solid var(--bvb-yellow);
}
.timeline-item{
  position:relative;
  padding-bottom:34px;
}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item::before{
  content:"";
  position:absolute;
  left:-40px;
  top:2px;
  width:16px; height:16px;
  background:var(--bvb-yellow);
  border-radius:50%;
  border:3px solid var(--bvb-black);
  box-shadow:0 0 0 2px var(--bvb-yellow);
}
.timeline-year{
  font-weight:800;
  color:var(--bvb-yellow);
  font-size:1.1rem;
}
.timeline-item p{color:var(--text-muted); margin:6px 0 0;}

/* ---------- Игроки ---------- */
.player-card .card-media{
  background:linear-gradient(160deg,#000, #262100 130%);
  aspect-ratio:5/7;
  overflow:hidden;
}
.player-card .card-media img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}
.player-number{
  position:absolute; top:10px; left:10px;
  font-size:2.1rem; font-weight:900; color:var(--bvb-yellow);
  opacity:.85;
  text-shadow:0 2px 8px rgba(0,0,0,.8);
}
.player-position{
  position:absolute; bottom:10px; right:10px;
  background:var(--bvb-yellow); color:var(--bvb-black);
  font-size:.68rem; font-weight:800; padding:3px 9px; border-radius:999px;
  text-transform:uppercase;
}
.player-card .card-media{position:relative;}
.staff-card .card-media{
  aspect-ratio:5/7;
  overflow:hidden;
  background:linear-gradient(160deg,#000, #1a1a1a 130%);
}
.staff-card .card-media img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:top center;
}
.player-stats{
  display:flex; gap:14px; margin-top:10px; font-size:.82rem; color:var(--text-muted);
}
.player-stats b{color:var(--text-main); display:block; font-size:1rem;}

.filter-bar{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px;
}
.filter-btn{
  padding:8px 16px; border-radius:999px; border:1px solid var(--bvb-grey-light);
  background:var(--bvb-grey); font-size:.85rem; font-weight:600; cursor:pointer;
  color:var(--text-main); transition:all var(--transition);
}
.filter-btn:hover, .filter-btn.active{
  background:var(--bvb-yellow); color:var(--bvb-black); border-color:var(--bvb-yellow);
}

/* ---------- Статистика (числа) ---------- */
.stats-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  text-align:center;
}
.stat{
  background:var(--bvb-grey);
  border:1px solid var(--bvb-grey-light);
  border-radius:var(--radius);
  padding:26px 12px;
}
.stat .num{
  font-size:2.1rem; font-weight:900; color:var(--bvb-yellow); display:block;
}
.stat .label{font-size:.8rem; color:var(--text-muted); margin-top:4px;}

/* ---------- Стадион ---------- */
.stadium-fact{
  display:flex; align-items:flex-start; gap:14px; padding:16px 0;
  border-bottom:1px solid var(--bvb-grey-light);
}
.stadium-fact:last-child{border-bottom:none;}
.stadium-fact .icon{
  width:40px; height:40px; flex-shrink:0; color:var(--bvb-yellow);
}
.stadium-fact h4{margin:0 0 4px;}
.stadium-fact p{margin:0; color:var(--text-muted); font-size:.9rem;}

/* ---------- Форма клуба (WWDLW) ---------- */
.form-row{display:flex; gap:8px;}
.form-pill{
  width:32px; height:32px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.8rem; color:var(--bvb-black);
}
.form-pill.W{background:#3ddc84;}
.form-pill.D{background:#c9c9c9;}
.form-pill.L{background:#ff6161;}

/* ---------- Футер ---------- */
footer.site-footer{
  border-top:2px solid var(--bvb-yellow);
  background:var(--bvb-black-soft);
  padding:40px 0 24px;
  margin-top:40px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
  margin-bottom:24px;
}
.footer-grid h5{
  color:var(--bvb-yellow);
  margin:0 0 12px;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.footer-grid a, .footer-grid li{
  color:var(--text-muted);
  font-size:.88rem;
  margin-bottom:8px;
  display:block;
}
.footer-grid a:hover{color:var(--bvb-yellow);}
.disclaimer{
  font-size:.78rem;
  color:#777;
  border-top:1px solid var(--bvb-grey-light);
  padding-top:16px;
  text-align:center;
}

/* ---------- Анимации при появлении ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* ---------- Страничный заголовок (для внутренних страниц) ---------- */
.page-hero{
  padding:50px 0 34px;
  background:linear-gradient(180deg, #000, #121200 250%);
  border-bottom:1px solid var(--bvb-grey-light);
}
.breadcrumb{
  font-size:.8rem; color:var(--text-muted); margin-bottom:10px;
}
.breadcrumb a{color:var(--bvb-yellow);}
.page-hero h1{margin:0; font-size:clamp(1.7rem,4vw,2.6rem);}
.page-hero p{color:var(--text-muted); max-width:680px; margin-top:10px;}

/* ---------- Утилиты ---------- */
.mt-0{margin-top:0;}
.text-center{text-align:center;}
.badge-live{
  display:inline-flex; align-items:center; gap:6px;
  background:#ff3d3d1a; color:#ff5c5c; border:1px solid #ff5c5c;
  padding:3px 10px; border-radius:999px; font-size:.7rem; font-weight:800;
}
.badge-live .blink{
  width:7px; height:7px; border-radius:50%; background:#ff5c5c;
  animation:blink 1.2s infinite;
}
@keyframes blink{50%{opacity:.2;}}

/* ---------- Адаптив ---------- */
@media (max-width: 980px){
  .grid.cols-4{grid-template-columns:repeat(2,1fr);}
  .grid.cols-3{grid-template-columns:repeat(2,1fr);}
  .stats-strip{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width: 760px){
  .burger{display:flex;}
  nav.main-nav{
    position:fixed;
    top:70px; left:0; right:0;
    background:var(--bvb-black-soft);
    border-bottom:2px solid var(--bvb-yellow);
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
  }
  nav.main-nav.open{max-height:520px;}
  nav.main-nav ul{flex-direction:column; padding:10px 20px 20px;}
  nav.main-nav a{padding:12px 8px;}

  .grid.cols-4, .grid.cols-3, .grid.cols-2{grid-template-columns:1fr;}
  .stats-strip{grid-template-columns:1fr 1fr;}
  .match-card{flex-direction:column; align-items:stretch;}
  .match-meta{text-align:left;}
  .footer-grid{grid-template-columns:1fr;}
}
