.events_calendar {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px 8px 20px;
    border-bottom: 1px solid var(--bg-postlist-cmctable-border);
    margin-bottom: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}

.darklooks-mode-changer-enabled .events_calendar {
    box-shadow: unset;
}

.klea-ec--pending .klea-ec-line {
  visibility: hidden;
}

.klea-ec {
    position: relative;
    line-height: 1.2;
    user-select: none;
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.klea-ec-line {
  cursor: pointer;
}

.klea-ec-date {
	opacity: 0.8;
}

.klea-ec-title {
	font-weight: 600;
}

.klea-ec-anim {
	animation: kleaSlideDown 0.35s ease;
}

@keyframes kleaSlideDown {
	from { transform: translateY(-8px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.klea-ec-popup {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 9999;
    min-width: 320px;
    max-width: 520px;
    border: 1px solid var(--bg-post-content);
    border-radius: .1em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px;
    background: var(--bg-header-footer);
}

.klea-ec-popup.open {
	display: block;
}

.klea-ec-popup-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.klea-ec-popup-title {
	font-weight: 700;
}

.klea-ec-close {
    background: transparent;
    border: 0;
    color: var(--font-header-footer-filter-inputs);
    font-size: 11px;
    cursor: pointer;
    opacity: .7;
}

.klea-ec-close:hover {
    opacity: 1;
}

.klea-ec-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
  cursor: default;
}

.klea-ec-item {
    display: flex;
    gap: 5px;
    padding: 6px 15px;
    border-radius: .1em;
    background: var(--bg-postlist-cmctable);
    color: var(--font-postlist-meta);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.klea-ec-item .d {
	opacity: 0.85;
	white-space: nowrap;
}

.klea-ec-item .t {
	font-weight: 600;
}

.klea-ec-dot {
	margin-right: 6px;
	font-weight: bold;
}

.klea-ec-sep {
	margin: 0 4px;
}

.ec-dot {
  margin-right: 6px;
}

.ec-sep {
  margin: 0 4px;
}

.ec-date,
.ec-title {
  white-space: nowrap;
}

.klea-ec-popup .ec-dot {
  margin-right: 5px;
}

.klea-ec-popup .ec-sep {
  margin: 0 4px;
}

.ec-label {
}

.ec-impact-high {
	color: #e74c3c;
}

.ec-impact-medium {
	color: #f1c40f;
	opacity: .85;
}

.ec-impact-low {
	color: var(--color-cmc-up);
}

.darklooks-mode-changer-enabled .ec-impact-medium {
    color: var(--font-postlist-meta);
    opacity: .7;
}

.klea-ec-item.is-link {
  display: flex;
  text-decoration: none;
  color: var(--font-postlist-meta);
  transition: transform 0.15s ease;
}

.klea-ec-item.is-link:hover {
  transform: translateX(3px);
  background: var(--bg-postlist-cmctable-hover);
}
.ec-title {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 280px;
    height: 1.2em;
}

.klea-ec-list {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-height: calc(60vh - 55px);
}

.klea-ec-line {
    display: flex;
    gap: 5px;
    padding: 6px 15px;
    border-radius: .1em;
    background: var(--bg-postlist-cmctable);
    color: var(--font-cover-meta);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em; 
}

.ec-source-manual {background: #df52641f;}
.klea-ec-line.ec-source-manual {background: #b80a201a;}

@media (min-width: 500px) and (max-width: 1140px) {
.ec-title {
    max-width: 400px;
}

.klea-ec-line {
    max-width: 470px;
}
}

@media (min-width:820px) and (max-width:1140px){
.tvchart_container {
    z-index: 999;
}
.tvchart_on .tvchart_container {
    z-index: 999;
}
}

@media only screen and (max-width:820px){
.klea-ec-popup {
    position: fixed;
    top: 125px;
    left: 25px;
}
.klea-ec-line {
  margin-top:5px;
}
.tvchart_container {
    z-index: 999;
}
.tvchart_on .tvchart_container {
    z-index: 999;
}
}

@media only screen and (max-width: 500px) {
.klea-ec-popup {
    max-width: 320px;
}
}
