.lovecine-modal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none; 
    overflow: hidden; 
}
#videoModal.lovecine-modal {
    display: block !important;
}
#seasonModal.lovecine-modal {
    display: block !important;
}
.lovecine-modal.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.video-container {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
}

* {
    box-sizing: border-box;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.content {
    position: absolute;
    bottom: 0;
    color: #f1f1f1;
    width: 100%;
    padding: 0px;
    opacity: 0;
    transition: opacity 1s;
    z-index: 30;
    height: 80px; 
}

.naoSelecionavel {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

i.material-icons {
    cursor: pointer;
    opacity: 0.7;
    color: white;
}
i.material-icons:hover {
    opacity: 1;
    transition: opacity 0.2s;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 1s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

a {
    text-decoration: none;
    color: #F1F1F1;
}
a:hover{
    text-decoration: underline; 
}

#overlay {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 20;
    cursor: none;
    transition: opacity 1s;
}
  
#text{
    position: absolute;
    top: 35%;
    left: 5%;
    font-size: 50px;
    color: white;
}

.chrome {
    position: absolute;
    bottom: 75px; 
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.chrome input {
    background: white;
    border-radius: 8px;
    height: 7px;
    width: 97%;
    outline: none; 
    transition: background 450ms ease-in;
    -webkit-appearance: none;
}
  
input[type="range"]::-moz-range-thumb{
    background: red;        
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    background-color: red;        
    height: 20px;
    width: 20px;
    border-radius: 50%;
    -webkit-appearance: none;
    cursor: pointer;
}


.paused-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 15; 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}
.video-player.paused .paused-overlay {
    opacity: 1; 
}


#episodes_btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0.7;
    color: white;
}
#episodes_btn:hover {
    opacity: 1;
}
#episodes_btn svg {
    fill: none;
    stroke: currentColor;
    width: 35px;
    height: 35px;
}

.video-info-custom {
    position: absolute;
    top: 45%; 
    left: 5%;
    color: white;
    z-index: 20; 
    transition: opacity 1s;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}
#overlay {
    display: none !important;
}
.video-player.paused .video-info-custom {
    opacity: 1;
}
.video-player.paused .content {
    opacity: 1;
}

.close-btn, .back-btn {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
}
.close-btn {
    right: 20px;
}
.back-btn {
    right: 70px;
}
.close-btn:hover, .back-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}
.back-btn-text {
    display: none;
}


#nextEpisodeBtnCorner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  font-family: 'Arimo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#nextEpisodeBtnCorner svg {
  height: 24px;
  width: 24px;
  margin-right: 16px;
}

.primary-btn {
  background: #fff;
  color: #000;
  animation: auto-fill 20s linear;
}
.primary-btn:hover {
  background: #BFBFBF;
}

@keyframes auto-fill {
  0% {
    box-shadow: inset 0 0 0 0 #BFBFBF;
  }
  100% {
    box-shadow: inset 200px 0 0 0 #BFBFBF;
  }
}

#nextEpisodeBtnCorner {
    position: absolute;
    bottom: 110px; 
    right: 20px;
    z-index: 25; 
    
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    
    display: none; 
}

#nextEpisodeBtnCorner.show {
    display: flex; 
    opacity: 1;
    transform: translateX(0);
}

#nextEpisodeBtnCorner:hover {
    transform: scale(1.05) translateX(0);
}

.episodes-list-container.active ~ #nextEpisodeBtnCorner {
    right: 300px; 
}

.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 40;
    backdrop-filter: blur(3px);
}
.loader-spinner {
    width: 50px;
    height: 50px;
}
.circular {
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
}
.path {
    stroke: #ef4444;
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    animation: dash 1.s ease-in-out infinite;
    stroke-width: 4px;
}
.loader-text {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    margin-top: 16px;
    display: none;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124; }
}

.episodes-list-container {
    position: absolute;
    height: 360px;
    right: -300px;
    bottom: 50px;
    width: 280px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.3s ease, opacity 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
}
.episodes-list-container.active {
    right: 40px;
    opacity: 1;
    pointer-events: auto;
}
.episodes-list-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.episodes-list-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: white; }
.close-episodes-btn {
    background: transparent !important;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.close-episodes-btn:hover { color: #ef4444; }
.episodes-list-content { flex-grow: 1; overflow-y: auto; padding: 0; }
.episodes-list-content::-webkit-scrollbar { width: 5px; }
.episodes-list-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.episodes-list-content::-webkit-scrollbar-thumb { background: rgba(239, 68, 68, 0.5); border-radius: 3px; }
.episode-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}
.episode-item:hover { background: rgba(239, 68, 68, 0.1); }
.episode-item.active { background: rgba(239, 68, 68, 0.2); border-left: 3px solid #ef4444; }
.episode-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    font-weight: 600;
    font-size: 14px;
}
.episode-item.active .episode-number { background: #ef4444; color: white; }
.episode-title {
    flex-grow: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.volume-control-container {
    display: flex;
    align-items: center;
}

#volume_slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0; 
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    opacity: 0; 
    overflow: visible; /* Correção 1: Permite que o thumb seja exibido */
    margin-left: 5px;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    cursor: pointer;
}

.volume-control-container:hover #volume_slider {
    width: 80px; 
    opacity: 1;
}

#volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ef4444; 
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff; 
    /* CORREÇÃO 2: Ajuste empírico final para alinhar o thumb (18px total) na track (5px) */
    /* Valor ajustado de -6.5px para -5px (movendo-o um pouco para baixo) */
    margin-top: 0; 
}

#volume_slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}