/* ================================================= */
/* Conteúdo de: style.css (ARQUIVO BASE)             */
/* ================================================= */
:root {
    --swiper-navigation-size: 38px;
    --swiper-theme-color: #232121;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse at top, #141a22, #111827);
    background-color: #111827;
    background-attachment: fixed;
    min-height: 100vh;
    color: #E5E7EB;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

#app-container,
#profile-selection-screen {
    visibility: hidden;
    display: none;
}

#app-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
    transform: none !important; 
    position: static !important;
}

#app-container.details-blur {
    opacity: 0.5;
    pointer-events: none;
    filter: none;
}

#main-header {
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
    z-index: 1000; /* Garante que o header fique acima de outros conteúdos */
}

#main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link.active {
    color: white;
    font-weight: 700;
}

#player-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease-in-out;
}

.player-wrapper {
    transition: max-width 0.3s ease-in-out, margin-right 0.3s ease-in-out;
    width: 100%;
    max-width: 1100px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    border-radius: 0.75rem; 
}

.player-content-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.player-content-container iframe,
.player-content-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

.player-header .title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 180px);
}

.player-header .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-header .actions button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.player-header .actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-header .actions button svg {
    width: 24px;
    height: 24px;
}

.player-close-btn {
    transition: all 0.2s ease-in-out;
}

.player-close-btn:hover {
    transform: scale(1.2) rotate(90deg);
    color: #201e1e;
}

#player-favorite-btn {
    transition: all 0.2s ease-in-out;
}

#player-favorite-btn:hover {
    transform: scale(1.2);
}

#player-favorite-btn.favorited svg {
    stroke: #FBBF24;
    fill: #FBBF24;
}

.player-episode-nav {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.player-episode-btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.player-episode-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.player-info-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.player-info-top .nav-buttons {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 6px;
}

.player-info-top .nav-buttons button {
  flex: 1;
  padding: 8px;
  font-size: 0.9rem;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.player-info-bottom {
  margin-top: 8px;
  text-align: center;
}

.player-info-bottom .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

#details-modal-container {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.details-modal-content {
    background-color: #181818;
    border-radius: 0.75rem; 
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

.details-modal-scrollable {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.details-modal-scrollable::-webkit-scrollbar {
    width: 8px;
}

.details-modal-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.details-modal-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}
#mobile-watch-party-actions {
    display: none;
}
.details-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center top;
}

.details-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181818 5%, rgba(24, 24, 24, 0.5) 50%, rgba(24, 24, 24, 0) 100%);
}

.details-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    color: white;
}

.details-hero-content h2 {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.details-body-content {
    padding: 0 1.5rem 2rem;
}

.details-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #A1A1AA;
}

.details-meta-info span {
    font-weight: 600;
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.details-actions button {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0.75rem 1rem;
}

#details-mylist-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #181818;
}

#details-mylist-btn:hover {
    background-color: white;
}

#details-trailer-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

#details-trailer-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.details-section {
    margin-top: 2rem;
}

.details-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}

.cast-member {
    text-align: center;
    cursor: pointer;
}

.cast-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem;
}

.cast-member .name {
    font-weight: 600;
    font-size: 0.875rem;
}

.cast-member .character {
    font-size: 0.75rem;
    color: #A1A1AA;
}

.provider-btn {
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.provider-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.provider-grid::-webkit-scrollbar {
    display: none;
}
.provider-card {
    background-image: linear-gradient(to top, #ffffffb3, #a0a0a0);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    flex-shrink: 0;
    width: 150px;
}
.provider-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #0f3dc4cb;
    box-shadow: 0 10px 15px -3px rgba(37, 20, 193, 0.3), 0 4px 6px -4px rgba(5, 63, 178, 0.3);
}
.provider-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.media-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 2 / 3;
    background-color: #374151;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.media-card-img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    pointer-events: none;
}

.media-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
}

.overlay .card-title {
    font-weight: 600;
    color: white;
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ef444400; /* NOTE: This is transparent, might be a bug */
    transition: width 0.3s ease;
}

.rating-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #FBBF24;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.new-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #ef444400; /* NOTE: This is transparent, might be a bug */
    color: white;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}
.page-header-title {
    padding-left: 1rem;
    border-left: 5px solid #111827;
}

.empty-list-container {
    background-color: rgba(31, 41, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem;
}

.is-channel-card {
    aspect-ratio: 16 / 9;
    background: linear-gradient(to bottom, #1F2937, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-channel-card .media-card-img {
    position: relative;     /* Remove o posicionamento absoluto herdado */
    width: 75%;             /* Reduz o tamanho da imagem para 75% do card */
    height: 75%;            /* Isso cria as "bordas" internas */
    object-fit: contain;    /* Garante que o logo não seja cortado ou esticado */
}

.is-channel-card .overlay {
    display: none;
}

.swiper-slide {
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 1) 0%, transparent 100%);
    z-index: 2;
}

.swiper-pagination-bullet-active {
    background-color: var(--swiper-theme-color);
}

@keyframes kenburns {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-2%, 2%); }
}

.swiper-slide-active .kenburns-img {
    animation: kenburns 20s ease-out forwards;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 90vh;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.8) 0%, transparent 20%), linear-gradient(to right, rgba(17, 24, 39, 1) 20%, rgba(17, 24, 39, 0.5) 50%, rgba(17, 24, 39, 0) 100%);
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 1) 10%, transparent 50%);
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 50%;
}

.hero-banner-logo {
    max-width: 400px;
    max-height: 200px;
    margin-bottom: 1.5rem;
}

.hero-banner-description {
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 600px;
    margin-top: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-banner-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.hero-banner-actions button {
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mosaic-banner {
    width: 100%;
    height: 60vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.mosaic-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 1) 20%, transparent 50%), linear-gradient(to top, rgba(17, 24, 39, 1) 10%, transparent 50%);
}

.mosaic-item {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.mosaic-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.mosaic-item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.mosaic-item:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; }

.mosaic-banner-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 2;
}

.mosaic-banner-content img {
    max-height: 100px;
    max-width: 250px;
}

#search-box {
    position: relative;
}

#search-input, 
#search-input-mobile {
    width: 38px;
    height: 38px;
    background-color: transparent;
    border: 1px solid #4B5563;
    color: white;
    padding-left: 38px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

#search-input:focus, 
#search-input-mobile:focus {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: text;
}

#search-input:focus { width: 180px; }
#search-input-mobile:focus { width: 200px; border-color: #ef444400; }

#search-icon-btn, 
#search-icon-btn-mobile {
    position: absolute;
    left: 0;
    top: 0;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: color 0.2s;
    pointer-events: none;
}

#search-input:focus + #search-icon-btn,
#search-input-mobile:focus + #search-icon-btn-mobile {
    color: white;
}

#search-icon-btn svg,
#search-icon-btn-mobile svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-lupe { display: inline; }
.search-spinner { display: none; }

#search-icon-btn.loading .search-lupe,
#search-icon-btn-mobile.loading .search-lupe { display: none; }

#search-icon-btn.loading .search-spinner,
#search-icon-btn-mobile.loading .search-spinner { display: inline; }

.profile-card { transition: transform 0.2s; }
.profile-card:hover { transform: scale(1.05); }

.profile-avatar {
    border: 4px solid transparent;
    transition: border-color 0.2s;
}

.profile-card:hover .profile-avatar { border-color: #E5E7EB; }

.profile-card.edit-mode .profile-avatar::after {
    content: '✎';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 9999px;
}

.kids-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3B82F6;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 9999px;
}

.focusable {
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.tv *:focus,
body.tv .focusable.focused {
    outline: 3px solid #03A9F4;
    box-shadow: 0 0 10px #03A9F4;
}

body:not(.tv) *:focus {
    outline: none !important;
    box-shadow: none !important;
}

.user-is-using-keyboard .focusable:focus,
.user-is-using-keyboard .focused {
    z-index: 30;
}

.user-is-using-keyboard .media-card.focused {
    transform: scale(1.07) !important;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; 
    gap: 16px;                   
}

.genre-card {
    background-color: #45495025; 
    border: 1px solid #4A5568;  
    color: #E2E8F0;             
    padding: 8px 20px;          
    border-radius: 9999px;      
    text-align: center;      
    cursor: pointer;           
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s; 
    font-weight: 500;          
}

.genre-card:hover {
    background-color: #4A5568; 
    border-color: #60A5FA;    
    transform: translateY(-2px); 
}

.genres-container {
    max-width: 1200px; 
    margin: 0 auto;    
    padding: 0 24px;   
}

.category-row {
  position: relative;
  background: rgba(20, 25, 34, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem 1.25rem;
  margin: 0 0 1.5rem 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.category-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(25, 30, 42, 0.7);
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #f1f5f9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  margin: 0 0 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3B82F6, #06B6D4);
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 6px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll .media-card {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1f2937;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.horizontal-scroll .media-card:hover,
body.tv .horizontal-scroll .media-card.focused {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
  z-index: 20;
}

.horizontal-scroll .media-card .media-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.horizontal-scroll .media-card:hover .media-card-img {
  transform: scale(1.1);
  filter: contrast(1.1) brightness(1.05);
}

.horizontal-scroll .media-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.horizontal-scroll .media-card:hover .overlay {
  opacity: 1;
}

.overlay .card-title {
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.top-10-card {
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.top-10-rank {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    -webkit-text-stroke: 2px #A1A1AA;
    text-shadow: -1px 1px 0 #E5E7EB, 1px 1px 0 #E5E7EB, 1px -1px 0 #E5E7EB, -1px -1px 0 #E5E7EB;
    z-index: 1;
    transform: translateX(15%);
    transition: all 0.3s ease;
}

.top-10-card:hover .top-10-rank {
    color: #1F2937;
    -webkit-text-stroke: 2px #E5E7EB;
}

.top-10-img-wrapper {
    width: 120px;
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.top-10-card:hover .top-10-img-wrapper {
    transform: scale(1.15) translateX(-5%);
}

.top-10-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#autoplay-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#autoplay-overlay img {
    width: 120px;
    height: 67.5px;
    object-fit: cover;
    border-radius: 0.25rem;
}

#autoplay-cancel-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 9999px;
    line-height: 1;
}

#load-more-btn {
    display: block !important;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4B5563;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 95% !important;
  max-width: 600px !important;
  justify-content: space-around !important;
  background-color: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid rgba(39, 39, 42, 0.5) !important;
  border-radius: 1rem !important;
  z-index: 9999 !important;
}

.bottom-nav-link .nav-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bottom-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    height: 38px;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-link .icon-solid { display: none; }
.bottom-nav-link.active { color: #e2e0e056; font-weight: 600; } /* NOTE: This color has low contrast, might be a bug */
.bottom-nav-link.active::before { transform: translate(-50%, -50%) scale(1); }
.bottom-nav-link.active .icon-outline { display: none; }
.bottom-nav-link.active .icon-solid { display: block; }

.bottom-nav-link[data-view="perfil"] img {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.bottom-nav-link[data-view="perfil"].active img {
    border-color: #000000;
}

.profile-page-container {
    padding-top: 80px;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #4B5563;
}

.profile-menu-list a {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #1F2937;
    color: #E5E7EB;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.profile-menu-list a:hover {
    background-color: #374151;
    border-color: #4B5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-menu-list a svg {
    margin-right: 1rem;
    color: #9CA3AF;
}

#profile-menu-dropdown {
    background-color: #1F2937; 
    border-radius: 2rem; 
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); 
}

#profile-menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #E5E7EB;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    margin: 0.25rem;
    border-radius: 9999px !important;
}

#profile-menu-dropdown a:hover {
    background-color: #374151;
    color: #FFFFFF;
}

#profile-menu-dropdown a.logout-btn { color: #ffffff; }
#profile-menu-dropdown a.logout-btn:hover { background-color: #ffffff; color: #FFFFFF; }


.media-card { position: relative; }
.media-card .mark-as-watched-btn {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background-color: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    align-items: center;
    justify-content: center;
}

.continue-watching-row .media-card .mark-as-watched-btn {
    display: flex;
}

.mark-as-watched-btn:hover,
.mark-as-watched-btn:active {
    background-color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* === PILL BUTTONS (global + detalhes + player + providers) === */
button,
.details-actions button,
#mobile-watch-party-actions button,
.provider-btn,
.player-info-top .nav-buttons button {
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

button:hover,
.details-actions button:hover,
#mobile-watch-party-actions button:hover,
.provider-btn:hover,
.player-info-top .nav-buttons button:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2),
              inset 0 0 8px rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

button:active,
.details-actions button:active,
.provider-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

button:disabled,
.provider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
}

.bg-hero-container { position: relative; }
.bg-hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: url('streaming.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.6);
}
.header-gradient {
     background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
}
.em-alta-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.em-alta-card:hover { transform: scale(1.05); }
.em-alta-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    background-color: #333;
    z-index: 1;
}
.em-alta-card .rank-number {
    font-size: 6rem;
    font-weight: 900;
    color: #111;
    -webkit-text-stroke: 3px white;
    line-height: 1;
    z-index: 2;
    position: relative;
    transform: translateX(-20%);
}
.faq-question button[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { transition: max-height 0.3s ease-out; }

@media (max-width: 768px) {
    #player-modal { padding: 0; background-color: #000; }
    .player-wrapper { height: auto; width: 100%; border-radius: 0; }
    body.chat-open #player-modal {
        height: 50vh;
        top: 0;
        bottom: auto;
        align-items: flex-end;
        padding-bottom: 1rem;
    }
    .details-hero { height: 40vh; }
    .details-hero-content h2 { font-size: 1.75rem; }
    .details-body-content,
    .details-hero-content { padding: 1rem; }
    .details-actions { flex-direction: column; }
    #details-actions #btn-create-room-details,
    #details-actions #btn-join-room-details { display: none; }
    #mobile-watch-party-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    #mobile-watch-party-actions button {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        padding: 0.75rem 1rem;
    }
    .cast-list { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 1rem; }
    .cast-member img { width: 60px; height: 60px; }
    .hero-banner { height: 70vh; }
    .hero-banner-content { max-width: 90%; }
    .hero-banner-logo { max-width: 250px; }
    .mosaic-banner {
        height: 50vh;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .mosaic-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
    .mosaic-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
    .mosaic-item:nth-child(3) { display: none; }
    .mosaic-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }

    .bottom-nav-link {
        flex: 1;
        text-align: center;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    .bottom-nav-link .icon-outline,
    .bottom-nav-link .icon-solid { transition: opacity 0.3s ease; }

    .bottom-nav-link.active { color: #fff; }
    .bottom-nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 24px;
        background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
        border-radius: 9999px;
        box-shadow: 0 0 12px rgba(255,255,255,0.35);
        z-index: -1;
    }
    .bottom-nav-link.active .icon-outline { opacity: 0; }
    .bottom-nav-link.active .icon-solid { opacity: 1; }
    .bottom-nav-link:hover { color: #ffffff; transform: translateY(-2px); }
}

@media (min-width: 640px) {
    .provider-card { width: 220px; }
    .horizontal-scroll .media-card { width: 120px; }
    .category-title { font-size: 1.2rem; text-align: center; }
    .category-row { border-radius: 12px; padding: 0.5rem; }
}

@media (min-width: 1024px) {
   #bottom-nav {
      max-width: 600px !important;
      border-radius: 1.5rem !important; 
   }
}

@media (min-width: 1200px) {
    .player-info-top .nav-buttons button { font-size: 1.2rem !important; padding: 12px 18px !important; }
    .player-info-bottom .title { font-size: 1.2rem !important; }
}

/* ================================================= */
/* Conteúdo de: canais-style.css                     */
/* ================================================= */
body { 
    background: #0a0f1f; 
    font-family: 'Inter', sans-serif; 
    color: #e5e7eb; 
}

.tv-header { 
    background: linear-gradient(to bottom, rgba(10, 15, 31, 0.8), transparent); 
}

.tv-controls-container { 
    background: rgba(17, 24, 39, 0.5); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 1rem; 
}

.search-box { 
    position: relative; 
}
.search-box svg { 
    position: absolute; 
    left: 1.25rem; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #6b7280; 
}
.search-box input { 
    background-color: rgba(31, 41, 55, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    font-size: 1.1rem; 
    font-weight: 500; 
    padding-left: 3.5rem; 
    border-radius: 9999px;
}
.search-box input:focus { 
    outline: 2px solid #6b728000; 
}

.tv-control { 
    background-color: rgba(31, 41, 55, 0.7) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    font-size: 1.1rem; font-weight: 500; 
    border-radius: 9999px;
}

.channel-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 1.5rem; 
}
.channel-card { 
    background-color: rgba(31, 41, 55, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 0.75rem; 
    padding: 1.25rem; 
    transition: all 0.2s ease-in-out; 
    cursor: pointer;
    position: relative;
}

.channel-card:hover, .channel-card.focused { 
    transform: scale(1.05); 
    background-color: rgba(55, 65, 81, 0.8); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    outline: 3px solid #ef4444 !important;
    outline-offset: 3px;
}

.channel-card img { width: 90px; height: 70px; }
.channel-card h3 { font-size: 1.25rem; }

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.favorite-btn:hover {
    background-color: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}
.favorite-btn svg {
    width: 24px;
    height: 24px;
    color: #cbd5e1;
    transition: all 0.2s ease;
}
.favorite-btn.favorited svg {
    color: #f59e0b;
    fill: #f59e0b;
}

.shelf {
  margin-bottom: 2.5rem;
}
.shelf-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}
.shelf .channel-grid {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1.5rem;
}
.shelf .channel-card {
  flex-shrink: 0;
  width: 350px;
}
.shelf .channel-grid::-webkit-scrollbar { display: none; }
.shelf .channel-grid { -ms-overflow-style: none; scrollbar-width: none; }

.player-info-overlay { 
    position: absolute; 
    bottom: 3rem; 
    left: 3rem; 
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px); 
    color: white; padding: 1.5rem; 
    border-radius: 0.75rem; 
    z-index: 2100; 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out 1s; 
}
.player-info-overlay.fade-out { opacity: 0; }
.player-info-overlay .program-title { font-size: 1.25rem; }
.player-info-overlay .program-time { color: #9ca3af; }

.pip-btn {
    position: absolute;
    top: 1rem;
    right: 5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2200;
}
.pip-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.pip-btn svg { width: 24px; height: 24px; }

.skeleton-card {
  background-color: rgba(31, 41, 55, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-img {
  width: 90px;
  height: 70px;
  background-color: rgba(55, 65, 81, 0.8);
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.skeleton-text-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.skeleton-text {
  height: 20px;
  width: 70%;
  background-color: rgba(55, 65, 81, 0.8);
  border-radius: 0.25rem;
}
.skeleton-text-small {
  height: 16px;
  width: 50%;
  background-color: rgba(55, 65, 81, 0.8);
  border-radius: 0.25rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}


/* ================================================= */
/* Conteúdo de: tv-guide.css                         */
/* ================================================= */
.tv-guide-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tv-search { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); padding: 10px 14px; border-radius: 10px; color: #fff; min-width: 220px; }
.tv-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 10px; color: #fff; cursor: pointer; }
.tv-btn:disabled { opacity: 0.6; cursor: default; }
.channel-card { background: linear-gradient(180deg, #071021, #081022); }
.play-btn { background: linear-gradient(90deg,#ef4444,#f97316); color: white; }

#player-header {
    background: #000;
    font-size: 1.4rem;
    font-weight: 600;
}
#player-header .tv-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}
#player-header .tv-btn:hover {
    background: rgba(255,255,255,0.25);
}

#guia-lateral {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow-y: auto;
    padding-bottom: 80px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

#guia-lateral.hidden {
    transform: translateX(100%);
    opacity: 0;
}
#guia-lateral.show {
    transform: translateX(0);
    opacity: 1;
}

#guia-lateral::-webkit-scrollbar {
    width: 6px;
}
#guia-lateral::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
}

#guia-conteudo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.program-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(-4px);
}

.program-item.em-andamento {
    border-left: 4px solid #f97316;
    background: linear-gradient(90deg, rgba(249,115,22,0.15), rgba(0,0,0,0.8));
}

.program-horario {
    font-size: 0.95rem;
    color: #aaa;
}

.program-titulo {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}
.program-progress {
    position: relative;
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}
.program-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 0.4s ease;
}

#player-info-overlay {
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
}
/* ============================================== */
/* 1. GLOBAIS & TEMA (:root, body, keyframes)      */
/* ============================================== */

/* Definição única das variáveis de cores para todo o site */
:root {
  --primary-color: #EF4444;      /* red-500 */
  --background-color: #111827;   /* gray-900 */
  --surface-color: #1F2937;      /* gray-800 */
  --text-color: #F9FAFB;         /* gray-50 */
  --text-secondary-color: #9CA3AF;/* gray-400 */
  --border-color: #374151;       /* gray-700 */
  --gold-color: #FBBF24;
}

/* Estilo base para o corpo da página, aplicado em todo lugar */
body { 
  font-family: 'Inter', sans-serif; 
  background-color: var(--background-color); /* Esta linha garante o fundo sólido */
  color: var(--text-color);
  position: relative;
}



/* Animação reutilizável para fade-in */
@keyframes fadeInUp { 
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

/* ============================================== */
/* 2. CLASSES UTILITÁRIAS (Helpers Reutilizáveis) */
/* ============================================== */

/* Efeito "vidro fosco" para seções */
.glass-section {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cabeçalho com efeito "vidro fosco" */
.glass-header { 
  background-color: rgba(17, 24, 39, 0.75); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Scrollbar customizado */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.2); border-radius: 20px; }

/* Animações de entrada */
.content-box, .login-container { 
  animation: fadeInUp 0.8s ease-out forwards; 
}
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilidade para esconder elementos */
.hidden { 
  display: none; 
}

/* ============================================== */
/* 3. ESTILOS DE COMPONENTES ESPECÍFICOS          */
/* ============================================== */

/* --- Página de Release Notes --- */
.release-notes h3 { 
  font-size: 1.25em; 
  font-weight: 600; 
  margin-top: 25px; 
  margin-bottom: 15px; 
  color: #FFFFFF; 
  display: flex; 
  align-items: center; 
}
.release-notes h3 span { 
  margin-right: 10px; 
  font-size: 1.3em; 
}
.release-notes ul { 
  list-style: none; 
  padding-left: 0; 
}
.release-notes li { 
  margin-bottom: 12px; 
  padding-left: 22px; 
  position: relative; 
  color: #D1D5DB; 
}
.release-notes li::before {
  content: '✓';
  color: #9CA3AF;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 1px;
}
.release-notes strong { 
  color: #F9FAFB; 
  font-weight: 500; 
  margin-right: 6px; 
}

/* --- Página de Perfil --- */
.profile-banner {
  height: 200px;
  background-image: linear-gradient(to top, rgba(31, 41, 55, 1), rgba(31, 41, 55, 0.5)), url('https://images.unsplash.com/photo-1574267432553-4b4628081c31?q=80&w=1931&auto=format&fit=crop');
  background-size: cover; 
  background-position: center;
}
.profile-card { 
  background-color: var(--surface-color); 
}
.activity-item, .achievement-card { 
  border-left-color: var(--primary-color); 
}
.achievement-card.unlocked { 
  border-left-color: var(--gold-color); 
}
.achievement-card.unlocked .achievement-icon { 
  color: var(--gold-color); 
}
.horizontal-scroll { 
  display: flex; 
  overflow-x: auto; 
  padding-bottom: 1rem; 
  scrollbar-width: none; 
}
.horizontal-scroll::-webkit-scrollbar { 
  display: none; 
}
.media-card { 
  display: flex; flex-direction: column; 
  width: 200%; 
  flex-shrink: 0; 
  border-radius: 0.5rem; 
  overflow: hidden; 
  position: relative; 
  transition: transform 0.2s; 
  cursor: pointer; 
  aspect-ratio: 2 / 3; 
  background-color: #374151; 
}
.media-card:hover { 
  transform: scale(1.05); 
}
.media-card-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.progress-bar-container { 
  position: absolute; 
  bottom: 0; left: 0; right: 0; 
  height: 4px; 
  background-color: rgba(255, 255, 255, 0.2); 
}
.progress-bar { 
  height: 100%; 
  background-color: var(--primary-color); 
}
.genre-tag { 
  background-color: var(--surface-color); 
  border: 1px solid var(--border-color); 
  color: var(--text-secondary-color); 
  font-size: 0.75rem; 
  font-weight: 500; 
  padding: 4px 10px; 
  border-radius: 9999px; 
}

/* --- Página de Watch Party --- */
#watch-party-banner { 
  height: 50vh; 
  background-image: linear-gradient(to top, rgba(17,24,39,1), rgba(17,24,39,0.7)), url('https://assets.telegraphindia.com/telegraph/1c2dcf65-9120-4f24-8e73-0cd73f4c9182.jpg'); 
  background-size: cover; 
  background-position: center; 
}
.chat-message.system .chat-message-text { 
  width: 100%; text-align: center; 
  background-color: transparent; 
  color: #6B7280; 
  font-style: italic; 
  font-size: 0.75rem; 
}
#pause-overlay, #sync-notification { 
  position: absolute; 
  inset: 0; 
  background-color: rgba(0, 0, 0, 0.8); 
  color: white; 
  display: none; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  z-index: 10; 
  pointer-events: none; 
}
#pause-overlay.active, #sync-notification.active { 
  display: flex; 
}
#pause-overlay h2, #sync-notification h2 { 
  font-size: 2rem; 
  font-weight: 900; 
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
  text-align: center; 
}
.public-room-card { 
  background-color: var(--surface-color); 
  cursor: pointer; 
}
.public-room-card .card-backdrop { 
  aspect-ratio: 16/9; 
}
.public-room-card .card-overlay { 
  background: linear-gradient(to top, rgba(31, 41, 55, 1) 10%, rgba(31, 41, 55, 0.5) 60%, transparent); 
}
.public-room-card .enter-btn { 
  background-color: var(--primary-color); 
  opacity: 0; 
  transition: opacity 0.3s ease; 
}
.public-room-card:hover .enter-btn { 
  opacity: 1; 
}
.sidebar-tab.active { 
  color: white; 
  border-bottom-color: var(--primary-color); 
}
.toast-notification { 
  position: fixed; 
  bottom: 20px; right: 20px; 
  background-color: #2d3748; 
  color: white; 
  padding: 12px 20px; 
  border-radius: 8px; 
  z-index: 5000; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
  transform: translateX(120%); 
  transition: transform 0.5s ease-in-out; 
}
.toast-notification.show { 
  transform: translateX(0); 
}
.voice-avatar { 
  border: 2px solid transparent; 
  transition: border-color 0.3s; 
}
.voice-avatar.speaking { 
  border-color: #4ade80; 
  box-shadow: 0 0 12px #4ade80; 
}
.voice-control-btn.muted { 
  background-color: var(--primary-color) !important; 
}
.reaction-pill { 
  background-color: #374151; 
  color: #d1d5db; 
  font-size: 12px; 
  padding: 2px 6px; 
  border-radius: 12px; 
  cursor: pointer; 
  transition: background-color 0.2s; 
}
.reaction-pill.reacted { 
  background-color: #4f46e5; 
  color: white; 
}
.player-btn.active { 
  background-color: var(--primary-color); 
  color: white; 
}
.ad-card { 
  background-color: var(--surface-color); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  aspect-ratio: 16/9; 
}

/* ============================================== */
/* 4. RESPONSIVIDADE (Media Queries)              */
/* ============================================== */


#main-header .hidden.md\:flex {
    display: none;
}

/* 2. Em telas com 768px de largura ou mais, FORÇA a exibição do menu */
@media (min-width: 768px) {
    #main-header .hidden.md\:flex {
        display: flex !important; /* !important garante que esta regra vença */
    }
}

/* 3. Garante que o menu inferior (mobile) seja escondido em telas maiores */
@media (min-width: 768px) {
    #bottom-nav {
        display: none !important;
    }
}
.horizontal-scroll .media-card.is-channel-card .media-card-img {
    position: relative;
    width: 75%;
    height: 75%;
    object-fit: contain;
}
/* Regra removida: #categories-container .results-grid forçava gap fixo */

/* =============================
   Ajustes 2025-10 - Padronização dos cards
   ============================= */

.card-wrapper {
  width: 160px;
  flex: 0 0 160px;
  display: flex;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .card-wrapper {
    width: 180px;
    flex: 0 0 180px;
  }
}

.card-wrapper .media-card {
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
}

/* Classe específica para páginas com imagem de fundo (index, login, etc.) */
.body-com-fundo::before { 
  content: ''; 
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh; 
  z-index: -1; 
  background-image: url('streaming.jpg'); 
  background-size: cover; 
  background-position: center; 
  filter: blur(10px) brightness(0.5); 
  transform: scale(1.1);
}
.player-info-overlay { 
    position: absolute; 
    bottom: 2rem; /* Distância de 32px de baixo */
    left: 2rem;   /* Distância de 32px da esquerda */
    right: auto;  /* ANULA qualquer regra de alinhamento à direita */
    transform: none; /* ANULA qualquer centralização via transform */
    
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px); 
    color: white; 
    padding: 1.5rem; 
    border-radius: 0.75rem; 
    z-index: 2100; 
    opacity: 1; 
    transition: opacity 0.5s ease-in-out 1s;
    max-width: 450px; /* Limita a largura para um visual melhor */
}

.player-info-overlay.fade-out { 
    opacity: 0; 
}

.player-info-overlay .program-title { 
    font-size: 1.25rem; 
}

.player-info-overlay .program-time { 
    color: #9ca3af; 
}
/* ================================================= */
/* Estilos Otimizados para Botões do Player (Mobile) */
/* ================================================= */

#player-header .tv-btn-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* 8px */
  background: rgba(31, 41, 55, 0.7); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  /* Em mobile, o padding é igual para formar um círculo/pílula */
  padding: 0.6rem; /* ~10px */
  border-radius: 9999px; /* Forma de pílula */
  transition: all 0.2s ease-in-out;
  line-height: 1;
  backdrop-filter: blur(8px);
}

/* Em telas maiores (desktop), adiciona mais padding para acomodar o texto */
@media (min-width: 768px) {
  #player-header .tv-btn-player {
    padding: 0.6rem 1rem; /* 10px 16px */
  }
}

#player-header .tv-btn-player:hover {
  background: rgba(55, 65, 81, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#player-header .tv-btn-player svg {
  width: 20px;
  height: 20px;
}

/* Ajuste no título para não achatar os botões */
#player-header .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ========================================= */
/* Estilos para o Botão de Ativar Som         */
/* ========================================= */

.unmute-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* 16px */
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 2.5rem;
  border-radius: 1rem; /* 16px */
  background: rgba(31, 41, 55, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease-in-out;
}

.unmute-button:hover {
  transform: scale(1.05);
  background: rgba(55, 65, 81, 0.7);
  color: white;
}

.unmute-button svg {
  width: 3.5rem; /* 56px */
  height: 3.5rem; /* 56px */
}

.unmute-button span {
  font-size: 1rem; /* 16px */
  font-weight: 600;
}
/* ================================================= */
/* Estilo para o Logo na Faixa de Informações        */
/* ================================================= */

.player-info-logo {
  width: 64px;       /* 64px de largura */
  height: 64px;      /* 64px de altura */
  object-fit: contain; /* Garante que o logo não fique esticado */
  flex-shrink: 0;    /* Impede que a imagem seja espremida */
  background-color: rgba(255, 255, 255, 0.05); /* Fundo sutil para logos com transparência */
  border-radius: 0.5rem; /* Bordas arredondadas */
  padding: 4px;      /* Pequeno espaçamento interno */
}
/* ========================================= */
/* Efeito para Controles que Desaparecem     */
/* ========================================= */
#player-header {
  transition: opacity 0.4s ease-in-out;
}

#player-header.hidden {
  opacity: 0;
  pointer-events: none; /* Impede cliques quando estiver invisível */
}
