:root {
    --color-principal: #ff6262; 
    --color-sombra: #ffffffbb;
    --color_btns: #333333;
}

body {
    background-color: #121212;
}

a {
    text-decoration: none;
}

.bg-principal {
    background-color: var(--color-principal);
}

.text-principal {
    color: #ff6262;
}

ul {
    padding-left: 0rem;
}

.buscador2 {
    position: relative;
}

.buscadorsvg {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: #fff;
}

.input {
    background: #333333;
    padding-left: 2.5rem;
    border: solid #555452 0.15rem !important;
    outline: none !important;
    line-height: 2rem !important;
    color: white;
}

.btn1 {
    line-height: 2rem;
}

.btnpad {
    padding: 0.5rem 1rem;
}

.title_cap {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}

.txtbreak {
    word-break: break-all
}

li {
    list-style: none;
}

.imgefecto:hover {
    transform: scale(1.2);
    transition: 300ms;
}

.episode {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #363231de;
    color: white;
    font-weight: 500;
}

.aspect {
    aspect-ratio: 1.78;
}

.bi {
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentcolor;
}

.play {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #00000057;
    top: 0;
}

.btn_verahora {
    max-width: fit-content;
    letter-spacing: 1px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.ficha_efecto:hover {
    transform: scale(1.05);
    transition: 300ms;
}

.play:hover {
    opacity: 1;
}

/* Search overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    transition: 300ms;
}

.search-container {
    position: absolute;
    width: 100%;
    background-color: #373b3e;
    text-align: center;
    display: flex;
    border: none;
    padding: 1.3rem 1rem;
}

#searchInput {
    width: 100%;
    padding: 10px;
    border: none;
    background: #333333;
    border-radius: 0.5rem;
    outline-style: none;
    color: white;
}
  
#searchCloseButton {
    padding: 10px 20px;
    background: none;
    border: none;
    color: white;
}

.formulario {
    display: flex;
    flex-basis: 100%;
    margin: 0;
}

.aspecto {
    aspect-ratio: 1/1.4;
}

.cap-layout {
    background-color: #212121;
    color: #ffffffd9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #2b2a2a;
}

.cap-layout:hover {
    background-color: #6772db;
    transition: 300ms;
}

dl > dt {
    color: white;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #0062cc;
    background-color: transparent;
    border-color: transparent transparent #f3f3f3;
    border-bottom: 3px solid !important;
    font-size: 16px;
    font-weight: bold;
}

.nav-link:hover {
    border: none;
}

.nav-tabs .nav-link {
    border: none;
}

.aspect-listas {
    aspect-ratio: 1 / 0.55;
}

.profile {
    height: 200px;
    width: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Search results styles */
.pcsearchauto.show {
    display: block;
    background: #212529;
    margin-top: 9px;
    width: 100%;
    padding: 17px;
    transition: none !important;
    opacity: 1 !important;
}

.pcsearchauto, .qmob {
    transition: none !important;
}

.pcsearchitems {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.qmob.searchresult {
    width: 100% !important;
    position: fixed;
    background: #171d23;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 15px 10px;
    box-shadow: -9px 12px 11px rgb(0 0 0/28%);
    margin-left: 0;
    top: 85px;
}

div#qtmp, div#qtmpm {
    padding: 20px;
    color: #fff;
    text-align: center;
    font-style: italic;
    color: #9e9e9e;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.pcsearchitems img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    flex-shrink: 0;
}

.pcsearchitems p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.search_div {
    position: relative;
}

.mobsearch {
    padding: 5px;
    margin-bottom: 8px;
    border-radius: 8px;
    max-width: 100%;
    width: 100% !important;
    display: block !important;
}

.mobsearch:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobsearch a {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
}

.mobsearchtxt {
    padding-left: 10px;
    flex: 1 !important;
    min-width: 0 !important;
    width: calc(100% - 70px) !important;
}

.mobsearchtxt p {
    color: #fff;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.mobsearchimg {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    margin-right: 12px !important;
    overflow: hidden !important;
}

.mobsearchimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.player {
    position: relative;
}

[data-bs-theme="dark"] {
    color-scheme: unset;
}

.btn-secondary:hover {
    background-color: var(--color-principal);
}

/* Notification styles */
.notify-list::-webkit-scrollbar {
    width: 8px
}

.notify-list::-webkit-scrollbar-track {
    border-radius: 0 8px 8px 0;
    background: #555
}

.notify-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px
}

.notify-list::-webkit-scrollbar-thumb:hover {
    background: #f1625d
}

.notify-list {
    width: 300px;
    background: #555;
    border-radius: 3px;
    z-index: 99;
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
}

.shownots .badge {
    top: 12px;
    right: -6px;
}

.notify-list li {
    padding: 10px;
    border-bottom: 1px solid #4e4e4e;
}

.notify-list li.d {
    background: #ff9b0540;
}

.notify-list li .top-text-light {
    font-size: 12px;
    margin-top: 5px;
}

/* Historial */
.dropdown-item {
    padding: 0;
    margin: 6px 0;
    width: 100%;
    white-space: normal;
}

.dropdown-item:hover .history-content {
    background-color: rgba(255, 255, 255, 0.1);
}

.history-content {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.history-img {
    width: 60px;
    height: 45px;
    margin-right: 10px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.history-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-text {
    flex: 1;
    min-width: 0;
}

.history-text p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.history-remove {
    background: transparent;
    border: none;
    color: #ff6262;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.history-remove:hover {
    background-color: rgba(255, 98, 98, 0.2);
    color: #ff4d4d;
}

/* Historial en móvil */
.history-content-mobile {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
}

.history-img-mobile {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    margin-right: 12px !important;
    overflow: hidden !important;
}

.history-img-mobile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.history-text-mobile {
    flex: 1 !important;
    min-width: 0 !important;
    width: calc(100% - 70px) !important;
}

.history-text-mobile p {
    margin: 0 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.history-remove-mobile {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 4px !important;
}

/* Enlace Borrar historial */
.clear-history {
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: inline-block !important;
    padding: 5px 10px !important;
}

.clear-history:hover {
    background-color: rgba(255, 98, 98, 0.1);
    text-decoration: none;
}

.clear-history-container {
    width: 100% !important;
    margin: 8px 0 !important;
    text-align: center !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.search_item {
    padding: 0;
    margin: 6px 0;
    width: 100%;
}

.search_item:hover .pcsearchitems {
    background-color: rgba(255, 255, 255, 0.1);
}

#qtmpm {
    display: block !important;
    padding: 15px !important;
    text-align: center !important;
    width: 100% !important;
}

/* Responsive media queries */
@media (max-width:576px) {
    .kyo {
        font-size: 1rem !important;
    }
    .overflow-sm {
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
    }
}
