* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

header {
    background-color: #596eb4;
    color:white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.navbar {
  background-color: #596eb4;
  padding: 15px 30px;
  border-radius: 0px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

/* Nav links */
.navbar a {
  color: #facc15;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.navbar a:hover {
  background-color: #465ca3;
}

main {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px
}

footer {
    text-align: center;
    color: gray;
    font-size: 14px;
}

 #search_results {
        margin-top: 10px;
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
        background: white;
        position: relative;
    }

    .search-result {
        display: flex;
        align-items: center;
        padding: 6px;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
    }

    .search-result:hover {
        background: #f0f0f0;
    }

    .search-result img {
        width: 50px;
        height: auto;
        margin-right: 10px;
        border-radius: 4px;
    }

    .tabs {
  margin-bottom: 1rem;
  display: flex;
  border-bottom: 2px solid #ccc;
  cursor: pointer;
}

.tab {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f9f9f9;
  margin-right: 0.25rem;
  user-select: none;
}

.tab.active {
  background: white;
  font-weight: bold;
  border-top: 2px solid #007bff;
  border-bottom: none;
}

.tab-content {
  border: 1px solid #ccc;
  padding: 1rem;
  background: white;
}

.media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.media-card {
  width: 150px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  text-align: center;
  padding: 0.5rem;
  transition: box-shadow 0.3s ease;
}

.media-card:hover {
  box-shadow: 0 0 8px #007bff;
}

.media-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ccc;
}

.media-info {
  margin-top: 0.5rem;
}

.episodes-container {
  margin-top: 1rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.3rem 0.5rem;
  text-align: center;
}

.season-average {
  margin-top: 1rem;
  font-weight: bold;
}