/* アイドルPV総選挙 — official site (static)
   Pink palette, tuned from the app's Theme.swift for the web. */
:root {
  --pink-bg:   #FFEDF5;
  --pink-bg2:  #FFE2EE;
  --pink-band: #FFD6E8;
  --accent:    #F54D94;
  --accent-dk: #D2356F;
  --text:      #5A1733;
  --text2:     #9B5A77;
  --gold:      #E8A300;
  --card:      #FFFFFF;
  --border:    #F6C9DB;
  --shadow:    0 2px 10px rgba(213, 58, 123, 0.10);
  --radius:    14px;
  --maxw:      960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pink-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  height: 56px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px; color: var(--accent-dk);
  white-space: nowrap;
}
.logo .heart { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--pink-bg2); text-decoration: none; }
.nav a.active { background: var(--accent); color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--pink-band), var(--pink-bg));
  text-align: center;
  padding: 34px 16px 28px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin: 0 0 6px; font-size: 26px; color: var(--accent-dk); }
.hero p { margin: 0 0 16px; color: var(--text2); font-weight: 600; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; padding: 11px 22px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-dk); text-decoration: none; color: #fff; }
.btn.ghost { background: #fff; color: var(--accent-dk); border: 1px solid var(--border); }

/* ---- Section ---- */
section.block { padding: 28px 0; }
.section-head {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px;
}
.section-head h2 { margin: 0; font-size: 20px; color: var(--accent-dk); }
.section-head .sub { color: var(--text2); font-size: 13px; font-weight: 600; }

/* ---- Ranking list ---- */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.rank-card:hover { transform: translateY(-2px); text-decoration: none; }
.rank-num {
  flex: 0 0 auto; width: 34px; text-align: center;
  font-size: 20px; font-weight: 800; color: var(--text2);
}
.rank-num.top1 { color: #E8A300; }
.rank-num.top2 { color: #9AA0A6; }
.rank-num.top3 { color: #CD7F32; }
.thumb {
  flex: 0 0 auto; width: 132px; height: 74px; border-radius: 8px;
  object-fit: cover; background: var(--pink-bg2);
}
.rank-body { flex: 1 1 auto; min-width: 0; }
.rank-group { font-weight: 800; color: var(--text); font-size: 15px; }
.rank-title {
  color: var(--text2); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 5px; font-size: 12px; }
.votes { color: var(--accent-dk); font-weight: 800; }
.votes .lbl { color: var(--text2); font-weight: 600; margin-right: 3px; }
.topfan { color: var(--text2); }
.topfan .crown { color: var(--gold); }
.xhandle { color: #1d9bf0; font-weight: 600; }
.xhandle .gold { color: var(--gold); }

/* ---- States ---- */
.state {
  text-align: center; color: var(--text2);
  padding: 40px 16px; font-weight: 600;
}
.state .spinner {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 3px solid var(--pink-band); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Detail (show) ---- */
.detail { padding: 24px 0 10px; }
.detail .crumb { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.detail h1 { font-size: 22px; color: var(--accent-dk); margin: 0 0 4px; }
.detail .grp { font-size: 14px; color: var(--text2); font-weight: 700; margin: 0 0 14px; }
.embed {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.detail .v-meta { margin: 14px 0 0; font-weight: 800; color: var(--accent-dk); }

/* ---- Article (about / privacy) ---- */
.article { padding: 30px 0 10px; }
.article h1 { font-size: 24px; color: var(--accent-dk); margin: 0 0 4px; }
.article .updated { color: var(--text2); font-size: 13px; margin: 0 0 20px; }
.article h2 {
  font-size: 18px; color: var(--accent-dk);
  margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.article p, .article li { color: var(--text); }
.article ul { padding-left: 20px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 18px 0;
}
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent-dk); }
.feature p { margin: 0; font-size: 14px; color: var(--text2); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 30px; background: #fff; border-top: 1px solid var(--border);
  padding: 24px 16px; color: var(--text2); font-size: 13px;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.site-footer .links a { color: var(--text); font-weight: 600; }
.site-footer .copy { color: var(--text2); }

@media (max-width: 560px) {
  .thumb { width: 104px; height: 58px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .logo { font-size: 16px; }
  .hero h1 { font-size: 22px; }
}
