/*
Theme Name: Erodga Theme
Theme URI: https://erodga.com
Description: FANZA素人動画アフィリエイト専用テーマ
Author: erodga
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: erodga
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #2c2c2c;
  background: #f7f8fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #1a73e8; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1557b0; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrap {
  display: flex;
  gap: 35px;
  padding-top: 25px;
  padding-bottom: 60px;
}

.main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 25px;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ===== Header ===== */
.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 14px 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; opacity: 0.9; }

.site-description {
  font-size: 0.72em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 22px;
}

.desktop-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88em;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-nav a:hover { color: #fff; }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav {
  display: none;
  background: #1a1a2e;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 10px 20px;
  font-size: 0.92em;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ===== Sort & Filter Bar ===== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 0.85em;
}

.sort-bar a {
  color: #666;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.sort-bar a.active,
.sort-bar a:hover {
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
}

.sort-bar .separator {
  color: #ddd;
}

.perpage-selector {
  margin-left: auto;
}

.perpage-selector a {
  margin: 0 3px;
}

/* ===== Video Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.video-card {
  display: flex;
  flex-direction: column;
  color: #2c2c2c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  text-decoration: none;
  color: #2c2c2c;
}

.video-card .thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #f0f0f0;
}

.video-card .card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Card Thumb Wrap + Code Badge */
.card-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.card-code-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 8px;
  font-size: 0.68em;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.03em;
  line-height: 1.3;
  border-radius: 0 6px 0 0;
}

.video-card .card-title {
  font-size: 0.82em;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.video-card .card-date {
  font-size: 0.7em;
  color: #aaa;
  margin: 0;
}

.video-card .card-maker {
  font-size: 0.72em;
  color: #e53935;
  font-weight: 500;
  margin: 0;
}

.video-card .card-actress {
  font-size: 0.72em;
  color: #1a73e8;
  margin: 0;
}

/* ===== Views Badge (logged-in only) ===== */
.views-badge {
  font-size: 0.68em;
  color: #888;
  padding: 4px 0 0;
  margin-top: auto;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.views-badge .vb-icon {
  font-size: 1em;
}

.views-badge b {
  color: #333;
  font-weight: 700;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.88em;
  color: #333;
  transition: all 0.2s;
}

.pagination span.current {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

.pagination a:hover {
  background: #f5f5f5;
  text-decoration: none;
  border-color: #ccc;
}

/* ===== Single Video Page ===== */
.breadcrumb {
  font-size: 0.82em;
  color: #999;
  padding: 12px 0;
  margin-bottom: 15px;
}

.breadcrumb a { color: #1a73e8; }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }

.single-video-header h1 {
  font-size: 1.35em;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a2e;
}

/* Product Info Block - single line horizontal */
.product-info-block {
  margin-bottom: 12px;
  font-size: 0.85em;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}

.product-info-block p {
  margin: 0;
  white-space: nowrap;
}

.product-info-block a { color: #1a73e8; }

/* PR Badge - subtle rounded pill */
.pr-badge {
  display: inline-block;
  font-size: 0.7em;
  color: #999;
  background: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 10px;
  margin: 5px 0 12px;
  letter-spacing: 0.03em;
}

.main-image-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.main-image-wrap img {
  width: 100%;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* CTA Button - full width red, pill shape */
.cta-button {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.cta-button:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.cta-button-red { background: #e53935; }
.cta-button-red:hover { background: #c62828; }

/* Dual Buttons - side by side, pill shape */
.dual-buttons {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.dual-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 0.92em;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex: 1;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.dual-btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
}

.dual-btn-green { background: #43a047; }
.dual-btn-green:hover { background: #2e7d32; }

.dual-btn-gray { background: #616161; }
.dual-btn-gray:hover { background: #424242; }

/* Section Headings - consistent left border accent */
.section-heading {
  font-size: 1.1em;
  font-weight: 700;
  padding: 8px 0 8px 14px;
  margin: 28px 0 16px;
  border-left: 4px solid #1a1a2e;
  color: #1a1a2e;
  line-height: 1.4;
}

/* Actress Section - badge style */
.actress-section {
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.actress-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.actress-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f4ff;
  color: #1a73e8;
  font-size: 0.88em;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #d0ddf5;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.actress-badge:hover {
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,115,232,0.25);
}

/* Sample Video Section */
.sample-video-section {
  margin: 24px 0;
}

.sample-video-section h2 {
  font-size: 1.1em;
  font-weight: 700;
  padding: 8px 0 8px 14px;
  margin-bottom: 12px;
  border-left: 4px solid #1a1a2e;
  color: #1a1a2e;
}

/* Sample Video - responsive container for DMM player */
.sample-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 - generous for mobile controls */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .sample-video-wrap {
    padding-bottom: 62%; /* desktop: 16:9 + controls */
  }
}

.sample-video-wrap iframe,
.sample-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sample-video-note {
  font-size: 0.8em;
  color: #aaa;
}

/* Maker/Actress Links */
.maker-actress-links {
  margin: 24px 0;
  padding: 18px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 0.88em;
  border: 1px solid #eee;
}

.maker-actress-links p {
  margin: 5px 0;
}

.maker-actress-links a {
  color: #1a73e8;
}

/* Sample Gallery */
.sample-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.sample-gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.sample-gallery img:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* Post Metadata Section - clean card style after FAQ */
.post-metadata-section {
  margin: 30px 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.meta-row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88em;
  display: flex;
  gap: 8px;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  min-width: 100px;
}

.meta-value {
  color: #333;
}

.meta-value a { color: #1a73e8; }

/* Metadata Table */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88em;
}

.meta-table th,
.meta-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.meta-table tr:last-child th,
.meta-table tr:last-child td {
  border-bottom: none;
}

.meta-table th {
  background: transparent;
  width: 120px;
  font-weight: 600;
  white-space: nowrap;
  color: #666;
}

.meta-table td a { color: #1a73e8; }

/* FAQ Section */
.faq-section {
  margin: 30px 0;
}

.faq-section h2 {
  font-size: 1.1em;
  font-weight: 700;
  padding: 8px 0 8px 14px;
  margin-bottom: 16px;
  border-left: 4px solid #1a1a2e;
  color: #1a1a2e;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  font-weight: 600;
  padding: 14px 18px;
  background: #fafafa;
  font-size: 0.92em;
}

.faq-question::before {
  content: "Q. ";
  color: #e53935;
  font-weight: 700;
}

.faq-answer {
  padding: 14px 18px;
  font-size: 0.88em;
  line-height: 1.8;
  color: #444;
}

.faq-answer::before {
  content: "A. ";
  color: #1a73e8;
  font-weight: 700;
}

/* Related Works */
.related-works {
  margin: 30px 0;
}

.related-works h2 {
  font-size: 1.1em;
  font-weight: 700;
  padding: 8px 0 8px 14px;
  margin-bottom: 16px;
  border-left: 4px solid #1a1a2e;
  color: #1a1a2e;
}

/* ===== Sidebar ===== */
.sidebar-widget {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.sidebar-widget h3 {
  font-size: 0.92em;
  padding: 10px 14px;
  background: #1a1a2e;
  color: #fff;
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  border-bottom: 1px solid #f2f2f2;
}

.sidebar-widget li:last-child { border-bottom: none; }

.sidebar-widget li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.84em;
  color: #333;
  transition: background 0.15s;
}

.sidebar-widget li a:hover {
  background: #f8f9fa;
  text-decoration: none;
}

/* Tag Cloud in Sidebar */
.tag-cloud,
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
}

.tag-cloud a,
.tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f2f5;
  color: #555;
  border-radius: 14px;
  font-size: 0.8em;
  transition: background 0.2s, color 0.2s;
  line-height: 1.4;
}

.tag-cloud a:hover,
.tagcloud a:hover {
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
}

/* ===== Widget: Posts Grid (Popular / New) ===== */
.widget-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.widget-post-card {
  display: block;
  color: #2c2c2c;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #f8f9fa;
}

.widget-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #2c2c2c;
}

.widget-post-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.widget-post-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* Rank Badge */
.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 800;
  color: #fff;
  background: #888;
  border-radius: 0 0 8px 0;
  line-height: 1;
  z-index: 1;
}
.rank-badge.rank-top1 { background: linear-gradient(135deg, #ffd700, #f0a000); color: #fff; }
.rank-badge.rank-top2 { background: linear-gradient(135deg, #c0c0c0, #909090); color: #fff; }
.rank-badge.rank-top3 { background: linear-gradient(135deg, #cd7f32, #a0612b); color: #fff; }

.widget-post-title {
  display: block;
  font-size: 0.76em;
  font-weight: 600;
  padding: 6px 8px 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-post-date {
  display: block;
  font-size: 0.68em;
  color: #999;
  padding: 0 8px 6px;
}

/* ===== Widget: Featured Post ===== */
.featured-post-card {
  display: block;
  padding: 12px;
  color: #2c2c2c;
  transition: background 0.2s;
}

.featured-post-card:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #2c2c2c;
}

.featured-post-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.featured-post-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-post-title {
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.45;
}

.featured-post-maker {
  font-size: 0.76em;
  color: #e53935;
  font-weight: 500;
}

.featured-post-actress {
  font-size: 0.76em;
  color: #1a73e8;
}

/* ===== Widget: Search Box ===== */
.widget-search-box {
  padding: 10px 14px 14px;
}

.widget-search-inner {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
}

.widget-search-input {
  flex: 1;
  border: none;
  padding: 8px 14px;
  font-size: 0.85em;
  outline: none;
  background: #fff;
  min-width: 0;
}

.widget-search-btn {
  border: none;
  background: #1a73e8;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.widget-search-btn:hover {
  background: #1557b0;
}

/* ===== Sticky Footer Bar (position: fixed = always follows scroll) ===== */
.sticky-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 20px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
}

.sticky-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.sticky-footer-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.sticky-footer-btn {
  display: inline-flex;
  align-items: center;
  background: #e53935;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}

.sticky-footer-btn:hover {
  background: #c62828;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(229,57,53,0.4);
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
  padding: 24px 0;
  margin-top: 0;
  text-align: center;
  font-size: 0.78em;
}

.site-footer a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links { margin-bottom: 10px; }
.site-footer .footer-links a { margin: 0 12px; }

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 h1 { font-size: 2.2em; margin-bottom: 15px; color: #1a1a2e; }
.error-404 p { font-size: 1.05em; color: #888; line-height: 1.8; }

/* ===== Search ===== */
.search-header {
  margin-bottom: 20px;
}

.search-header h1 {
  font-size: 1.25em;
  font-weight: 700;
  color: #1a1a2e;
}

/* ===== Taxonomy Header ===== */
.taxonomy-header {
  margin-bottom: 20px;
}

.taxonomy-header h1 {
  font-size: 1.25em;
  font-weight: 700;
  color: #1a1a2e;
}

.taxonomy-desc {
  font-size: 0.88em;
  color: #666;
  margin-top: 4px;
}

.taxonomy-header .count {
  font-size: 0.82em;
  color: #999;
  margin-top: 5px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .sidebar { width: 260px; }
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }

  .content-wrap {
    flex-direction: column;
    padding-bottom: 80px; /* space for sticky footer bar */
  }

  .main-content {
    padding: 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar { width: 100%; }

  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }

  .sample-gallery { grid-template-columns: repeat(3, 1fr); }

  .sort-bar { font-size: 0.8em; gap: 8px; }

  .single-video-header h1 { font-size: 1.12em; }

  .dual-buttons {
    flex-direction: column;
  }

  .dual-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sample-gallery { grid-template-columns: repeat(3, 1fr); }
  .meta-table th { width: 90px; }

  .sticky-footer-bar {
    padding: 8px 12px;
  }

  .sticky-footer-title {
    font-size: 0.78em;
  }
}

/* ===== Page Content ===== */
.page-content { padding: 20px 0; line-height: 1.9; }
.page-content h2 { font-size: 1.2em; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e0e0e0; }
.page-content p { margin: 10px 0; }
.page-content ul { margin: 10px 0 10px 20px; }
.page-content li { margin: 8px 0; }
.page-content a { color: #1a73e8; text-decoration: underline; }

/* ===== Result Count ===== */
.result-count {
  font-size: 0.9em;
  color: #666;
  padding: 8px 0;
  margin-bottom: 4px;
}

/* ===== Widget Areas (Top/Bottom) ===== */
.widget-area-top { margin: 16px 0 20px; }
.widget-area-bottom { margin-top: 20px; }
.area-widget {
  margin-bottom: 16px;
  overflow: hidden;
}
.area-widget-title {
  font-size: 1.1em;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0e0e0;
}

/* ===== Trending Strip Widget ===== */
.ts-wrap {
  background: #fff;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  overflow: hidden;
}
.ts-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.95em;
  font-weight: 700;
  color: #fff;
  background: #d32f2f;
}
.ts-heading-icon {
  font-size: 1.1em;
  line-height: 1;
}
.ts-list {
  padding: 6px 14px;
}
.ts-item {
  margin: 0;
  padding: 4px 0;
  font-size: 0.9em;
  line-height: 1.6;
  color: #333;
}
.ts-link {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.ts-link:hover {
  color: #d32f2f;
  border-bottom-color: #d32f2f;
}

/* ===== Post Review Content ===== */
.post-review-content {
  padding: 20px 0;
  line-height: 1.9;
}
.post-review-content h2 {
  font-size: 1.3em;
  margin: 32px 0 16px;
  padding: 10px 0 10px 14px;
  border-left: 4px solid #e53935;
  border-bottom: 1px solid #eee;
  color: #222;
}
.post-review-content h3 {
  font-size: 1.1em;
  margin: 28px 0 12px;
  padding: 8px 0 8px 12px;
  border-left: 3px solid #999;
  color: #333;
}
.post-review-content p {
  margin: 14px 0;
  color: #333;
}
.post-review-content .marker-under-red {
  background: linear-gradient(transparent 60%, #ff9a9e 60%);
  padding: 0 2px;
  font-weight: bold;
}

/* Score Table */
.post-review-content .score-table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95em;
}
.post-review-content .score-table th,
.post-review-content .score-table td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
}
.post-review-content .score-table th {
  background: #f8f8f8;
  font-weight: 600;
  color: #444;
  width: 40%;
}
.post-review-content .score-table td {
  color: #e53935;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ===== 404 Page ===== */
.error-404 {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  text-align: center;
}
.error-404 h1 {
  font-size: 2em;
  color: #333;
  margin-bottom: 12px;
}
.error-404-search {
  margin: 30px auto;
  max-width: 500px;
}
.error-404-search form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.error-404-search .search-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
}
.error-404-search .search-input:focus {
  border-color: #e53935;
  outline: none;
}
.error-404-search .search-btn {
  padding: 10px 20px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}
.error-404-search .search-btn:hover {
  background: #c62828;
}
.error-404-popular {
  margin-top: 40px;
  text-align: left;
}
.error-404-popular h2 {
  font-size: 1.3em;
  margin-bottom: 16px;
  text-align: center;
}
