* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #0e1322;
  color: #f3f6ff;
}

a {
  color: #7fb2ff;
}

.subtle {
  color: #a4afc8;
  margin: 0;
}

.error-box {
  margin: 10px 16px;
  padding: 10px;
  border-radius: 8px;
  background: #4a1515;
  border: 1px solid #7d2c2c;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2940;
}

.catalog-sync-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a4c8ff;
}

.catalog-sync-track {
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: #1c2a47;
  overflow: hidden;
}

.catalog-sync-fill {
  height: 100%;
  background: #4c80d4;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.subscription-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ffd699;
  background: rgba(148, 100, 8, 0.28);
  border: 1px solid #7a5216;
  border-radius: 999px;
  padding: 4px 10px;
}

.subscription-badge-danger {
  color: #ffb3b3;
  background: rgba(122, 22, 22, 0.32);
  border-color: #7d2c2c;
}

.subscription-toast {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #24345a;
  border: 1px solid #3a5384;
  color: #f3f6ff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: subscription-toast-in 0.2s ease-out;
}

.subscription-toast button {
  background: transparent;
  border: none;
  color: #a4afc8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.subscription-toast button:hover {
  color: #f3f6ff;
}

@keyframes subscription-toast-in {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.topbar h1 {
  margin: 0 0 4px 0;
  font-size: 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(22, 30, 48, 0.7);
  backdrop-filter: blur(12px);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link svg {
  color: #818cf8;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.menu-link:hover {
  background: rgba(30, 41, 68, 0.95);
  border-color: rgba(0, 229, 201, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-link:hover svg {
  color: #00e5c9;
  transform: scale(1.08);
}

.menu-link.active {
  background: linear-gradient(135deg, rgba(0, 229, 201, 0.16), rgba(30, 58, 110, 0.5));
  border-color: #00e5c9;
  color: #00e5c9;
  box-shadow: 0 0 16px rgba(0, 229, 201, 0.22);
}

.menu-link.active svg {
  color: #00e5c9;
}

.menu-btn-logout:hover {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.menu-btn-logout:hover svg {
  color: #f43f5e;
}

.filters {
  padding: 12px 16px;
  border-bottom: 1px solid #1f2940;
}

.filters form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filters input,
.filters select,
.filters button,
.topbar button,
.player-actions button,
.login-form button {
  border: 1px solid #2f3e62;
  background: #1a243b;
  color: #f3f6ff;
  border-radius: 8px;
  padding: 8px 10px;
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: calc(100vh - 130px);
}

.channels {
  border-right: 1px solid #1f2940;
  overflow: auto;
}

.channels-page {
  padding: 0 12px 12px;
  min-height: calc(100vh - 130px);
}

.channels-standalone {
  border: 1px solid #1f2940;
  border-radius: 10px;
  border-right: 1px solid #1f2940;
  background: #0f162a;
  max-height: calc(100vh - 210px);
}

.channels-standalone .group-block:last-child {
  border-bottom: 0;
}

.group-list {
  display: flex;
  flex-direction: column;
}

.group-block {
  border-bottom: 1px solid #1f2940;
}

.group-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #111a2f;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.group-row:hover {
  background: #1a2742;
}

.group-row span {
  font-weight: 600;
}

.group-row small {
  color: #9eabca;
}

.group-channels {
  display: flex;
  flex-direction: column;
}

.group-channels.collapsed {
  display: none;
}

.group-channels-placeholder {
  padding: 8px 14px;
}

.channel-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #1f2940;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 1px 58px;
}

.channel-row.active {
  background: #1f355a;
}

.group-channels .channel-row {
  padding-left: 18px;
}

.channel-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #0a0f1d;
}

.channel-row span {
  display: block;
  font-size: 14px;
}

.channel-row small {
  color: #9eabca;
}

.player-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

#video {
  width: 100%;
  height: min(66vh, 760px);
  background: #000;
  border-radius: 10px;
}

#nowPlaying {
  font-size: 14px;
  color: #b8c4df;
}

.player-actions {
  display: flex;
  gap: 8px;
}

.hidden {
  display: none !important;
}

.movies-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 130px);
}

.movies-catalog {
  padding: 0 12px 12px;
}

.live-showcase {
  margin: 0 12px 16px;
  border: 1px solid #1f2940;
  border-radius: 16px;
  background: #101a2e;
  padding: 16px;
}

.live-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.live-showcase-head h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.live-showcase-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #223051;
  border-radius: 10px;
  background: #000;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.live-showcase-video:hover {
  transform: scale(1.02);
  border-color: #4c80d4;
}

.live-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.live-showcase-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

.live-showcase-item button {
  display: none;
}

@media (max-width: 640px) {
  .live-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.channel-grid-placeholder {
  grid-column: 1 / -1;
  padding: 10px 0;
}

.channel-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.channel-page-btn {
  border: 1px solid #2b416f;
  background: #101a2e;
  color: #dbe7ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.channel-page-btn:hover:not(:disabled) {
  border-color: #4c80d4;
  background: #1a2a47;
}

.channel-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.channel-page-btn.active {
  border-color: #4c80d4;
  background: #244178;
  color: #ffffff;
  font-weight: 700;
}

.channel-page-dots {
  color: #8ea6d1;
  padding: 0 2px;
}

.channel-catalog-card {
  border: 1px solid #1f2940;
  border-radius: 10px;
  background: #101a2e;
  color: inherit;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  content-visibility: auto;
  contain-intrinsic-size: 1px 180px;
}

.channel-catalog-card:hover {
  border-color: #3e6ab3;
  background: #15213a;
}

.channel-catalog-card img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #0a0f1d;
  padding: 8px;
}

.channel-catalog-card span {
  font-size: 14px;
  line-height: 1.3;
  min-height: 36px;
}

.channel-catalog-card small {
  color: #9eabca;
}

.guide-updated {
  margin-left: 8px;
  white-space: nowrap;
}

.guide-table-root {
  min-height: 320px;
}

.guide-table-placeholder {
  padding: 10px 0;
}

.guide-table-wrap {
  border: 1px solid #1f2940;
  border-radius: 10px;
  overflow: auto;
  background: #101a2e;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.guide-table thead th {
  position: sticky;
  top: 0;
  background: #12203b;
  color: #e2ecff;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #2a3b61;
  font-size: 13px;
}

.guide-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #1f2940;
  vertical-align: top;
}

.guide-table tbody tr:hover {
  background: #15213a;
}

.guide-channel-cell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.guide-channel-cell img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #0a0f1d;
  padding: 6px;
}

.guide-channel-cell strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.guide-channel-cell small {
  color: #9eabca;
}

.guide-program {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-program strong {
  font-size: 14px;
  line-height: 1.25;
}

.guide-program small {
  color: #9eabca;
}

.guide-progress {
  height: 6px;
  border-radius: 999px;
  background: #1f2940;
  overflow: hidden;
}

.guide-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3c74cf 0%, #6ca7ff 100%);
}

.guide-status-cell {
  white-space: nowrap;
  color: #bfd0f5;
}

.guide-watch-btn {
  border: 1px solid #2f3e62;
  background: #1a243b;
  color: #f3f6ff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.guide-watch-btn:hover {
  border-color: #4c80d4;
  background: #1f2e4f;
}

.guide-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.guide-page-btn {
  border: 1px solid #2b416f;
  background: #101a2e;
  color: #dbe7ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.guide-page-btn:hover:not(:disabled) {
  border-color: #4c80d4;
  background: #1a2a47;
}

.guide-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guide-page-btn.active {
  border-color: #4c80d4;
  background: #244178;
  color: #ffffff;
  font-weight: 700;
}

.guide-page-dots {
  color: #8ea6d1;
  padding: 0 2px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 176px));
  gap: 10px;
  align-items: start;
  justify-content: start;
}

.movie-grid-placeholder {
  grid-column: 1 / -1;
  padding: 10px 0;
}

.movie-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-page-btn {
  border: 1px solid #2b416f;
  background: #101a2e;
  color: #dbe7ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.movie-page-btn:hover:not(:disabled) {
  border-color: #4c80d4;
  background: #1a2a47;
}

.movie-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.movie-page-btn.active {
  border-color: #4c80d4;
  background: #244178;
  color: #ffffff;
  font-weight: 700;
}

.movie-page-dots {
  color: #8ea6d1;
  padding: 0 2px;
}

.movie-card {
  border: 1px solid #1f2940;
  border-radius: 10px;
  background: #101a2e;
  color: inherit;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  content-visibility: auto;
  contain-intrinsic-size: 1px 260px;
  width: 100%;
}

.movie-card:hover {
  border-color: #3e6ab3;
  background: #15213a;
}

.movie-card.active {
  border-color: #4c80d4;
  background: #1d2d4b;
}

.movie-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
  background: #0a0f1d;
}

.movie-card span {
  font-size: 12px;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card small {
  display: block;
  color: #9eabca;
  line-height: 1.25;
}

.movie-card-date {
  font-size: 11px;
}

.movie-player-layout {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.channel-player-layout {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* barra compacta de info abaixo do vídeo */
.movie-poster-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid #1f2940;
  background: #0f1626;
  flex-shrink: 0;
}

.movie-poster-card img {
  width: 40px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  background: #0a0f1d;
  flex-shrink: 0;
}

.movie-poster-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-player-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-bottom: 24px;
}

#seriesNowPlaying, #moviePlayerNowPlaying, .player-actions, .series-season-tabs, .series-seasons, .movie-detail-empty, .series-detail-empty {
  padding-left: 16px;
  padding-right: 16px;
}

.channel-player-shell {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#channelPlayerVideo {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #000;
  border-radius: 0;
}

/* Player de filmes e séries: totalmente fluido, sem engessamento */
#moviePlayerVideo,
#seriesVideo {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 0;
  flex-shrink: 0;
}

/* estilos removidos — botoes e acoes agora no topbar */

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-now-playing {
  font-size: 13px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* erro flutua sobre o vídeo, não empurra o layout */
.channel-error-float {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  min-width: 280px;
  max-width: min(520px, 90vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.channel-error-msg {
  font-size: 14px;
  line-height: 1.45;
  color: #fecaca;
  font-weight: 500;
}

.channel-error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-error-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.channel-error-btn.primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
}

.channel-error-btn:hover,
.channel-error-btn:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid #4ff3e0;
  outline-offset: 2px;
}

.channel-player-layout {
  position: relative;
  /* ancora o erro flutuante */
}

#moviePlayerNowPlaying {
  font-size: 14px;
  color: #b8c4df;
}

.series-layout {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  min-height: calc(100vh - 130px);
}

.series-catalog {
  padding: 12px;
  border-right: 1px solid #1f2940;
  overflow: auto;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 176px));
  gap: 10px;
  align-items: start;
  justify-content: start;
}

.series-grid-placeholder {
  grid-column: 1 / -1;
  padding: 10px 0;
}

.series-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.series-page-btn {
  border: 1px solid #2b416f;
  background: #101a2e;
  color: #dbe7ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.series-page-btn:hover:not(:disabled) {
  border-color: #4c80d4;
  background: #1a2a47;
}

.series-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.series-page-btn.active {
  border-color: #4c80d4;
  background: #244178;
  color: #ffffff;
  font-weight: 700;
}

.series-page-dots {
  color: #8ea6d1;
  padding: 0 2px;
}

.series-card {
  border: 1px solid #1f2940;
  border-radius: 10px;
  background: #101a2e;
  color: inherit;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  content-visibility: auto;
  contain-intrinsic-size: 1px 240px;
  width: 100%;
}

.series-card:hover {
  border-color: #3e6ab3;
  background: #15213a;
}

.series-card.active {
  border-color: #4c80d4;
  background: #1d2d4b;
}

.series-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
  background: #0a0f1d;
}

.series-card > span {
  font-size: 12px;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.series-card small {
  display: block;
  color: #9eabca;
  line-height: 1.25;
}

.series-card-date {
  font-size: 12px;
  font-weight: 700;
  color: #dbe7ff;
  background: rgba(54, 88, 148, 0.28);
  border: 1px solid #2a4372;
  border-radius: 999px;
  padding: 4px 8px;
  align-self: flex-start;
}

.series-card-progress-note {
  font-size: 11px;
  font-weight: 600;
  color: #d6e3ff;
}

.series-card-progress-time {
  font-size: 11px;
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.series-card-progress {
  height: 5px;
  border-radius: 999px;
  background: #1f2940;
  overflow: hidden;
}

.series-card-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3c74cf 0%, #6ca7ff 100%);
}

.series-detail {
  padding: 12px;
  overflow: auto;
}

.series-detail-empty {
  padding: 12px;
  border: 1px dashed #2d3b5c;
  border-radius: 10px;
  background: #101a2e;
}

.series-detail-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.series-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.series-hero img {
  width: 150px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #0a0f1d;
}

.series-hero h2 {
  margin: 0;
  font-size: 22px;
}

#seriesDetailMeta,
#seriesDetailPlot {
  margin-top: 2px;
  font-size: 12px;
}

#seriesVideo {
  display: block;
  width: 100%;
  /* altura generosa — mesma lógica do canal */
  height: min(66vh, 760px);
  flex-shrink: 0;
  background: #000;
  border-radius: 0;
}

.series-player-page,
.movie-player-page {
  min-height: 100dvh;
  overflow-y: auto;
}

.channel-player-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0f1d;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.channel-player-page .topbar {
  flex-shrink: 0;
  z-index: 70;
  background: #0e1322;
  border-bottom: 1px solid #1f2940;
}

.series-player-page .movie-player-layout,
.movie-player-page .movie-player-layout {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.series-player-page .movie-player-shell,
.movie-player-page .movie-player-shell {
  overflow: visible;
  padding-bottom: 14px;
}

.series-player-page #seriesVideo {
  height: min(calc(100dvh - 138px), 56.25dvw);
  min-height: 560px;
  max-height: 900px;
  object-fit: contain;
}

#seriesNowPlaying {
  font-size: 14px;
  color: #b8c4df;
}

#seriesNowPlaying.error {
  color: #ff9d9d;
}

.series-seasons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.season-tab {
  border: 1px solid #2f3e62;
  background: #1a243b;
  color: #f3f6ff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  min-width: 38px;
}

.season-tab:hover {
  border-color: #3e6ab3;
  background: #1f2e4f;
}

.season-tab.active {
  border-color: #4c80d4;
  background: #23416e;
}

.season-block {
  border: 1px solid #223051;
  border-radius: 10px;
  background: #111b30;
  padding: 10px;
}

.season-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-row {
  border: 1px solid #2f3e62;
  background: #18243d;
  color: inherit;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.episode-row strong,
.episode-row small {
  display: block;
  line-height: 1.2;
}

.episode-row strong {
  font-size: 14px;
}

.episode-row small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #f3f6ff;
}

.episode-row:hover {
  border-color: #3e6ab3;
}

.episode-row.active {
  background: #23416e;
  border-color: #4c80d4;
}

.episode-row.unavailable {
  border-color: #7d2c2c;
  background: #301818;
  color: #ffcece;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(rgba(14, 19, 34, 0.85), rgba(14, 19, 34, 0.85)), url('/assets/i473841.png') no-repeat center center fixed;
  background-size: cover;
}

.login-shell {
  width: min(360px, 92vw);
  border: 1px solid #24314f;
  border-radius: 12px;
  background: #141c2f;
  padding: 18px;
}

.login-shell h1 {
  margin: 0 0 4px 0;
}

.login-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form input {
  border: 1px solid #2f3e62;
  background: #0f1525;
  color: #f3f6ff;
  border-radius: 8px;
  padding: 8px 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-box {
  width: min(360px, 100%);
  border: 1px solid #24314f;
  border-radius: 14px;
  background: #141c2f;
  padding: 24px 20px;
  text-align: center;
}

.modal-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px auto;
  display: block;
}

.modal-box h2 {
  margin: 0 0 8px 0;
  font-size: 19px;
}

.modal-box p {
  color: #a4afc8;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.modal-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px auto;
  border-radius: 10px;
  background: #0f1525;
  border: 1px solid #2f3e62;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a4afc8;
  font-size: 13px;
  overflow: hidden;
}

.modal-qr img,
.modal-qr svg {
  width: 100%;
  height: 100%;
}

.modal-qr svg rect[fill="white"] {
  fill: #f3f6ff;
}

.modal-box button {
  width: 100%;
  border: 1px solid #2f3e62;
  background: #1d2a47;
  color: #f3f6ff;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}

.modal-box button:hover {
  background: #24345a;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .channels {
    border-right: 0;
    border-bottom: 1px solid #1f2940;
    max-height: 45vh;
  }

  .channels-standalone {
    border: 1px solid #1f2940;
    border-bottom: 1px solid #1f2940;
    max-height: none;
  }

  #video {
    height: 38vh;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .movies-layout {
    min-height: calc(100vh - 160px);
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }

  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .live-showcase {
    margin: 0 12px 10px;
    padding: 8px;
  }

  .live-showcase-head {
    flex-wrap: wrap;
  }

  .live-showcase-head h2 {
    font-size: 14px;
  }

  .guide-updated {
    width: 100%;
    margin-left: 0;
  }

  .guide-table {
    min-width: 760px;
  }

  .movie-player-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 160px);
  }

  #moviePlayerVideo {
    height: 40vh;
  }


  .series-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 160px);
  }

  .series-catalog {
    border-right: 0;
    border-bottom: 1px solid #1f2940;
    max-height: 42vh;
  }

  .series-hero {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }

  .series-hero img {
    width: 110px;
  }

  .series-player-page #seriesVideo {
    height: min(58vh, 56.25dvw);
    min-height: 280px;
    max-height: calc(100dvh - 150px);
  }
}

@media (min-width: 1200px) {
  .movies-catalog {
    padding: 0 16px 16px;
  }

  .movie-grid,
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
    gap: 14px;
  }

  .movie-card img,
  .series-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6.75;
    object-fit: cover;
    object-position: center 18%;
  }

  .movie-card,
  .series-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    min-height: 0;
    contain-intrinsic-size: 1px 320px;
  }

  .movie-card span,
  .series-card > span {
    font-size: 13px;
    line-height: 1.3;
    min-height: calc(1.3em * 3);
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1600px) {
  .movies-catalog {
    padding: 0 18px 18px;
  }

  .movie-grid,
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
    gap: 14px;
  }

  .movie-card,
  .series-card {
    padding: 10px;
    contain-intrinsic-size: 1px 360px;
  }

  .movie-card img,
  .series-card img {
    aspect-ratio: 2 / 3;
  }

  .movie-card span,
  .series-card > span {
    font-size: 14px;
    min-height: calc(1.3em * 3);
    -webkit-line-clamp: 3;
  }
}

/* ==========================================================================
   NOVA INTERFACE: CATEGORY PILLS & BUSCA MODERNA (CATÁLOGO GERAL)
   ========================================================================== */
.channel-catalog-header {
  padding: 12px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-catalog-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-search-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: #141b2d;
  border: 1px solid #1f2940;
  border-radius: 999px;
  padding: 10px 38px 10px 42px;
  color: #f1f5f9;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-input-wrap input:focus {
  background: #172036;
  border-color: #00e5c9;
  box-shadow: 0 0 0 3px rgba(0, 229, 201, 0.15);
}

.search-input-wrap input::placeholder {
  color: #64748b;
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.btn-clear-search:hover {
  color: #f1f5f9;
}

.hidden-fallback-select {
  display: none !important;
}

/* Barra Horizontal de Pills / Tags */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #141c2e;
  border: 1px solid #202d46;
  color: #b8c7e0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-out;
  flex-shrink: 0;
}

.category-pill:hover {
  background: #1c2740;
  border-color: #2e4166;
  color: #ffffff;
}

.category-pill.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0f1d;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.16);
}

.category-pill .pill-count {
  font-size: 11px;
  opacity: 0.7;
}

.category-pill.active .pill-count {
  opacity: 0.9;
  font-weight: 800;
}

/* ==========================================================================
   NOVA INTERFACE: PLAYER AO VIVO RESPONSIVO COM GAVETA & ABR (IMAGE 2, 3 & MOBILE)
   ========================================================================== */
.live-player-root {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  user-select: none;
}

:fullscreen .live-player-root,
:-webkit-full-screen .live-player-root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

/* Palco de Vídeo */
.video-stage {
  position: relative;
  flex: 1;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-stage #channelPlayerVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Overlay Superior */
.player-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 25;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.player-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s;
}

.player-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #00e5c9;
}

.player-top-info {
  display: flex;
  flex-direction: column;
}

.player-top-channel-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.player-top-program-name {
  font-size: 12px;
  color: #94a3b8;
}

.player-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-clock {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.player-user-label {
  font-size: 12px;
  color: #64748b;
}

.player-btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.player-btn-logout:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

/* Spinner de Buffering */
.player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 229, 201, 0.15);
  border-top-color: #00e5c9;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Barra Inferior de Controles */
.player-bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 25;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.controls-hidden .player-bottom-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.controls-hidden .player-top-overlay {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.player-ctrls-left,
.player-ctrls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #00e5c9;
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-play-pause {
  color: #00e5c9;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00e5c9;
  background: rgba(0, 229, 201, 0.12);
  border: 1px solid rgba(0, 229, 201, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 4px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5c9;
  box-shadow: 0 0 8px #00e5c9;
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.bottom-channel-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 4px;
}

/* ==========================================================================
   BADGE ABR (ADAPTIVE BITRATE) & MENU DE QUALIDADE (IMAGE 3)
   ========================================================================== */
.quality-badge-wrap {
  position: relative;
  display: inline-block;
}

.quality-badge {
  background: rgba(0, 229, 201, 0.15);
  border: 1px solid #00e5c9;
  color: #00e5c9;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  letter-spacing: 0.02em;
}

.quality-badge:hover {
  background: #00e5c9;
  color: #0a0f1d;
  box-shadow: 0 0 14px rgba(0, 229, 201, 0.45);
}

.quality-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #0c1220;
  border: 1px solid #1f2b44;
  border-radius: 12px;
  padding: 8px;
  min-width: 175px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 60;
  backdrop-filter: blur(20px);
}

.quality-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px 4px;
}

.quality-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quality-option-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}

.quality-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.quality-option-item.active {
  color: #00e5c9;
  font-weight: 700;
  background: rgba(0, 229, 201, 0.12);
}

.quality-option-item .check-icon {
  color: #00e5c9;
  font-weight: bold;
}

.quality-menu-hint {
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 10px;
  text-align: center;
}

.audio-badge {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
  color: #38bdf8;
}

.audio-badge:hover,
.audio-badge:focus-visible {
  background: #38bdf8;
  color: #0a0f1d;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.audio-menu {
  min-width: 210px;
}

.ctrl-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: default;
}

.source-badge {
  font-size: 11px;
}

/* Volume */
.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 65px;
  height: 4px;
  -webkit-appearance: none;
  background: #334155;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: #00e5c9;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00e5c9;
  cursor: pointer;
}

.aspect-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* ==========================================================================
   GAVETA LATERAL DE CANAIS (IMAGE 2 & MOBILE PORTRAIT)
   ========================================================================== */
.channel-drawer {
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.65);
}

.drawer-header {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.drawer-channel-counter {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  gap: 8px;
  letter-spacing: 0.02em;
}

.counter-active {
  color: #00e5c9;
}

.counter-total {
  color: #64748b;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.drawer-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.drawer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  flex-shrink: 0;
}

.drawer-search-wrap .search-icon {
  position: absolute;
  left: 28px;
  color: #64748b;
  pointer-events: none;
}

.drawer-search-wrap input {
  width: 100%;
  background: #141b2d;
  border: 1px solid #1f2940;
  border-radius: 12px;
  padding: 10px 36px 10px 38px;
  color: #f1f5f9;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.drawer-search-wrap input:focus {
  background: #172036;
  border-color: #00e5c9;
  box-shadow: 0 0 0 3px rgba(0, 229, 201, 0.15);
}

.drawer-search-wrap input::placeholder {
  color: #64748b;
}

.drawer-clear-search {
  position: absolute;
  right: 26px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.drawer-clear-search:hover {
  color: #fff;
}

/* Pills Bar da Gaveta */
.drawer-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px 6px;
  flex-shrink: 0;
}

.drawer-pills-bar::-webkit-scrollbar {
  display: none;
}

.drawer-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #141c2e;
  border: 1px solid #202d46;
  color: #b8c7e0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-out;
  flex-shrink: 0;
}

.drawer-pill:hover {
  background: #1c2740;
  color: #ffffff;
  border-color: #2e4166;
}

.drawer-pill.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0f1d;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.drawer-pill:focus,
.drawer-pill:focus-visible {
  outline: 2px solid #00e5c9 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 16px rgba(0, 229, 201, 0.5) !important;
}

.drawer-category-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}

/* Lista Rolável de Canais */
.drawer-channels-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
  -webkit-overflow-scrolling: touch;
}

.drawer-loading-msg,
.drawer-empty-msg {
  text-align: center;
  padding: 24px 12px;
  color: #64748b;
  font-size: 14px;
}

/* Card do Canal */
.drawer-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease-out;
}

.drawer-channel-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer-channel-item:focus,
.drawer-channel-item:focus-visible {
  outline: 2px solid #00e5c9 !important;
  outline-offset: -1px !important;
  background: rgba(0, 229, 201, 0.12) !important;
  box-shadow: 0 0 16px rgba(0, 229, 201, 0.35) !important;
}

/* ATIVO: BORDA CIANO NEON IDÊNTICA AO PRINT */
.drawer-channel-item.active {
  border-color: #00e5c9;
  background: rgba(0, 229, 201, 0.05);
  box-shadow: 0 0 14px rgba(0, 229, 201, 0.25);
}

.ch-idx {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.drawer-channel-item.active .ch-idx {
  color: #00e5c9;
}

.ch-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #141c2e;
  border: 1px solid #1f2d48;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #64748b;
}

.ch-logo-box img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.ch-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ch-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ch-program {
  font-size: 12px;
  color: #8896ab;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ch-prog-track {
  width: 140px;
  max-width: 65%;
  height: 3px;
  border-radius: 2px;
  background: #1e293b;
  margin-top: 5px;
  overflow: hidden;
}

.ch-prog-fill {
  height: 100%;
  background: #00e5c9;
  border-radius: 2px;
}

.ch-star-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #475569;
  padding: 6px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ch-star-btn:hover {
  color: #00e5c9;
  transform: scale(1.15);
}

.ch-star-btn.is-fav {
  color: #00e5c9;
}

/* ==========================================================================
   NAVEGAÇÃO INFERIOR MOBILE & ATALHOS (EXCLUSIVO MOBILE)
   ========================================================================== */
.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #080c16;
  border-top: 1px solid #161e30;
  padding: 6px 2px calc(8px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 3px;
  flex: 1;
  min-width: 0;
  transition: color 0.15s, transform 0.15s;
}

.mobile-nav-item svg {
  flex-shrink: 0;
}

.mobile-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #00e5c9;
}

.mobile-nav-item.active svg {
  color: #00e5c9;
}

.mobile-nav-logout:hover {
  color: #f43f5e;
}

.drawer-shortcut-bar {
  font-size: 10px;
  color: #475569;
  text-align: center;
  padding: 3px 8px 6px;
  background: #080c16;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ==========================================================================
   BREAKPOINTS: DESKTOP vs MOBILE
   ========================================================================== */

/* DESKTOP (Largura > 768px): Menu aparece no SUPERIOR */
@media (min-width: 769px) {
  .live-player-root {
    flex-direction: row;
  }

  .top-menu {
    display: inline-flex !important;
  }

  .channel-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .live-player-root.drawer-open .channel-drawer {
    transform: translateX(0);
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .drawer-close-btn {
    display: block;
  }
}

/* MOBILE (Largura <= 768px): Menu no topo NÃO EXISTE MAIS, aparece no INFERIOR FIXO */
@media (max-width: 768px) {
  /* O menu no topo no mobile não precisa mais existir */
  .top-menu,
  .topbar-actions #btnLogout,
  .topbar-actions .top-menu {
    display: none !important;
  }

  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .channel-player-page {
    padding-bottom: 0 !important;
  }

  .channel-player-page .topbar {
    display: none !important;
  }

  .live-player-root {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .video-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 32vh;
    flex-shrink: 0;
  }

  .channel-drawer {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    transform: none;
    box-shadow: none;
    border-right: none;
    border-top: 1px solid #182238;
    background: #0a0f1d;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .drawer-channels-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-close-btn {
    display: none;
  }

  .player-top-overlay {
    padding: 8px 12px;
  }

  .player-top-left .player-back-btn span {
    display: none;
  }

  .player-bottom-controls {
    padding: 8px 12px;
  }

  .bottom-channel-title {
    display: none;
  }

  .volume-control-wrap {
    display: none;
  }

  .source-badge {
    display: none;
  }

  /* Menu responsivo único para mobile: fixo no rodapé, sempre visível direto */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 56px !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    background: #080c16 !important;
    border-top: 1px solid #161e30 !important;
    padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  .drawer-shortcut-bar {
    display: none !important;
  }
}


/* ==========================================================================
   SAIMO-TV STYLE: FIXED FLOATING PILL NAVBAR & HOME SHOWCASE ("INÍCIO")
   ========================================================================== */

.saimo-navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  width: min(1280px, calc(100vw - 28px));
  height: 52px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 17, 32, 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.25s ease;
}

body.nav-scrolled .saimo-navbar,
body:not(.saimo-home-page) .saimo-navbar {
  background: rgba(10, 13, 24, 0.92);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.saimo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.saimo-brand:hover {
  background: rgba(255, 255, 255, 0.08);
}

.saimo-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saimo-brand-text b {
  color: #4ff3e0;
  font-weight: 800;
  margin-left: 1px;
}

.saimo-nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}

.saimo-nav-tabs::-webkit-scrollbar {
  display: none;
}

.saimo-nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.saimo-nav-tab svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.saimo-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.saimo-brand:focus-visible,
.saimo-nav-tab:focus-visible,
.saimo-nav-icon-btn:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
  color: #ffffff;
  background: rgba(79, 243, 224, 0.16);
  box-shadow: 0 0 0 4px rgba(79, 243, 224, 0.25);
}

.saimo-nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 243, 224, 0.28), rgba(163, 92, 240, 0.36));
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 2px 14px rgba(79, 243, 224, 0.18);
}

.saimo-nav-install {
  color: #4ff3e0;
}

.saimo-nav-install svg {
  color: #4ff3e0;
  filter: drop-shadow(0 0 5px rgba(79, 243, 224, 0.4));
}

.saimo-nav-install:hover {
  color: #ffffff;
  background: rgba(79, 243, 224, 0.14);
}

.saimo-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ff3e0;
  box-shadow: 0 0 6px #4ff3e0;
  display: inline-block;
  flex-shrink: 0;
  animation: saimoDotPulse 2.2s ease-in-out infinite;
}

@keyframes saimoDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.saimo-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.saimo-user-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 132px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges flutuantes de assinatura e sincronização sem quebrar a barra pílula */
.saimo-nav-right .subscription-badge {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 880;
  backdrop-filter: blur(14px);
  font-size: 11px;
  padding: 3px 10px;
  pointer-events: none;
  opacity: 0.85;
}

.saimo-nav-right .catalog-sync-bar {
  position: fixed;
  top: 70px;
  left: 18px;
  z-index: 880;
  background: rgba(14, 19, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(14px);
}

.saimo-nav-clock {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 4px;
}

.saimo-nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.16s ease;
}

.saimo-nav-icon-btn:hover {
  color: #ff5d7a;
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.42);
}

/* Espaçamento de topo nas páginas internas para acomodar a navbar fixa */
@media (min-width: 769px) {
  body.saimo-subpage {
    padding-top: 74px;
  }

  .channel-player-page .live-player-root {
    margin-top: 72px;
    height: calc(100dvh - 72px);
    position: relative;
  }
}

@media (max-width: 1120px) and (min-width: 769px) {
  .saimo-user-chip {
    display: none;
  }
  .saimo-nav-tab {
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .saimo-navbar {
    display: none !important;
  }
}

/* ==========================================================================
   STREAMTV BOOT INTRO OVERLAY ("ABERTURA") — CANVAS 2D + VECTOR SVG
   ========================================================================== */

.abertura {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(0, 229, 201, 0.16), transparent 44%),
    radial-gradient(circle at 78% 76%, rgba(139, 92, 246, 0.24), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.14), transparent 56%),
    linear-gradient(135deg, #050814 0%, #0a1126 52%, #070914 100%);
  opacity: 1;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.abertura.saindo {
  opacity: 0;
  pointer-events: none;
}

.abertura.abertura-oculta {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.abertura-luz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.abertura-logo {
  position: relative;
  z-index: 2;
  width: min(64vmin, 520px);
  height: min(64vmin, 520px);
  max-width: 88vw;
  max-height: 82vh;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.65));
}

.abertura-pular {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 3;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 243, 224, 0.28);
  background: rgba(10, 16, 34, 0.62);
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.abertura-pular:hover,
.abertura-pular:focus-visible {
  color: #ffffff;
  border-color: #4ff3e0;
  background: rgba(0, 229, 201, 0.18);
  outline: 2px solid #4ff3e0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .abertura {
    transition: opacity 0.18s ease;
  }
}

/* ==========================================================================
   HOME PAGE ("INÍCIO") — AMBIENTE, HERO BANNER & FILEIRAS HORIZONTAIS
   ========================================================================== */

body.saimo-home-page {
  background:
    radial-gradient(circle at 80% -10%, rgba(163, 92, 240, 0.13), transparent 36rem),
    radial-gradient(circle at 10% 0%, rgba(79, 243, 224, 0.08), transparent 30rem),
    #0a0b14;
  color: #ffffff;
  min-height: 100vh;
}

.saimo-home-shell {
  padding-bottom: 4.5rem;
}

.saimo-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(420px, 54vh, 500px);
  min-height: clamp(420px, 54vh, 500px);
  max-height: clamp(420px, 54vh, 500px);
  margin: 0 0 1.3rem;
  overflow: hidden;
  background: linear-gradient(180deg, #13162b 0%, #0a0b14 100%);
}

.saimo-hero-bg-ambient {
  display: none;
}

.saimo-hero.is-portrait .saimo-hero-bg-ambient {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: blur(36px) brightness(0.40) saturate(1.2);
  opacity: 0.85;
  transform: scale(1.18);
  pointer-events: none;
}

.saimo-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 1;
  filter: none;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.saimo-hero.is-portrait .saimo-hero-bg {
  left: auto;
  right: clamp(1.5rem, 4vw, 4.5rem);
  top: 76px;
  bottom: 20px;
  width: min(38%, 440px);
  height: calc(100% - 96px);
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 14px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.72));
}

.saimo-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 20, 0.06) 0%, rgba(10, 11, 20, 0.25) 60%, rgba(10, 11, 20, 0.78) 88%, #0a0b14 100%),
    linear-gradient(90deg, rgba(10, 11, 20, 0.76) 0%, rgba(10, 11, 20, 0.36) 46%, transparent 78%);
  pointer-events: none;
}

.saimo-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  max-height: 100%;
  padding: 84px clamp(1rem, 3vw, 3rem) 2rem;
}

.saimo-hero.is-portrait .saimo-hero-content {
  max-width: min(640px, 56%);
}

.saimo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.65rem;
}

.saimo-hero-badge {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f3f6ff;
}

.saimo-hero-badge.badge-rating {
  color: #ffcc33;
  background: rgba(255, 204, 51, 0.14);
  border-color: rgba(255, 204, 51, 0.32);
}

.saimo-hero-content h1 {
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.06;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saimo-hero-content p {
  margin: 0.72rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.52;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.saimo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 1.1rem;
}

.saimo-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #0a0b14;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.saimo-btn-watch:hover {
  background: #4ff3e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 243, 224, 0.38);
}

.saimo-btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.saimo-btn-fav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
}

.saimo-btn-fav.is-fav {
  color: #ff5d7a;
  background: rgba(255, 93, 122, 0.16);
  border-color: rgba(255, 93, 122, 0.45);
}

.saimo-hero-dots {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saimo-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.saimo-hero-dot.active {
  width: 22px;
  background: #4ff3e0;
}

/* Fileiras horizontais (Rails) */
.saimo-rail {
  margin: 0 0 1.7rem;
}

.saimo-rail-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 clamp(1rem, 3vw, 3rem);
  margin-bottom: 0.6rem;
}

.saimo-rail-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.saimo-rail-more {
  color: #4ff3e0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.saimo-rail-more:hover {
  background: rgba(79, 243, 224, 0.12);
}

.saimo-rail-body {
  position: relative;
}

.saimo-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px clamp(1rem, 3vw, 3rem) 12px;
}

.saimo-rail-track::-webkit-scrollbar {
  display: none;
}

.saimo-rail-arrow {
  position: absolute;
  top: 8px;
  bottom: 38px;
  z-index: 4;
  width: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 22, 38, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.saimo-rail-arrow.prev {
  left: 8px;
}

.saimo-rail-arrow.next {
  right: 8px;
}

.saimo-rail-body:hover .saimo-rail-arrow {
  opacity: 1;
}

.saimo-rail-arrow:hover {
  background: rgba(79, 243, 224, 0.26);
  border-color: rgba(79, 243, 224, 0.5);
}

/* Card Largo ("Ao vivo agora") — Mini-Player 16:9 com Transmissão Real e Áudio */
.saimo-live-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  padding: 10px 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.saimo-live-card:hover,
.saimo-live-card:focus-visible {
  background: rgba(79, 243, 224, 0.08);
  border-color: #4ff3e0;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.saimo-live-card:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
}

.saimo-live-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #090c18;
}

.saimo-live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  pointer-events: none;
}

.saimo-live-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #13172b, #090c18);
  z-index: 1;
  transition: opacity 0.25s ease;
}

.saimo-live-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.saimo-live-poster img {
  max-width: 64%;
  max-height: 52px;
  object-fit: contain;
}

.saimo-live-poster span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.6rem;
  font-weight: 800;
}

.saimo-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.92);
  color: #ffffff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.saimo-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: saimoLivePulse 1.2s infinite;
}

@keyframes saimoLivePulse {
  50% { opacity: 0.3; }
}

.saimo-live-audio-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 17, 32, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.18s ease;
}

.saimo-live-audio-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.saimo-live-audio-btn:hover,
.saimo-live-audio-btn:focus-visible {
  background: rgba(79, 243, 224, 0.24);
  border-color: #4ff3e0;
  color: #4ff3e0;
  transform: scale(1.05);
  outline: none;
}

.saimo-live-audio-btn.is-audible {
  background: #4ff3e0;
  color: #0a0b14;
  border-color: #4ff3e0;
  box-shadow: 0 0 12px rgba(79, 243, 224, 0.5);
}

.saimo-live-audio-btn.needs-gesture {
  background: rgba(245, 158, 11, 0.95);
  color: #0a0b14;
  border-color: #f59e0b;
}

.saimo-live-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.saimo-live-spinner.hidden {
  display: none;
}

.saimo-live-spinner-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #4ff3e0;
  animation: saimoSpin 0.75s linear infinite;
}

@keyframes saimoSpin {
  to { transform: rotate(360deg); }
}

.saimo-live-offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: rgba(13, 16, 29, 0.92);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  z-index: 2;
}

.saimo-live-offline.hidden {
  display: none;
}

.saimo-live-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}

.saimo-live-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.saimo-live-mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.saimo-live-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.saimo-live-mini-logo span {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.saimo-live-card strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.saimo-live-card small {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 29px;
}

.saimo-live-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.saimo-live-progress b {
  display: block;
  height: 100%;
  background: #4ff3e0;
}

/* Card Poster (Filmes, Séries, Animes, Doramas) */
.saimo-poster-card {
  flex: 0 0 154px;
  width: 154px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.saimo-poster-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #1b1e36, #12142a);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.saimo-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saimo-poster-initials {
  color: rgba(255, 255, 255, 0.26);
  font-size: 2rem;
  font-weight: 800;
}

.saimo-poster-card:hover .saimo-poster-thumb,
.saimo-poster-card:focus-visible .saimo-poster-thumb {
  border-color: #4ff3e0;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(79, 243, 224, 0.22);
}

.saimo-poster-card:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 4px;
  border-radius: 16px;
}

.saimo-rail-more:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
  background: rgba(79, 243, 224, 0.18);
  color: #ffffff;
}

.saimo-poster-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #ff5d7a;
  font-style: normal;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.saimo-poster-card strong {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saimo-poster-card small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
}

/* Sub-views na Home (Buscar e Favoritos) */
.saimo-subview {
  padding-top: 86px;
  min-height: 75vh;
}

.saimo-subpage-head {
  padding: 0.8rem clamp(1rem, 3vw, 3rem) 1.2rem;
}

.saimo-subpage-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.saimo-subpage-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.saimo-search-bar-wrap {
  padding: 0 clamp(1rem, 3vw, 3rem) 1.5rem;
}

.saimo-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.72);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.saimo-search-field:focus-within {
  border-color: #4ff3e0;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.saimo-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
}

.saimo-search-clear {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.saimo-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.saimo-empty-state h2 {
  color: #ffffff;
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.saimo-empty-state p {
  margin: 0 auto 1.1rem;
  max-width: 32rem;
  line-height: 1.5;
}

.saimo-primary-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #0a0b14;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 1600px) {
  .saimo-hero {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
  }
  .saimo-hero-content {
    max-width: 820px;
    padding: 96px 4rem 2.6rem;
  }
  .saimo-hero.is-portrait .saimo-hero-bg {
    right: 4.5rem;
    width: min(36%, 480px);
    top: 86px;
    bottom: 24px;
    height: calc(100% - 110px);
  }
}

@media (max-width: 768px) {
  .saimo-hero {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
  .saimo-hero.is-portrait .saimo-hero-bg {
    left: 12px;
    right: 12px;
    top: 10px;
    bottom: 10px;
    width: calc(100% - 24px);
    height: calc(100% - 20px);
    object-fit: contain !important;
    object-position: center top !important;
  }
  .saimo-hero-vignette {
    background:
      linear-gradient(180deg, rgba(10, 11, 20, 0.08) 0%, rgba(10, 11, 20, 0.42) 48%, rgba(10, 11, 20, 0.90) 82%, #0a0b14 100%);
  }
  .saimo-hero-content,
  .saimo-hero.is-portrait .saimo-hero-content {
    max-width: 100%;
    padding: 24px 1rem 1.35rem;
  }
  .saimo-hero-content p {
    -webkit-line-clamp: 2;
    font-size: 0.88rem;
  }
  .saimo-hero-dots,
  .saimo-rail-arrow {
    display: none;
  }
  .saimo-poster-card {
    flex: 0 0 132px;
    width: 132px;
  }
  .saimo-live-card {
    flex: 0 0 220px;
    width: 220px;
  }
  .saimo-subview {
    padding-top: 20px;
  }
}

/* ==========================================================================
   CINE & SÉRIES HUB (ON DEMAND REDESIGN)
   ========================================================================== */
.cine-catalog {
  color: #fff;
  min-height: 100vh;
  padding-top: 86px;
  padding-bottom: 5rem;
  position: relative;
}

.cine-destaque-topo {
  z-index: 2;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 980px;
  padding: 0.8rem clamp(1.2rem, 3.5vw, 3.5rem) 0.4rem;
  display: flex;
  position: relative;
}

.cine-destaque-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.cine-destaque-titulo {
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.cine-badge-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 243, 224, 0.12);
  color: #4fe3d0;
  border: 1px solid rgba(79, 243, 224, 0.3);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.cine-destaque-sinopse {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 720px;
}

/* Sticky Sub-Navbar Pill */
.cine-sub-barra {
  z-index: 800;
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  background: rgba(18, 20, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 1rem clamp(1.2rem, 3.5vw, 3.5rem) 1.6rem;
  padding: 8px 16px;
  display: flex;
  position: sticky;
  top: 72px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.08);
}

.cine-sub-barra-pills {
  scrollbar-width: none;
  align-items: center;
  gap: 6px;
  display: flex;
  overflow-x: auto;
}

.cine-sub-barra-pills::-webkit-scrollbar {
  display: none;
}

.cine-sub-pill {
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cine-sub-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cine-sub-pill:focus-visible,
.cine-sub-btn-modo:focus-visible,
.cine-letra-pill:focus-visible,
.cine-genre-pill:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(79, 243, 224, 0.28);
}

.cine-sub-pill.ativa {
  color: #0b0f19;
  background: #fff;
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

.cine-sub-barra-acoes {
  align-items: center;
  gap: 10px;
  display: flex;
}

.cine-sub-busca {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
}

.cine-sub-busca:focus-within {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #4fe3d0;
}

.cine-sub-busca svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.cine-sub-busca input {
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  width: 140px;
  font-size: 0.85rem;
  transition: width 0.2s ease;
}

.cine-sub-busca input:focus {
  width: 200px;
}

.cine-sub-btn-modo {
  color: #4fe3d0;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(79, 227, 208, 0.12);
  border: 1px solid rgba(79, 227, 208, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cine-sub-btn-modo:hover {
  background: rgba(79, 227, 208, 0.22);
}

.cine-sub-btn-modo.ativo {
  color: #06181f;
  background: #4fe3d0;
  border-color: #4fe3d0;
  font-weight: 700;
}

/* Letras A-Z Barra */
.cine-letras-barra {
  scrollbar-width: none;
  background: rgba(14, 16, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  margin: 0 clamp(1.2rem, 3.5vw, 3.5rem) 1.5rem;
  padding: 6px 12px;
  display: flex;
  overflow-x: auto;
}

.cine-letras-barra::-webkit-scrollbar {
  display: none;
}

.cine-letra-pill {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cine-letra-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.cine-letra-pill.ativa {
  color: #06181f;
  background: #4fe3d0;
}

/* Categorias em Colagem */
.cine-section-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 clamp(1.2rem, 3.5vw, 3.5rem) 1rem;
}

.cine-categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 clamp(1.2rem, 3.5vw, 3.5rem) 2.5rem;
}

.saimo-course-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  text-align: center;
  color: #e2e8f0;
  gap: 12px;
}

.saimo-course-fallback span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vod-card-secao {
  cursor: pointer;
  text-align: left;
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  height: 191px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.vod-card-secao:hover,
.vod-card-secao:focus-visible {
  border-color: #4ff3e0;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 0 3px rgba(79, 243, 224, 0.35), 0 14px 40px rgba(0, 0, 0, 0.6);
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
}

.vod-card-secao-colagem {
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 100%;
  display: grid;
  position: absolute;
  inset: 0;
}

.vod-card-secao-colagem img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.vod-card-secao-veu {
  background: linear-gradient(rgba(10, 11, 20, 0.25) 0%, rgba(10, 11, 20, 0.88) 65%, rgba(10, 11, 20, 0.98) 100%);
  position: absolute;
  inset: 0;
}

.vod-card-secao-info {
  z-index: 2;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 18px;
  display: flex;
  position: absolute;
  inset: 0;
}

.vod-card-secao-icone {
  color: #0b0f19;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.vod-card-secao-icone svg {
  width: 22px;
  height: 22px;
}

.vod-card-secao-info h3 {
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.vod-card-secao-info p {
  color: rgba(255, 255, 255, 0.72);
  margin: 2px 0 0;
  font-size: 0.84rem;
}

/* Category Specific Grid View */
.cine-tab-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 clamp(1.2rem, 3.5vw, 3.5rem) 1.5rem;
}

.cine-tab-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cine-catalog-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

.cine-catalog-meta.hidden {
  display: none;
}

.cine-genre-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cine-genre-pills::-webkit-scrollbar {
  display: none;
}

.cine-genre-pill {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cine-genre-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cine-genre-pill.ativa {
  background: #4fe3d0;
  border-color: #4fe3d0;
  color: #06181f;
  font-weight: 700;
}

.cine-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
  margin: 0 clamp(1.2rem, 3.5vw, 3.5rem);
}

.cine-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2rem clamp(1.2rem, 3.5vw, 3.5rem) 3rem;
  padding: 16px 20px;
  background: rgba(18, 21, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.cine-pagination.hidden {
  display: none;
}

.cine-pagination-info {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cine-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cine-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cine-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(79, 243, 224, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.cine-page-btn.ativa {
  background: #4fe3d0;
  border-color: #4fe3d0;
  color: #06181f;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(79, 227, 208, 0.35);
}

.cine-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.cine-page-btn:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
  border-color: #4ff3e0;
  box-shadow: 0 0 0 4px rgba(79, 243, 224, 0.32);
  transform: translateY(-1px) scale(1.04);
}

.cine-page-dots {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 4px;
  user-select: none;
}

@media (max-width: 768px) {
  .cine-catalog {
    padding-top: 70px;
  }
  .cine-sub-barra {
    box-sizing: border-box;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: calc(100% - 20px);
    margin: 0.4rem 10px 0.8rem;
    padding: 8px 10px;
    display: flex;
    top: 8px;
  }
  .cine-sub-barra-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }
  .cine-sub-busca {
    flex: 1;
    width: 100%;
  }
  .cine-sub-busca input {
    width: 100% !important;
  }
  .cine-categorias-grid {
    grid-template-columns: 1fr;
    margin: 0 10px 1.5rem;
  }
  .cine-grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin: 0 10px;
  }
}

/* ==========================================================================
   FICHA TÉCNICA CINEMÁTICA (MODAL / PAINEL DETALHADO)
   ========================================================================== */
.vod-ficha-dialog {
  border: none;
  background: transparent;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  overflow: hidden;
}

.vod-ficha-dialog.hidden {
  display: none;
}

.vod-ficha-modal-backdrop {
  background: rgba(8, 10, 18, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  position: absolute;
  inset: 0;
}

.vod-ficha-modal-container {
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 243, 224, 0.4) transparent;
}

.vod-ficha-hero {
  position: relative;
  min-height: 480px;
  padding: 2.5rem clamp(1.2rem, 5vw, 4.5rem) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vod-ficha-hero-fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.85;
  filter: none;
}

.vod-ficha-hero-veu {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(8, 10, 18, 0.65) 82%, #0a0b14 100%);
}

.vod-ficha-hero-voltar {
  z-index: 10;
  position: absolute;
  top: 24px;
  left: clamp(1.2rem, 5vw, 4.5rem);
  background: rgba(18, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  backdrop-filter: blur(16px);
}

.vod-ficha-hero-voltar:hover {
  background: #fff;
  color: #0b0f19;
  border-color: #fff;
}

.vod-ficha-hero-corpo {
  z-index: 2;
  position: relative;
  display: flex;
  gap: 2.5rem;
  align-items: flex-end;
  max-width: 1100px;
}

.vod-ficha-hero-capa {
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.vod-ficha-hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vod-ficha-titulo {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.vod-ficha-selos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vod-selo-nota {
  color: #facc15;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vod-selo-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.vod-ficha-generos {
  color: #4fe3d0;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.vod-ficha-sinopse {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 4px 0 12px;
}

.vod-ficha-botoes {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.vod-btn-assistir {
  background: #fff;
  color: #0b0f19;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.vod-btn-assistir:hover {
  background: #4fe3d0;
  color: #06181f;
  transform: scale(1.03);
}

.vod-btn-favorito {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.vod-btn-favorito:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Séries: Temporadas e Episódios */
.vod-ficha-series,
.vod-ficha-elenco {
  max-width: 1100px;
  margin: 2.5rem clamp(1.2rem, 5vw, 4.5rem);
}

.vod-ficha-secao-titulo {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
}

.vod-temporadas-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
}

.vod-temporadas-pills::-webkit-scrollbar {
  display: none;
}

.vod-temporada-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.vod-temporada-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.vod-temporada-pill.ativa {
  background: #4fe3d0;
  border-color: #4fe3d0;
  color: #06181f;
  font-weight: 700;
}

.vod-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.vod-ep-card {
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.vod-ep-card:hover,
.vod-ep-card:focus-visible {
  transform: translateY(-3px);
  border-color: #4ff3e0;
  outline: 2.5px solid #4ff3e0;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(79, 243, 224, 0.28);
}

.vod-ficha-hero-voltar:focus-visible,
.vod-btn-assistir:focus-visible,
.vod-btn-favorito:focus-visible,
.vod-temporada-pill:focus-visible {
  outline: 2.5px solid #4ff3e0;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(79, 243, 224, 0.32);
}

.vod-ep-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f111a;
  overflow: hidden;
}

.vod-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-ep-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vod-ep-card:hover .vod-ep-play-overlay,
.vod-ep-card:focus-visible .vod-ep-play-overlay {
  opacity: 1;
}

.vod-ep-play-circulo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0b0f19;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.vod-ep-progresso {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #2dd4bf;
}

.vod-ep-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vod-ep-titulo {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-ep-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin: 0;
}

.vod-ep-sinopse {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Elenco */
.vod-ficha-elenco-lista {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.vod-ficha-elenco-lista::-webkit-scrollbar {
  display: none;
}

.vod-ator-card {
  flex: 0 0 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vod-ator-foto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vod-ator-nome {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vod-ator-papel {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .vod-ficha-hero {
    min-height: auto;
    padding: 70px 14px 20px;
  }
  .vod-ficha-hero-corpo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .vod-ficha-hero-capa {
    width: 150px;
    height: 225px;
  }
  .vod-ficha-selos,
  .vod-ficha-botoes {
    justify-content: center;
  }
  .vod-ficha-sinopse {
    text-align: left;
  }
  .vod-ep-grid {
    grid-template-columns: 1fr;
  }
  .vod-ficha-hero-voltar {
    top: 14px;
    left: 14px;
    padding: 6px 14px;
  }
}
