* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, Arial, sans-serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}

.season-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.season-tab {
  background: #222;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.season-tab:hover {
  background: #333;
}

.season-tab.active {
  background: #fff;
  color: #000;
}

.movie-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.empty-message {
  grid-column: 1 / -1;
  color: #888;
  font-size: 15px;
}

.movie-card {
  cursor: pointer;
}

.movie-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: border-radius 0.15s;
}

.movie-card:hover .movie-thumbnail {
  border-radius: 4px;
}

.movie-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  display: none;
}

.player.open {
  display: block;
}

.player-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.close-button {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.close-button svg {
  width: 26px;
  height: 26px;
  display: block;
}
