/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
  padding: 1rem;
}

/* CONTAINER */
.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* HEADINGS */
h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* LISTS */
ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

li {
  background-color: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: background-color 0.3s;
  width: 100%;
}

li:hover {
  background-color: #f0f0f0;
}

/* LINKS */
a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 0.5rem 0;
  /* Larger tap target */
}

a:hover {
  text-decoration: underline;
}

a.noline:hover {
  text-decoration: none;
}

/* BUTTONS */
form button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-top: 2rem;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #005fa3;
}

/* NAVIGATION */
.mmm-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mmm-nav .logo a,
.mmm-nav .menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.mmm-nav .logo a {
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
}

.mmm-nav .logo a:hover {
  border-color: #ada8b6;
  background-color: #f4f4f4;
}

.mmm-nav .logo a.external-link {
  border: 2px solid #0077cc;
  text-transform: uppercase;
}

.mmm-nav .menu {
  display: none;
  flex-direction: column;
  width: 100%;
}

.mmm-nav .menu.show {
  display: flex;
}

.mmm-nav .menu a {
  color: #23022e;
  text-decoration: none;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.mmm-nav .menu a:hover {
  background-color: #ececec;
  color: #000;
}

.mmm-nav .menu a.active {
  font-weight: bold;
  border-bottom: 2px solid #573280;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: #0077cc;
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

/* TABLES */
.mmm-table,
#season-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.mmm-table th,
.mmm-table td,
#season-table th,
#season-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

#season-table th {
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background 0.3s ease;
}

#season-table tr:hover {
  background-color: #ddd;
}

#season-table .current-season {
  font-weight: bold;
}

/* SORTING INDICATORS */
th[data-sort] {
  position: relative;
  padding-right: 1.5rem;
}

th.asc::after,
th.desc::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0.4rem solid transparent;
}

th.asc::after {
  border-bottom-color: #333;
}

th.desc::after {
  border-top-color: #333;
}

/* SEASON LAYOUT */
.season-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.season-layout>div {
  flex: 1 1 100%;
}

@media (min-width: 600px) {
  .mmm-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }

  .mmm-nav .menu {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: auto;
  }

  .season-layout>div {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .mmm-table {
    font-size: 1rem;
  }
}

/* RESPONSIVE TABLE */
@media screen and (max-width: 768px) {
  .season-table thead {
    display: none;
  }

  .season-table,
  .season-table tbody,
  .season-table tr,
  .season-table td {
    display: block;
    width: 100%;
  }

  .season-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    background-color: #f9f9f9;
  }

  .season-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .season-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
  }
}

@media (max-width: 600px) {
  li {
    width: 100%;
  }

  li a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* MISC */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: #f0f0f0;
}

.image {
  text-align: center;
  margin-top: 20px;
}

.centered-circular-img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 50%;
}

.centered-img {
  width: 150px;
  height: 200px;
}

/* FORM ELEMENTS */
form p {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

form label {
  width: 100px;
  margin-right: 10px;
}

.score {
  max-width: 400px;
}

.score-item {
  margin-bottom: 8px;
}

.score-item span {
  display: inline-block;
  width: 100px;
}

.bar-container {
  width: 200px;
  height: 16px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  transition: width 0.3s;
}

.bar[style*="width: calc(100% * 0"],
.bar[style*="width: calc(100% * 1"],
.bar[style*="width: calc(100% * 2"],
.bar[style*="width: calc(100% * 3"] {
  background-color: red;
}

.nav-toggle {
  display: block !important;
  border: none;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }
}

blockquote {
  font-size: 1.2em;
  width: 60%;
  margin: 15px auto;
  font-style: italic;
  line-height: 1.2;
  position: relative;
}

blockquote::before {
  font-family: Arial;
  content: "\201C  ";
  color: #0077cc;
  font-size: 1.4em;
  position: center;
  left: 10px;
  top: -10px;
}

blockquote::after {
  font-family: Arial;
  content: "   \201E";
  color: #0077cc;
  font-size: 1.4em;
  position: center;
  right: 0px;
  bottom: -10px;
}

blockquote span {
  display: block;
  color: #333333;
  font-style: normal;
  font-weight: bold;
  margin-top: 1em;
}