/**
 * Player Style
 *
 * @package stmify
 */

 :root {
	--player-bg: #2c2c2c;
	--issue-iframe-bg: #000000;
	--option-bg: #303030;
	--option-item-bg: #3e3e3e;
	--option-item-border: #545454;
	--active-hover-bg: #545454;
 }

.light {
	--player-bg: #ebebeb;
	--issue-iframe-bg: #DDD;
	--option-bg: #f0f0f0;
	--option-item-bg: #fff;
	--option-item-border: #ddd;
	--active-hover-bg: #e0e0e0;
}
/* Stmify Video player*/
.stmify-player {
    color: var(--color-text);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-start; /* Align items at the start */
    align-items: center;
    margin: 0;
    flex-direction: column;
    background: linear-gradient(rgba(0, 0, 0, 0), var(--player-bg));
    /* background-color: #20202b; */
}
.player-container {
    width: 80%;
    max-width: 800px;
    margin: 20px; /* Center align and add margin-bottom */
    display: none; /* Initially hide the player */
    position: relative; /* Make it a positioning context for child elements */
}

#UnMutePlayer {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensure it's above the video */
}

.unmute-button {
    width: 100px;
    height: 80px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
	border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.unmute-button img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.unmute-button span {
    font-size: 14px;
    color: #000;
}

video {
    width: 100%;
    height: auto;
    border: 1px solid var(--common-border);
}

.iframe-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--issue-iframe-bg);
	border: 1px solid var(--common-border);
}

/* Stmify Audio player*/
.player-audio-container {
	color: var(--color-text);
	width: 80%;
	display: none; /* Hide the player initially */
	justify-content: center; /* Center horizontally */
	align-items: center; /* Center vertically */
	/* background-color: #20202b; */
	padding: 20px 0;
}
		
.player-audio-container .plyr__menu {
	display: none;
}
		
.player-audio-container .plyr--audio {
	border: 1px solid var(--common-border);
}

.last-updated, .published-date {
	font-size: 12px;
	margin-top: 4px;
	margin-bottom: 6px;
	text-align: center;
}

/* Stmify player contorl batton */
.batton-container {
    color: var(--color-text);
	border-bottom: 1px solid var(--cw-sp-border);
}

.batton {
    color: var(--color-text);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-start; /* Align items at the start */
    align-items: center;
    margin: 0 auto;
    flex-direction: column;
	width: 90%;
	max-width: 1200px;
}
.options {
	width: 100%;
    padding: 10px;
    background-color: var(--option-bg);
    border: 1px solid var(--common-border);
    border-radius: 8px;
}
.live-batton > .options {
    margin: 20px 0;
}
.options ul {
    list-style-type: none;
    padding: 0;
}
.options li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--option-item-border);
    background-color: var(--option-item-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}
.options li a {
	display: flex;
	align-items: center;
	color: var(--color-text);
	text-decoration: none;
}

.options .active-stream,
.options li:hover,
.options li a:hover {
	color: var(--common-hover);
    background-color: var(--active-hover-bg);
}

.options li .play-icon {
    margin-right: 10px;
}
.options li .title {
    flex: 1;
}
.options li .flag {
    margin-left: 10px;
}
.options li .flag img {
    width: 20px;
    height: auto;
	border: 1px solid;
}
.options li .loader {
    display: none;
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 3px solid #ddd;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.options li.loading .loader {
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
	
.plyr--video .plyr__control.plyr__tab-focus, .plyr--video .plyr__control:hover, .plyr--audio .plyr__control:hover, .plyr--video .plyr__control[aria-expanded=true] {
    background: var(--common-hover);
}

.plyr--full-ui input[type=range] {
    color: var(--common-color);
}

/* CSS for Overlay Styling */
.issue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--issue-iframe-bg); /* Fully black background */
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
	padding: 50px;
	border: 1px solid var(--common-border);
}

.player-text {
	margin: 10px 0 0 0;
	text-align: center;
}
.player-container:has(.issue-overlay) .player-text {
    display: none;
}
