/*
Theme Name: ついーと動画 BUZZ
Theme URI: https://twdoga.net
Author: ついーと動画 Revival Team
Description: 500万PVを目指す超高速・モバイルファースト・清潔感ある爽やか白背景バズメディアテーマ
Version: 3.0.0
License: GNU General Public License v2 or later
*/

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --accent-kami: #ff5100;
  --accent-kawaii: #ec4899;
  --accent-omoshiro: #f59e0b;
  --accent-doubutsu: #10b981;
  --accent-sports: #0284c7;
  --accent-kandou: #a855f7;
  --accent-kicho: #d97706;
  --accent-news: #475569;
  --accent-music: #8b5cf6;
  --accent-gaming: #f43f5e;
  --accent-gourmet: #ea580c;
  --accent-lifehack: #0d9488;
  --accent-vehicle: #2563eb;
  --accent-art: #7c3aed;
  --accent-business: #0369a1;
  --accent-ai: #4f46e5;
  --accent-english: #059669;
  --accent-mystery: #7e22ce;
  
  --buzz-fire: #ef4444;
  --buzz-gold: #f59e0b;
  --buzz-cyan: #0284c7;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.09);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --font-main: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* 1. Header */
.buzz-top-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.buzz-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.buzz-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.buzz-logo-badge {
  background: linear-gradient(135deg, #ff5100, #ff2792);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.buzz-search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.buzz-search-input {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 42px;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.buzz-search-input:focus {
  background: #fff;
  border-color: var(--buzz-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.buzz-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Category Slider Nav */
.buzz-cat-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.buzz-cat-nav::-webkit-scrollbar {
  display: none;
}

.buzz-cat-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
}

.buzz-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  transition: all 0.2s ease;
}

.buzz-cat-tab:hover, .buzz-cat-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cat-dot.kami { background: var(--accent-kami); }
.cat-dot.kawaii { background: var(--accent-kawaii); }
.cat-dot.omoshiro { background: var(--accent-omoshiro); }
.cat-dot.doubutsu { background: var(--accent-doubutsu); }
.cat-dot.sports { background: var(--accent-sports); }
.cat-dot.kandou { background: var(--accent-kandou); }
.cat-dot.kicho { background: var(--accent-kicho); }
.cat-dot.news { background: var(--accent-news); }
.cat-dot.music { background: var(--accent-music); }
.cat-dot.gaming { background: var(--accent-gaming); }
.cat-dot.gourmet { background: var(--accent-gourmet); }
.cat-dot.lifehack { background: var(--accent-lifehack); }
.cat-dot.vehicle { background: var(--accent-vehicle); }
.cat-dot.art { background: var(--accent-art); }
.cat-dot.business { background: var(--accent-business); }
.cat-dot.ai { background: var(--accent-ai); }
.cat-dot.english { background: var(--accent-english); }
.cat-dot.mystery { background: var(--accent-mystery); }

/* Main Container */
.buzz-container {
  max-width: 1240px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

@media (max-width: 900px) {
  .buzz-container {
    grid-template-columns: 1fr;
  }
}

/* Post Grid */
.buzz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.buzz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.buzz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.buzz-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.buzz-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.buzz-card:hover .buzz-card-thumb img {
  transform: scale(1.05);
}

.buzz-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.buzz-card:hover .buzz-play-icon {
  background: var(--accent-kami);
  transform: translate(-50%, -50%) scale(1.12);
}

.buzz-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.buzz-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.buzz-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buzz-card:hover .buzz-card-title {
  color: #0284c7;
}

.buzz-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Sidebar */
.buzz-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.buzz-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.buzz-widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
}

.buzz-rank-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.buzz-rank-item:last-child {
  border-bottom: none;
}

.buzz-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}
.buzz-rank-num.rank-1 { background: #f59e0b; color: #fff; }
.buzz-rank-num.rank-2 { background: #94a3b8; color: #fff; }
.buzz-rank-num.rank-3 { background: #d97706; color: #fff; }

.buzz-rank-thumb {
  width: 72px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.buzz-rank-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.buzz-rank-title:hover {
  color: #0284c7;
}

/* Single Post View */
.buzz-single-post {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.buzz-single-header {
  margin-bottom: 20px;
}

.buzz-single-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 12px;
}

.buzz-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.buzz-ad-container {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.buzz-infeed-ad-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.buzz-ad-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.buzz-video-container {
  margin: 20px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Post Typography inside Single */
.buzz-single-post p {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.buzz-single-post h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  border-left: 4px solid #0284c7;
  padding-left: 12px;
  margin: 32px 0 16px;
}

.buzz-single-post h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 28px 0 14px;
}

.buzz-single-post h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0369a1 !important;
  margin: 16px 0 6px;
}

.buzz-single-post blockquote {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7 !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px !important;
  margin: 12px 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
}

.buzz-reactions-bar {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.buzz-react-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.buzz-react-btn:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   爽やかモダン・コメントセクション（白基調）
------------------------------------------------------------- */
.buzz-comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.buzz-comments-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.buzz-comments-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}

.buzz-comments-badge {
  background: var(--buzz-fire);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.buzz-comments-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

/* Quick reaction stamp buttons */
.buzz-quick-stamps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.buzz-quick-stamps::-webkit-scrollbar {
  display: none;
}

.buzz-stamp-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.buzz-stamp-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.buzz-stamp-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
}

/* Comment Form */
.buzz-comment-form {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 32px;
}

.buzz-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.buzz-avatar-preview {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.buzz-input-group {
  flex: 1;
}

.buzz-name-input {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.buzz-name-input:focus {
  border-color: var(--buzz-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.buzz-textarea-wrap {
  margin-bottom: 14px;
}

.buzz-comment-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  min-height: 84px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.buzz-comment-textarea:focus {
  border-color: var(--buzz-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.buzz-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.buzz-form-notes {
  font-size: 12px;
  color: var(--text-dim);
}

.buzz-submit-comment-btn {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.buzz-submit-comment-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Comments List */
.buzz-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buzz-comment-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.buzz-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.buzz-comment-body {
  flex: 1;
}

.buzz-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.buzz-comment-user {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.buzz-comment-time {
  font-size: 12px;
  color: var(--text-dim);
}

.buzz-comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  word-break: break-word;
}

.buzz-no-comments {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Footer */
.buzz-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.buzz-footer a {
  color: #cbd5e1;
}
.buzz-footer a:hover {
  color: #ffffff;
}
