/* ========================================
   Stream 共通カラー
   SiteHubテーマカラー連動
======================================== */

.sh-stream-schedule,
.sh-stream-archive {
  --stream-accent: var(--sh-accent, #8a2be2);

  --stream-bg: #071018;
  --stream-card-bg: #0b1620;

  /* 対応ブラウザではテーマカラーを暗く混ぜる */
  --stream-bg:
    color-mix(in srgb, var(--stream-accent) 18%, #050814);

  --stream-card-bg:
    color-mix(in srgb, var(--stream-accent) 12%, #0b101c);
}

/* ========================================
   SiteHub Stream Schedule
======================================== */

.sh-stream-schedule {
  padding: 80px 20px;
  background: var(--stream-bg);
  color: #fff;
}

.sh-stream-schedule__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sh-stream-schedule__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sh-stream-schedule__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.sh-stream-schedule__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

/* 次回配信 */

.sh-next-stream {
  position: relative;
  overflow: hidden;
  min-height: 360px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;

  background: var(--stream-card-bg);
}

.sh-next-stream__image {
  position: absolute;
  inset: 0;
}

.sh-next-stream__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,10,15,.95),
    rgba(5,10,15,.55)
  );
}

.sh-next-stream__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-next-stream__content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.sh-next-stream__badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 4px;

  background: var(--stream-accent);

  font-size: 12px;
  font-weight: 700;
}

.sh-next-stream__date {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.sh-next-stream__weekday {
  margin-top: 5px;
  font-size: 14px;
}

.sh-next-stream__time {
  margin-top: 16px;
  font-size: 22px;
}

.sh-next-stream h3 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 26px;
}

.sh-next-stream p {
  line-height: 1.8;
  color: rgba(255,255,255,.78);
}

.sh-next-stream__button {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 6px;

  background: var(--stream-accent);
  color: #fff !important;

  text-decoration: none;
  font-weight: 700;
}


/* 今後の予定 */

.sh-stream-upcoming {
  display: flex;
  flex-direction: column;
}

.sh-stream-upcoming__item {
  display: flex;
  gap: 22px;
  min-height: 100px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: 0;
  background: rgba(255,255,255,.025);
}

.sh-stream-upcoming__item:last-child {
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sh-stream-upcoming__date {
  min-width: 85px;
}

.sh-stream-upcoming__date strong {
  font-size: 22px;
}

.sh-stream-upcoming__date span {
  margin-left: 5px;
  font-size: 12px;
  color: var(--stream-accent);
}

.sh-stream-upcoming__date small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.55);
}

.sh-stream-upcoming__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.sh-stream-upcoming__info strong {
  font-size: 17px;
}

.sh-stream-upcoming__info span {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}


/* スマホ */

@media (max-width: 768px) {

  .sh-stream-schedule {
    padding: 55px 16px;
  }

  .sh-stream-schedule__layout {
    grid-template-columns: 1fr;
  }

  .sh-next-stream {
    min-height: 420px;
  }

  .sh-next-stream__content {
    padding: 24px;
  }

  .sh-next-stream__date {
    font-size: 36px;
  }

  .sh-next-stream h3 {
    font-size: 22px;
  }

}

/* ========================================
   SiteHub Stream Archive
======================================== */

.sh-stream-archive {
  padding: 80px 20px;
  background: var(--stream-bg);
  color: #fff;
}

.sh-stream-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sh-stream-archive__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sh-stream-archive__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}


/* カード一覧 */

.sh-stream-archive__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}


/* カード */

.sh-archive-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;

  background: var(--stream-card-bg);
}


/* サムネイル */

.sh-archive-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050a0e;
}

.sh-archive-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.sh-archive-card:hover .sh-archive-card__image img {
  transform: scale(1.04);
}


/* 内容 */

.sh-archive-card__content {
  padding: 18px;
}

.sh-archive-card__date {
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.sh-archive-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.sh-archive-card__platform {
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.sh-archive-card p {
  margin: 0 0 15px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.7;
}


/* 視聴ボタン */

.sh-archive-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.sh-archive-card__button--twitch {
  background: #713cff;
}

.sh-archive-card__button--youtube {
  background: #e62117;
}

.sh-archive-card__button--niconico {
  background: #333;
}

.sh-archive-card__button--other {
  background: #555;
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 1000px) {

  .sh-stream-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ========================================
   スマホ
======================================== */

@media (max-width: 600px) {

  .sh-stream-archive {
    padding: 55px 16px;
  }

  .sh-stream-archive__grid {
    grid-template-columns: 1fr;
  }

}

