/*
 * @package     Joomla.Plugin.Sppagebuilder.YoutubeGdpr
 * @subpackage  Sppagebuilder.YoutubeGdpr
 *
 * @copyright   (C) 2026 Dominik Henneke
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

.ytgdpr-link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

.ytgdpr-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.ytgdpr-meta {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 12px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35));
  border-radius: 10px;
  line-height: 1.2;
}

.ytgdpr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 34px;
}

.ytgdpr-meta-text {
  min-width: 0;
}

.ytgdpr-meta-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.ytgdpr-meta-channel {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytgdpr-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: #ff0033;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ytgdpr-play-triangle {
  display: block;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 4px;
}

.ytgdpr-watch {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.ytgdpr-placeholder {
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #aaa;
  border-radius: 10px;
  background: #f5f5f5;
  text-align: center;
}

.ytgdpr-placeholder-text {
  font-weight: 600;
  color: #444;
  line-height: 1.4;
}
