
/* ============================================================
   MATCH CENTER (single-match.php)
   ============================================================ */

/* ── MATCH HERO ── */
.match-hero { background: var(--wings-dark); padding: 0; position: relative; overflow: hidden; }
.match-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233,78,27,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(12,51,115,.12) 0%, transparent 60%);
}

/* Meta Bar */
.match-meta-bar { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); position: relative; }
.match-meta-bar .container { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.competition-badge { font-family: var(--font-body); font-weight: 800; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 12px; border-radius: 4px; display: inline-flex; align-items: center; gap: .3rem; }
.competition-badge.dbbl { background: rgba(233,78,27,.15); color: var(--wings-accent); }
.competition-badge.pokal { background: rgba(255,193,7,.15); color: #f59e0b; }
.competition-badge.regio { background: rgba(34,197,94,.15); color: #22c55e; }
.match-meta-text { font-size: .75rem; color: rgba(255,255,255,.4); }

/* Scoreboard */
.mc-scoreboard { padding: 2rem 0 2.5rem; position: relative; }
.mc-scoreboard .container { display: flex; align-items: center; justify-content: center; gap: 0; }

.team-block { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 280px; }
.team-logo { width: 80px; height: 80px; border-radius: 16px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; padding: 10px; transition: transform .3s; }
.team-logo:hover { transform: scale(1.05); }
.team-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.match-hero .team-name { font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: #fff; text-align: center; line-height: 1.2; }
.match-hero .team-name small { display: block; font-weight: 400; font-size: .7rem; color: rgba(255,255,255,.35); margin-top: .15rem; }

.score-center { width: 220px; flex-shrink: 0; text-align: center; padding: 0 1rem; }
.score-digits { font-family: var(--font-body); font-weight: 900; font-size: 3.5rem; color: #fff; line-height: 1; letter-spacing: -.02em; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.score-digits .score-divider { font-size: 2rem; color: rgba(255,255,255,.2); font-weight: 300; }

.tipoff-time { font-family: var(--font-body); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.tipoff-time small { display: block; font-size: .7rem; font-weight: 600; color: var(--wings-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }

.result-badge { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 4px; margin-top: .5rem; }
.result-badge.win { background: rgba(34,197,94,.15); color: #22c55e; }
.result-badge.loss { background: rgba(239,68,68,.15); color: #ef4444; }

.live-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 4px; background: rgba(239,68,68,.15); color: #ef4444; animation: live-pulse 2s ease-in-out infinite; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ── QUARTER SCORES ── */
.quarters-bar { background: rgba(255,255,255,.03); border-top: 1px solid rgba(255,255,255,.06); padding: .75rem 0; position: relative; }
.quarters-table { width: 100%; max-width: 500px; margin: 0 auto; border-collapse: collapse; }
.quarters-table th, .quarters-table td { text-align: center; padding: .3rem .5rem; font-size: .72rem; color: rgba(255,255,255,.4); }
.quarters-table th { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .6rem; }
.quarters-table td { font-weight: 700; }
.quarters-table .team-row td { color: rgba(255,255,255,.7); }
.quarters-table .team-row td.q-final { color: #fff; font-weight: 800; font-size: .8rem; }
.quarters-table .team-row td.q-won { color: var(--wings-accent); }
.quarters-table .team-row td.q-won.q-final { color: var(--wings-accent); font-size: .8rem; }
.quarters-table .q-label { text-align: left; font-weight: 600; color: rgba(255,255,255,.5); font-size: .7rem; width: 100px; }

/* ── CONTENT AREA ── */
.match-content { padding: 2rem 0 3rem; }
.section-label { font-family: var(--font-headline); font-size: 1rem; color: var(--wings-primary); text-transform: uppercase; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--wings-accent); display: inline-block; }

/* Video */
.video-section { margin-bottom: 2rem; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-consent { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: var(--wings-dark); }
.video-consent .consent-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 2rem; text-align: center; }
.video-consent .consent-icon { font-size: 2.5rem; color: rgba(255,255,255,.2); }
.video-consent .consent-text { font-size: .8rem; color: rgba(255,255,255,.5); max-width: 400px; line-height: 1.5; }
.video-consent .consent-text a { color: rgba(255,255,255,.7); }
.video-consent .btn-consent { background: var(--wings-accent); color: #fff; font-weight: 700; font-size: .8rem; border: none; border-radius: 6px; padding: 8px 20px; cursor: pointer; transition: background .2s; }
.video-consent .btn-consent:hover { background: var(--wings-accent-hover); }

/* Match Info Cards */
.match-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 2rem; }
.match-info-item { background: #fff; border: 1px solid #f0f1f3; border-radius: 10px; padding: 1rem; text-align: center; }
.match-info-item .info-label { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9CA3AF; margin-bottom: .3rem; }
.match-info-item .info-value { font-weight: 700; font-size: .85rem; color: var(--wings-dark); }
.match-info-item .info-icon { color: var(--wings-accent); font-size: .9rem; margin-bottom: .3rem; }

/* Boxscore Card */
.boxscore-card { background: #fff; border: 1px solid #f0f1f3; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.match-content .boxscore-header { background: var(--wings-dark); padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-radius: 0; }
.match-content .boxscore-header h3 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .85rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.team-mini-logo { width: 22px; height: 22px; border-radius: 4px; background: rgba(255,255,255,.1); padding: 2px; display: inline-flex; align-items: center; justify-content: center; }
.team-mini-logo img { max-width: 100%; max-height: 100%; }
.match-content .boxscore-score { color: var(--wings-accent); font-weight: 800; font-size: .9rem; }

.match-content .boxscore-table { width: 100%; border-collapse: collapse; font-size: .75rem; table-layout: fixed; }
.match-content .boxscore-table thead th { background: #f8f9fb; font-weight: 700; color: #6B7280; text-transform: uppercase; font-size: .6rem; letter-spacing: .04em; padding: .5rem .4rem; text-align: center; border-bottom: 1px solid #f0f1f3; }
.match-content .boxscore-table thead th:first-child { text-align: left; padding-left: 1rem; }
.match-content .boxscore-table tbody td { padding: .45rem .4rem; text-align: center; border-bottom: 1px solid #f8f9fb; color: #374151; vertical-align: top; }
.match-content .boxscore-table tbody td:first-child { text-align: left; padding-left: 1rem; font-weight: 600; color: var(--wings-dark); word-break: break-word; }
.match-content .boxscore-table tbody td .player-nr { color: #9CA3AF; font-weight: 400; margin-right: .3rem; font-size: .65rem; }
.match-content .boxscore-table tbody tr.is-starter td:first-child { color: var(--wings-accent); }
.match-content .boxscore-table tbody tr:last-child td { border-bottom: none; }
.match-content .boxscore-table tfoot td { padding: .5rem .4rem; text-align: center; font-weight: 800; color: var(--wings-dark); border-top: 2px solid var(--wings-dark); font-size: .75rem; }
.match-content .boxscore-table tfoot td:first-child { text-align: left; padding-left: 1rem; }

/* Venue */
.venue-compact { background: #fff; border: 1px solid #f0f1f3; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.venue-compact .vc-header { background: var(--wings-dark); padding: .75rem 1.25rem; display: flex; align-items: center; gap: .6rem; }
.venue-compact .vc-header h3 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .85rem; margin: 0; }
.venue-compact .vc-header i { color: var(--wings-accent); }
.venue-compact .vc-body { padding: 1rem 1.25rem; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.vc-detail { display: flex; gap: .5rem; align-items: flex-start; flex: 1; min-width: 180px; }
.vc-detail i { color: var(--wings-primary); margin-top: 2px; flex-shrink: 0; }
.vc-detail .vc-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #9CA3AF; }
.vc-detail .vc-value { font-size: .8rem; font-weight: 600; color: var(--wings-dark); line-height: 1.4; }
.vc-detail .vc-value a { font-weight: 700; }

/* Related Articles */
.articles-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.article-link-card { background: #fff; border: 1px solid #f0f1f3; border-radius: 10px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; transition: all .2s; text-decoration: none !important; }
.article-link-card:hover { border-color: var(--wings-accent); box-shadow: 0 4px 16px rgba(233,78,27,.08); transform: translateY(-2px); }
.article-link-card .article-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.article-icon.vorbericht { background: rgba(12,51,115,.08); color: var(--wings-primary); }
.article-icon.spielbericht { background: rgba(233,78,27,.08); color: var(--wings-accent); }
.article-link-card .article-type { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9CA3AF; }
.article-link-card .article-title { font-weight: 700; font-size: .85rem; color: var(--wings-dark); line-height: 1.3; }
.article-link-card .article-arrow { margin-left: auto; color: #D1D5DB; font-size: 1rem; flex-shrink: 0; transition: color .2s; }
.article-link-card:hover .article-arrow { color: var(--wings-accent); }

/* Scouting Links */
.scouting-bar { display: flex; gap: .5rem; flex-wrap: wrap; }
.scouting-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: 6px 14px; border-radius: 6px; background: var(--wings-light); color: var(--wings-primary); transition: all .2s; }
.scouting-link:hover { background: var(--wings-primary); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .mc-scoreboard .container { flex-wrap: wrap; }
  .team-block { max-width: 140px; }
  .team-logo { width: 56px; height: 56px; border-radius: 12px; padding: 8px; }
  .match-hero .team-name { font-size: .75rem; }
  .score-center { width: 100%; order: -1; margin-bottom: .5rem; }
  .score-digits { font-size: 2.5rem; }
  .tipoff-time { font-size: 1.5rem; }
  .quarters-table { font-size: .65rem; }
  .match-info-grid { grid-template-columns: 1fr 1fr; }
  .articles-row { grid-template-columns: 1fr; }
  .venue-compact .vc-body { flex-direction: column; gap: .75rem; }
  .vc-detail { min-width: unset; }
  .match-content .boxscore-table { font-size: .65rem; }
  .match-content .boxscore-table thead th,
  .match-content .boxscore-table tbody td,
  .match-content .boxscore-table tfoot td { padding: .35rem .25rem; }
}
@media (max-width: 575px) {
  .match-info-grid { grid-template-columns: 1fr 1fr; }
}
