@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --sweden-blue: #006AA7;
  --sweden-blue-rgb: 0, 106, 167;
  --sweden-yellow: #FECC00;
  --sweden-yellow-rgb: 254, 204, 0;
  --sweden-yellow-hover: #E0B400;
  
  /* Dark premium palette */
  --bg-dark-900: #040912;
  --bg-dark-800: #0A1220;
  --bg-dark-700: #121F35;
  --bg-dark-600: #1E304E;
  
  --text-white: #FFFFFF;
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-dark: #1F2937;
  
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glass-bg: rgba(10, 18, 32, 0.75);
  --glass-border: rgba(254, 204, 0, 0.15);
  --glass-border-blue: rgba(0, 106, 167, 0.3);
  --shadow-neon: 0 0 25px rgba(254, 204, 0, 0.15);
  --shadow-neon-blue: 0 0 25px rgba(0, 106, 167, 0.25);
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 10px;
}

/* Base resets & styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark-900);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 106, 167, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(254, 204, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(10, 18, 32, 0.5) 0%, #040912 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--sweden-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sweden-yellow);
}

/* Layout Containers */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Elegant Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header & Banner */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-neon-blue);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.crest-logo {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(254, 204, 0, 0.4));
  animation: float 4s ease-in-out infinite;
}

.brand-text h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--text-white) 30%, var(--sweden-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

.brand-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text p::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

/* Countdown & Live status Widget */
.live-status-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 106, 167, 0.15);
  border: 1px solid rgba(0, 106, 167, 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 15px rgba(0, 106, 167, 0.1);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--sweden-yellow);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  font-family: monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-white);
}

.time-box {
  background: rgba(4, 9, 18, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(254, 204, 0, 0.2);
}

.time-separator {
  margin: 0 3px;
  color: var(--sweden-yellow);
  animation: blink 1s infinite;
}

/* News Ticker Row */
.news-ticker {
  background: linear-gradient(90deg, rgba(0, 106, 167, 0.9) 0%, rgba(10, 18, 32, 0.9) 100%);
  border-bottom: 2px solid var(--sweden-yellow);
  padding: 0.6rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-neon);
}

.ticker-label {
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
  font-weight: 800;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(254, 204, 0, 0.3);
}

.ticker-content {
  color: var(--text-white);
  font-size: 0.9rem;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  display: flex;
  gap: 3rem;
}

.ticker-content span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grid Layout Sections */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-neon);
  overflow: hidden;
  position: relative;
}

.panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sweden-blue) 0%, var(--sweden-yellow) 100%);
}

.panel-header-with-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.panel-title {
  font-size: 1.4rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.panel-title i {
  color: var(--sweden-yellow);
}

.news-tabs-container {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-dark-800);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-dark-600);
}

.news-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.news-tab-btn:hover {
  color: var(--text-white);
}

.news-tab-btn.active {
  background: var(--sweden-blue);
  color: var(--text-white);
  box-shadow: 0 0 8px rgba(0, 106, 167, 0.3);
}

/* Bulletin updates board */
#bulletin-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.update-block {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--sweden-blue);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  padding: 1rem 1.2rem;
  transition: var(--transition-smooth);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.update-block:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--sweden-yellow);
  transform: translateX(3px);
}

.update-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.update-time {
  background: var(--sweden-blue);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.update-block:hover .update-time {
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
}

.update-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.headline-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 0.5rem;
}

.headline-bullet-item {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.headline-bullet-item::before {
  content: "⚽";
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 0.8rem;
  filter: grayscale(1) brightness(1.5);
  transition: var(--transition-smooth);
}

.update-block:hover .headline-bullet-item::before {
  filter: none;
  transform: rotate(45deg);
}

.headline-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.bullet-tag {
  font-size: 0.65rem;
  border: 1px solid var(--glass-border-blue);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-block;
}

.bullet-tag.type-news {
  border-color: rgba(0, 106, 167, 0.4);
  color: #60A5FA;
  background: rgba(0, 106, 167, 0.15);
}

.bullet-tag.type-blog {
  border-color: rgba(254, 204, 0, 0.4);
  color: var(--sweden-yellow);
  background: rgba(254, 204, 0, 0.08);
}

.bullet-tag.type-analysis {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
}

.bullet-tag.type-column {
  border-color: rgba(167, 139, 250, 0.4);
  color: #C084FC;
  background: rgba(167, 139, 250, 0.1);
}

.bullet-tag.type-scout {
  border-color: rgba(245, 158, 11, 0.4);
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

.bullet-timestamp {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bullet-timestamp i {
  color: var(--sweden-blue);
}

.update-block:hover .bullet-timestamp i {
  color: var(--sweden-yellow);
}

.headline-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  display: inline-block;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.headline-link:hover {
  color: var(--sweden-yellow);
  border-bottom-color: var(--sweden-yellow);
}

.no-news-found {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--bg-dark-600);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
}

/* Chronological Multi-Day Timeline Styles */
.timeline-date-section {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.timeline-date-header {
  display: flex;
  align-items: center;
  background: rgba(0, 106, 167, 0.15);
  border-left: 3px solid var(--sweden-yellow);
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--sweden-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-date-header i {
  color: var(--text-white);
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.date-updates-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

/* Tactical Pitch Section */
.pitch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.tactical-pitch {
  width: 100%;
  max-width: 380px;
  height: 480px;
  background: linear-gradient(135deg, #0e1e35 0%, #060b13 100%);
  border: 4px solid var(--bg-dark-600);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), var(--shadow-neon-blue);
}

/* Soccer Field Markings in CSS */
.tactical-pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15); /* Halfway line */
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.pitch-penalty-top {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.pitch-penalty-bottom {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.pitch-goal-top {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.pitch-goal-bottom {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Pitch Player nodes */
.pitch-player-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.pitch-player-node:hover {
  transform: translate(-50%, -55%) scale(1.15);
}

.jersey-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sweden-yellow) 60%, var(--sweden-blue) 100%);
  color: var(--bg-dark-900);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--text-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(254, 204, 0, 0.3);
  transition: var(--transition-smooth);
}

.pitch-player-node:hover .jersey-node {
  background: var(--text-white);
  color: var(--sweden-blue);
  box-shadow: 0 0 15px var(--sweden-yellow);
}

.node-name {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(4, 9, 18, 0.85);
  border: 1px solid var(--glass-border-blue);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  color: var(--text-white);
}

.pitch-player-node:hover .node-name {
  color: var(--sweden-yellow);
  border-color: var(--sweden-yellow);
}

.pitch-info-bar {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Time Simulator Panel Widget */
.simulator-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-neon);
  margin-bottom: 2rem;
  position: relative;
}

.simulator-panel::before {
  content: "⚡ SIMULERINGSPANEL";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sim-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sim-switch-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark-600);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--sweden-blue);
  box-shadow: 0 0 10px rgba(0, 106, 167, 0.5);
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: var(--sweden-yellow);
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sim-select {
  background: var(--bg-dark-700);
  color: var(--text-white);
  border: 1px solid var(--bg-dark-600);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sim-select:focus {
  border-color: var(--sweden-yellow);
}

.sim-time-tag {
  background: var(--bg-dark-700);
  border: 1px solid var(--glass-border-blue);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sweden-yellow);
}

.sim-schedule-indicators {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sched-dot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.sched-dot.active {
  background: rgba(0, 106, 167, 0.2);
  border-color: var(--sweden-yellow);
  color: var(--sweden-yellow);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(254, 204, 0, 0.1);
}

/* Squad Directory Section */
.squad-section {
  margin-top: 3rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--sweden-yellow);
  border-radius: 2px;
}

.controls-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-box-input {
  background: var(--bg-dark-800);
  border: 1px solid var(--bg-dark-600);
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: inherit;
  outline: none;
  width: 240px;
  transition: var(--transition-smooth);
}

.search-box-input:focus {
  border-color: var(--sweden-blue);
  box-shadow: 0 0 10px rgba(0, 106, 167, 0.2);
  width: 280px;
}

.filters-btn-group {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-dark-800);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-dark-600);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--sweden-blue);
  color: var(--text-white);
}

/* Player Grid Layout */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.player-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-neon-blue);
}

.player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(254, 204, 0, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.player-card:hover {
  transform: translateY(-5px);
  border-color: var(--sweden-yellow);
  box-shadow: var(--shadow-neon);
}

.player-card:hover::before {
  opacity: 1;
}

.player-card-jersey {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
  transition: var(--transition-smooth);
}

.player-card:hover .player-card-jersey {
  color: rgba(254, 204, 0, 0.06);
}

.player-card-flag {
  font-size: 1.8rem;
  position: absolute;
  top: 12px;
  left: 15px;
  opacity: 0.9;
}

.player-card-content {
  margin-top: 1.8rem;
}

.player-card-name {
  font-size: 1.2rem;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 2px;
}

.player-card:hover .player-card-name {
  color: var(--sweden-yellow);
}

.player-card-pos {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--sweden-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.player-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

.player-card-caps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.player-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 0.8rem;
  letter-spacing: 0.05em;
}

.status-healthy {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rested {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-injured {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modals Overlay Base */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 9, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-box {
  background: var(--bg-dark-800);
  border: 1px solid var(--sweden-yellow);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--shadow-neon);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--sweden-yellow);
  transform: rotate(90deg);
}

/* Article Reader details styles */
.modal-article-title {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.modal-article-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.modal-article-meta i {
  color: var(--sweden-blue);
  margin-right: 4px;
}

.modal-article-bullets {
  margin-bottom: 1.5rem;
  background: rgba(0, 106, 167, 0.1);
  border: 1px dashed var(--glass-border-blue);
  padding: 1.2rem 1.2rem 1.2rem 2.2rem;
  border-radius: var(--radius-md);
  list-style: square;
}

.modal-article-bullets li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.modal-article-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #E5E7EB;
  margin-bottom: 2rem;
}

.modal-article-players {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.related-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.btn-related-player {
  background: var(--bg-dark-700);
  border: 1px solid var(--glass-border-blue);
  color: var(--text-white);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-related-player:hover {
  background: var(--sweden-blue);
  border-color: var(--sweden-yellow);
  transform: translateY(-2px);
}

.flag-mini {
  font-size: 1.1rem;
}

/* Player Profile Detail Modal */
.player-modal-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.player-modal-avatar {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--sweden-blue) 0%, var(--bg-dark-600) 100%);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--sweden-yellow);
  box-shadow: var(--shadow-neon);
}

.player-modal-title-box h2 {
  font-size: 2rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-jersey-pill {
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.player-modal-meta-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.player-modal-bio {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #E5E7EB;
  margin-bottom: 2rem;
}

.player-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .player-modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-metric-card:hover {
  background: rgba(0, 106, 167, 0.1);
  border-color: var(--glass-border-blue);
  transform: translateY(-2px);
}

.metric-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sweden-yellow);
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animated {
  animation-duration: 0.6s;
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fadeIn;
}

.card-pop {
  animation-name: cardPop;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Column structures inside dashboard */
.dashboard-col-left {
  display: flex;
  flex-direction: column;
}

.dashboard-col-right {
  display: flex;
  flex-direction: column;
}

/* Locker Room Chat Console Styles */
.chat-console-wrapper {
  background: rgba(4, 9, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.chat-bubble-block {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  animation: fadeIn 0.4s ease-out;
}

.chat-bubble-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sweden-blue) 0%, var(--bg-dark-600) 100%);
  border: 2px solid var(--sweden-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.chat-bubble-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px 14px 14px 14px;
  padding: 0.8rem 1rem;
  max-width: 85%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chat-bubble-block.captain .chat-bubble-content {
  border-color: rgba(254, 204, 0, 0.3);
  background: rgba(0, 106, 167, 0.08);
}

.chat-bubble-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 1rem;
}

.chat-sender-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.captain-badge {
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.chat-bubble-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.chat-bubble-text {
  font-size: 0.92rem;
  color: #E5E7EB;
  line-height: 1.4;
}

.chat-input-row {
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.chat-placeholder-input {
  flex-grow: 1;
  background: rgba(4, 9, 18, 0.6);
  border: 1px solid var(--bg-dark-600);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: not-allowed;
}

.chat-send-btn {
  background: var(--bg-dark-700);
  border: 1px solid var(--bg-dark-600);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

/* Locker Room Music Player Styles */
.music-player-wrapper {
  background: linear-gradient(135deg, rgba(0, 106, 167, 0.15) 0%, rgba(4, 9, 18, 0.4) 100%);
  border: 1px solid var(--glass-border-blue);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-neon-blue);
}

.music-track-info {
  flex-grow: 1;
  max-width: 180px;
}

.music-track-info h4 {
  font-size: 0.95rem;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.music-track-info p {
  font-size: 0.75rem;
  color: var(--sweden-yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Audio Visualizer Waves */
.music-visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 25px;
  width: 40px;
}

.bar {
  width: 4px;
  height: 5px;
  background-color: var(--sweden-yellow);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.music-visualizer-container.active .bar {
  animation: bounce 1.2s ease-in-out infinite alternate;
}

.music-visualizer-container.active .bar-1 { animation-delay: 0.1s; }
.music-visualizer-container.active .bar-2 { animation-delay: 0.4s; height: 18px; }
.music-visualizer-container.active .bar-3 { animation-delay: 0.2s; height: 12px; }
.music-visualizer-container.active .bar-4 { animation-delay: 0.6s; height: 22px; }
.music-visualizer-container.active .bar-5 { animation-delay: 0.3s; }

@keyframes bounce {
  10% { height: 5px; }
  100% { height: 24px; }
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-btn {
  background: var(--bg-dark-700);
  border: 1px solid var(--bg-dark-600);
  color: var(--text-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.music-btn:hover {
  background: var(--sweden-blue);
  color: var(--text-white);
  border-color: var(--sweden-yellow);
  transform: scale(1.05);
}

.music-btn.play {
  background: var(--sweden-yellow);
  color: var(--bg-dark-900);
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(254, 204, 0, 0.4);
}

.music-btn.play:hover {
  background: var(--text-white);
  color: var(--sweden-blue);
  box-shadow: 0 0 15px var(--sweden-yellow);
}

.music-btn.spotify {
  background: #1DB954;
  color: var(--text-white);
  border-color: #1ed760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.music-btn.spotify:hover {
  background: #1ed760;
  border-color: var(--text-white);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.6);
}

.music-footer {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
  width: 100%;
  text-align: right;
  margin-top: -8px;
  font-family: monospace;
}

/* Match Schedule Timeline Styles */
.match-schedule-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* Vertical Timeline Line */
.match-schedule-container::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--sweden-blue) 0%, rgba(254, 204, 0, 0.3) 100%);
}

.schedule-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.schedule-dot-indicator {
  position: absolute;
  left: -23px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-dark-900);
  border: 2px solid var(--sweden-blue);
  z-index: 5;
  transition: var(--transition-smooth);
}

.schedule-item:hover .schedule-dot-indicator {
  background: var(--sweden-yellow);
  border-color: var(--text-white);
  box-shadow: 0 0 10px var(--sweden-yellow);
  transform: scale(1.2);
}

.schedule-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.match-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.type-warmup .match-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-wc .match-badge {
  background: rgba(254, 204, 0, 0.15);
  color: var(--sweden-yellow);
  border: 1px solid rgba(254, 204, 0, 0.3);
}

.match-date-stamp {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: monospace;
}

.match-pairing {
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flag-vs {
  font-size: 1.2rem;
}

.match-venue {
  font-size: 0.75rem;
  color: var(--sweden-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.schedule-item:hover .match-venue {
  color: var(--sweden-yellow);
}

.match-info-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
