/*
Theme Name:ZOOMY child
Theme URI:https://tcd-theme.com/tcd067
Description:WordPressテーマ「ZOOMY」の子テーマ
Template:zoomy_tcd067
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0.20261003homefeed
*/

/*
  ここから下にCSSを追記してください。
*/

/* 検索フォーム */
/* コンテンツビルダー枠の上余白を詰める（旧・追加CSS相当） */
.p-cb__item:has(.nijikake-search),
.cb_content:has(.nijikake-search),
.content_builder_content:has(.nijikake-search) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.nijikake-search {
  --nk-border: #d8dde6;
  --nk-text: #1a1f2a;
  --nk-accent: #1f6feb;
  --nk-bg: #ffffff;
  --nk-field: #f4f6fa;
  max-width: 720px;
  margin: 10px auto 0.65rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
  width: 100%;
}

.nijikake-search__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nijikake-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none;
  height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--nk-border);
  border-radius: 8px 0 0 8px;
  background: var(--nk-field);
  color: var(--nk-text);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.nijikake-search__input::placeholder {
  color: #9aa3b5;
}

.nijikake-search__input:focus {
  background: var(--nk-bg);
  border-color: var(--nk-accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
  z-index: 1;
}

.nijikake-search__btn {
  flex: 0 0 auto;
  flex-shrink: 0;
  height: 44px;
  min-width: 4rem;
  width: auto !important;
  padding: 0 1.15rem;
  border: 1px solid var(--nk-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f8f9fb;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  visibility: visible !important;
  opacity: 1 !important;
}

.nijikake-search__btn:hover {
  background: #eef1f6;
}

.nijikake-search__btn-label {
  display: inline !important;
}

.nijikake-search__icon {
  display: none;
}

@media (max-width: 900px) {
  .nijikake-search--content .nijikake-search__row,
  .nijikake-search:not(.nijikake-header-search) .nijikake-search__row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 0.4rem;
  }

  .nijikake-search--content .nijikake-search__input,
  .nijikake-search:not(.nijikake-header-search) .nijikake-search__input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px;
    border-radius: 0;
    border-left: 1px solid var(--nk-border);
  }

  .nijikake-search--content .nijikake-search__btn,
  .nijikake-search:not(.nijikake-header-search) .nijikake-search__btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 4.25rem;
    height: 44px;
    padding: 0 0.85rem;
    border-radius: 0;
    border-left: 1px solid var(--nk-border);
  }

  .nijikake-search--content .nijikake-search__btn-label,
  .nijikake-search:not(.nijikake-header-search) .nijikake-search__btn-label {
    display: inline !important;
  }

  .nijikake-search--content .nijikake-search__icon,
  .nijikake-search:not(.nijikake-header-search) .nijikake-search__icon {
    display: none !important;
  }
}

/* ---- ヘッダー会員: プロフィール枠は通知ベルに置換（旧スタイル残置） ---- */
.p-header-member-menu__item-author_name {
  display: none !important;
}

.p-header-member-menu__item--author > a.p-header-member-menu__item-author,
.p-header-member-menu__item-author {
  min-width: 0 !important;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

.p-header-member-menu__item-author_thumbnail {
  margin-right: 0 !important;
}

/* ---- PCヘッダー検索（YouTube風・中央固定） ---- */
.nijikake-header-search {
  display: none;
}

@media (min-width: 901px) {
  /* コンテンツビルダー／本文の検索はPCでは出さない */
  .nijikake-search--content,
  .p-body > .nijikake-search:not(.nijikake-header-search),
  .p-cb__item:has(.nijikake-search--content),
  .p-cb__item:has(.nijikake-search:not(.nijikake-header-search)),
  .cb_content:has(.nijikake-search--content),
  .cb_content:has(.nijikake-search:not(.nijikake-header-search)),
  .content_builder_content:has(.nijikake-search--content) {
    display: none !important;
  }

  #js-header.l-header,
  .l-header {
    position: relative;
  }

  #js-header .l-header__bar,
  #js-header .p-header__bar,
  .l-header__bar.p-header__bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 0.75rem;
  }

  /* ロゴが伸びて検索を押し出さないようにする */
  #js-header .l-header__bar > .p-header__logo,
  #js-header .l-header__bar > .p-logo:not(.p-header__logo--mobile),
  .l-header__bar > .p-header__logo,
  .l-header__bar > .p-logo:not(.p-header__logo--mobile) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 200px !important;
    margin-right: 0 !important;
  }

  #js-header .l-header__bar > .p-header-member-menu,
  .l-header__bar > .p-header-member-menu {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  #js-header .l-header__bar > .p-menu-button,
  #js-header .l-header__bar > #js-menu-button,
  .l-header__bar > .p-menu-button {
    flex: 0 0 auto !important;
  }

  /* ヘッダー中央に検索（画面中央基準） */
  .nijikake-header-search {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(640px, 46vw) !important;
    max-width: 640px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 6;
    pointer-events: auto;
  }

  .nijikake-header-search .nijikake-search__row {
    height: 40px;
  }

  .nijikake-header-search .nijikake-search__input {
    height: 40px;
    border-radius: 40px 0 0 40px;
    padding: 0 1rem;
    background: #fff;
    border-color: #ccc;
    font-size: 0.95rem;
  }

  .nijikake-header-search .nijikake-search__input:focus {
    border-color: #1f6feb;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(31, 111, 235, 0.25);
  }

  .nijikake-header-search .nijikake-search__btn {
    height: 40px;
    min-width: 64px;
    padding: 0 1.25rem;
    border-radius: 0 40px 40px 0;
    background: #f8f8f8;
    border-color: #ccc;
  }

  .nijikake-header-search .nijikake-search__btn-label {
    display: none;
  }

  .nijikake-header-search .nijikake-search__icon {
    display: block;
  }
}

@media (max-width: 900px) {
  body.single-nk_video .l-header,
  body.single-nk_video .l-header__bar,
  body.nijikake-live-page .l-header,
  body.nijikake-live-page .l-header__bar {
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* 左余白は親テーマのメニュー幅確保を維持（潰すとサイト名が被る） */
  body.single-nk_video .l-header__bar,
  body.nijikake-live-page .l-header__bar {
    padding-right: 0.6rem !important;
  }
}

/* ライブ等ダークページのヘッダー検索 */
body.nijikake-live-page .nijikake-header-search .nijikake-search__input,
body.single-nk_video .nijikake-header-search .nijikake-search__input {
  background: #121929;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f3f6ff;
}

body.nijikake-live-page .nijikake-header-search .nijikake-search__btn,
body.single-nk_video .nijikake-header-search .nijikake-search__btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f3f6ff;
}

body.nijikake-live-page .nijikake-search__input {
  background: #121929;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f6ff;
}

/* 関連動画 */
.nijikake-related {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 0.75rem;
}

.nijikake-related__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1f2a;
}

.nijikake-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nijikake-related__item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nijikake-related__item::before,
.nijikake-related__item::marker {
  content: none;
  display: none;
}

.nijikake-related__item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nijikake-related__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e8ecf2;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.nijikake-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nijikake-related__name {
  font-size: 0.9rem;
  line-height: 1.4;
}

.nijikake-related__empty {
  color: #6b7385;
  font-size: 0.95rem;
}

/* ホームフィード（コンテンツビルダー） */
.p-cb__item:has(.nijikake-home-feeds),
.p-cb__item:has(.nijikake-video-list),
.cb_content:has(.nijikake-home-feeds),
.cb_content:has(.nijikake-video-list),
.content_builder_content:has(.nijikake-home-feeds) {
  padding-top: 1.1rem !important;
  margin-top: 0 !important;
}

/* 動画一覧まわりの表示幅をやや広げる */
.l-inner:has(.nijikake-home-feeds),
.l-inner:has(.nijikake-video-list) {
  max-width: 1280px;
}

.nijikake-home-feeds {
  margin: 0.5rem 0 2.25rem;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.nijikake-home-feeds__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0 0 0.55rem;
  border-bottom: 2px solid #e8ecf2;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.nijikake-home-feeds__title::before {
  content: "";
  flex: 0 0 0.22rem;
  width: 0.22rem;
  height: 0.9em;
  border-radius: 999px;
  background: #1f6feb;
}

.nijikake-home-feeds__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #e8ecf2;
}

.nijikake-home-feeds__head .nijikake-home-feeds__title {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.nijikake-home-feeds__more-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #1f6feb;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}

.nijikake-home-feeds__more-link:hover {
  text-decoration: underline;
  color: #1f6feb;
  background: none;
}

.nijikake-home-feeds__empty {
  margin: 0 0 1.5rem;
  padding: 1rem 0.25rem;
  color: #64748b;
  font-size: 0.9rem;
}

.nijikake-reserve-rail,
.nijikake-blog-rail,
.nijikake-channel-rail {
  margin-top: 2rem;
}

/* 動画一覧（YouTube風） */
.nijikake-video-list {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.nijikake-video-list__title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: inherit;
}

/* 現在の生放送：やや大きめカード */
.nijikake-video-list__grid,
.nijikake-video-list__grid--live {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem 0.85rem;
  list-style: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nijikake-video-list--live .nijikake-video-list__item {
  max-width: 280px;
}

/* 動画投稿：1行最大5個 */
.nijikake-video-list__grid--posted {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem 0.75rem;
  list-style: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  padding-inline: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nijikake-video-list--posted .nijikake-video-list__item {
  max-width: none;
}

.nijikake-video-list--live,
.nijikake-missed-rail,
.nijikake-video-list--posted {
  margin-bottom: 1.75rem;
}

.nijikake-video-list--live .nijikake-video-list__thumb,
.nijikake-video-list--posted .nijikake-video-list__thumb,
.nijikake-missed-rail .nijikake-video-list__thumb {
  border-radius: 10px;
}

.nijikake-video-list--live .nijikake-video-list__name,
.nijikake-video-list--posted .nijikake-video-list__name,
.nijikake-missed-rail .nijikake-video-list__name {
  font-size: 0.9rem;
}

/* スマホ初期は data-sp-visible 件まで。PCはすべて表示 */
@media (max-width: 900px) {
  .nijikake-video-list:not(.is-expanded) .nijikake-video-list__grid > .nijikake-video-list__item.is-sp-hidden {
    display: none !important;
  }
}

.nijikake-video-list__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  min-width: 0;
}

.nijikake-video-list__item::before,
.nijikake-video-list__item::marker {
  content: none !important;
  display: none !important;
}

.nijikake-video-list__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nijikake-video-list__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #1a2233;
  border-radius: 12px;
  overflow: hidden;
}

.nijikake-video-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.nijikake-video-list__link:hover .nijikake-video-list__thumb img {
  transform: scale(1.03);
}

.nijikake-video-list__thumb--live {
  display: block;
  background: #0d1324;
}

.nijikake-video-list__live-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  background: #0d1324;
}

.nijikake-video-list__live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nijikake-video-list__item--live.is-preview-ready .nijikake-video-list__live-video {
  opacity: 1;
}

.nijikake-video-list__item--live.is-preview-ready .nijikake-video-list__live-poster {
  opacity: 0;
}

/* 2枠目以降: プレビューなし・現在番組サムネ固定表示 */
.nijikake-video-list__item--live.is-live-static .nijikake-video-list__live-poster {
  opacity: 1;
}

.nijikake-video-list__live-poster--empty {
  background: linear-gradient(145deg, #1a2338 0%, #0d1324 100%);
}

.nijikake-video-list__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.nijikake-video-list__live-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: #64748b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.nijikake-video-list__item--live.is-onair .nijikake-video-list__live-badge,
.nijikake-video-list__item--live.is-live-static .nijikake-video-list__live-badge,
.nijikake-reserve-rail__item.is-onair .nijikake-video-list__live-badge {
  background: #e11d48;
}

.nijikake-video-list__item--live .nijikake-video-list__meta {
  margin-top: 0.7rem;
}

.nijikake-video-list__type {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.nijikake-video-list__row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 0.7rem;
}

.nijikake-video-list__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a3348;
}

.nijikake-video-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nijikake-video-list__avatar--empty {
  background: linear-gradient(135deg, #334155, #1e293b);
}

.nijikake-video-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nijikake-video-list__row .nijikake-video-list__meta {
  margin-top: 0;
}

.nijikake-video-list__name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nijikake-video-list__sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nijikake-video-list__more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.nijikake-video-list__more {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

.nijikake-video-list__more:hover {
  background: #eef2f7;
}

.nijikake-video-list__more:disabled {
  opacity: 0.55;
  cursor: default;
}

.nijikake-video-list__more[hidden] {
  display: none !important;
}

.nijikake-video-list__sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

.nijikake-video-list__sentinel[hidden] {
  display: none;
}

.nijikake-video-list__loading {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.nijikake-video-list__loading[hidden] {
  display: none !important;
}

body.nijikake-live-page .nijikake-video-list__loading {
  color: #8b95ab;
}

body.nijikake-live-page .nijikake-video-list__title,
body.nijikake-live-page .nijikake-home-feeds__title,
body.nijikake-live-page .nijikake-video-list__name {
  color: #f3f6ff;
}

body.nijikake-live-page .nijikake-video-list__sub,
body.nijikake-live-page .nijikake-home-feeds__empty {
  color: #8b95ab;
}

body.nijikake-live-page .nijikake-video-list__thumb {
  background: #182235;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.nijikake-live-page .nijikake-home-feeds__more-link {
  background: none;
  border: 0;
  color: #93c5fd;
}

body.nijikake-live-page .nijikake-video-list__more {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

body.nijikake-live-page .nijikake-home-feeds__title {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #f3f6ff;
}

body.nijikake-live-page .nijikake-home-feeds__title::before {
  background: #60a5fa;
}

body.nijikake-live-page .nijikake-home-feeds__head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* 予約一覧／ブログ一覧：横スライド（見える範囲に約4枠） */
.nijikake-reserve-rail__scroller,
.nijikake-blog-rail__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  margin: 0 !important;
  padding: 0 0 0.35rem !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  list-style: none !important;
}

.nijikake-reserve-rail__item,
.nijikake-blog-rail__item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  scroll-snap-align: start;
}

/* アーカイブ一覧：予約と同様の横スライド */
.nijikake-archive-rail__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  margin: 0 !important;
  padding: 0 0 0.35rem !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  list-style: none !important;
}

.nijikake-archive-rail__scroller > .nijikake-video-list__item {
  scroll-snap-align: start;
  min-width: 0;
}

/* 見逃し配信：1行・左右スライド（見える幅で最大5個） */
.nijikake-missed-rail {
  margin: 0 0 1.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nijikake-missed-rail__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.nijikake-missed-rail__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 5);
  gap: 0.75rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-snap-type: x mandatory;
  list-style: none !important;
  cursor: grab;
  touch-action: pan-x;
}

.nijikake-missed-rail__scroller::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

.nijikake-missed-rail__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.nijikake-missed-rail__scroller.is-dragging a {
  pointer-events: none;
}

.nijikake-missed-rail__scroller > .nijikake-video-list__item {
  scroll-snap-align: start;
  min-width: 0;
  max-width: none;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * 左右スライドボタン（参考UIと同じ縦長ピル）
 * 端に重ね、カード列の上下中央
 */
.nijikake-missed-rail__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 1.65rem;
  height: 5.5rem;
  max-height: 70%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 239, 243, 0.92);
  color: #5a6472;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nijikake-missed-rail__nav:hover {
  background: rgba(220, 225, 232, 0.98);
  color: #1d2327;
}

.nijikake-missed-rail__nav:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.nijikake-missed-rail__nav--prev {
  left: 0.15rem;
}

.nijikake-missed-rail__nav--next {
  right: 0.15rem;
}

.nijikake-missed-rail__nav[hidden],
.nijikake-missed-rail__nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nijikake-missed-rail__nav {
    width: 1.45rem;
    height: 4.6rem;
    font-size: 1.05rem;
  }
}

/* チャンネル：左詰め（PC）／スマホは横3列×2行 */
.nijikake-channel-rail__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.85rem 1rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nijikake-channel-rail__item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  width: 9.25rem;
  max-width: 100%;
}

.nijikake-channel-rail__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nijikake-channel-rail__card:hover {
  border-color: #d0d7e2;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.nijikake-channel-rail__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  text-align: left;
  gap: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: none;
}

.nijikake-channel-rail__link:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.nijikake-channel-rail__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #e8ecf2, #cfd8e6);
  overflow: hidden;
}

.nijikake-channel-rail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.nijikake-channel-rail__card:hover .nijikake-channel-rail__cover img {
  transform: scale(1.04);
}

.nijikake-channel-rail__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem 0.25rem;
  min-width: 0;
  text-align: center;
  align-items: center;
}

.nijikake-channel-rail__name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nijikake-channel-rail__sub {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}

.nijikake-channel-rail__action {
  padding: 0 0.55rem 0.55rem;
}

.nijikake-channel-rail__action .nk-channel-sub--compact {
  width: 100%;
  min-height: 1.9rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .nijikake-video-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.65rem;
  }

  .nijikake-channel-rail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem 0.4rem;
  }

  .nijikake-channel-rail__item {
    width: auto;
    max-width: none;
  }

  .nijikake-channel-rail__body {
    padding: 0.35rem 0.4rem 0.15rem;
  }

  .nijikake-channel-rail__name {
    font-size: 0.78rem;
  }

  .nijikake-channel-rail__sub {
    font-size: 0.65rem;
  }

  .nijikake-channel-rail__action {
    padding: 0 0.4rem 0.45rem;
  }

  .nijikake-channel-rail__action .nk-channel-sub--compact {
    min-height: 1.7rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.68rem;
    border-radius: 6px;
  }

  .nijikake-channel-rail__card {
    border-radius: 10px;
  }

  .nijikake-reserve-rail__scroller,
  .nijikake-blog-rail__scroller,
  .nijikake-archive-rail__scroller {
    grid-auto-columns: calc((100% - 0.65rem) / 2);
    gap: 0.65rem;
  }

  .nijikake-video-list__grid--posted {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nijikake-missed-rail__scroller {
    grid-auto-columns: calc((100% - 1.5rem) / 3);
    gap: 0.7rem;
  }

  .nijikake-video-list--live .nijikake-video-list__item,
  .nijikake-video-list--posted .nijikake-video-list__item,
  .nijikake-missed-rail__scroller > .nijikake-video-list__item {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nijikake-video-list__grid,
  .nijikake-video-list__grid--posted,
  .nijikake-video-list__grid--live {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem 0.6rem;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nijikake-missed-rail__scroller {
    grid-auto-columns: calc((100% - 0.65rem) / 2);
    gap: 0.65rem;
  }

  .nijikake-video-list__avatar {
    display: none;
  }

  .nijikake-video-list--live .nijikake-video-list__name,
  .nijikake-video-list--posted .nijikake-video-list__name,
  .nijikake-missed-rail .nijikake-video-list__name {
    font-size: 0.85rem;
  }

  .nijikake-channel-rail__grid {
    gap: 0.45rem 0.3rem;
  }

  .nijikake-search--content,
  .nijikake-search:not(.nijikake-header-search) {
    padding-left: 0;
    padding-right: 0;
  }
}

/* チャンネル一覧アーカイブ */
.nijikake-channel-archive {
  max-width: 1080px;
  margin: 1.75rem auto 3rem;
  padding: 0.75rem 1rem 0;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .nijikake-channel-archive {
    margin-top: 2.25rem;
    padding-top: 0.5rem;
  }
}

.nijikake-channel-archive__inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nijikake-channel-archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.nijikake-channel-archive__head-main {
  min-width: 0;
}

.nijikake-channel-archive__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.nijikake-channel-archive__count {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.nijikake-channel-archive__search {
  display: flex;
  align-items: stretch;
  align-self: flex-end;
  gap: 0;
  width: min(100%, 22rem);
  flex: 0 1 18rem;
  max-width: 22rem;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.nijikake-channel-archive__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid #d8dde6;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f4f6fa;
  color: #1a1f2a;
  font-size: 0.92rem;
}

.nijikake-channel-archive__search-input:focus {
  outline: none;
  background: #fff;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
  z-index: 1;
}

.nijikake-channel-archive__search-btn {
  flex: 0 0 auto;
  height: 2.4rem;
  padding: 0 0.95rem;
  border: 1px solid #d8dde6;
  border-radius: 0 8px 8px 0;
  background: #f8f9fb;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.nijikake-channel-archive__search-btn:hover {
  background: #eef2f7;
}

.nijikake-channel-archive__sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.nijikake-channel-archive__sort-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.nijikake-channel-archive__sort-link:hover {
  background: #f8fafc;
  color: #0f172a;
}

.nijikake-channel-archive__sort-link.is-active {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}

.nijikake-channel-archive__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.nijikake-channel-archive__item {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
}

.nijikake-channel-archive__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nijikake-channel-archive__card:hover {
  border-color: #d0d7e2;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.nijikake-channel-archive__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.nijikake-channel-archive__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #e8ecf2, #cfd8e6);
  overflow: hidden;
}

.nijikake-channel-archive__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.nijikake-channel-archive__card:hover .nijikake-channel-archive__cover img {
  transform: scale(1.03);
}

.nijikake-channel-archive__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem 0.3rem;
  min-width: 0;
  text-align: center;
  align-items: center;
}

.nijikake-channel-archive__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.nijikake-channel-archive__sub {
  font-size: 0.75rem;
  color: #64748b;
}

.nijikake-channel-archive__action {
  margin-top: auto;
  padding: 0 0.7rem 0.7rem;
  min-height: 2.55rem;
  display: flex;
  align-items: flex-end;
}

.nijikake-channel-archive__action .nk-channel-sub--compact {
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
}

.nijikake-channel-archive__empty {
  margin: 1.5rem 0;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nijikake-channel-archive {
    margin-top: 1.1rem;
    padding: 0.35rem 0.75rem 0;
  }

  .nijikake-channel-archive__head {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .nijikake-channel-archive__head-main {
    width: 100%;
    text-align: left;
  }

  .nijikake-channel-archive__search {
    align-self: stretch;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
  }

  .nijikake-channel-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.65rem;
  }

  .nijikake-channel-archive__body {
    padding: 0.5rem 0.6rem 0.25rem;
  }

  .nijikake-channel-archive__name {
    font-size: 0.86rem;
  }

  .nijikake-channel-archive__action {
    padding: 0 0.6rem 0.6rem;
    min-height: 2.4rem;
  }
}

@media (max-width: 640px) {
  .nijikake-channel-archive {
    margin-top: 0.85rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .nijikake-channel-archive__title {
    font-size: 1.2rem;
  }

  .nijikake-channel-archive__sort {
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .nijikake-channel-archive__sort-link {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
  }

  .nijikake-channel-archive__cover {
    aspect-ratio: 16 / 11;
  }
}

/* 公開チャンネル（タブナビ） */
.nk-channel {
  max-width: 1080px;
  margin: 1.25rem auto 3rem;
  padding: 0 0.85rem;
}

.nk-channel__header--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid #e8ecf2;
}

.nk-channel__header-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}

.nk-channel__header-actions {
  flex: 0 0 auto;
}

.nk-channel__icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8ecf2;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.nk-channel__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nk-channel__meta {
  min-width: 0;
}

.nk-channel__name {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.3;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nk-channel__subs {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.4;
}

.nk-channel-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.nk-channel-sub:disabled,
.nk-channel-sub.is-ajaxing {
  opacity: 0.65;
  cursor: wait;
}

.nk-channel-sub--light {
  background: #dc2626;
  color: #fff;
}

.nk-channel-sub--light:hover {
  background: #b91c1c;
}

.nk-channel-sub--light.is-subscribed {
  background: #e2e8f0;
  color: #334155;
}

.nk-channel-sub--light.is-subscribed:hover {
  background: #cbd5e1;
}

.nk-channel-sub--dark {
  background: #f8fafc;
  color: #0f172a;
  flex: 0 0 auto;
  margin-left: auto;
}

.nk-channel-sub--dark:hover {
  background: #e2e8f0;
}

.nk-channel-sub--dark.is-subscribed {
  background: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.nk-channel-sub--dark.is-subscribed:hover {
  background: rgba(148, 163, 184, 0.4);
}

.nk-channel__desc--clamp {
  margin: 0 0 0.35rem;
}

.nk-channel__desc-body {
  color: #4a5160;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.nk-channel__desc--clamp.is-open .nk-channel__desc-body {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.nk-channel__desc-body p {
  margin: 0 0 0.5rem;
}

.nk-channel__desc-body p:last-child {
  margin-bottom: 0;
}

.nk-channel__desc-more {
  margin: 0.35rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.nk-channel__desc-more:hover {
  color: #0f172a;
}

button.nk-channel__desc {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0.65rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  font: inherit;
  color: inherit;
}

button.nk-channel__desc .nk-channel__desc-more {
  display: inline-block;
  pointer-events: none;
}

.nk-channel__tabs {
  display: flex;
  gap: 0.15rem;
  margin: 0 0 1.35rem;
  padding: 0;
  border-bottom: 1px solid #e8ecf2;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}

.nk-channel__tabs::-webkit-scrollbar {
  display: none;
}

.nk-channel__tab {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0.85rem 1.05rem 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nk-channel__tab:hover {
  color: #0f172a;
}

.nk-channel__tab.is-active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.nk-channel__panel[hidden] {
  display: none !important;
}

.nk-channel__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.nk-channel__block-head .nk-channel__section-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.nk-channel__more-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: #1f6feb;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.nk-channel__more-link:hover {
  text-decoration: underline;
}

.nk-channel__section-title {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem !important;
  padding: 0 0 0.55rem !important;
  border: none !important;
  border-bottom: 2px solid #e8ecf2 !important;
  background: none !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em;
}

.nk-channel__section-title::before {
  content: "";
  flex: 0 0 0.22rem;
  width: 0.22rem;
  height: 0.9em;
  border-radius: 999px;
  background: #1f6feb;
}

.nk-channel__block {
  margin: 0 0 2.25rem;
}

.nk-channel__block:last-child {
  margin-bottom: 0;
}

.nk-channel__block--live .nk-channel__section-title::before {
  background: #dc2626;
}

.nk-channel__videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nk-channel__videos--row {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.nk-channel__videos--row > .nk-channel__video {
  flex: 0 0 min(220px, 72vw);
  width: min(220px, 72vw);
  scroll-snap-align: start;
}

.nk-channel__video a,
.nk-channel__card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nk-channel__thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d8dee8;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 0.45rem;
}

.nk-channel__thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.nk-channel__video-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.nk-channel__thumb-meta {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  padding: 0.75rem;
  margin: 0;
  background: rgba(15, 23, 42, 0.48);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.nk-channel__thumb-meta--when {
  top: 0.45rem;
  left: 0.45rem;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.72);
  text-align: left;
}

.nk-channel__thumb-meta--dur {
  top: auto;
  left: auto;
  right: 0.4rem;
  bottom: 0.4rem;
  inset: auto 0.4rem 0.4rem auto;
  display: inline-flex;
  padding: 0;
  background: transparent;
}

.nk-channel__thumb-when {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nk-channel__thumb-dur {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
}

.nk-channel__live-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.nk-channel__live-badge::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fff;
}

.nk-channel__live-badge--archive {
  background: #334155;
  letter-spacing: 0.02em;
}

.nk-channel__live-badge--archive::before {
  display: none;
}

.nk-channel__video.is-onair .nk-channel__video-title {
  color: #b91c1c;
}

.nk-channel__empty {
  color: #6b7385;
}

@media (max-width: 640px) {
  .nk-channel__header--bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nk-channel__header-actions {
    width: 100%;
  }

  .nk-channel__header-actions .nk-channel-sub {
    width: 100%;
  }

  .nk-channel__icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .nk-channel__name {
    font-size: 1.15rem;
  }

  .nk-channel__tab {
    padding: 0.75rem 0.85rem 0.65rem;
    font-size: 0.9rem;
  }
}

/* --- チャンネル C案: ダークシネマ（タブ構成はDのまま） --- */
.nk-channel-page--cinema {
  background:
    radial-gradient(900px 360px at 18% 0%, rgba(56, 120, 200, 0.14), transparent 55%),
    radial-gradient(700px 280px at 88% 8%, rgba(224, 32, 32, 0.08), transparent 50%),
    #050a14;
  color: #e8eef8;
  min-height: 70vh;
  padding: 1.25rem 0 3rem;
}

.nk-channel-page--cinema .l-inner {
  max-width: 1180px;
}

.nk-channel--cinema {
  color: #e8eef8;
  max-width: none;
  margin: 0;
}

.nk-channel--cinema .nk-channel__hero-card {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem 0;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 32, 54, 0.92) 0%, rgba(10, 16, 28, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(56, 120, 200, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nk-channel--cinema .nk-channel__header--bar {
  margin: 0;
  padding: 0 0 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  align-items: flex-start;
}

.nk-channel--cinema .nk-channel__icon {
  flex-basis: 80px;
  width: 80px;
  height: 80px;
  background: #111827;
  box-shadow:
    0 0 0 2px rgba(148, 163, 184, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.nk-channel--cinema .nk-channel__name {
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nk-channel--cinema .nk-channel__subs {
  color: #9aa8bc;
  font-size: 0.9rem;
}

.nk-channel--cinema .nk-channel__desc--in-hero {
  margin-top: 0.65rem;
}

.nk-channel--cinema .nk-channel__desc-body {
  color: #b7c3d6;
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

.nk-channel--cinema .nk-channel__desc-more {
  color: #8ba0b8;
}

.nk-channel--cinema button.nk-channel__desc:hover .nk-channel__desc-more,
.nk-channel--cinema .nk-channel__desc-more:hover {
  color: #e2e8f0;
}

/* チャンネル詳細ポップアップ */
.nk-channel-desc-dialog {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.nk-channel-desc-dialog[hidden] {
  display: none !important;
}

.nk-channel-desc-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(3px);
}

.nk-channel-desc-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(78vh, 560px);
  margin: 0 0 env(safe-area-inset-bottom, 0);
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  background: #121a28;
  color: #e8eef8;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.nk-channel-desc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nk-channel-desc-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: #fff;
}

.nk-channel-desc-dialog__x {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.nk-channel-desc-dialog__x:hover {
  color: #fff;
}

.nk-channel-desc-dialog__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #c8d2e2;
}

.nk-channel-desc-dialog__body p {
  margin: 0 0 0.75rem;
}

.nk-channel-desc-dialog__body p:last-child {
  margin-bottom: 0;
}

.nk-channel-desc-dialog__foot {
  padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.nk-channel-desc-dialog__close {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: none;
  border-radius: 10px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
}

.nk-channel-desc-dialog__close:hover {
  background: #fff;
}

html.nk-channel-desc-open,
html.nk-channel-desc-open body {
  overflow: hidden;
}

@media (min-width: 641px) {
  .nk-channel-desc-dialog {
    align-items: center;
    padding: 1.25rem;
  }

  .nk-channel-desc-dialog__panel {
    border-radius: 14px;
    margin: 0;
  }
}

.nk-channel--cinema .nk-channel-sub--dark {
  min-height: 2.55rem;
  padding: 0.55rem 1.2rem;
  background: #f8fafc;
  color: #0b1220;
  margin-left: 0;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.nk-channel--cinema .nk-channel-sub--dark:hover {
  background: #fff;
}

.nk-channel--cinema .nk-channel-sub--dark.is-subscribed {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  box-shadow: none;
}

.nk-channel--cinema .nk-channel-sub--dark.is-subscribed:hover {
  background: rgba(148, 163, 184, 0.28);
}

.nk-channel--cinema .nk-channel__tabs {
  margin: 0;
  padding: 0 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  position: static;
  backdrop-filter: none;
}

.nk-channel--cinema .nk-channel__tab {
  color: #8fa0b5;
  padding: 0.95rem 1.1rem 0.8rem;
  font-size: 0.95rem;
}

.nk-channel--cinema .nk-channel__tab:hover {
  color: #e8eef8;
}

.nk-channel--cinema .nk-channel__tab.is-active {
  color: #fff;
  border-bottom-color: #3b9eff;
  box-shadow: 0 2px 12px rgba(59, 158, 255, 0.35);
}

.nk-channel--cinema .nk-channel__panels {
  padding-top: 0.35rem;
}

.nk-channel--cinema .nk-channel__section-title {
  color: #f3f6fb !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.nk-channel--cinema .nk-channel__section-title::before {
  background: #3b9eff;
}

.nk-channel--cinema .nk-channel__section-title--live::before {
  background: #e02020;
}

.nk-channel--cinema .nk-channel__section-live-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #e02020;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 0 14px rgba(224, 32, 32, 0.45);
}

.nk-channel--cinema .nk-channel__more-link {
  color: #7db7ff;
}

.nk-channel--cinema .nk-channel__feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  max-width: 640px;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(12, 18, 30, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.nk-channel--cinema .nk-channel__feature-media {
  position: relative;
  display: block;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  text-decoration: none;
  flex: 0 0 auto;
}

.nk-channel--cinema .nk-channel__feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nk-channel--cinema .nk-channel__feature-media .nk-channel__live-badge {
  top: 0.65rem;
  left: 0.65rem;
  right: auto;
}

.nk-channel--cinema .nk-channel__feature-soon {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #1f6feb;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.nk-channel--cinema .nk-channel__feature-when {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(5, 10, 20, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.nk-channel--cinema .nk-channel__feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.1rem 0.35rem 0.1rem 0;
}

.nk-channel--cinema .nk-channel__feature-title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

.nk-channel--cinema .nk-channel__feature-title a {
  color: #fff;
  text-decoration: none;
}

.nk-channel--cinema .nk-channel__feature-title a:hover {
  color: #bfdbfe;
}

.nk-channel--cinema .nk-channel__feature-meta {
  margin: 0 0 0.4rem;
  color: #9aabbf;
  font-size: 0.78rem;
  line-height: 1.4;
}

.nk-channel--cinema .nk-channel__feature-status {
  color: #f87171;
  font-weight: 700;
}

.nk-channel--cinema .nk-channel__feature-desc {
  margin: 0 0 0.65rem;
  color: #b6c4d6;
  font-size: 0.8rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.nk-channel--cinema .nk-channel__feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid #e02020;
  border-radius: 7px;
  color: #fff;
  background: rgba(224, 32, 32, 0.12);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nk-channel--cinema .nk-channel__feature-cta:hover {
  background: rgba(224, 32, 32, 0.28);
}

.nk-channel--cinema .nk-channel__thumb {
  background: #111827;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.nk-channel--cinema .nk-channel__live-badge {
  top: 0.5rem;
  left: 0.5rem;
  right: auto;
  background: #e02020;
  box-shadow: 0 0 14px rgba(224, 32, 32, 0.45);
}

.nk-channel--cinema .nk-channel__thumb-meta--when {
  top: auto;
  left: 0.45rem;
  bottom: 0.45rem;
  right: auto;
}

.nk-channel--cinema .nk-channel__video-title {
  color: #e8eef8;
  font-weight: 650;
}

.nk-channel--cinema .nk-channel__video.is-onair .nk-channel__video-title {
  color: #fca5a5;
}

.nk-channel--cinema .nk-channel__empty {
  color: #8fa0b5;
}

.nk-channel--cinema .nk-channel__live-badge--archive {
  box-shadow: none;
  background: #475569;
}

@media (max-width: 860px) {
  .nk-channel--cinema .nk-channel__feature {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .nk-channel--cinema .nk-channel__feature-media {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nk-channel--cinema .nk-channel__hero-card {
    padding: 0.95rem 0.9rem 0;
    border-radius: 12px;
  }

  .nk-channel--cinema .nk-channel__header--bar {
    padding-bottom: 0.85rem;
  }

  .nk-channel--cinema .nk-channel__icon {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .nk-channel--cinema .nk-channel__name {
    font-size: 1.35rem;
  }

  .nk-channel--cinema .nk-channel__tab {
    padding: 0.8rem 0.85rem 0.7rem;
  }
}

/* --- 生放送予約詳細 --- */
.nk-reserve-detail-page {
  padding: 1.25rem 1rem 3.5rem;
}

.nk-reserve-detail {
  max-width: 720px;
  margin: 0 auto;
}

.nk-reserve-detail__crumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.nk-reserve-detail__crumb a {
  color: #334155;
  text-decoration: none;
}

.nk-reserve-detail__crumb a:hover {
  color: #1f6feb;
  text-decoration: underline;
}

.nk-reserve-detail__card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.nk-reserve-detail__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.15rem;
  border-radius: 8px;
  overflow: hidden;
  background: #d8dee8;
}

.nk-reserve-detail__thumb.is-empty {
  background:
    linear-gradient(145deg, #c5cedc 0%, #e2e8f0 55%, #cbd5e1 100%);
}

.nk-reserve-detail__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nk-reserve-detail__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.nk-reserve-detail__badge.is-live {
  background: #dc2626;
}

.nk-reserve-detail__badge.is-live::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fff;
}

.nk-reserve-detail__badge.is-soon {
  background: #1f6feb;
  letter-spacing: 0.02em;
}

.nk-reserve-detail__badge.is-ended {
  background: #64748b;
  letter-spacing: 0.02em;
}

.nk-reserve-detail__title {
  margin: 0 0 0.85rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.nk-reserve-detail__meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f1f5f9;
}

.nk-reserve-detail__meta > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.nk-reserve-detail__meta dt {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 650;
}

.nk-reserve-detail__meta dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.nk-reserve-detail__meta a {
  color: #1f6feb;
  text-decoration: none;
}

.nk-reserve-detail__meta a:hover {
  text-decoration: underline;
}

.nk-reserve-detail__desc {
  margin: 0 0 1.5rem;
}

.nk-reserve-detail__desc-title {
  margin: 0 0 0.45rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
}

.nk-reserve-detail__desc-body {
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
}

.nk-reserve-detail__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.nk-reserve-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  background: #dc2626;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.12s ease;
}

.nk-reserve-detail__btn:hover {
  background: #b91c1c;
}

.nk-reserve-detail__btn:active {
  transform: translateY(1px);
}

.nk-reserve-detail__btn.is-sub {
  background: #334155;
}

.nk-reserve-detail__btn.is-sub:hover {
  background: #1e293b;
}

.nk-reserve-detail__note {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  .nk-reserve-detail-page {
    padding: 0.85rem 0.75rem 2.75rem;
  }

  .nk-reserve-detail__title {
    font-size: 1.2rem;
  }

  .nk-reserve-detail__meta > div {
    grid-template-columns: 4.75rem 1fr;
  }
}

/* --- 予約詳細 → 生放送カウントダウン --- */
.nk-reserve-countdown {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.nk-reserve-countdown[hidden] {
  display: none !important;
}

.nk-reserve-countdown__panel {
  width: min(100%, 22rem);
  padding: 1.75rem 1.5rem 1.4rem;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}

.nk-reserve-countdown__title {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
}

.nk-reserve-countdown__num {
  margin: 0 0 0.35rem;
  color: #dc2626;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.nk-reserve-countdown__hint {
  margin: 0 0 1.1rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nk-reserve-countdown__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f6feb;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.nk-reserve-countdown__link:hover {
  text-decoration: underline;
}

html.nk-reserve-countdown-open,
html.nk-reserve-countdown-open body {
  overflow: hidden;
}


/* --- ブログ連携ログイン画面 --- */
.nizi-login-page {
  padding: 40px 16px 96px;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nizi-blog-sso--page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.nizi-blog-sso__panel {
  position: relative;
  padding: 40px 36px 36px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 249, 255, 0.92) 55%, rgba(224, 242, 254, 0.9) 100%);
  border: 1px solid rgba(14, 116, 144, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(8, 47, 73, 0.08);
  text-align: center;
  overflow: hidden;
}

.nizi-blog-sso__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 45%, #22d3ee 100%);
}

.nizi-blog-sso__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: none;
  color: #0e7490;
}

.nizi-blog-sso__title {
  margin: 0 0 18px;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #0f172a;
}

.nizi-blog-sso__lead {
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  color: #475569;
  text-align: left;
}

.nizi-blog-sso__error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.nizi-blog-sso__actions {
  margin: 0 0 14px;
}

.nizi-blog-sso__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.nizi-blog-sso__btn:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.34);
}

.nizi-blog-sso__btn:active {
  transform: translateY(0);
}

.nizi-blog-sso__btn span,
.nizi-blog-sso__btn::after,
.nizi-blog-sso__btn span::after {
  content: none !important;
  display: none !important;
}

.nizi-blog-sso__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

.nizi-blog-sso-flash {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  max-width: 90vw;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.nizi-blog-sso-flash.is-success {
  background: #0f766e;
  color: #fff;
}

.nizi-blog-sso-flash.is-error {
  background: #be123c;
  color: #fff;
}

@media only screen and (max-width: 767px) {
  .nizi-login-page {
    padding: 28px 12px 72px;
    min-height: 0;
    align-items: flex-start;
  }

  .nizi-blog-sso__panel {
    padding: 32px 22px 28px;
    border-radius: 16px;
  }

  .nizi-blog-sso__title {
    font-size: 26px;
  }

  .nizi-blog-sso__lead {
    font-size: 13px;
    margin-bottom: 24px;
  }
}

.p-membership-form--login > .p-member-page-headline,
.p-membership-form--login .p-membership-form__login-email,
.p-membership-form--login .p-membership-form__login-password,
.p-membership-form--login .p-membership-form__button,
.p-membership-form--login .p-membership-form__login-remember,
.p-membership-form--login .p-membership-form__login-reset_password,
.p-membership-form__login-registration {
  display: none !important;
}

.p-membership-form--login .nizi-blog-sso {
  margin: 0 auto;
  max-width: 420px;
  text-align: center;
}

.p-membership-form--login .nizi-blog-sso__title {
  font-size: 24px;
}

.p-membership-form--login .nizi-blog-sso__lead {
  text-align: left;
  margin-bottom: 22px;
}
