/**
 * @version     CVS: 0.0.1
 * @package     com_vidlinx
 * @copyright   2023 Dan Yager
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Dan Yager <dan@stargazerbooks.com>
 */

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Subscribe button area */
.yt-subscribe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.yt-sub-btn {
  display:inline-flex; /* align icon and text precisely */
  align-items:center;
  gap: .6rem;
  padding:0.6rem 1.05rem; /* slightly adjusted to center visually */
  border-radius:999px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight:600;
  text-decoration:none;
  background:#ff0000;
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.15);
  transition: filter .2s ease, transform .05s ease;
  line-height:1;
}
.yt-sub-btn:hover { filter:brightness(1.05); }
.yt-sub-btn:active { transform:translateY(1px); }

/* Ensure the official subscribe widget sits flush to the right */
.yt-subscribe-row .g-ytsubscribe {
  margin-left: auto;
}

/* Make both items responsive: stack on small viewports */
@media (max-width: 576px) {
  .yt-subscribe-row {
    flex-direction: column;
    align-items: stretch;
  }
  .yt-subscribe-row .g-ytsubscribe {
    margin-left: 0;
  }
}

.yt-sub-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 0; /* gap on parent handles spacing */
}
.yt-sub-icon svg { display:block; }
.yt-sub-text { display:inline-block; }



