
.tuna-video-page {
  min-height: 70vh;
  background: #080808;
}

.tuna-yt-gallery {
  --tuna-yt-black: #080808;
  --tuna-yt-black-soft: #151515;
  --tuna-yt-wine: var(--wine, #7b1722);
  --tuna-yt-wine-light: #a43859;
  --tuna-yt-white: #ffffff;
  --tuna-yt-cream: #f5eee9;
  --tuna-yt-border: rgba(255, 255, 255, 0.14);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  padding: clamp(2.25rem, 5vw, 5.25rem) clamp(1rem, 4vw, 3.5rem);
  overflow: hidden;
  box-sizing: border-box;
  color: var(--tuna-yt-white);
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--tuna-yt-wine) 62%, transparent), transparent 34rem),
    linear-gradient(145deg, var(--tuna-yt-black), var(--tuna-yt-black-soft));
  border-top: 5px solid var(--tuna-yt-wine);
  border-bottom: 5px solid var(--tuna-yt-wine);
}

.tuna-yt-gallery *,
.tuna-yt-gallery *::before,
.tuna-yt-gallery *::after {
  box-sizing: border-box;
}

.tuna-yt-inner {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.tuna-yt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: #efc5d2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tuna-yt-eyebrow::before {
  width: 2.8rem;
  height: 2px;
  content: "";
  background: var(--tuna-yt-wine-light);
}

.tuna-yt-gallery h1,
.tuna-yt-gallery h2 {
  max-width: 920px;
  margin: 0;
  color: var(--tuna-yt-white);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tuna-yt-intro {
  max-width: 790px;
  margin: 1.2rem 0 2.1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}

.tuna-yt-player-wrap {
  position: relative;
  overflow: hidden;
  width: min(960px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--tuna-yt-border);
  border-radius: 16px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.46),
    0 0 0 6px color-mix(in srgb, var(--tuna-yt-wine) 20%, transparent);
}

.tuna-yt-player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tuna-yt-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.25rem 0 1.1rem;
}

.tuna-yt-toolbar h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.tuna-yt-mode {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.9rem;
}

.tuna-yt-search {
  flex: 0 1 330px;
}

.tuna-yt-search input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0.7rem 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  outline: 0;
}

.tuna-yt-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.tuna-yt-search input:focus {
  border-color: var(--tuna-yt-wine-light);
  box-shadow: 0 0 0 3px rgba(164, 56, 89, 0.28);
}

.tuna-yt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.tuna-yt-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #111;
  border: 1px solid var(--tuna-yt-border);
  border-radius: 11px;
  box-shadow: 0 9px 23px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font: inherit;
  text-align: left;
  appearance: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.tuna-yt-card[hidden] {
  display: none !important;
}

.tuna-yt-card:hover,
.tuna-yt-card:focus-visible {
  border-color: var(--tuna-yt-wine-light);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.tuna-yt-card:focus-visible {
  outline: 3px solid var(--tuna-yt-cream);
  outline-offset: 3px;
}

.tuna-yt-card.is-active {
  border-color: var(--tuna-yt-wine-light);
  box-shadow:
    0 0 0 3px rgba(164, 56, 89, 0.3),
    0 15px 32px rgba(0, 0, 0, 0.4);
}

.tuna-yt-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tuna-yt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 180ms ease;
}

.tuna-yt-card:hover .tuna-yt-thumb img {
  transform: scale(1.035);
}

.tuna-yt-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.36), transparent 55%);
  pointer-events: none;
}

.tuna-yt-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  background: color-mix(in srgb, var(--tuna-yt-wine) 94%, black);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

.tuna-yt-play::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  content: "";
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}

.tuna-yt-copy {
  display: block;
  min-height: 73px;
  padding: 0.68rem 0.75rem 0.78rem;
}

.tuna-yt-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tuna-yt-copy small {
  display: block;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.71rem;
}

.tuna-yt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tuna-yt-more,
.tuna-yt-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 0.75rem 1.15rem;
  color: #fff !important;
  background: var(--tuna-yt-wine);
  border: 1px solid var(--tuna-yt-wine-light);
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.tuna-yt-more:hover,
.tuna-yt-more:focus-visible,
.tuna-yt-channel:hover,
.tuna-yt-channel:focus-visible {
  color: #fff !important;
  background: var(--tuna-yt-wine-light);
}

.tuna-yt-more[hidden] {
  display: none !important;
}

.tuna-yt-channel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.tuna-yt-count {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.85rem;
}

.tuna-yt-message {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.3rem;
  color: #fff;
  background: rgba(116, 27, 53, 0.25);
  border: 1px solid rgba(164, 56, 89, 0.72);
  border-radius: 12px;
}

.tuna-yt-message span {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1080px) {
  .tuna-yt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tuna-yt-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tuna-yt-search {
    flex-basis: auto;
  }

  .tuna-yt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .tuna-yt-gallery {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .tuna-yt-grid {
    grid-template-columns: 1fr;
  }

  .tuna-yt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tuna-yt-more,
  .tuna-yt-channel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tuna-yt-card,
  .tuna-yt-thumb img {
    transition: none;
  }
}
