/* /amateur/ 専用追加スタイル。既存 /assets/css/style.css を継承 */

/* カードグリッド: amateur は他のページよりサムネを小さく + 横長矩形に
   サムネは 4:3 寄りで縦半分の高さに収まる。グリッド列幅も狭くして詰める。 */
#amateur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.amateur-card {
  display: block;
  background: var(--surface, #1a1a1a);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.amateur-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.amateur-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0c0c0c;
}
.amateur-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.amateur-card .thumb .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.amateur-card .body {
  padding: 10px 12px 12px;
  /* 既存 .card .title が color: var(--fg)=#1a1a2e で暗いので、
     amateur では暗背景に対して明色を強制する。 */
  color: #f0f0f0;
}
.amateur-card .title {
  font-size: 1.0rem;
  line-height: 1.45;
  height: 2.9em;
  margin: 0 0 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  font-weight: 600;
  color: #f0f0f0;
}
.amateur-card .actress-line {
  font-size: 0.9rem;
  color: #ff6b9d;
  margin: 3px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.amateur-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #b0b0b0;
}
.amateur-card .meta .sku {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}
.amateur-card .meta .rate {
  color: #ffb800;
  font-weight: bold;
}
.amateur-card .chip {
  background: #333;
  color: #ddd;
  font-size: 0.78rem;
  padding: 1px 7px;
  border-radius: 3px;
}

/* 表示数セレクト */
.filter-row-controls {
  align-items: center;
}
.amateur-per-select {
  background: #2a2a2a;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.88rem;
  cursor: pointer;
}
.amateur-per-select:hover {
  border-color: #666;
}

/* カードホバープレビュー (FANZA=iframe / MGS=スライドショー) */
.amateur-card .thumb {
  isolation: isolate;
}
.hover-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  pointer-events: none;
  overflow: hidden;
}
.hover-preview-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.hover-preview-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.hover-preview-slides img.active {
  opacity: 1;
}
/* カードホバー時の浮き上がり(カーソルの動き感の演出) */
.amateur-card {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.4,.0,.2,1),
              box-shadow 0.2s cubic-bezier(.4,.0,.2,1);
}
.amateur-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25),
              0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* サンプル動画リンク式(MGS 用) */
.sample-link {
  position: relative;
  max-width: 720px;
  aspect-ratio: 16 / 10;
  margin: 22px 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.sample-play-btn {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: #fff;
}
.sample-play-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.18s;
}
.sample-play-btn:hover img {
  opacity: 0.75;
}
.sample-play-btn .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sample-play-btn .play-icon {
  font-size: 4rem;
  line-height: 1;
  background: rgba(230, 0, 18, 0.92);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s;
}
.sample-play-btn:hover .play-icon {
  transform: scale(1.08);
}
.sample-play-btn .play-text {
  font-size: 0.95rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  font-weight: bold;
  letter-spacing: 0.02em;
}

.empty-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 16px;
  color: var(--text-sub, #aaa);
  font-size: 0.95rem;
}

.amateur-hero {
  padding: 24px 16px 12px;
  text-align: center;
}
.amateur-hero h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.amateur-hero p {
  color: var(--text-sub, #aaa);
  font-size: 0.92rem;
  margin: 0;
}

/* ソースバッジ色 */
.badge.src-fanza    { background: #e60012; color: #fff; }
.badge.src-shirouto { background: #1aa260; color: #fff; }
.badge.src-nanpa    { background: #ff6f00; color: #fff; }
.badge.src-luxu     { background: #8c5cff; color: #fff; }

/* フィルタバー */
.amateur-filters {
  background: var(--surface, #1a1a1a);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 16px;
  font-size: 0.9rem;
}
.amateur-filters .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.amateur-filters .filter-label {
  min-width: 64px;
  color: var(--text-sub, #aaa);
  font-weight: bold;
}
.amateur-filters .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  background: #2a2a2a;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.filter-chip:hover {
  background: #3a3a3a;
}
.filter-chip.active {
  background: #e60012;
  color: #fff;
  border-color: #e60012;
}
.filter-chip .n {
  color: #888;
  font-size: 0.75rem;
  margin-left: 4px;
}
.filter-chip.active .n {
  color: #ffd9d9;
}
.filter-clear {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.82rem;
}
.filter-clear:hover {
  background: #2a2a2a;
}
.filter-count {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  margin-left: auto;
  padding: 4px 12px;
  background: linear-gradient(135deg, #e60012, #ec4899);
  border-radius: 4px;
  min-height: 1.5em;
}
.filter-count:empty {
  background: transparent;
  padding: 0;
}

/* カード fanza_label chip */
.amateur-card .chip {
  display: inline-block;
  background: #333;
  color: #ddd;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}
.amateur-card .rate {
  display: inline-block;
  color: #ffb800;
  font-size: 0.78rem;
  margin-left: 4px;
}

/* リストセクション */
.amateur-list-section {
  padding: 0 16px 24px;
}

/* ページャ */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.92rem;
}
.pager-prev, .pager-next {
  color: var(--accent, #e60012);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  background: #1a1a1a;
}
.pager-prev:hover, .pager-next:hover {
  background: #2a2a2a;
}
.pager-prev.disabled, .pager-next.disabled {
  color: #555;
  background: transparent;
  cursor: not-allowed;
}
.pager-info {
  color: var(--text-sub, #aaa);
  font-size: 0.88rem;
}

/* 詳細ページ */
.amateur-detail {
  padding: 0 16px 32px;
}
.detail-head {
  padding: 16px 0 8px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 16px;
}
.detail-head .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.detail-head h1 {
  font-size: 1.32rem;
  line-height: 1.5;
  margin: 4px 0 0;
}
.detail-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 700px) {
  .detail-main { grid-template-columns: 1fr; }
}
.detail-package img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.detail-cta {
  margin-top: 12px;
  text-align: center;
}
.cta-buy {
  display: inline-block;
  background: #e60012;
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.cta-buy:hover {
  background: #ff1a2c;
}
.detail-meta dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 12px;
  font-size: 0.92rem;
}
.detail-meta dt {
  color: var(--text-sub, #aaa);
  font-weight: normal;
}
.detail-meta dd {
  margin: 0;
}
.genres-block {
  margin-top: 14px;
}
.genres-block h4 {
  font-size: 0.88rem;
  color: var(--text-sub, #aaa);
  margin: 0 0 6px;
  font-weight: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips .chip {
  display: inline-block;
  background: #2a2a2a;
  color: #ddd;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 3px;
}

/* サンプルプレイヤー */
.sample-player {
  margin: 22px 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  max-width: 720px;
}
.sample-player iframe {
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 0;
  display: block;
}
.sample-player video {
  display: block;
  width: 100%;
  max-height: 480px;
  background: #000;
}

/* キャプチャグリッド */
.captures-section {
  margin-top: 22px;
}
.captures-section h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.captures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.captures-grid a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}
.captures-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.18s;
}
.captures-grid a:hover img {
  transform: scale(1.04);
}

/* パンくず */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.84rem;
  color: var(--text-sub, #aaa);
}
.breadcrumb a {
  color: var(--accent, #e60012);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
