:root {
  --primary-color: #950606;
  --background-color: #141414;
  --text-color: #fff;
  --card-background: #222;
  --border-color: #444;
}

/* General Body Styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

.container {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--card-background);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-link {
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-color);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a.active {
  color: var(--primary-color);
}

.nav-icons .icon-button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  z-index: 1000;
}

.search-content {
  width: 80%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper .fa-search {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 80%;
  padding: 15px 15px 15px 40px;
  background: #333;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 18px;
}

.search-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
}

.search-results {
  width: 80%;
  max-width: 600px;
  margin-top: 20px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(149, 6, 6, 0.8);
  border-radius: 999px;
}

.search-results__status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #d1d1d1;
  text-align: center;
  font-size: 14px;
}

.partner-cta {
  margin: 24px 0;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(149, 6, 6, 0.4);
  background: linear-gradient(
    135deg,
    rgba(149, 6, 6, 0.18),
    rgba(255, 255, 255, 0.04)
  );
}

.partner-cta h3 {
  margin-top: 0;
}

.partner-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--text-color);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.partner-cta__button:hover {
  color: var(--text-color);
  opacity: 0.92;
  transform: translateY(-1px);
}
.search-results .movie-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--card-background);
  border-radius: 5px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
}

.search-results .movie-card img {
  width: 50px;
  height: 75px;
  object-fit: cover;
}

.search-results .movie-card-title {
  font-size: 16px;
  margin: 0;
}

.search-results .movie-card-meta {
  display: none;
}

.search-results .movie-card-overlay {
  position: static;
  background: none;
  padding: 0;
}

.search-results .channel-search-result img {
  object-fit: contain;
  background: #111;
  padding: 8px;
}

.channel-search-result__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ff8b8b;
  background: rgba(149, 6, 6, 0.16);
  border: 1px solid rgba(149, 6, 6, 0.35);
  margin-bottom: 8px;
}

.channel-search-result__meta {
  margin: 6px 0 0 0;
  color: #cfcfcf;
  font-size: 13px;
}

.channel-search-result__logo-fallback {
  width: 50px;
  height: 75px;
  display: grid;
  place-items: center;
  background: #111;
  color: var(--text-color);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 28px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  align-content: start;
  min-height: 620px;
}

/* Responsive Movie Grid - Minimum 2 columns on small screens */
@media (max-width: 768px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    min-height: 480px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    min-height: 420px;
  }
}

#trending-view-grid {
  min-height: 460px;
}

@media (max-width: 768px) {
  #trending-view-grid {
    min-height: 360px;
  }
}

.movie-card {
  background: var(--card-background);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.movie-grid > .movie-card {
  display: block;
  aspect-ratio: 2 / 3;
}

.movie-grid > .movie-card img,
.movie-grid > .movie-card .skeleton-poster {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 15px;
  color: var(--text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.movie-card-title {
  font-size: 18px;
  margin: 0 0 5px 0;
}

.movie-card-meta {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

.movie-grid > .movie-card.skeleton {
  pointer-events: none;
}

.movie-grid > .movie-card.skeleton .movie-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.movie-grid > .empty-state {
  grid-column: 1 / -1;
}

.empty-state {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  color: #ccc;
  text-align: center;
}

.skeleton-poster,
.skeleton-line,
.server-button--skeleton,
.server-button--skeleton .server-button__icon {
  background: linear-gradient(90deg, #222 0%, #333 50%, #222 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.skeleton-line--title {
  width: 78%;
  height: 16px;
  margin-bottom: 10px;
}

.skeleton-line--headline {
  width: min(420px, 85%);
  height: 28px;
  margin-bottom: 18px;
}

.skeleton-line--short {
  width: 34%;
}

.skeleton-line--medium {
  width: 58%;
}

.skeleton-line--full {
  width: 100%;
  margin-bottom: 12px;
}

.page-info--loading {
  opacity: 0.8;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* View Page Styles */
#view-main {
  padding: 20px;
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  margin-bottom: 20px;
  background-color: #000; /* Optional: background to fill before iframe loads */
  overflow: hidden;
}

.fake-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-color);
}

.fake-player[hidden] {
  display: none;
}

.fake-player__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
}

.fake-player__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.fake-player__play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(149, 6, 6, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 28px;
}

.fake-player__label {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .player-wrapper {
    padding-top: 0;
    height: 480px;
  }
}

#player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

#player-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#player-container.player-loading::before {
  content: "Carregando player...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  z-index: 1;
}

#media-details h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

#media-details {
  min-height: 190px;
}

#media-details p {
  color: #ccc;
  line-height: 1.7;
}

.media-details-skeleton {
  min-height: 190px;
}

.movie-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  color: #ccc;
}

#seasons-container {
  margin-top: 30px;
}

.season {
  margin-bottom: 20px;
}

.season h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-link {
  background-color: #333;
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Genre Filter */
.genre-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-filter button {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.genre-filter button.active,
.genre-filter button:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
  min-height: 48px;
}

.pagination button {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination button:not(:disabled):hover {
  background-color: var(--primary-color);
}

.pagination .page-info {
  font-size: 16px;
}
/* Filters */
.filters {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 48px;
}

/* Year Filter */
.year-filter select {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px;
  padding-right: 40px;
}
/* Server Selection */
.server-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.server-selection button {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.server-button__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.server-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.server-button__text strong {
  font-size: 15px;
  line-height: 1.2;
}

.server-button__text small {
  color: #bdbdbd;
  font-size: 12px;
}

.server-selection button.active .server-button__text small {
  color: rgba(255, 255, 255, 0.88);
}

.server-button--skeleton {
  border-radius: 5px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
}

.server-button--skeleton .server-button__icon {
  width: 36px;
  height: 36px;
}

.server-button--skeleton .server-button__text {
  width: 100%;
}

.server-selection button.active,
.server-selection button:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Episode Controls */
.episode-controls {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.episode-controls h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 18px;
}

.episode-selectors {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.episode-selectors label {
  color: var(--text-color);
  font-weight: 500;
  margin-right: 8px;
}

.episode-selectors select {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  min-width: 120px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27292.4%27%20height%3D%27292.4%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20d%3D%27M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 35px;
}

.episode-selectors select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.episode-navigation {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.episode-navigation h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 18px;
}

.episode-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.episode-nav-button {
  background: #333;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 140px;
  justify-content: center;
  text-decoration: none; /* Ensure it looks like a button, not a standard link */
}

.episode-nav-button:hover:not([disabled]) {
  /* Use [disabled] for anchor tags */
  color: var(--primary-color); /* Change only text color on hover */
}

.episode-nav-button[disabled] {
  /* Use [disabled] for anchor tags */
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* Disable click events for disabled links */
}

.episode-info {
  text-align: center;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
}

.episode-info .current-episode {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Episode Controls */
@media (max-width: 768px) {
  .episode-selectors {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .episode-selectors > div {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .episode-selectors select {
    flex: 1;
    min-width: auto;
  }

  .episode-nav-controls {
    flex-direction: column;
    gap: 15px;
  }

  .episode-nav-button {
    width: 100%;
    min-width: auto;
  }
}
/* Ribbon */
.ribbon {
  position: absolute;
  top: 10px;
  right: -30px;
  width: 120px;
  height: 24px;
  background: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  line-height: 24px;
  transform: rotate(45deg);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  z-index: 2;
}

/* SEO Content Styles */
.seo-content {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
  line-height: 1.6;
}

.seo-content h1 {
  color: var(--primary-color);
  font-size: 32px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.seo-content h3 {
  color: var(--text-color);
  font-size: 24px;
  margin: 30px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-content h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin: 15px 0 10px 0;
}

.seo-content p {
  margin-bottom: 15px;
  color: #ccc;
}

.seo-content ul,
.seo-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.seo-content li {
  margin-bottom: 8px;
  color: #ccc;
}

.seo-content strong {
  color: var(--text-color);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.feature {
  background: #333;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.feature h4 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 16px;
}

.feature p {
  margin-bottom: 0;
  font-size: 14px;
  color: #ccc;
}

/* FAQ List */
.faq-list {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.faq-item {
  background: #333;
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 17px;
}

.faq-item p {
  margin: 0;
  color: #ccc;
}

/* Genres List */
.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.genre-tag {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Static Content */
.static-content {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.static-content h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 8px;
}

.categories-list,
.years-list {
  list-style: none;
  padding: 0;
}

.categories-list li,
.years-list li {
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.categories-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.categories-list a:hover {
  text-decoration: underline;
}

/* Site Footer */
.site-footer {
  background: #0a0a0a;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  border-top: 1px solid #333;
}

.footer-content {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #999;
}

/* Navigation Active State */
.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .seo-content {
    padding: 20px;
  }

  .static-content {
    padding: 15px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* Arrow Pagination Styles */
.pagination button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-info {
  min-width: 120px;
  text-align: center;
}

.search-input::placeholder {
  color: #999;
}

.section-description {
  margin: 0 0 16px 0;
  color: #cfcfcf;
  line-height: 1.6;
}

.tv-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.channel-search {
  width: 100%;
  max-width: 420px;
}

.search-input-wrapper--inline .search-input {
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 16px;
  background: #1d1d1d;
}

.movie-grid.channel-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  min-height: auto;
}

.channel-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.channel-card:hover {
  color: var(--text-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.channel-card__logo {
  min-height: 110px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(149, 6, 6, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.channel-card__logo img,
.channel-details__logo img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgb(255, 255, 255));
}

.channel-card__fallback {
  font-weight: 700;
  color: var(--text-color);
}

.channel-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.channel-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-card__badge--live {
  color: #ff8b8b;
  background: rgba(149, 6, 6, 0.16);
  border-color: rgba(149, 6, 6, 0.35);
}

.channel-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.channel-card__description {
  margin: 0;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.channel-details {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.channel-details__logo {
  width: 120px;
  min-width: 120px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(149, 6, 6, 0.16),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.channel-details__content {
  flex: 1;
}

@media (max-width: 768px) {
  .tv-tools,
  .channel-search {
    max-width: none;
  }

  .movie-grid.channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .channel-details {
    flex-direction: column;
  }

  .channel-details__logo {
    width: 100%;
    min-width: 0;
    min-height: 96px;
  }
}

@media (max-width: 480px) {
  .movie-grid.channel-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .channel-card {
    min-height: auto;
  }
}
