/**
 * SilverTeam/GastRock - Zenés Recept Videólista
 * Desktop: panelen belüli YouTube lejátszó.
 * Mobil: teljes szélességű lightbox YouTube lejátszó.
 * Teljesítmény: iframe csak kattintás után jön létre.
 */
.gastrock-mvp,
.gastrock-mvp * {
  box-sizing: border-box;
}

.gastrock-mvp {
  position: fixed;
  bottom: 18px;
  z-index: 99950;
  font-family: 'Poppins', 'Arial', sans-serif;
  color: #161616;
}

.gastrock-mvp.is-left { left: 18px; }
.gastrock-mvp.is-right { right: 18px; }

.gastrock-mvp-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border: 4px solid #111;
  border-radius: 18px 18px 18px 5px;
  background: linear-gradient(135deg, #ffdf37 0%, #ff3b30 100%);
  color: #111;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 7px 7px 0 #111;
  transform: rotate(-1deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gastrock-mvp.is-right .gastrock-mvp-tab {
  border-radius: 18px 18px 5px 18px;
  transform: rotate(1deg);
}

.gastrock-mvp-tab:hover,
.gastrock-mvp.is-open .gastrock-mvp-tab {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 5px 5px 0 #111;
}

.gastrock-mvp-tab-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid #111;
  border-radius: 999px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.gastrock-mvp-panel {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(430px, calc(100vw - 36px));
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 5px solid #111;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12px 12px, rgba(17,17,17,.12) 2px, transparent 2.5px) 0 0/18px 18px,
    linear-gradient(135deg, #fff8db 0%, #ffe45c 45%, #ffefe6 100%);
  box-shadow: 12px 12px 0 #111;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}

.gastrock-mvp.is-right .gastrock-mvp-panel {
  left: auto;
  right: 0;
}

.gastrock-mvp.is-open .gastrock-mvp-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.gastrock-mvp-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 4px solid #111;
  background: linear-gradient(135deg, #1b1b1b 0%, #3a0909 100%);
  color: #fff;
}

.gastrock-mvp-head:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-12deg, transparent 0 8px, rgba(255,255,255,.08) 8px 10px);
}

.gastrock-mvp-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #ffdf37;
  color: #111;
  font-size: 11px;
  font-weight: 900;
}

.gastrock-mvp-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-shadow: 3px 3px 0 #111, -2px 2px 0 #ff3b30;
}

.gastrock-mvp-head p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #fff6d7;
  font-size: 13px;
  line-height: 1.4;
}

.gastrock-mvp-close,
.gastrock-mvp-modal-close {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 3px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #111;
}

.gastrock-mvp-player {
  margin: 16px 16px 10px;
  aspect-ratio: 16 / 9;
  border: 4px solid #111;
  border-radius: 18px;
  overflow: hidden;
  background: #151515;
  box-shadow: 6px 6px 0 #111;
}

.gastrock-mvp-player iframe,
.gastrock-mvp-modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gastrock-mvp-player-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,223,55,.22), transparent 28%),
    linear-gradient(135deg, #151515, #3a0909);
}

.gastrock-mvp-player-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 4px solid #111;
  border-radius: 999px;
  background: #ffdf37;
  color: #111;
  box-shadow: 4px 4px 0 #111;
}

.gastrock-mvp-player-placeholder small {
  color: #ffeec2;
}

.gastrock-mvp-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 10px 12px;
  border: 3px solid #111;
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
}

.gastrock-mvp-current strong {
  font-size: 13px;
  line-height: 1.25;
}

.gastrock-mvp-recipe-link,
.gastrock-mvp-modal-info a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 3px 3px 0 #111;
}

.gastrock-mvp-list {
  overflow: auto;
  padding: 6px 16px 16px;
}

.gastrock-mvp-item {
  width: 100%;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px;
  border: 3px solid #111;
  border-radius: 16px;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(17,17,17,.88);
  transition: transform .16s ease, background .16s ease;
}

.gastrock-mvp-item:hover,
.gastrock-mvp-item.is-active {
  transform: translateY(-2px);
  background: #fff1a8;
}

.gastrock-mvp-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid #111;
  border-radius: 10px;
  background: #111;
}

.gastrock-mvp-thumb-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gastrock-mvp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ffdf37;
  color: #111;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 900;
}

.gastrock-mvp-item-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 7px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #ffdf37;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gastrock-mvp-item-title {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.gastrock-mvp-empty {
  margin: 16px;
  padding: 18px;
  border: 3px solid #111;
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
  box-shadow: 4px 4px 0 #111;
}

.gastrock-mvp-modal {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.gastrock-mvp-modal.is-open {
  display: flex;
}

.gastrock-mvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
}

.gastrock-mvp-modal-box {
  position: relative;
  width: min(920px, 100%);
  border: 5px solid #111;
  border-radius: 22px;
  background: #fff8db;
  box-shadow: 10px 10px 0 #111;
  overflow: hidden;
}

.gastrock-mvp-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.gastrock-mvp-modal-player {
  aspect-ratio: 16 / 9;
  background: #111;
}

.gastrock-mvp-modal-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 4px solid #111;
}

.gastrock-mvp-modal-info strong {
  font-size: 16px;
  font-weight: 900;
}

.gastrock-mvp-modal-lock {
  overflow: hidden;
}

@media (max-width: 767px) {
  .gastrock-mvp {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px;
  }

  .gastrock-mvp-tab {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .gastrock-mvp-panel {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    bottom: 66px;
    max-height: min(72vh, 620px);
    border-radius: 20px;
  }

  .gastrock-mvp-player,
  .gastrock-mvp-current {
    display: none !important;
  }

  .gastrock-mvp-head h2 {
    font-size: 21px;
  }

  .gastrock-mvp-list {
    padding: 12px;
  }

  .gastrock-mvp-item {
    grid-template-columns: 96px 1fr;
    gap: 10px;
  }

  .gastrock-mvp-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .gastrock-mvp-modal-box {
    width: 100%;
    border-radius: 20px;
  }

  .gastrock-mvp-modal-info {
    align-items: flex-start;
    flex-direction: column;
  }
}
