html,
body{
    height: 100%;
}
body{
    padding: 0;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(255, 193, 7, 0.18), transparent 35%),
        linear-gradient(180deg, #171717 0%, #020202 45%, #000 100%);
    color: #fff;
    overflow: hidden;
}
.flix_app_player{
    height: calc(100% - 60px);
    width: 100%;
    background: #000;
    position: absolute;
    inset: 0 0 60px;
    overflow: hidden;
}
.flix_app_player video,
.flix_app_player iframe,
.flix_app_player .plyr,
.flix_app_player .plyr__video-wrapper{
    width: 100%;
    height: 100%;
}
.flix_app_player video{
    object-fit: contain;
    background: #000;
}
.plyr{
    --plyr-control-radius: 14px;
    --plyr-control-icon-size: 18px;
    --plyr-control-spacing: 10px;
    --plyr-video-control-background-hover: rgba(255, 193, 7, 0.2);
    --plyr-video-controls-background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}
.plyr--video{
    height: 100%;
    background: #000;
}
.plyr--full-ui input[type=range]{
    color: #ffc107;
}
.plyr__control{
    backdrop-filter: blur(8px);
}
.plyr__control--overlaid{
    background: rgba(255, 193, 7, 0.92);
    color: #111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}
.plyr__control--overlaid:hover{
    background: #ffd451;
}
footer>img{
    height: 45px;
    max-width: 150px;
    object-fit: contain;
    margin-top: 2px;
}
footer>a:hover{
	color: #ccc;
}
footer>a{
    height: 45px;
    min-width: 45px;
    display: inline-block;
    font-size: 16pt;
    color: white;
    text-align: center;
    float: right;
}
footer>a>i{
	line-height: 45px !important;
}
footer{
	position: absolute;
	bottom: 0px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.92));
	height: 50px;
	width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    z-index: 5;
}
.sources-dropdown>button{
	background: black;
    border: 2px solid white;
    border-radius: 0px;
}
.sources-dropdown > button{
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    max-width: min(42vw, 420px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sources-dropdown .dropdown-menu label{
    margin-right: 5px;
}
.sources-dropdown .dropdown-menu{
	border-radius: 14px;
    min-width: 25em !important;
    max-width: min(92vw, 32rem);
}
.sources-dropdown .dropdown-menu .dropdown-item{
	padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 15px;
    padding-left: 10px;
}
iframe{
	height: 100%;
    width: 100%;
    border: 0px;
}
*:focus {outline:0 !important;}
.dropdown-menu{
	background-color: #00000f !important;
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.dropdown-item{
	color: #b3b3b3 !important;
}
.dropdown-divider{
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.dropdown-item:focus, .dropdown-item:hover{
	background-color: #141421;
}
.video-js{
	position: initial !important;
}

.vjs-big-play-button{
	background: #00b3ff !important;
    border: 0 !important;
    border-radius: 100% !important;
    color: #fff !important;
    right: 50% !important;
    opacity: .9 !important;
    padding: calc(10px * 1.5) !important;
    padding: calc(var(--plyr-control-spacing,10px) * 1.5) !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(50%,-50%) !important;
    transition: .3s !important;
    z-index: 2 !important;
}
.vjs-big-play-button{
    font-size: 3em !important;
    line-height: 50px !important;
    height: 50px !important;
    width: 50px !important;
}
.next-episode{

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    display: inline-block;
    border-radius: 12px;
    height: 40px;
    line-height: 25px;
    font-weight: bold;
    box-shadow: 0 0 black;
    margin-right: 10px;
    margin-left: 0px;

}
.next-episode i{
	line-height: 25px !important;
}
.source-btn .fa-star{
    color: #dc3545;
}

.for-phone{
    display: none;
}

@media (max-width:768px) {
    .flix_app_player{
        inset: 0 0 72px;
        height: calc(100% - 72px);
    }
    footer{
        height: 72px;
        padding: 10px;
        gap: 8px;
    }
    footer > img{
        display: none;
    }
    footer > a{
        min-width: 40px;
        height: 40px;
        font-size: 14pt;
    }
    footer > a > i{
        line-height: 40px !important;
    }
    .sources-dropdown{
        max-width: calc(100vw - 68px);
        margin-right: auto;
    }
    .sources-dropdown > button{
        max-width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }
    .sources-dropdown .dropdown-menu{
        min-width: 18em !important;
    }
    .next-episode{
        height: 36px;
        line-height: 21px;
        padding: 6px 10px;
    }
    .for-phone{
        display: block;
    }
    .for-desktop{
        display: none;
    }
}

/* ============================================================
   تم مدرن پلیر — پس‌زمینه تیره، فوتر شیشه‌ای، اکسنت قرمز برند
   ============================================================ */
body.mv-player-page {
	background: #0b0c10;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.mv-player-page .flix_app_player {
	flex: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}
body.mv-player-page footer {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 20px;
	background: linear-gradient(180deg, rgba(20, 22, 29, 0.6), rgba(20, 22, 29, 0.95));
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.mv-player-page footer > a:first-of-type {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff !important;
	font-size: 16px;
	transition: background .2s;
}
body.mv-player-page footer > a:first-of-type:hover { background: rgba(229, 9, 20, 0.25); }
body.mv-player-page footer img { max-height: 34px; width: auto; }
body.mv-player-page .sources-dropdown { margin-inline-start: auto; }
body.mv-player-page .sources-dropdown > button {
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	border-radius: 12px !important;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: none !important;
}
body.mv-player-page .sources-dropdown .dropdown-menu {
	background: #181b24;
	border: 1px solid #272c39;
	border-radius: 14px;
	padding: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.mv-player-page .sources-dropdown .dropdown-item {
	color: #f2f4f8;
	border-radius: 9px;
	padding: 9px 12px;
	font-size: 13px;
}
body.mv-player-page .sources-dropdown .dropdown-item:hover,
body.mv-player-page .sources-dropdown .dropdown-item.active { background: rgba(229, 9, 20, 0.16); color: #fff; }
body.mv-player-page .sources-dropdown .badge-light {
	background: rgba(245, 197, 18, 0.16) !important;
	color: #f5c518 !important;
	font-weight: 700;
	margin-inline-start: 6px;
	border-radius: 6px;
	padding: 3px 8px;
}
/* کنترل‌های plyr/videojs هم‌رنگ برند */
body.mv-player-page .plyr--video .plyr__control--overlaid {
	background: rgba(229, 9, 20, 0.9);
}
body.mv-player-page .plyr--full-ui input[type="range"] { color: #e50914; }
body.mv-player-page .video-js .vjs-big-play-button {
	border-color: #e50914;
	background-color: rgba(229, 9, 20, 0.85);
	border-radius: 14px;
	width: 68px;
	height: 48px;
	line-height: 48px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
body.mv-player-page .video-js .vjs-control-bar { background: rgba(20, 22, 29, 0.9); }
body.mv-player-page .video-js .vjs-play-progress { background-color: #e50914; }
