* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  padding: 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #ff0000;
  margin-bottom: 8px;
}

.page-header .subtitle {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 500;
}

.controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Icon buttons */
.icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  color: #333;
  transition: color 0.3s ease;
}

.icon-btn:hover {
  color: #007BFF;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.icon-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.tv-show {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.tv-show:hover {
  transform: scale(1.05);
}

.poster {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.info {
  padding: 15px;
}

.title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.year-episodes {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  text-align: center;
  margin-top: 0;
  padding: 0 10px;
}

.controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  color: #333;
  transition: color 0.3s ease;
}

.icon-btn:hover {
  color: #007BFF;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.icon-btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
