body {
    background: #000
}


#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%)
}

.search-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: padding .3s ease
}

.search-wrapper.active {
    justify-content: flex-start;
    padding-top: 80px
}

.search-input-group {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 12px
}

#result {
    width: 100%
}

.search-hint {
    margin-top: 8px;
    text-align: center;
    opacity: .95;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem
}

@media(max-width:768px) {
    .search-wrapper {
        min-height: calc(100vh - 140px)
    }

    .search-wrapper.active {
        padding-top: 60px
    }

    .search-input-group {
        max-width: 92%
    }
}

.navbar {
    padding: 10px 20px;
    background-color: transparent !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color .3s ease
}

.navbar-collapse {
    padding: 15px;
    border-radius: 8px
}

.nav-link {
    color: #fff !important;
    margin: 0 15px;
    font-size: 1rem;
    transition: color .3s ease
}

.nav-link:hover {
    color: #ff0000 !important
}

.dropdown-menu {
    background-color: #000;
    border: none
}

.dropdown-menu .dropdown-item {
    color: #fff
}

.dropdown-menu .dropdown-item:hover {
    background-color: #333;
    color: #ff0000
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #000;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050
}

.mobile-nav .nav-item {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    flex-grow: 1;
    cursor: pointer
}

.mobile-nav .nav-item i {
    font-size: 20px;
    display: block
}

.mobile-nav .nav-item:hover {
    color: #ff0000
}

.mobile-nav .dropdown-toggle::after {
    display: none !important
}

.mobile-nav .dropdown-menu {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    text-align: center;
    z-index: 1060
}

.mobile-nav .nav-item span {
    display: block;
    font-size: 11px;
    margin-top: 6px;
    line-height: 1
}

.mobile-nav #avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid red
}

.input-group-text {
    border-radius: 8px 0 0 8px
}

#q {
    border-radius: 0 8px 8px 0
}

.card-hover {
    background: rgba(20, 20, 20, .85);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, .25)
}

.badge-type {
    position: absolute;
    top: 8px;
    left: 8px
}

.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2));
    padding: 10px
}

.card-img-top {
    height: 260px;
    object-fit: cover
}

.overlay h6 {
    font-size: 1rem;
    color: #fff
}

@media(max-width:768px) {
    .card-img-top {
        height: 220px
    }

    .overlay h6 {
        font-size: .95rem
    }
}

.trailer-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none
}

#q::placeholder {
    color: #fff;
    opacity: .9
}

.search-input-led {
    border: 2px solid #ff0000 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, .5);
    animation: led-pulse 1.5s infinite
}

@keyframes led-pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 0, .5), inset 0 0 10px rgba(255, 0, 0, .2);
        border-color: #ff0000
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, .8), inset 0 0 15px rgba(255, 0, 0, .4);
        border-color: #ff3333
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 0, 0, .5), inset 0 0 10px rgba(255, 0, 0, .2);
        border-color: #ff0000
    }
}

.search-input-led:focus {
    outline: none;
    box-shadow: 0 0 25px rgba(255, 0, 0, .9), inset 0 0 20px rgba(255, 0, 0, .5) !important;
    border-color: #ff3333 !important
}

.trailer-frame {
    pointer-events: none
}

#previewOverview {
    color: #fff !important;
    line-height: 1.5
}

.card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    transition: opacity .2s ease
}

.card-play-overlay i {
    font-size: 2.4rem
}

.card-play-overlay:hover {
    opacity: .9
}

.preview-media {
     border-radius: 10px;
     overflow: hidden;
     position: relative;
     flex: 1;
     display: flex;
     width: 100%;
     min-height: 400px
 }
 
 .preview-media img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: opacity .3s ease;
     position: relative;
     z-index: 10
 }
 
 .preview-trailer {
     position: absolute;
     top: 0;
     left: 0;
     border: 0;
     display: none;
     opacity: 0;
     transition: opacity .3s ease;
     pointer-events: auto;
     width: 100%;
     height: 100%;
     z-index: 101
 }

.media-overlay {
     position: absolute;
     inset: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     background: rgba(0, 0, 0, .25);
     color: #fff;
     font-weight: 700;
     transition: background .2s ease;
     cursor: pointer;
     pointer-events: auto;
     z-index: 50;
     border-radius: 10px
 }
 
 .media-overlay i {
     font-size: 3rem
 }
 
 .media-overlay:hover {
     opacity: .9
 }
 
 .media-overlay:focus {
     outline: 2px solid rgba(229, 9, 20, .6);
     border-radius: 12px
 }

 .custom-controls {
     position: absolute;
     bottom: 15px;
     left: 15px;
     display: flex;
     gap: 10px;
     z-index: 102;
     opacity: 1;
     transition: opacity .3s ease
 }

 .custom-controls.hidden {
     opacity: 0;
     pointer-events: none
 }

 .control-btn {
     background: rgba(255, 0, 0, .8);
     border: none;
     color: #fff;
     width: 45px;
     height: 45px;
     border-radius: 50%;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     transition: all .2s ease;
     box-shadow: 0 4px 15px rgba(255, 0, 0, .3)
 }

 .control-btn:hover {
     background: rgba(255, 0, 0, 1);
     box-shadow: 0 6px 20px rgba(255, 0, 0, .5);
     transform: scale(1.1)
 }

 .control-btn:active {
     transform: scale(0.95)
 }

 .youtube-overlay {
     position: absolute;
     inset: 0;
     background: transparent;
     z-index: 99;
     pointer-events: auto;
     display: none;
     user-select: none;
     -webkit-user-select: none;
     -moz-user-select: none;
     -ms-user-select: none
 }

 .youtube-overlay.active {
     display: block
 }

.modal-content {
     border-radius: 12px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
     max-height: 95vh;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     border: 3px solid #ff0000
 }

.modal-body {
     flex: 1;
     display: flex;
     flex-direction: column;
     padding: 0;
     overflow-y: auto;
     overflow-x: hidden
 }

 .modal-body::-webkit-scrollbar {
     width: 12px
 }

 .modal-body::-webkit-scrollbar-track {
     background: rgba(0, 0, 0, .3)
 }

 .modal-body::-webkit-scrollbar-thumb {
     background: #ff0000;
     border-radius: 6px
 }

 .modal-body::-webkit-scrollbar-thumb:hover {
     background: #ff3333
 }

.modal-modern.fade .modal-dialog {
    transform: scale(.98);
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0
}
.yt-ui-mask-top{position:absolute;top:0;left:0;width:100%;height:48px;background:linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));z-index:200}
.yt-ui-mask-bottom{position:absolute;bottom:0;left:0;width:100%;height:52px;background:linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));z-index:200}

.modal-modern.fade.show .modal-dialog {
    transform: scale(1);
    opacity: 1
}

.modal-dialog-centered {
    max-width: 95vw !important;
    max-height: 95vh
}

.modal-lg {
    max-width: 90vw !important;
    max-height: 90vh
}

@media(max-width:768px) {
    .modal-lg {
        max-width: 100vw !important;
        max-height: 100vh
    }

    .preview-media {
        min-height: 300px
    }
}
