body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #121212;
  color: #e0e0e0;
}

h1,
#sorted-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#choices {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.song-option {
  width: 45vw;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background-color: #1e1e1e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.song-option:hover {
  /* transform: scale(1.03); */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.song-name {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f5f5f5;
}

.media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 40vh;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-container iframe,
.media-container video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.action-buttons {
  display: flex;
  /* flex-direction: column; */
  gap: 10px;
  margin-top: auto;
  justify-content: center;
}

.skip-btn,
.choose-btn {
  padding: 8px 16px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background-color: #388e3c;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 100px;
}

.skip-btn {
  background-color: #d32f2f;
}

.skip-btn:hover {
  background-color: #b71c1c;
}

.choose-btn:hover {
  background-color: #2e7d32;
}

#sorted-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto 0 auto;
  margin-top: 20px;
  width: 80%;
  max-width: 800px;
  display: none;
}

#sorted-header {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2em;
}

#comparison-div {
  text-align: center;
  color: #f0f0f0;
  margin-top: 10px;
  font-weight: bold;
}

#sorted-table {
  width: 100%;
  /* table fills its container */
  border-collapse: collapse;
  /* removes double borders */
  table-layout: auto;
  /* columns have consistent width */
  font-size: 1em;
  text-align: left;
}

#sorted-table th {
  border: 1px solid #444;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sorted-table td {
  border: 1px solid #444;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sorted-table th {
  background-color: #222;
  /* distinguish header */
  color: #fff;
}

#sorted-table tbody tr:nth-child(even) {
  background-color: #1a1a1a;
  /* subtle striping for rows */
}

#sorted-table tbody tr:hover {
  background-color: #333;
  /* highlight on hover */
}

.media-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.show-media-btn {
  padding: 10px 16px;
  font-size: 0.95em;
  border: none;
  border-radius: 6px;
  background-color: #1f5a96;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  flex: 1;
  max-width: 150px;
  font-weight: 500;
}

.show-media-btn:hover {
  background-color: #1a4a7a;
  transform: translateY(-2px);
}

.show-media-btn:active {
  transform: translateY(0);
}

p.song-name-text,
p.song-artist-text,
p.song-anime-text {
  margin: 5px 0;
  font-size: 0.95em;
  color: #b0b0b0;
}

p.song-name-text {
  font-weight: 600;
  color: #ffffff;
  font-size: 1em;
}

p.song-artist-text {
  font-style: italic;
  color: #a0a0a0;
}

p.song-type-text,
p.song-anime-text {
  font-size: 0.9em;
  color: #808080;
}


#setup {
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#setup h2 {
  color: #ffffff;
  margin-top: 0;
  text-align: center;
  font-size: 1.5em;
}

#setup label {
  display: inline-block;
  color: #e0e0e0;
  margin-right: 10px;
  font-size: 1em;
  font-weight: 500;
}

#setup input[type="file"],
#setup input[type="number"] {
  display: inline-block;
  padding: 8px 12px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
}

#setup input[type="file"],
#setup input[type="number"] {
  margin-left: 10px;
  padding: 8px 12px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 0.95em;
  cursor: pointer;
}

#setup input[type="file"]:hover,
#setup input[type="number"]:focus {
  border-color: #1f5a96;
  outline: none;
}

#setup button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #1f5a96;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#setup button:hover {
  background-color: #1a4a7a;
  transform: translateY(-2px);
}

#setup button:active {
  transform: translateY(0);
}

#region-container {
  max-width: 500px;
  margin: 0 auto 30px;
  padding: 20px;
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  text-align: center;
}

#region-container label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 12px;
  font-size: 1em;
  font-weight: 500;
}

#region-select {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: border-color 0.2s;
}

#region-select:hover,
#region-select:focus {
  border-color: #1f5a96;
  outline: none;
}

#region-select option {
  background-color: #1e1e1e;
  color: #ffffff;
}

#export-btn {
  padding: 10px 16px;
  font-size: 0.95em;
  border: none;
  border-radius: 6px;
  background-color: #1f5a96;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  flex: 1;
  max-width: 150px;
  font-weight: 500;
}