/* =========================
   Player
========================= */

.player {
    width: 100%;
    /* max-width: 500px; */
}

.player__media {
    position: relative;
    width: 100%;
    /* min-height: 280px; */
	aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.player__poster,
.player__video,
.player__iframe {
    display: block;
    width: 100%;
    height: 100%;
    /* min-height: 280px; */
    border: 0;
}

.player__poster {
    object-fit: cover;
}

.player__video,
.player__iframe {
    background: #000;
}

.player__stage:empty {
    min-height: 280px;
}

.player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player__play::before {
    content: "";
    display: block;
    width: 70px;
    height: 70px;
    background-color: #fff;
    -webkit-mask: url(/images/icons/play-btn.svg) center / contain no-repeat;
    mask: url(/images/icons/play-btn.svg) center / contain no-repeat;
    transition: opacity .2s ease;
}

.player__play:hover::before {
    opacity: .6;
}

.player__play-icon {
    display: none;
}

.player__play.is-hidden {
    display: none;
}

.player__loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.player__loader.is-hidden {
    display: none;
}

.player__spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: player-spin 0.9s linear infinite;
}

@keyframes player-spin {
    to {
        transform: rotate(360deg);
    }
}

.player__stage {
	width: 100%;
    height: 100%;
}

.player__controls {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 6;
    padding: 10px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .35), transparent);
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility .2s ease;
}

.player__controls.is-hidden,
.player__controls[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.player__controls-top {
    margin-bottom: 8px;
}

.player__controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.player__controls-left,
.player__controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player__btn {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.player__progress {
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
}

.player__progress::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.player__progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.player__time,
.player__quality-label,
.player__live-badge {
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

.player__live-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #c1121f;
    font-weight: 700;
}

.player__quality-wrap.is-hidden,
.player__live-badge.is-hidden,
.player__btn.is-hidden {
    display: none;
}


.player__error {
    padding: 14px 16px;
    color: #fff;
    background: #b42318;
    font-size: 14px;
}

/* .player-abuse {
    padding: 16px;
    border-radius: 12px;
    background: #fbe4e6;
    color: #b42318;
} */

.player__admin-meta {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.player__admin-url a {
    color: inherit;
    text-decoration: underline;
}

.player-block--admin .player__media {
    overflow: hidden;
}

.player__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player__icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.player__icon[data-state="play"] [data-icon="pause"],
.player__icon[data-state="volume"] [data-icon="mute"] {
    display: none;
}

.player__icon[data-state="pause"] [data-icon="play"],
.player__icon[data-state="mute"] [data-icon="volume"] {
    display: none;
}

.player__btn:hover {
    opacity: .85;
}

.player__btn:focus-visible,
.player__quality:focus-visible,
.player__progress:focus-visible,
.player__volume:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 2px;
}

.player__live-edge {
    gap: 6px;
    font-size: 13px;
    color: #fff;
}

.player__live-edge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    display: inline-block;
}

.player__live-edge.is-hidden {
    display: none;
}

.player input {
    padding: 0;
	border: none;
}

.player__volume {
    appearance: none;
    -webkit-appearance: none;
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    cursor: pointer;
}

/* бегунок */
.player__volume::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 0;
}

.player__volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 0;
}
/* =========================
   EU Block (как плеер)
========================= */

.player__media--blocked {
    display: flex;
    align-items: center;
    justify-content: center;
}


.player__blocked {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.player__blocked-inner {
    max-width: 480px;
}

.player__blocked-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.player__blocked-text {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
}


.player__quality-wrap {
    position: relative;
}

.player__quality-btn svg {
    width: 18px;
    height: 18px;
}

.player__quality-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15,23,42,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.player__quality-menu.is-hidden{
	display: none;
}


.player__quality {
    width: 100%;
    height: auto;
    padding: 6px 0 6px 6px;
    border: 0;
    border-radius: 6px;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
}

.player__quality option {
    padding: 8px 12px;
    background: #0f172a;
    color: #fff;
}

.player__quality option:checked {
    background: #2563eb;
}

.player__video::cue {
    color: #fff;
    background: rgba(0, 0, 0, .75);
    font-size: 22px;
    line-height: 1.4;
}

.player__subtitle-overlay {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 70px;
    z-index: 20;
    text-align: center;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
    pointer-events: none;
}

.player__subtitle-overlay span {
    display: inline;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,.75);
}


/*=====================================*/

.show-hidden {
    max-width: 350px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: var(--text);
    padding: 7px;
    text-align: center;
    margin: 20px auto 15px;
    cursor: pointer;
}

.tv-program ul {
    margin: 0;
    padding: 0;
}

.tv-program li {
	list-style: none;
	position: relative;
}

.prog-time {
    float: left;
    padding: 0 20px;
    font-weight: 500;
}

.active-now .prog-time {
    padding: 0 15px;
}

.active-now .prog-title {
    padding-left: 75px;
}

.prog-title {
    display: block;
    padding-left: 80px;
    /* font-weight: bold;
    font: 18px "Fira Sans", Roboto, Tahoma, Arial, sans-serif; */
}

.prog-item.hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.prog-item.active-now {
  background-color: var(--bg-soft);
  border-left: 5px solid var(--primary-color);
  border-radius: 12px;
}
.prog-item.show {
  max-height: 100px;
  opacity: 1;
}
.progress-container {
  margin: 10px 30px 10px 75px;
  background: var(--bg-card);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: #2196f3;
  transition: width 0.5s ease;
}
.progress-label {
  text-align: right;
  font-size: 16px;
  font-style: italic;
  color: var(--remain, var(--text-muted));
  margin: 10px 30px 0;
}

.pasttime .prog-title,
.pasttime .prog-time,
.futuretime.hidden .prog-title,
.futuretime.hidden .prog-time {
    color: #999;
}

@media (max-width: 420px) {
	.player__blocked-title {
		font-size: 14px;
	}
	
	.player__blocked-text {
		font-size: 12px;
	}

	.player__controls {
		padding: 0 0 5px;
	}
	
	.player__controls-left, .player__controls-right {
		gap: 5px;
	}
	
	.player__controls-bottom {
		flex-wrap: nowrap;
		gap: 0;
	}
}

@media (max-width: 375px) {	
	.player__controls-left, .player__controls-right {
		gap: 0;
	}
	
	.player__volume {
		width: 65px;
	}
}
