.pisa-evp {
  --pisa-evp-accent: #52afa6;
  --pisa-evp-light: #82cfcb;
  --pisa-evp-plum: #471d3b;
  --pisa-evp-text: #173c39;
  --pisa-evp-gap: 18px;

  width: 100%;
  margin: 0 auto;
  color: var(--pisa-evp-text);
}

.pisa-evp-card {
  overflow: hidden;
  border: 1px solid rgba(130, 207, 203, 0.72);
  border-radius: 20px;
  background: linear-gradient(135deg, #3d817b 0%, var(--pisa-evp-light) 100%);
}

.pisa-evp-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 16px 22px;
  background: rgba(71, 29, 59, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pisa-evp-heading {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pisa-evp-player-shell {
  position: relative;
  overflow: hidden;
  background: #262626;
  box-shadow: none;
  border-radius: 0 !important;
}

.pisa-evp-player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #173c39;
}

.pisa-evp-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pisa-evp-empty-player {
  aspect-ratio: 16 / 9;
}

.pisa-evp-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 15px;
  background: #eff9f8;
}

.pisa-evp-info-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pisa-evp-channel-title {
  color: var(--pisa-evp-text);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pisa-evp-channel-meta {
  margin-top: 5px;
  color: #7aa7a2;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.pisa-evp-subscribe {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 8px;
  background: #ff1414;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.pisa-evp-subscribe:hover,
.pisa-evp-subscribe:focus {
  background: #d90f0f;
  color: #fff;
}

.pisa-evp-current-title {
  margin: 16px 0 0;
  color: var(--pisa-evp-text);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.35;
}

.pisa-evp-current-category {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(130, 207, 203, 0.72);
  border-radius: 999px;
  background: rgba(130, 207, 203, 0.16);
  color: #2f746f;
  font-size: 0.78rem;
  font-weight: 800;
}

.pisa-evp-list-hidden .pisa-evp-list {
  display: none;
}

.pisa-evp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pisa-evp-gap);
  margin-top: 22px;
}

.pisa-evp-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(130, 207, 203, 0.7);
  border-radius: 14px;
  background: rgba(234, 247, 246, 0.7);
  color: var(--pisa-evp-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pisa-evp-item:hover,
.pisa-evp-item.is-active {
  border-color: var(--pisa-evp-accent);
  background: #fff;
  transform: translateY(-1px);
}

.pisa-evp-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pisa-evp-accent), var(--pisa-evp-light));
}

.pisa-evp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pisa-evp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pisa-evp-plum);
  color: #fff;
  font-size: 0.66rem;
  transform: translate(-50%, -50%);
}

.pisa-evp-item-text {
  min-width: 0;
}

.pisa-evp-item-text strong,
.pisa-evp-item-text small {
  display: block;
}

.pisa-evp-item-text strong {
  color: var(--pisa-evp-text);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.pisa-evp-item-text small {
  margin-top: 7px;
  color: #2f746f;
  font-size: 0.72rem;
  font-weight: 800;
}

.pisa-evp-empty {
  padding: 18px;
  border: 1px solid rgba(130, 207, 203, 0.7);
  border-radius: 12px;
  background: rgba(234, 247, 246, 0.78);
  color: #2f746f;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pisa-evp-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pisa-evp-card {
    border-radius: 16px;
  }

  .pisa-evp-heading-wrap {
    min-height: 58px;
    gap: 10px;
    padding: 16px 22px;
  }

  .pisa-evp-heading {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .pisa-evp-info-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
  }

  .pisa-evp-channel-title {
    font-size: 0.8rem;
  }

  .pisa-evp-channel-meta {
    font-size: 0.78rem;
  }

  .pisa-evp-subscribe {
    padding: 5px;
    font-size: 0.75rem;
  }

  .pisa-evp-list {
    grid-template-columns: 1fr;
  }

  .pisa-evp-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .pisa-evp-current-title {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .pisa-evp-info-bar {
    flex-wrap: wrap;
  }

  .pisa-evp-subscribe {
    min-width: 0;
  }
}
