@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css");

body {
  padding: 0;
  margin: 0;
  height: 100%;
}
#jw_player {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background-color: #000;
}


.jw-rightclick { display: none !important; }

#server-list {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 9999999999
}

#server-list .menu-btn {
    padding: 30px;
    margin-right: 10px;
    background-image: url(<?=getTemplatesURI()?>/static/icons/menu.png);
    background-repeat: no-repeat;
    background-position: right;
    cursor: pointer
}

#server-list #servers {
  list-style: none;
  padding: 0;
  display: none;
  margin-top: -43px;
  margin-right: 60px;
}

#server-list #servers li a {
  color: #325170;
  font-variant: small-caps;
  font-size: 15px;
  text-decoration: none;
  padding: 7px 10px 5px;
  display: block;
  font-weight: 600;
  background: #fff;
  margin: 0 0 5px;
  border-radius: 4px;
}

#server-list #servers li a:before {
   content:url('https://mxplayer.codeside.biz.id/uploads/icon-server-g-drive.png'); 
   display: inline-block;
   padding-right: 6px;
   vertical-align: middle;
}

#server-list #servers li:last-child a {
    border: 0
}

#server-list #servers li a:hover {
    color: #556ee6
}

#server-list #servers li a.active {
    color: #325170;
}
#server-list #servers li a.active:hover {
    color: #556ee6;
}

#jw_player {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: auto !important;
    height: auto !important
}

#loader-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	background: #0c111f
}

/* icon-only download button inside the player control bars */
.np-dl-btn{cursor:pointer;color:#fff;background:transparent;border:0;padding:0}
.np-dl-btn svg{display:block;fill:currentColor;pointer-events:none}
.np-dl-btn:hover,.np-dl-btn:focus-visible{color:#00DAB4}
.dplayer-icon.np-dl-btn{width:40px;height:100%;display:inline-block;vertical-align:middle;opacity:.8}
.dplayer-icon.np-dl-btn:hover{opacity:1}
.dplayer-icon.np-dl-btn svg{margin:0 auto}
.art-icon.np-dl-btn svg{width:22px;height:22px;margin:auto}
.np-dl-float{position:fixed;top:12px;right:12px;z-index:99999;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,.6);opacity:0;transition:opacity .25s}
.np-dl-float.on,.np-dl-float:focus-visible{opacity:1}
.np-dl-float svg{width:22px;height:22px}

.download-page {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 24px 12px;
    background: #f1f3f6;
    color: #1f2937;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.download-card {
    box-sizing: border-box;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 28px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15,23,42,.08);
}

.download-card h1 {
    margin: 0 0 14px;
    font-size: clamp(20px, 5vw, 30px);
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.download-note {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #b7dfc4;
    border-radius: 8px;
    background: #dff3e6;
    color: #14532d;
    font-size: 15px;
}

.download-options {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.download-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.download-option:hover,
.download-option:focus-visible {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-1px);
}

.download-option.is-best { background: #198754; }
.download-option.is-best:hover,
.download-option.is-best:focus-visible { background: #157347; }

.download-q { font-size: 18px; white-space: nowrap; }
.download-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .85; }
.download-go { font-weight: 700; white-space: nowrap; }

@media (max-width: 520px) {
    .download-option { grid-template-columns: 1fr auto; }
    .download-name { grid-column: 1 / -1; grid-row: 2; }
}

.download-back {
    display: block;
    text-align: center;
    color: #0d6efd;
    text-decoration: none;
}

.overflow, .circle-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.overflow {
    z-index: 9998;
    width: 100vw;
    height: 100vh;
}

.circle-line {
    z-index: 9999;
    width: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.circle-red,.circle-green,.circle-yellow,.circle-blue{
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    margin: 5px;
}

.circle-red {
    background-color: transparent;
    animation: movingUp 0.5s infinite alternate;
    border:solid 2px white;
}

.circle-blue {
    background-color: transparent;
    animation: movingUp 0.5s 0.2s infinite alternate;
    border:solid 2px white;
}

.circle-green {
    background-color: transparent;
    animation: movingUp 0.5s .5s infinite alternate;
    border:solid 2px white;
}

.circle-yellow {
    background-color: transparent;
    animation: movingUp 0.5s .7s infinite alternate;
    border:solid 2px white;
}

.loader-style-ring .circle-line {
    width: 58px;
    height: 58px;
    border: 5px solid rgba(255,255,255,.22);
    border-top-color: #00DAB4;
    border-radius: 50%;
    animation: loaderSpin .8s linear infinite;
}

.loader-style-ring .circle-line > div {
    display: none;
}

.loader-style-dots .circle-line {
    width: 116px;
    flex-wrap: nowrap;
}

.loader-style-dots .circle-line > div {
    width: 13px;
    height: 13px;
    margin: 5px;
    border: 0;
    animation: loaderDot .6s ease-in-out infinite alternate;
}

.loader-style-dots .circle-line .circle-blue { animation-delay: .15s; }
.loader-style-dots .circle-line .circle-green { animation-delay: .3s; }
.loader-style-dots .circle-line .circle-yellow { animation-delay: .45s; }

.loader-style-bars .circle-line {
    width: 96px;
    height: 48px;
    align-items: center;
    flex-wrap: nowrap;
}

.loader-style-bars .circle-line > div {
    width: 8px;
    height: 18px;
    margin: 3px;
    border: 0;
    border-radius: 4px;
    animation: loaderBar .7s ease-in-out infinite alternate;
}

.loader-style-bars .circle-line .circle-blue { animation-delay: .15s; }
.loader-style-bars .circle-line .circle-green { animation-delay: .3s; }
.loader-style-bars .circle-line .circle-yellow { animation-delay: .45s; }

.loader-style-pulse .circle-line {
    width: 100px;
    height: 38px;
    flex-wrap: nowrap;
}

.loader-style-pulse .circle-line > div {
    width: 24px;
    height: 24px;
    margin: 3px;
    border: 0;
    animation: loaderPulse .9s ease-in-out infinite;
}

.loader-style-pulse .circle-line .circle-blue { animation-delay: .15s; }
.loader-style-pulse .circle-line .circle-green { animation-delay: .3s; }
.loader-style-pulse .circle-line .circle-yellow { animation-delay: .45s; }

@keyframes loaderSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loaderDot {
    to { transform: translateY(-12px); opacity: .55; }
}

@keyframes loaderBar {
    to { transform: scaleY(1.8); opacity: .6; }
}

@keyframes loaderPulse {
    50% { transform: scale(.55); opacity: .55; }
}

/* CSS ANIMATION */

@keyframes movingUp {
    from {
    
        top: 0px;
        
    }

    to {
        
        top: -30px;
    }
}

/* Captions must stay visible above controls */
.jw-captions,
.jw-text-track-container {
    z-index: 30 !important;
    pointer-events: none;
}
.jw-text-track-cue {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.dplayer-subtitle,
.art-subtitle {
    z-index: 30 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Mobile quality controls stay readable */
.np-q-btn,
.np-sub-btn {
    min-width: 36px;
    padding: 0 6px;
}
.np-q-label {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 640px) {
    .jw-settings-submenu,
    .dplayer-setting-box,
    .art-settings {
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}