/* =========================================================
   Noire Music Label &#8212; Frontend CSS
   ========================================================= */

:root {
  --bg:      #080808;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border:  rgba(255,255,255,0.08);
  --text:    #f0f0f0;
  --muted:   #666;
  --accent:  #c8a96e;
  --accent2: #e8c98e;
  --red:     #e63946;
}

/* ── 共通 ── */
.nml-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.nml-section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 24px;
}

/* ============================================================
   RELEASE CAROUSEL
   ============================================================ */
.nml-releases-section {
  padding: 48px 0 0;
}
.nml-releases-section .nml-section-label {
  padding: 0 24px;
}

.nml-release-swiper {
  padding-bottom: 40px !important;
}

.nml-release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.nml-badge-new {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 3px 9px;
  z-index: 2;
}

.nml-release-artwork {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}
.nml-release-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nml-artwork-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #1a0505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nml-artwork-placeholder span {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(200,169,110,.5);
}

.nml-release-info {
  padding: 18px 20px 22px;
}
.nml-release-meta {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}
.nml-release-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.nml-release-artist {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 16px;
}
.nml-no-links {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

/* ── 配信ボタン ── */
.nml-stream-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nml-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  transition: border-color .2s, color .2s, background .15s;
}
.nml-stream-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,.06);
}
.nml-stream-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

/* プラットフォーム別 hover カラー */
.nml-stream-btn[data-platform="spotify"]:hover       { border-color:#1db954; color:#1db954; }
.nml-stream-btn[data-platform="apple_music"]:hover   { border-color:#fc3c44; color:#fc3c44; }
.nml-stream-btn[data-platform="youtube_music"]:hover,
.nml-stream-btn[data-platform="youtube"]:hover       { border-color:#ff0000; color:#ff0000; }
.nml-stream-btn[data-platform="amazon_music"]:hover,
.nml-stream-btn[data-platform="amazon_free"]:hover   { border-color:#00a8e1; color:#00a8e1; }
.nml-stream-btn[data-platform="line_music"]:hover    { border-color:#06c755; color:#06c755; }
.nml-stream-btn[data-platform="awa"]:hover           { border-color:#555;    color:#ccc; }
.nml-stream-btn[data-platform="tiktok"]:hover        { border-color:#69c9d0; color:#69c9d0; }
.nml-stream-btn[data-platform="deezer"]:hover        { border-color:#a238ff; color:#a238ff; }
.nml-stream-btn[data-platform="soundcloud"]:hover    { border-color:#ff5500; color:#ff5500; }
.nml-stream-btn[data-platform="bandcamp"]:hover      { border-color:#1da0c3; color:#1da0c3; }
.nml-stream-btn[data-platform="tidal"]:hover         { border-color:#ccc;    color:#fff; }
.nml-stream-btn[data-platform="rakuten_music"]:hover { border-color:#bf0000; color:#bf0000; }
.nml-stream-btn[data-platform="mora"]:hover          { border-color:#e6831a; color:#e6831a; }
.nml-stream-btn[data-platform="ototoy"]:hover        { border-color:#00b4c8; color:#00b4c8; }

/* ── ページネーション ── */
.nml-pagination { bottom: 10px !important; }
.nml-pagination .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 6px; height: 6px;
}
.nml-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* =========================================================
   グッズ画像ライトボックス
   ========================================================= */
.nml-goods-img {
  cursor: zoom-in;
}

/* オーバーレイ */
#nml-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
#nml-lightbox.active {
  display: flex;
}

/* 画像ラッパー（透かしの基準） */
#nml-lightbox-inner {
  position: relative;
  max-width: 100%;
  max-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nml-lightbox-img {
  max-width: 100%;
  max-height: 80svh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* 透かし（タイル状に全面） */
#nml-lightbox-wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.nml-wm-tile {
  position: absolute;
  white-space: nowrap;
  transform: rotate(-35deg);
  text-align: center;
  line-height: 1.6;
  pointer-events: none;
  user-select: none;
}
.nml-wm-tile .nml-wm-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.nml-wm-tile .nml-wm-time {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.18);
}

/* 商品名・閉じるボタン */
#nml-lightbox-title {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
  text-align: center;
}
#nml-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
  z-index: 10000;
}
#nml-lightbox-close:hover { color: #fff; }

.nml-artists-section {
  padding: 64px 24px;
}
.nml-artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.nml-artist-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border);
}
.nml-artist-photo {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}
.nml-artist-card:hover .nml-artist-photo {
  transform: scale(1.03);
}
.nml-artist-initial {
  font-size: 56px;
  font-style: italic;
  color: rgba(200,169,110,.12);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.nml-artist-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}
.nml-artist-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 12px;
}
.nml-artist-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.nml-artist-genre {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   GOODS
   ============================================================ */
.nml-goods-section {
  padding: 64px 24px;
}
.nml-goods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nml-goods-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.nml-goods-img {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  position: relative;
}
.nml-goods-status {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.nml-goods-status.soldout { background: rgba(0,0,0,.8); color: var(--muted); }
.nml-goods-status.coming  { background: var(--accent);  color: #000; }
.nml-goods-body {
  padding: 12px 14px 16px;
}
.nml-goods-artist {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.nml-goods-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 6px;
}
.nml-goods-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.nml-btn-buy {
  display: block;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.nml-btn-buy:hover            { background: var(--accent2); }
.nml-btn-buy.disabled {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default;
}

/* ============================================================
   NEWS
   ============================================================ */
.nml-news-section {
  padding: 64px 24px;
}
.nml-news-list {
  list-style: none;
  margin: 0; padding: 0;
}
.nml-news-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nml-news-item:last-child { border-bottom: none; }
.nml-news-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nml-news-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 2px 7px;
  flex-shrink: 0;
}
.nml-news-title {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 100%;
  line-height: 1.55;
  transition: color .2s;
}
.nml-news-title:hover { color: var(--accent); }