:root {
  --bg: #12141c;
  --surface: #1b1e29;
  --surface-2: #242836;
  --text: #f2f2f5;
  --text-dim: #9a9db0;
  --accent: #ff4d7d;
  --accent-dim: #ff4d7d33;
  --border: #333748;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}

button, input {
  font-family: inherit;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
}
.btn--large {
  padding: 16px 24px;
  font-size: 17px;
}
.btn--block {
  display: block;
  width: 100%;
  margin-top: 16px;
}

/* 年齢確認ゲート */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.age-gate[hidden] {
  display: none;
}
.age-gate__box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 420px;
  text-align: center;
}
.age-gate__logo {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}
.age-gate__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.age-gate__desc strong {
  color: var(--text);
}
.age-gate__title {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.age-gate__body {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
}
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* レイアウト */
.app-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.app-header__logo {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
#main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.app-footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

/* トップ画面 */
.hero-title {
  font-size: 28px;
  line-height: 1.4;
  margin: 24px 0;
}
.hero-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 8px;
}
.hero-desc strong {
  color: var(--text);
}
.hero-actions {
  margin: 32px 0 12px;
}
.hero-note {
  color: var(--text-dim);
  font-size: 13px;
}

.view-title {
  font-size: 20px;
  margin-bottom: 20px;
}

/* フィルタ */
.filter-group {
  margin-bottom: 24px;
}
.filter-group__label {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.chip.is-selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* 結果 */
.results-status {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 16px;
}
.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-card__rank {
  position: absolute;
  margin: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.result-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.result-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.result-card__video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.result-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
}
.result-card__body {
  padding: 14px 16px 18px;
}
.result-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-card__meta {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 14px;
}
.result-card__cta {
  display: block;
  text-align: center;
  text-decoration: none;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-size: 14px;
}

.result-card__match {
  position: absolute;
  right: 10px;
  margin: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.result-card__reason {
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.result-card__stats {
  color: var(--text-dim);
  font-size: 12px;
  margin: 0 0 14px;
}
.results-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: -8px 0 16px;
}

/* 今アツい5本（トップ画面） */
.hot-section {
  margin-top: 40px;
  text-align: left;
}
.hot-section__title {
  font-size: 15px;
  margin: 0 0 12px;
}
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text);
}
.hot-item__image {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.hot-item__title {
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-item__badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

/* AI診断ボット（チャット風） */
.shindan-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.chat-bubble__question {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}
.chat-bubble__answered {
  font-size: 13px;
  color: var(--text-dim);
}
.chat-bubble__answered strong {
  color: var(--accent);
}
.shindan-progress {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
