/*
 * ホロライビュアーズ カスタムCSS
 * Cocoon Child Theme Override for HoloViewers
 */

/* トップページのみCocoonのデフォルトレイアウトを無効化 */
body.holoviewers-top #container,
body.holoviewers-top #content,
body.holoviewers-top .wrap,
body.holoviewers-top #main,
body.holoviewers-top #sidebar,
body.holoviewers-top .sidebar,
body.holoviewers-top .content-in,
body.holoviewers-top .header-container,
body.holoviewers-top .appeal,
body.holoviewers-top .navi,
body.holoviewers-top .notice-area,
body.holoviewers-top .footer { display: none !important; }

/* Cocoon body reset for top page */
body.holoviewers-top {
  margin: 0 !important;
  padding: 0 !important;
  background: #f8fafc !important;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #33b5e5;
  --primary-dark: #0099cc;
  --accent: #ff6b9d;
  --accent-warm: #ff9a56;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #33b5e5, #ff6b9d);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
}

/* ===== GLOBAL ===== */
body.holoviewers-top {
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
  color: var(--text);
  line-height: 1.7;
}
body.holoviewers-top *, body.holoviewers-top *::before, body.holoviewers-top *::after {
  box-sizing: border-box;
}

/* ===== HEADER ===== */
.hv-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-text span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }
.lang-switch {
  display: flex;
  background: var(--bg);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  padding: 4px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-secondary);
}
.lang-switch button.active {
  background: var(--primary);
  color: #fff;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 24px;
  padding: 6px 14px;
  gap: 8px;
  width: 220px;
}
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}
.search-icon { color: var(--text-secondary); font-size: 14px; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 32px 24px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(51,181,229,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.hero-featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.hero-featured .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.3;
}
.hero-featured .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.hero-featured .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-featured h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}
.hero-featured .meta {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}
.hero-side {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 122px;
  cursor: pointer;
  transition: transform 0.3s;
}
.hero-side:hover { transform: translateY(-2px); }
.hero-side .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.25;
}
.hero-side .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.hero-side .tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.hero-side h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== HERO AFFILIATE BAR ===== */
.hero-affiliate { margin-top: 14px; position: relative; z-index: 1; }
.hero-aff-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hero-aff-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; }
.hero-aff-title .ha-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5); }
.hero-aff-pr { font-size: 9px; color: rgba(255,255,255,0.4); font-weight: 500; }
.hero-aff-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hero-aff-scroll::-webkit-scrollbar { height: 3px; }
.hero-aff-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.hero-aff-card { flex: 0 0 140px; scroll-snap-align: start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; overflow: hidden; text-decoration: none; color: #fff; transition: background 0.2s, transform 0.2s; display: block; }
.hero-aff-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.hero-aff-card .hac-thumb { height: 56px; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; }
.hero-aff-card .hac-member { position: absolute; top: 3px; left: 4px; font-size: 8px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-aff-card .hac-body { padding: 6px 8px; }
.hero-aff-card .hac-name { font-size: 10px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px; color: rgba(255,255,255,0.9); }
.hero-aff-card .hac-price { font-size: 11px; font-weight: 800; color: #fbbf24; }
.hero-aff-card .hac-shops { display: flex; gap: 3px; margin-top: 3px; }
.hero-aff-card .hac-shop { font-size: 7px; font-weight: 700; padding: 1px 5px; border-radius: 3px; color: #fff; }
.hac-shop.amazon { background: #ff9900; }
.hac-shop.rakuten { background: #bf0000; }

/* ===== SECTIONS ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 24px; background: var(--gradient-accent); border-radius: 2px; }
.section-link { color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ===== MEMBER FILTER ===== */
.member-filter { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: none; }
.member-filter::-webkit-scrollbar { display: none; }
.member-chip { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; white-space: nowrap; cursor: pointer; transition: all 0.2s; font-size: 13px; font-weight: 500; }
.member-chip:hover { border-color: var(--primary); color: var(--primary); }
.member-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.member-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* ===== GOODS GRID ===== */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.goods-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; cursor: pointer; }
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.goods-card .img-area { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; background-size: cover; background-position: center; }
.goods-card .img-area .status-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; }
.status-badge.preorder { background: #f59e0b; }
.status-badge.onsale { background: #22c55e; }
.status-badge.ended { background: #94a3b8; }
.goods-card .card-body { padding: 16px; }
.goods-card .card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.goods-card .card-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #eff6ff; color: #3b82f6; font-weight: 600; }
.goods-card .card-tag.member { background: #fdf2f8; color: #ec4899; }
.goods-card .card-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-card .card-price { font-size: 16px; font-weight: 800; color: var(--accent); }
.goods-card .card-price small { font-size: 12px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }
.goods-card .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.goods-card .card-date { font-size: 12px; color: var(--text-secondary); }
.goods-card .card-shops { display: flex; gap: 4px; }
.shop-icon { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.shop-icon.amazon { background: #ff9900; }
.shop-icon.rakuten { background: #bf0000; }

/* ===== COMPARISON ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; cursor: pointer; transition: all 0.3s; }
.compare-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.compare-card .img-area { width: 200px; min-height: 160px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.compare-card .card-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.compare-card .card-category { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-card .card-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.compare-card .card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== SCHEDULE ===== */
.schedule-section { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; }
.schedule-month { display: flex; gap: 10px; margin-bottom: 24px; }
.month-btn { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.month-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 8px; background: var(--bg); transition: background 0.2s; }
.schedule-item:hover { background: #eff6ff; }
.schedule-date { text-align: center; min-width: 48px; }
.schedule-date .day { font-size: 22px; font-weight: 800; line-height: 1; }
.schedule-date .month-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.schedule-info { flex: 1; }
.schedule-info .title { font-size: 14px; font-weight: 600; }
.schedule-info .sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.schedule-status { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.schedule-status.open { background: #dcfce7; color: #16a34a; }
.schedule-status.soon { background: #fef9c3; color: #ca8a04; }

/* ===== CONTENT WITH SIDEBAR ===== */
.content-with-sidebar { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-title::before { content: ''; width: 3px; height: 16px; background: var(--gradient-accent); border-radius: 2px; }
.popular-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.popular-item:last-child { border-bottom: none; }
.popular-rank { width: 24px; height: 24px; background: var(--bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; color: var(--text-secondary); }
.popular-rank.top { background: var(--accent); color: #fff; }
.popular-text { font-size: 13px; font-weight: 500; line-height: 1.5; }
.notify-cta { background: var(--gradient-hero); border-radius: var(--radius); padding: 28px 24px; text-align: center; margin-bottom: 20px; }
.notify-cta h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.notify-cta p { color: rgba(255,255,255,0.7); font-size: 12px; margin-bottom: 16px; line-height: 1.6; }
.notify-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: var(--gradient-accent); color: #fff; border: none; border-radius: 24px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.2s; }
.notify-btn:hover { opacity: 0.9; }

/* ===== LIVE SCHEDULE ===== */
.live-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.oshi-filter-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; color: var(--text-secondary); }
.oshi-filter-toggle:hover { border-color: var(--primary); color: var(--primary); }
.oshi-dropdown { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-md); }
.oshi-dropdown.open { display: block; }
.oshi-dropdown h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.oshi-group-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.oshi-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.oshi-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; user-select: none; background: #fff; }
.oshi-chip:hover { border-color: var(--primary); }
.oshi-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.oshi-chip .check { display: none; font-size: 10px; }
.oshi-chip.selected .check { display: inline; }
.oshi-actions { display: flex; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.oshi-actions button { padding: 6px 18px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); transition: all 0.2s; }
.oshi-actions .btn-save { background: var(--gradient-accent); color: #fff; border: none; }
.live-schedule-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.live-schedule-container::-webkit-scrollbar { width: 5px; }
.live-schedule-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.live-schedule-list { display: flex; flex-direction: column; gap: 10px; }
.live-card { background: var(--bg); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; }
.live-card:hover { background: #eff6ff; border-color: var(--primary); }
.live-card.is-live { border-color: #ef4444; background: #fff5f5; }
.live-card.hidden-by-filter { display: none; }
.live-card .live-thumb { width: 96px; min-width: 96px; aspect-ratio: 16/9; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; flex-shrink: 0; }
.live-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #fff; text-transform: uppercase; }
.live-badge.live { background: #ef4444; animation: pulse 1.5s infinite; }
.live-badge.upcoming { background: var(--primary); }
.live-badge.scheduled { background: #6366f1; }
.live-card .live-info { flex: 1; min-width: 0; padding: 2px 0; }
.live-card .live-member { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.live-card .live-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-card .live-time { font-size: 12px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; flex-shrink: 0; text-align: right; min-width: 80px; }
.show-all-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.show-all-btn:hover { background: #eff6ff; border-color: var(--primary); }

/* ===== CLIP RANKING ===== */
.clip-scroll-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.clip-scroll-row::-webkit-scrollbar { height: 4px; }
.clip-scroll-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.clip-scroll-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-width: 220px; max-width: 220px; flex-shrink: 0; cursor: pointer; transition: all 0.3s; position: relative; }
.clip-scroll-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.clip-scroll-card .clip-card-thumb { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 32px; position: relative; }
.clip-scroll-card .clip-card-rank { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; background: rgba(0,0,0,0.5); }
.clip-card-rank.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; }
.clip-card-rank.silver { background: linear-gradient(135deg, #d1d5db, #9ca3af) !important; }
.clip-card-rank.bronze { background: linear-gradient(135deg, #d97706, #b45309) !important; }
.clip-scroll-card .clip-card-views { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.clip-scroll-card .clip-card-body { padding: 10px 12px; }
.clip-scroll-card .clip-card-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.clip-scroll-card .clip-card-channel { font-size: 11px; color: var(--text-secondary); }

/* ===== OSHI NEXT STREAM PREVIEW ===== */
.oshi-next-preview { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; margin-bottom: 20px; cursor: pointer; transition: all 0.25s; text-decoration: none; color: #fff; }
.oshi-next-preview:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); transform: translateX(4px); }
.oshi-next-preview .onp-thumb { width: 64px; min-width: 64px; aspect-ratio: 16/9; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; flex-shrink: 0; }
.oshi-next-preview .onp-badge { position: absolute; top: -4px; left: -4px; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 800; color: #fff; text-transform: uppercase; }
.oshi-next-preview .onp-badge.live { background: #ef4444; }
.oshi-next-preview .onp-badge.soon { background: var(--primary); }
.oshi-next-preview .onp-body { flex: 1; min-width: 0; }
.oshi-next-preview .onp-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.oshi-next-preview .onp-title { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oshi-next-preview .onp-member { font-size: 12px; color: var(--accent); font-weight: 600; }
.oshi-next-preview .onp-time { flex-shrink: 0; text-align: right; }
.oshi-next-preview .onp-time-main { font-size: 20px; font-weight: 800; line-height: 1; }
.oshi-next-preview .onp-time-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.oshi-next-preview .onp-arrow { font-size: 18px; color: rgba(255,255,255,0.4); flex-shrink: 0; }

/* ===== BADGE PANEL ===== */
.badge-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.badge-panel-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-item { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); opacity: 0.45; filter: grayscale(100%); transition: all 0.4s ease; cursor: default; position: relative; }
.badge-item.earned { opacity: 1; filter: none; background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fbbf24; color: #92400e; box-shadow: 0 1px 4px rgba(251,191,36,0.2); }
.badge-item .badge-icon { font-size: 16px; line-height: 1; }
.badge-item .badge-tooltip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; font-size: 11px; font-weight: 400; padding: 4px 10px; border-radius: 6px; white-space: nowrap; z-index: 10; }
.badge-item:hover .badge-tooltip { display: block; }
.badge-counter { font-size: 11px; color: var(--text-secondary); margin-top: 8px; }
.badge-counter strong { color: var(--text); }

/* ===== BADGE CELEBRATION ===== */
.badge-celebrate-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.badge-celebrate-overlay.show { opacity: 1; pointer-events: auto; }
.badge-celebrate-card { background: linear-gradient(160deg, #fffbeb 0%, #ffffff 40%, #fef3c7 100%); border-radius: 20px; padding: 40px 48px; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.7) translateY(30px); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden; }
.badge-celebrate-overlay.show .badge-celebrate-card { transform: scale(1) translateY(0); }
.badge-celebrate-card::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706, #fbbf24); border-radius: 22px; z-index: -1; }
.badge-celebrate-confetti { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: confetti-fall 2.5s ease-in forwards; opacity: 0; }
@keyframes confetti-fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(350px) rotate(720deg); opacity: 0; } }
.badge-celebrate-medal { width: 100px; height: 100px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative; animation: medal-bounce 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes medal-bounce { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0deg); } }
.badge-celebrate-title { font-size: 22px; font-weight: 900; color: #92400e; margin-bottom: 4px; }
.badge-celebrate-subtitle { font-size: 13px; color: #b45309; font-weight: 500; margin-bottom: 16px; }
.badge-celebrate-name { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #f59e0b; border-radius: 30px; padding: 8px 24px; font-size: 18px; font-weight: 800; color: #78350f; margin-bottom: 20px; }
.badge-celebrate-days { font-size: 12px; color: #92400e; margin-bottom: 20px; }
.badge-celebrate-days strong { font-size: 28px; font-weight: 900; color: #d97706; display: block; line-height: 1.2; }
.badge-celebrate-close { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; padding: 10px 36px; border-radius: 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.2s; font-family: inherit; }
.badge-celebrate-close:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(245,158,11,0.4); }

/* ===== OSHI GOODS RECOMMEND ===== */
.oshi-goods-section { display: none; }
.oshi-goods-section.visible { display: block; }
.oshi-goods-banner { background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #fce7f3 100%); border: 2px solid #fbbf24; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.oshi-goods-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.oshi-goods-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: #92400e; }
.oshi-goods-title .oshi-color-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.oshi-goods-subtitle { font-size: 11px; color: #b45309; font-weight: 500; }
.oshi-goods-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.oshi-goods-scroll::-webkit-scrollbar { height: 4px; }
.oshi-goods-scroll::-webkit-scrollbar-thumb { background: #fbbf24; border-radius: 2px; }
.oshi-goods-item { flex: 0 0 180px; scroll-snap-align: start; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #fde68a; transition: transform 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.oshi-goods-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #f59e0b; }
.oshi-goods-item .ogi-thumb { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.oshi-goods-item .ogi-member-tag { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 4px; }
.oshi-goods-item .ogi-body { padding: 10px 12px; }
.oshi-goods-item .ogi-name { font-size: 12px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.oshi-goods-item .ogi-price { font-size: 14px; font-weight: 800; color: #dc2626; margin-bottom: 6px; }
.oshi-goods-item .ogi-shops { display: flex; gap: 4px; }
.oshi-goods-item .ogi-shop-btn { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; color: #fff; text-decoration: none; }
.ogi-shop-btn.amazon { background: #ff9900; }
.ogi-shop-btn.rakuten { background: #bf0000; }
.oshi-goods-note { text-align: center; font-size: 10px; color: var(--text-secondary); margin-top: 8px; }

/* ===== HEADER OSHI ICONS ===== */
.header-oshi-icons { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.header-oshi-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: transform 0.2s; cursor: default; }
.header-oshi-dot:hover { transform: scale(1.3); z-index: 2; }
.header-oshi-dot + .header-oshi-dot { margin-left: -4px; }

/* ===== OSHI THEME ===== */
body.oshi-themed .logo-icon { background: var(--oshi-gradient) !important; }
body.oshi-themed .hero { background: linear-gradient(135deg, color-mix(in srgb, var(--oshi-color) 25%, #0f172a) 0%, #1e293b 50%, color-mix(in srgb, var(--oshi-color) 15%, #334155) 100%) !important; }
body.oshi-themed .tag { background: var(--oshi-color); }
body.oshi-themed .nav a:hover { color: var(--oshi-color); }
body.oshi-themed .hv-footer { background: linear-gradient(135deg, color-mix(in srgb, var(--oshi-color) 10%, #0f172a), #1e293b); }
body.oshi-themed .lang-switch button.active { background: var(--oshi-color); }

/* ===== OVERLAY MODAL ===== */
.overlay-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.overlay-backdrop.open { display: flex; }
.overlay-modal { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 900px; max-height: 85vh; overflow-y: auto; padding: 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.overlay-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.overlay-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.overlay-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.overlay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* ===== FOOTER ===== */
.hv-footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 48px 24px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.hv-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.hv-footer ul { list-style: none; padding: 0; margin: 0; }
.hv-footer ul li { margin-bottom: 8px; }
.hv-footer ul a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.hv-footer ul a:hover { color: #fff; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }

/* ===== DEMO BACKGROUNDS ===== */
.bg-demo-1 { background: linear-gradient(135deg, #1e3a5f, #2d1b4e); }
.bg-demo-2 { background: linear-gradient(135deg, #1a365d, #2d3748); }
.bg-demo-3 { background: linear-gradient(135deg, #322659, #2d3748); }
.bg-demo-4 { background: linear-gradient(135deg, #1e293b, #374151); }
.bg-demo-5 { background: linear-gradient(135deg, #3b1d5e, #1e293b); }
.bg-demo-6 { background: linear-gradient(135deg, #164e63, #1e293b); }
.bg-demo-7 { background: linear-gradient(135deg, #713f12, #1e293b); }
.bg-demo-8 { background: linear-gradient(135deg, #4c1d95, #1e293b); }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .logo-text { font-size: 16px; }
  .logo-icon { width: 30px; height: 30px; font-size: 15px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-featured { grid-column: 1 / 3; grid-row: auto; }
  .hero-side { min-height: 80px; }
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .logo-text { font-size: 14px; }
  .logo-icon { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
  .header-inner { height: 50px; padding: 0 12px; }
  .search-box { width: 140px; padding: 4px 10px; }
  .search-box input { font-size: 12px; }
  .lang-switch button { padding: 3px 8px; font-size: 10px; }
  .hero { padding: 20px 16px 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-featured { grid-column: auto; min-height: 200px; }
  .hero-side { min-height: 60px; }
  .hero-side .img-placeholder { font-size: 28px; }
  .hero-side .content { padding: 8px 12px; }
  .hero-side h3 { font-size: 12px; line-height: 1.3; }
  .hero-side .tag { font-size: 8px; padding: 1px 6px; margin-bottom: 3px; }
  .hero-aff-card { flex: 0 0 120px; }
  .hero-aff-card .hac-thumb { height: 44px; font-size: 20px; }
  .hero-aff-card .hac-name { font-size: 9px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
