html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  color:black;
  font-size: 18px;
  font-style: normal;
  font-family: sans-serif;
  line-space:28;
}
/* Sticky banner per spec */
.sticky-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f2f2f2;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.banner-image { width: 100%; max-width: 450px; height: auto; }
.main-content {
  margin-top: 0px;
}
.container {
  padding: 0px 15px 20px 15px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.title {
  font-family: 'Barlow Condensed', sans-serif, normal;
  text-align: center;
  background-color: #1e2024;
  color: #dddddd;
  padding: 0;
  margin: 0;
  padding: 1px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  line-height: 2;
}
.live-link {
  text-align: center;
}
.styled-table tbody tr .active-row {
  background-color: rgba(238, 236, 144, 0.5);
}
.styled-table {
  border-collapse: collapse;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.7em;
  font-family: sans-serif;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.styled-table thead tr {
  background-color: #1e2024;
  color: #ffffff;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 10px 5px;
}
.styled-table tbody tr:nth-of-type(even){
  border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(2n) {
  background-color: #f3f3f3;
  border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr.active-row {
  background-color: rgba(238, 236, 144, 0.5);
}
.styled-table tbody tr.suspended-row {
  background-color: rgba(148, 148, 146, 0.5);
}
.styled-table tbody tr:last-of-type {
  border-bottom: #1e2024;
}
.styled-table tbody th.day-row {
  padding: 5px 7px;
  font-style: italic;
  text-align: center;
  font-weight: normal;
}
.active-row {
  background-color: rgba(238, 236, 144, 0.5);
}
.suspended-row {
  background-color: rgba(148, 148, 146, 0.5);
  text-decoration: line-through;
  opacity: 0.5;
}
.active {
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
  content: "\2212";
}
.hidden {
  display: none;
  background-color: #1e2024;
  max-height: 0;
  overflow: hidden;
}
.live-text {
  color: red;
  font-weight: bold;
  text-decoration:none;
  animation: flash 1s infinite;
}
@keyframes flash {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.button {
  background-color: #fafcfb;
  border: 2px solid #f00;
  color: rgb(252, 6, 6);
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9em;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}
.collapsable { cursor: pointer; }
.collapsable:after {
  content: "\002B";
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}
.active-collapsable:after { content: "\2212"; }
.collapsable-content hidden { transition: max-height 0.2s ease-out; }
.active-collapsable-content hidden {
  max-height: 1000px;
  display: inline-block;
  transition: max-height 0.35s ease-in;
}
.team-logo {
  width: 25px;
  height: 25px;
  padding: 5px 5px;
}
.home-team { text-align: right; }
.away-team { text-align: left; }
/* Bottom menu */
.menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f2f2f2;
  padding: 5px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.menu button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  padding: 10px;
  transition: all 0.3s ease;
}
.menu button:hover { background-color: #ddd; }
.menu button img { width: 30px; margin-bottom: 5px; }

/* Moved from common.js */
.header {
  background: linear-gradient(135deg, #003d7a 0%, #002451 100%);
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  position: relative;
  margin-top: 120px; /* added header offset */
}
[data-theme="dark"] .header {
  background: linear-gradient(135deg, #002451 0%, #001633 100%);
}
.header img {
  width: 45px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.theme-toggle {
  position: absolute;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  border-top-color: #003d7a;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Error message */
.error-message {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  padding: 10px;
  border-radius: 8px;
  margin: 10px;
  text-align: center;
  font-size: 0.875rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
[data-theme="dark"] .error-message {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.3);
}
