:root {
  --marvel-red: #e23636;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: var(--marvel-red);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 5px;
}

.date-info {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.9em;
}

.profile-section, .summary-section {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

select, input[type="text"], button {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1em;
  outline: none;
}

select, input[type="text"] {
  background-color: #2a2a2a;
  color: white;
  flex-grow: 1;
}

button {
  background-color: var(--marvel-red);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background-color: #bf2a2a;
}

.summary-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding: 15px 20px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85em;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  color: var(--marvel-red);
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 5px;
}

.controls-row {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#sortToggleBtn {
  background-color: #2a2a2a;
  color: var(--text-color);
}

#sortToggleBtn:hover {
  background-color: #444;
}

.checklist-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-header {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 5px;
}

.phase-header h2 {
  color: var(--marvel-red);
  margin: 0;
  padding-right: 15px;
  font-size: 1.4em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--marvel-red);
  opacity: 0.6;
}

.movie-item {
  background-color: var(--card-bg);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.1s;
}

.movie-item:hover {
  transform: translateX(5px);
}

.movie-info {
  display: flex;
  flex-direction: column;
}

.movie-title {
  font-size: 1.1em;
  font-weight: 600;
  transition: color 0.2s;
}

.movie-type {
  font-size: 0.8em;
  color: var(--marvel-red);
  text-transform: uppercase;
  margin-top: 4px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.star-rating {
  display: flex;
  gap: 3px;
}

.star-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #444;
  font-size: 1.3em;
  transition: color 0.2s;
  line-height: 1;
}

.star-button.active {
  color: #f5c518;
}

.star-button:hover {
  color: #ffd700;
}

.checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2px solid var(--marvel-red);
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.2s;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--marvel-red);
}

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

.checked-text {
  text-decoration: line-through;
  color: var(--text-muted);
}


.lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  font-size: 1.1em;
  z-index: 100;
}

.lang-toggle:hover {
  background-color: #444;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
