<style>
html {
  background: #121212;
}
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #e0e0e0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
  }
.tracker-title {
  text-align: center;
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #e50914, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.tracker-title span {
  color: #f5c518;
  text-shadow: 0 0 8px rgba(245, 197, 24, 0.5);
}

.sort-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}
button {
  background: linear-gradient(135deg, #e50914, #b20710);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #b20710, #e50914);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}
  .platform-dropdown-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#platform-dropdown {
  background: #2c2c2c;
  color: #e0e0e0;
  border: 2px solid #e50914;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
  transition: box-shadow 0.3s ease;
  width: 300px;
  cursor: pointer;
}
#platform-dropdown:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}
  #movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
  }
  .movie-card {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  }
  .poster-container {
    height: 400px;
    overflow: hidden;
    position: relative;
  }
  .movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .movie-card:hover .movie-poster {
    transform: scale(1.05);
  }
  .movie-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .movie-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #e50914;
  }
  .platform {
    color: #aaa;
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  .imdb-link {
    display: inline-block;
    background: #f5c518;
    color: #000;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
    width: fit-content;
  }
  .imdb-link:hover {
    background: #d4ad0d;
    text-decoration: none;
  }
  .imdb-link::before {
    content: "IMDb: ";
    font-weight: bold;
  }
  .rating-value {
    font-weight: bold;
    margin-left: 3px;
  }
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
  }
  .modal img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
  }
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 28px;
    cursor: pointer;
  }

  #search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
  }
  #search-bar {
    width: 60%;
    max-width: 500px;
    padding: 12px 20px 12px 48px;
    font-size: 16px;
    border-radius: 25px;
    border: 2px solid #e50914;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    background: #2c2c2c url('https://cdn-icons-png.flaticon.com/512/622/622669.png') no-repeat 14px center;
    background-size: 20px 20px;
    color: #e0e0e0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  #search-bar:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
    transform: scale(1.01);
  }
  .watched-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9em;
    user-select: none;
  }
  .watched-input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e50914;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: background 0.2s;
  }
  .watched-input:checked {
    background: #e50914;
  }
  .watched-input:checked::after {
    content: '✓';
    position: absolute;
    left: 2px;
    top: -2px;
    color: white;
    font-weight: bold;
  }
  .watched-checkbox:hover .watched-input {
    border-color: #b2070e;
  }
  .watched-checkbox:hover .watched-input:checked {
    background: #b2070e;
  }
  </style>