* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  background-color: #ffffff;
  background-image: url('img/website/tile.png');
  background-size: 120px 120px;
  background-attachment: scroll;
  background-repeat: repeat;
  color: #000000;
  line-height: 1.4;
}

.page {
  width: 100%;
  max-width: 1200px;
  border: none;
  background: transparent;
  margin: 0 auto;
  display: block;
}

.page td {
  padding: 0;
  display: block;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.sidebar {
  width: 120px;
  border: 1px solid #000000;
  background: #f3f3f3;
  padding: 0;
  font-size: 0.85em;
}

.sidebar-title {
  text-align: center;
  font-weight: bold;
  padding: 2px 0;
  border-bottom: 1px solid #000000;
  margin: 0;
  font-size: 0.75em;
}

.sidebar a {
  display: 2px;
  margin: 1px 0;
  border: 1px solid #000000;
  background: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 0.85em
  text-decoration: none;
}

.sidebar a:hover {
  color: #ffffff;
  background: #000000;
}

.content {
  flex: 1;
  min-width: 0;
}

.page-logo {
  display: block;
  margin: 0 auto 4px;
  width: 140px;
  max-width: 240px;
  height: auto;
}

h1 {
  margin: 0;
  text-align: center;
}

.subtitle {
  margin: 6px 0 10px;
  text-align: center;
}

marquee {
  display: block;
  margin: 8px 0;
  padding: 6px;
  border: 1px solid #000000;
  background: #f3f3f3;
}

.nav {
  text-align: center;
  margin: 8px 0;
}

.filter-panel {
  margin: 10px 0 14px;
  border: 1px solid #000000;
  background: #f3f3f3;
  padding: 10px;
}

.filter-group + .filter-group {
  margin-top: 10px;
}

.filter-label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.alphabet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alphabet-chip {
  border: none;
  background: transparent;
  color: blue;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.alphabet-chip:hover,
.alphabet-chip.is-active {
  color: #ffffff;
  background: #000000;
  text-decoration: none;
}

.filter-chip {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  padding: 4px 8px;
  font: inherit;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: #000000;
}

.filter-status {
  margin: 10px 0 0;
  font-style: italic;
}

a {
  color: #000000;
}

a:hover {
  color: #ffffff;
  background: #000000;
  text-decoration: none;
}

h2 {
  margin: 14px 0 6px;
}

p,
ul {
  margin: 4px 0 10px;
}

ul {
  padding-left: 24px;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.project-table th,
.project-table td {
  border: 1px solid #000000;
  padding: 6px;
  text-align: left;
}

.project-table th {
  font-weight: normal;
  background: #f0f0f0;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.file-table th,
.file-table td {
  border: 1px solid #000000;
  padding: 6px;
  text-align: left;
}

.file-table th {
  font-weight: normal;
  background: #f0f0f0;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  border: none;
}

.resource-table th,
.resource-table td {
  border: none;
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  font-weight: normal;
  background: #f0f0f0;
}

.resource-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #000000;
  background: #ffffff;
}

.resource-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 6px;
}

.cars-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-family: Arial, sans-serif;
  background: #ffffff;
}

.cars-table th,
.cars-table td {
  border: 1px solid #000000;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
  font-size: 0.85em;
}

.cars-table th {
  background: #e9e9e9;
}

.cars-table .track-name,
.cars-table .track-author,
.cars-table .track-release-date {
  margin: 0;
  font-size: 0.85em;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.pagination-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #e0e0e0;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: bold;
  min-width: 80px;
  text-align: center;
}

[data-hidden="true"] {
  display: none !important;
}

.track-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 1px;
}

.track-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
  margin: 0 auto 2px;
  border: 1px solid #cccccc;
}

.track-name {
  font-size: 0.8em;
  line-height: 1.05;
  margin-bottom: 2px;
  color: #000000;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.track-author {
  font-size: 0.75em;
  color: #000000;
  margin-bottom: 1px;
}

.track-release-date {
  font-size: 0.7em;
  color: #000000;
  margin-bottom: 2px;
}

.track-card .download-link {
  margin-top: 2px;
}

.download-link {
  font-size: 0.8em;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

.normal-link {
  font-size: 1em;
  color: #312ee4;
  text-decoration: none;
  cursor: pointer;
}



.resource-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid #000000;
  padding: 10px;
  background: #f8f8f8;
}

.resource-card h3 {
  margin: 0 0 6px;
}

.resource-card p {
  margin: 0 0 6px;
}

.resource-title {
  margin: 0 0 6px;
}

.resource-line {
  margin: 0 0 6px;
}

.resource-details {
  min-width: 0;
}



.mod-section:not([data-has-visible]) {
  display: none;
}

.empty-card {
  background: #ffffff;
}

.download-link,
.download-link:hover {
  color: blue;
  background: transparent;
  text-decoration: underline;
}

.status {
  margin-top: 10px;
}

.footer {
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 700px) {
  body {
    padding: 10px;
  }

  .page td {
    padding: 10px;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .filter-chip {
    padding: 5px 7px;
  }
}
