/* ==========================================================================
   1. DESIGN SYSTEM & FONTE (OPTIMERET KONTRAST)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,900;1,900&family=Inter:wght@400;600;800&display=swap");

:root {
  --bg-dark: #090d16;          
  --bg-surface: #161f33;       
  --bg-surface-hover: #1e2b47; 
  --border-color: rgba(255, 255, 255, 0.08); 
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --text-main: #ffffff;        
  --text-muted: #8ba2c4;       
  --accent-ice: #00f0ff;       
  --accent-neon: #00ff66;      
  
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

#matchesCol a:link, #newsHM a:link { 
  color: var(--accent-ice); 
}

/* ==========================================================================
   2. TOP NAVIGATION
   ========================================================================== */
.top-navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  
  /* REGLER FOR RESPONSIV HØJDE */
  min-height: 65px; /* Sørger for den er mindst 65px på computeren */
  height: auto;     /* Tillader baren at vokse automatisk på mobilen */
  
  display: flex;
  align-items: center;
  padding: 5px 0;   /* En lille smule luft i top/bund på mobilen */
}

.nav-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  flex-direction: row;  
  align-items: center;  
  gap: 12px;            
}

.nav-brand h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  margin: 0;
  padding: 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
}

.nav-brand h1 span {
  color: var(--accent-ice);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.nav-brand .logo {
  height: 32px !important;
  width: 32px !important;
  object-fit: contain;
  margin: 0;
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.nav-item a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  padding: 8px 0;
  display: block;
}

.nav-item a i {
  display: none; 
}

.nav-item a:hover, .nav-item.active a {
  color: var(--accent-ice);
  transform: scale(1.02) skewX(-5deg);
}

/* ==========================================================================
   3. MATCH TICKER
   ========================================================================== */
.match-ticker-bar {
  background-color: #0a0f18;
  border-bottom: 2px solid var(--accent-ice);
  height: 90px; 
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.05);
}

.ticker-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.ticker-label {
  font-family: var(--font-display);
  font-size: 1.1rem; 
  font-weight: 900;
  font-style: italic;
  background-color: var(--accent-ice);
  color: #000;
  padding: 6px 15px; 
  transform: skewX(-15deg);
  margin-right: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}

.ticker-scroll {
  display: flex;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  align-items: center;
  white-space: nowrap; 
  -webkit-overflow-scrolling: touch; 
}
.ticker-scroll::-webkit-scrollbar { 
  display: none; 
}

.ticker-match-card {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 8px 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-shrink: 0; 
}

#matchesCol {
  cursor: grab;
}
#matchesCol:active {
  cursor: grabbing;
}

.ticker-teams-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-club-logo {
  height: 24px !important; 
  width: 24px !important;
  object-fit: contain;
}

.ticker-team-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}

.ticker-vs {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 700;
}

.ticker-date {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-ice);
}

/* ==========================================================================
   4. HOVED LAYOUT & MAGASIN SPLIT
   ========================================================================== */
.page-wrapper.main-layout-wide {
  max-width: 1600px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 35px;
  align-items: start;
  width: 100%;
}

.primary-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.secondary-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent-ice);
  margin-top: 5px;
  transform: skewX(-15deg);
}

/* ==========================================================================
   5. BENTO HIGHLIGHTS GRID 
   ========================================================================== */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, #06090fff 0%, #06090f55 60%, transparent 100%);
  z-index: 1;
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  padding-bottom: 25px; 
  z-index: 5;
}

.card-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.bento-card.large-hero {
  grid-column: span 2;
  grid-row: span 2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
}

.bento-card.large-hero .card-text {
  padding: 30px;
  padding-bottom: 40px; 
}

.bento-card.large-hero .card-text h3 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: -4px 4px 0px var(--accent-ice);
}

.bento-card:hover img {
  transform: scale(1.03);
}

.bento-card:hover h3 {
  color: var(--accent-ice);
}

/* ==========================================================================
   6. SIDEBAR COMPONENTEN
   ========================================================================== */
.live-status-card {
  background-color: var(--bg-surface);
  padding: 20px;
  margin-bottom: 25px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  border-left: 4px solid var(--accent-ice);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.circular-progress {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: conic-gradient(var(--accent-ice) var(--i), rgba(255, 255, 255, 0.05) var(--i));
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: var(--bg-surface);
  border-radius: 50%;
}

#percentText {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
  font-style: italic;
}

.status-info-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  margin-top: 10px;
}

.status-info-row p span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.status-info-row p strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-ice);
}

.sidebar-promo-box {
  background: linear-gradient(135deg, #121b2b 0%, var(--bg-surface) 100%);
  padding: 20px;
  margin-bottom: 30px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  border-right: 3px solid var(--accent-neon);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.promo-mini-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-neon);
  font-style: italic;
  font-weight: 900;
}

.sidebar-promo-box h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  margin: 3px 0;
}

.sidebar-promo-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.promo-link-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 900;
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  display: inline-block;
}

.sidebar-block {
  margin-bottom: 30px;
}

.section-header-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.sidebar-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-news-tile {
  padding: 15px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(8px) 100%, 0 100%);
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.mini-news-tile span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--text-muted);
  font-style: italic;
}

.mini-news-tile p {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}

.mini-news-tile:hover {
  background-color: var(--bg-surface-hover);
  transform: translateX(-2px);
}

.mini-news-tile:hover p {
  color: var(--accent-ice);
}

/* ==========================================================================
   7. WIDESCREEN LIGA STATISTIKKER
   ========================================================================== */
.stats-section-wide {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stats-wide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-cyber-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 30px 15px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  color: var(--text-muted);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-ice);
  margin: 0;
  font-style: italic;
}

.stat-footer {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   8. BUND FOOTER & LOGO-STØRRELSER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 25px 0;
  margin-top: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.p24-inline-logo {
  height: 14px !important;
  width: auto !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo-small {
  height: 25px !important;
  width: 25px !important;
  object-fit: contain;
  opacity: 0.1;
  filter: invert(1);
}

.ext-source img {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVET)
   ========================================================================== */
@media (max-width: 1100px) {
  .magazine-grid {
    grid-template-columns: 100%;
  }
  .stats-wide-grid {
    grid-template-columns: 100%;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .page-wrapper.main-layout-wide {
    padding: 0 10px;
    margin: 15px auto;
  }
  .grid-bento {
    grid-template-columns: 100%;
    grid-auto-rows: auto;
  }
  .bento-card.large-hero {
    grid-column: span 1;
    grid-row: span 1;
    height: 320px; 
  }
  .bento-card {
    height: 180px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==========================================================================
   10. DOPS CYBER TABLE STYLING
   ========================================================================== */
.dops-table-container {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  overflow-x: auto; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.cyber-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: 0.5px;
}

.cyber-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.cyber-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.table-date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
}

.table-player {
  color: var(--text-main);
  font-size: 1rem;
}

.badge-days {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  background: rgba(255, 0, 85, 0.1);
  color: #ff0055;
  border: 1px solid rgba(255, 0, 85, 0.2);
  padding: 3px 10px;
  transform: skewX(-10deg);
  display: inline-block;
}

.table-action-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap; 
  display: inline-block;
}

.dom-link {
  color: var(--accent-ice);
}

.video-link {
  color: var(--accent-neon);
}

.dom-link:hover, .video-link:hover {
  text-decoration: underline;
  opacity: 0.8;
  transform: scale(1.02);
}

.table-text-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cyber-table th, .cyber-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
  .badge-days {
    font-size: 0.8rem;
    padding: 2px 6px;
  }
}

/* ==========================================================================
   11. ARCHIVE SPECIFIC CYBER STYLING
   ========================================================================== */
.archive-search-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-bottom: 30px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-flex-form {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  width: 100%;
}

.select-wrapper {
  flex: 1;
  position: relative;
}

.cyber-select {
  width: 100%;
  background-color: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none; 
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238ba2c4' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
}

.cyber-select:focus {
  border-color: var(--accent-ice);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.cyber-select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.cyber-btn-submit {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  background-color: var(--accent-ice);
  color: #000;
  border: none;
  padding: 11px 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: skewX(-10deg);
  letter-spacing: 0.5px;
}

.cyber-btn-submit:hover {
  background-color: var(--text-main);
  box-shadow: 0 0 15px var(--accent-ice);
  transform: skewX(-10deg) scale(1.02);
}

.badge-result {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-ice);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2px 10px;
  display: inline-block;
}

.table-text-center {
  text-align: center !important;
  color: var(--text-muted);
  padding: 40px !important;
  font-style: italic;
}

.text-warning {
  color: #ffcc00 !important;
}

@media (max-width: 768px) {
  .search-flex-form {
    flex-direction: column;
    align-items: stretch;
  }
  .cyber-btn-submit {
    transform: none;
  }
  .cyber-btn-submit:hover {
    transform: scale(1.01);
  }
}

/* ==========================================================================
   12. KAMP-LISTE SPECIFIK STYLING
   ========================================================================== */
.table-status-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  display: inline-block;
  transform: skewX(-10deg);
}

/* ==========================================================================
   13. ARCHIVE SORTERING & HIGHLIGHT STYLING
   ========================================================================== */
.archive-controls-bar {
  background-color: #0e1626;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-ice);
  padding: 15px 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: italic;
}

.cyber-select-mini {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.cyber-select-mini:focus {
  border-color: var(--accent-ice);
}

.cyber-table tbody tr.row-highlight-win {
  background-color: rgba(0, 255, 102, 0.06) !important; 
}
.cyber-table tbody tr.row-highlight-win td {
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
}
.cyber-table tbody tr.row-highlight-win .badge-result {
  background: rgba(0, 255, 102, 0.15);
  color: var(--accent-neon);
  border-color: rgba(0, 255, 102, 0.3);
}

.cyber-table tbody tr.row-highlight-loss {
  background-color: rgba(255, 0, 85, 0.05) !important; 
}
.cyber-table tbody tr.row-highlight-loss td {
  border-bottom: 1px solid rgba(255, 0, 85, 0.15);
}
.cyber-table tbody tr.row-highlight-loss .badge-result {
  background: rgba(255, 0, 85, 0.15);
  color: #ff0055;
  border-color: rgba(255, 0, 85, 0.3);
}

.cyber-table tbody tr.row-highlight-draw {
  background-color: rgba(255, 204, 0, 0.04) !important; 
}

@media (max-width: 768px) {
  .archive-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
  }
  .control-group {
    justify-content: space-between;
  }
}

/* ==========================================================================
   14. CYBER PAGINATION STYLING
   ========================================================================== */
.cyber-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 10px;
  background-color: #0e1626;
  border: 1px solid var(--border-color);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.pagination-btn {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  background-color: rgba(0, 212, 255, 0.05);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #222;
}

.pagination-info {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   15. MATCH PAGE SPECIFIC STYLING (SCOREBOARD & EVENTS)
   ========================================================================== */
.match-scoreboard-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 30px;
  margin-bottom: 35px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border-left: 4px solid var(--accent-ice);
}

.scoreboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.match-meta-info {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.match-status-pill {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  padding: 4px 15px;
  background-color: #ff0055; 
  color: #fff;
  transform: skewX(-12deg);
}

.match-status-pill.live-pulse {
  animation: cyberBlink 1.5s infinite alternate;
  box-shadow: 0 0 10px #ff0055;
}

@keyframes cyberBlink {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.scoreboard-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
}

.scoreboard-team {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
}

.scoreboard-team.home {
  justify-content: flex-start;
}

.scoreboard-team.away {
  justify-content: flex-end;
  text-align: right;
}

.scoreboard-team h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scoreboard-logo {
  height: 65px !important;
  width: 65px !important;
  object-fit: contain;
}

.scoreboard-score-wrapper {
  text-align: center;
  padding: 0 40px;
}

.cyber-score {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--accent-ice);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.match-period-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 600;
}

.match-details-section {
  margin-top: 40px;
}

.text-right {
  text-align: right !important;
}

@media (max-width: 768px) {
  .scoreboard-main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .scoreboard-team.home, .scoreboard-team.away {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }
  .scoreboard-team.away {
    flex-direction: column-reverse; 
  }
  .cyber-score {
    font-size: 3.5rem;
  }
}

.node-pos-tag {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #334155;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
}
.away-half .node-pos-tag {
  background: #475569;
  color: #cbd5e1;
}

.node-goal-icon {
  position: absolute;
  bottom: -4px;
  left: -4px;
  background: #eab308; 
  color: #0f172a;
  font-size: 9px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 8px #eab308; }
  100% { transform: scale(1); }
}

.match-lineups-section {
  margin-top: 30px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.lineup-controls {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.lineup-btn {
  background: #334155;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.lineup-btn:hover {
  background: #475569;
  color: #fff;
}
.lineup-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.rink-board {
  display: block;
  width: 100%;
  height: 320px;
  background: #1e293b;
  border: 4px solid #475569;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.rink-half {
  width: 50%;
  height: 100%;
  float: left;
  position: relative;
  box-sizing: border-box;
}
.home-half {
  border-right: 2px dashed #ef4444;
  background: radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.08) 0%, rgba(0,0,0,0) 40%);
}
.away-half {
  background: radial-gradient(circle at 85% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(0,0,0,0) 40%);
}
.rink-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #ef4444;
  transform: translateX(-50%);
  z-index: 1;
}
.team-rink-label {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
}
.home-half .team-rink-label { left: 20px; }
.away-half .team-rink-label { right: 20px; text-align: right; }

.player-node {
  position: absolute;
  width: 75px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.node-num {
  width: 34px;
  height: 34px;
  line-height: 30px;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto 4px auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.away-half .node-num {
  border-color: #f43f5e;
}
.node-name {
  font-size: 10px;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

.home-half .pos-gk { left: 15%; top: 50%; }
.home-half .pos-ld { left: 40%; top: 25%; }
.home-half .pos-rd { left: 40%; top: 75%; }
.home-half .pos-lf { left: 75%; top: 20%; }
.home-half .pos-c  { left: 70%; top: 50%; }
.home-half .pos-rf { left: 75%; top: 80%; }

.away-half .pos-gk { left: 85%; top: 50%; }
.away-half .pos-ld { left: 60%; top: 25%; }
.away-half .pos-rd { left: 60%; top: 75%; }
.away-half .pos-lf { left: 25%; top: 20%; }
.away-half .pos-c  { left: 30%; top: 50%; }
.away-half .pos-rf { left: 25%; top: 80%; }

.tables-container {
  display: block;
  width: 100%;
  margin-top: 20px;
}
.lineup-table-box {
  width: 48%;
  box-sizing: border-box;
}
.lineup-table-box:first-child { float: left; }
.lineup-table-box:last-child { float: right; }
.match-lineups-section::after {
  content: "";
  display: table;
  clear: both;
}
.table-title {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.lineup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lineup-table th {
  background: #334155;
  color: #94a3b8;
  text-align: left;
  padding: 10px;
  font-weight: 600;
}
.lineup-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.lineup-table tr:hover {
  background: rgba(255,255,255,0.02);
}
.badge-pos {
  background: #475569;
  color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   16. NEW PLAYER STATS CYBER BENTO HIGHLIGHTS
   ========================================================================== */
.stat-category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-ice);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 0.9rem;
  padding: 4px 12px;
  transform: skewX(-12deg);
  z-index: 10;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.player-team-mini {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 2px;
}

.player-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--accent-neon); 
  line-height: 1;
  margin-top: 8px;
  text-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.large-hero .player-stat-value {
  font-size: 4.5rem;
  color: var(--accent-ice); 
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.grid-bento .bento-card img {
  object-position: top center; 
}
/* ==========================================================================
   18. SIDEBAR TEAM FORM BAR + CYBER TOOLTIPS (CLEAN VERSION)
   ========================================================================== */
.team-meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-name-sidebar {
  font-weight: 600;
  line-height: 1.2;
}

.team-form-container {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.form-dot {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  width: 24px; 
  height: 14px;
  line-height: 14px;
  display: inline-block;
  transform: skewX(-10deg);
  border-radius: 2px;
  color: #000;
  position: relative; 
  cursor: help;
}

.form-w   { background-color: var(--accent-neon); box-shadow: 0 0 5px rgba(0, 255, 102, 0.4); }
.form-otw { background-color: #00ffcc; box-shadow: 0 0 5px rgba(0, 255, 204, 0.4); }
.form-otl { background-color: #ffcc00; box-shadow: 0 0 5px rgba(255, 204, 0, 0.4); }
.form-l   { background-color: #ff0055; color: #fff; box-shadow: 0 0 5px rgba(255, 0, 85, 0.4); }

/* --- THE CYBER TOOLTIP BOX --- */
.cyber-tooltip-box {
  position: absolute;
  bottom: 22px; 
  left: 50%;
  transform: translateX(-50%) skewX(10deg); /* Retter teksten op så den står lige */
  background-color: #0c1322;
  color: var(--text-main);
  
  font-family: var(--font-display);
  font-style: italic;
  
  padding: 6px 12px;
  border: 1px solid var(--accent-ice);
  border-left: 3px solid var(--accent-ice);
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 10px rgba(0, 240, 255, 0.15);
  
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Skillelinjen (-) i midten */
.tooltip-vs {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- KONTRAST OG STØRRELSE KLASSERNE --- */

/* VINDEREN: Stor, fed og lyser op i cyan */
.winner-highlight {
  font-size: 1.1rem; 
  font-weight: 900;
  color: var(--accent-ice);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* TABEREN: Mindre, dæmpet og diskret gråblå */
.loser-dimmed {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Vis udelukkende den nye HTML-boks ved hover */
.form-dot:hover .cyber-tooltip-box {
  opacity: 1;
  bottom: 20px;
}

/* ==========================================================================
   19. MATCH SCOREBOARD LOGOS (TOP-STACKED VERSION)
   ========================================================================== */
.scoreboard-team-flex {
  display: flex;
  flex-direction: column; /* Stabler elementerne vertikalt: Logo over Navn */
  align-items: center; /* Centrerer både logo og holdnavn horisontalt */
  gap: 10px; /* Diskret luft mellem logo og holdnavn */
}

.scoreboard-logo {
  width: 55px;  /* Lidt større end før, da de nu er "hero" elementer over navnet */
  height: 55px;
  object-fit: contain; /* Sikrer at logoet bevarer sine proportioner uden at blive strukket */
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.25)); /* Cyber-glow */
}

/* Sørg for at h2 overskrifterne også er centreret, hvis de ikke er det som standard */
.scoreboard-team h2 {
  text-align: center;
  margin: 0; /* Fjerner unødvendig margin så gap'et styrer luften */
}

/* Responsiv tilpasning til mindre skærme */
@media (max-width: 768px) {
  .scoreboard-logo {
    width: 40px; /* Lidt mindre på mobilen */
    height: 40px;
  }
}

/* Containeren der styrer rækken helt i toppen */
.ticker-top-badge-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px; /* Giver luft ned til holdlinjen */
}

/* Det pæne flade Preseason mærkat */
.ticker-badge-training {
    background: rgba(0, 173, 181, 0.15); /* Dæmpet isblå/cyan baggrund */
    border: 1px solid #00adb5;           /* Skarp cyan ramme */
    color: #00adb5;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* En solid cyan streg i venstre side for at markere preseason-kortet */
.ticker-match-card.is-training-card {
    border-left: 2px solid #00adb5 !important;
}
/* 1. Gør wrapperen højere og tilføj en cyber-midterlinje */
.cyber-timeline-wrapper {
    display: flex;
    width: 100%;
    background: rgba(17, 20, 26, 0.6); /* Lidt mørkere baggrund for kontrast */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 65px; /* Højere boks, så der er plads til top/bund split */
    margin-top: 15px;
    padding: 2px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    overflow: visible !important; /* NYT: Sikrer at intet klipper tooltippet af */
}

/* Den gennemgående horisontale midterlinje */
.cyber-timeline-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08); /* Diskret hvid linje */
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* 2. Sørg for perioderne fylder det rigtige og lader grafik bryde ud */
.timeline-period {
    position: relative;
    flex: 1; 
    height: 100%;
    border-right: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important; /* VIGTIGT: Sikrer at tooltippet må stikke op over bjælken */
}

.timeline-period:last-child {
    border-right: none;
}

/* Sørg for at periodens baggrundstekst overhovedet ikke blokerer for musen */
.period-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    pointer-events: none; /* VIGTIGT: Gør teksten fuldstændig usynlig for musen */
    z-index: 2;
}

/* 3. Placering over eller under midterlinjen */
.timeline-event-dot.is-home-event {
    top: calc(25% - 6px); /* Placeres i øverste halvdel */
}

.timeline-event-dot.is-away-event {
    bottom: calc(25% - 6px); /* Placeres i nederste halvdel */
}

/* Gør at prikkerne altid lægger sig forrest, så de fanger musen med det samme */
.timeline-event-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10; /* Ligger foran alt andet baggrundshalløj */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sørg for at den ekspanderer ud fra sit eget center ved hover */
.timeline-event-dot:hover {
    width: 22px;
    height: 22px;
    z-index: 99;
}

/* Vis ikonet inde i prikken, når man hover */
.timeline-event-dot i {
    font-size: 0.55rem;
    color: #000;
    display: none;
}
.timeline-event-dot:hover i {
    display: block;
}

/* Prik-farver */
.dot-goal {
    background: #00adb5;
    box-shadow: 0 0 8px #00adb5;
}
.dot-penalty {
    background: #ff9a00;
    box-shadow: 0 0 8px #ff9a00;
}

/* 4. Tooltip-boxens placering */
.timeline-tooltip {
    position: absolute;
    bottom: 35px; /* Popper op over bjælken. Skift til 'top: 45px;' hvis du hellere vil have den til at poppe nedad */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #11141a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    width: 220px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 999; /* Sikrer at den flyver helt i front */
}

/* ==========================================================================
   DEN MANGLENDE TRIGGER: Gør tooltippet synligt, når man hovrer over prikken!
   ========================================================================== */
.timeline-event-dot:hover .timeline-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Den lille pil i bunden af tooltippet */
.timeline-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #11141a transparent transparent transparent;
}