* {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  user-select: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #22252a;
  color: #d8d8d8;
}

.page-content {
  padding: 8px;
}

.navigation {
  color: #ffffff;
  font-weight: bold;
  padding: 8px 8px 8px 8px;
  flex-shrink: 0;
  margin-bottom: 10px;
  height: 15px;
  background-color: #282c31;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navigation a {
  color: #e7e7e7;
  text-decoration: none;
}


.navigation a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 6px;
  color: #aaa;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 43px);
  margin: 0;
  box-sizing: border-box;
}

video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}


a {
  color: #a0c0e0;
  text-decoration: none;
  transition: color 0.1s ease-in-out;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: underline;
}


/* TABLE */
table {
  border-collapse: collapse;
  margin-bottom: 20px;
}

th {
  background-color: #33363d;
  color: #e2e2e2;
  font-weight: bold;
  padding-top: 5px;
  padding-bottom: 3px;
}


th,
td {
  padding-right: 20px;
  text-align: left;
}

td {
  padding-top: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #303236;
}

th:first-child,
td:first-child {
  padding-left: 5px;
}

th:last-child,
td:last-child {
  padding-right: 5px;
}

tr:nth-child(even) {
  background-color: #202328;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background-color: #4a4d55;
}

tbody tr.disabled-row {
  pointer-events: none;
  color: #666666
}

.seasons-table td:nth-child(2) {
  text-align: right;
}

#search-form {
  margin-bottom: 25px;
}

#search-input {
  width: 200px;
  margin-bottom: 5px;
  padding: 5px 5px;
  border: 1px solid #3a3d42;
  border-radius: 3px 0 0 3px;
  background-color: #2c2f35;
  color: #ffffff;
  outline: none;
  transition: all 0.1s ease-in-out;
  flex-grow: 1;
}

#search-input:-webkit-autofill {
  background-color: #2c2f35 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #34373d inset !important;
  caret-color: white !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

#search-input:-webkit-autofill::first-line {
  color: #ffffff !important;
}

#search-input:focus,
#search-input:-webkit-autofill:focus {
  border-color: #234f70 !important;
  background-color: #34373d !important;
}

#search-input:-webkit-autofill:not(:focus) {
  background-color: #2c2f35 !important;
  -webkit-box-shadow: 0 0 0px 1000px #2c2f35 inset !important;
}

#search-form button {
  width: 65px;
  margin-left: -5px;
  padding: 6px 12px;
  background-color: #234f70;
  border: none;
  border-radius: 0 3px 3px 0;
  color: white;
  cursor: pointer;
  transition: background 0.1s ease-in-out;
}

#search-form button:active {
  background-color: #17364e;
  color: #dbdbdb
}

input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #234f70;
  border-radius: 4px;
  background-color: white;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin: 1px 0 0 0;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #234f70;
}

input[type="checkbox"]:checked::after {
  content: "✔";
  font-size: 9px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

label {
  cursor: pointer;
  display: flex;
  font-size: 11px;
  gap: 5px;
  align-items: center;
}

#search-options {
  padding-left: 1px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-result-table {
  width: 265px;
  table-layout: fixed;
}

.search-result-table th,
.search-result-table td {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}



/* CUSTOM SELECT DROPDOWN */
.custom-select {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.custom-select select {
  width: 100%;
  padding: 5px 30px 5px 10px;
  background-color: #2c2f35;
  color: #ffffff;
  border: 1px solid #3a3d42;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.1s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.custom-select::after {
  content: "▾";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #ffffff;
  pointer-events: none;
}

.custom-select select:hover {
  background-color: #34373d;
}

.custom-select select:focus {
  background-color: #3a3d42;
}

.custom-select select option {
  background-color: #2c2f35;
  color: #ffffff;
  padding: 8px;
}



/* HISTORY TABLE */
.history-table {
  width: 265px;
  table-layout: fixed;
  position: relative;
}

.history-table tbody tr {
  display: flex;
  width: 265px;
}

.history-table td:first-child {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding-right: 3px;
}

.history-table td:last-child {
  width: 25px;
  height: 25px;
  position: absolute;
  right: -25px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 25px;
  padding: 0px;
  font-size: 12px;
  font-weight: bold;
  transition: color 0.1s ease-in-out;
}

.history-table td:last-child:hover {
  color: #dd2d2dd8;
}

.history-table tbody tr:hover:nth-child(odd) {
  background-color: transparent;
}

.history-table tbody tr:hover:nth-child(even) {
  background-color: #202328;
}

.history-table tbody tr td:first-child:hover {
  background-color: #4a4d55;
}
