/* CPU Ranking public styles */
.cpu-ranking-table-wrap, .cpu-compare-table-wrap { margin: 1em 0; }
.cpu-ranking-table, .cpu-compare-table, .cpu-specs-table { width: 100%; border-collapse: collapse; }
.cpu-ranking-table th, .cpu-ranking-table td,
.cpu-compare-table th, .cpu-compare-table td,
.cpu-specs-table th, .cpu-specs-table td { border: 1px solid #ddd; padding: 8px; }
.cpu-ranking-table thead th, .cpu-compare-table thead th { background: #f6f7f7; }
.cpu-specs-box { border: 1px solid #eee; padding: 12px; margin-top: 1em; background: #fafafa; }
.cpu-link { text-decoration: underline dotted; }
.cpu-ranking-pagination { margin-top: 10px; }
.cpu-ranking-pagination a, .cpu-ranking-pagination span { display: inline-block; padding: 4px 8px; margin-right: 4px; border: 1px solid #ddd; }
.cpu-ranking-pagination .current { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Simplified ranking layout */
.page-id-9276 main.container.site-main,
.page-cpu-ranking main.container.site-main,
.page-id-9276 main.container.site-main > *,
.page-cpu-ranking main.container.site-main > * {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-id-9276 main.container.site-main,
.page-cpu-ranking main.container.site-main {
  display: block !important;
  grid-template-columns: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cpu-simplified-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: clamp(32px, 6vw, 72px) 0;
  display: block !important;
  grid-template-columns: none !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.cpu-simplified-bg .site-main,
.cpu-simplified-bg .site-main > * {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}

.cpu-simplified-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.cpu-simplified h1 {
  text-align: center;
  margin-bottom: clamp(28px, 6vw, 44px);
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
}

.cpu-ranking-group {
  margin-bottom: clamp(36px, 6vw, 56px);
}

.cpu-ranking-group:last-of-type {
  margin-bottom: 0;
}

.cpu-ranking-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: #ffffff;
}

.cpu-ranking-group-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
}

.cpu-lang-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  color: #ffffff;
  flex-wrap: wrap;
}

.cpu-lang-switcher-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.cpu-lang-switcher-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cpu-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cpu-lang-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cpu-lang-pill.is-active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #1f2933;
  font-weight: 600;
}

.main-count--secondary {
  margin-top: 0;
}

.main-count--secondary .pillars,
.main-count--secondary .cpu-compare-toolbar,
.main-count--secondary .cpu-compare-selection {
  display: none;
}

.cpu-ranking-group--gpu .main-count-list-code-score {
  background: rgba(0, 0, 0, 0.3);
}

.cpu-ranking-group--gpu-mobile .main-count-list,
.cpu-ranking-group--gpu .main-count-list {
  cursor: default;
}

.cpu-simplified .main-count {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(15, 20, 40, 0.25);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cpu-simplified .pillars {
  display: flex;
  height: 8px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.cpu-simplified .pillars p {
  margin: 0;
  transition: transform 0.3s ease;
}

.cpu-simplified .pillars p:nth-child(1) { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); }
.cpu-simplified .pillars p:nth-child(2) { background: linear-gradient(45deg, #4ecdc4, #6bccc4); }
.cpu-simplified .pillars p:nth-child(3) { background: linear-gradient(45deg, #45b7d1, #67c1d8); }
.cpu-simplified .pillars p:nth-child(4) { background: linear-gradient(45deg, #96ceb4, #a8d4c0); }
.cpu-simplified .pillars p:nth-child(5) { background: linear-gradient(45deg, #feca57, #fed76b); }

.cpu-simplified .main-count-list-wrap {
  display: flex;
  flex-direction: column;
}

.cpu-simplified .main-count.large-dataset .main-count-list {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cpu-simplified .main-count-list {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  gap: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cpu-simplified .main-count-list:last-child { border-bottom: none; }

.cpu-simplified .main-count-list:hover {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  transform: translateY(0) translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cpu-simplified .main-count-list-num {
  width: 48px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #495057;
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cpu-simplified .main-count-list:hover .main-count-list-num {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  transform: scale(1.1);
}

.cpu-simplified .main-count-list-code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  padding: 10px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --bar-width: 20%;
}

.cpu-simplified .main-count-list-code::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--bar-width);
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1;
}

.cpu-simplified .main-count-list-code.goods::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(129, 140, 248, 0.8));
}

.cpu-simplified .main-count-list-code.goods.intel::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.8));
}

.cpu-simplified .main-count-list-code.goods.amd::before {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(249, 115, 22, 0.85));
}

.cpu-simplified .main-count-list-code.goods.nvidia::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.8));
}

.cpu-simplified .main-count-list:hover .main-count-list-code {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(0,0,0,0.18);
}

.cpu-simplified .main-count-list-code-p {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  flex: 1;
  margin-right: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.cpu-simplified .main-count-list-code-p:hover { text-decoration: underline; }

.cpu-simplified .main-count-list-code-score {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 2;
}

.cpu-select-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding-left: 12px;
  cursor: pointer;
  z-index: 3;
}

.cpu-select-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cpu-select-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(226, 232, 240, 0.8);
  background: rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}

.cpu-select-toggle input:checked + .cpu-select-indicator {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.cpu-select-toggle input:checked + .cpu-select-indicator::after {
  content: '\2713';
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.cpu-select-toggle:hover .cpu-select-indicator {
  border-color: #94a3b8;
}

.cpu-compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 16px;
  z-index: 12;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.cpu-compare-toolbar.has-selection {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.12);
}

.cpu-compare-toolbar-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #1e293b;
}

.cpu-compare-toolbar-status .status-text {
  font-size: 0.95rem;
}

.cpu-compare-feedback {
  font-size: 0.82rem;
  min-height: 1em;
  color: #b45309;
  font-weight: 500;
}

.cpu-compare-feedback.is-visible {
  opacity: 1;
}

.cpu-compare-toolbar-actions {
  display: flex;
  gap: 12px;
}

.cpu-compare-toolbar-actions button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpu-compare-launch {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.cpu-compare-launch:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.cpu-compare-launch.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.cpu-compare-reset {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.cpu-compare-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cpu-compare-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(226,232,240,0.75);
}

.cpu-compare-selection:empty {
  display: none;
}

.cpu-selection-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
}

.cpu-selection-name {
  color: inherit;
  text-decoration: none;
}

.cpu-selection-name:hover {
  text-decoration: underline;
}

.cpu-selection-remove {
  border: none;
  background: rgba(37, 99, 235, 0.15);
  color: inherit;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
}

.cpu-selection-remove:hover {
  background: rgba(37, 99, 235, 0.25);
}

.cpu-simplified .main-count-list.is-selected {
  border: 1px solid rgba(253, 224, 71, 0.9);
  background: linear-gradient(135deg, rgba(255, 243, 197, 0.85), rgba(255, 224, 138, 0.75));
}

.cpu-simplified .main-count-list.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cpu-simplified .main-count-list.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.cpu-simplified .main-count-list.selected {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  border-left: 5px solid #ffc107;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
  transform: translateX(10px) !important;
}

.cpu-simplified .main-count-list.selected .main-count-list-num {
  background: linear-gradient(135deg, #ffc107, #ff9800) !important;
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

.cpu-simplified .main-count-list.selected .main-count-list-code {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25) !important;
  transform: scale(1.03) !important;
}

/* CPU Single page */
.cpu-single-page .cpu-simplified-container {
  max-width: 960px;
}

.cpu-single-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(10, 20, 60, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: clamp(32px, 6vw, 48px);
}

.cpu-single-hero {
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  background: linear-gradient(135deg, rgba(40, 67, 125, 0.92), rgba(86, 115, 185, 0.85));
  color: #fff;
}

.cpu-back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cpu-back-link:hover {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

.cpu-single-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.cpu-single-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cpu-single-badge.amd {
  background: linear-gradient(135deg, #f87171, #ef4444);
  border-color: rgba(255, 255, 255, 0.35);
}

.cpu-single-badge.intel {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: rgba(255, 255, 255, 0.35);
}

.cpu-single-update {
  font-size: 0.9rem;
  opacity: 0.85;
}

.cpu-single-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cpu-single-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cpu-single-highlight {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cpu-single-highlight .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cpu-single-highlight .value {
  font-size: 1.4rem;
  font-weight: 700;
}

.cpu-single-highlight .suffix {
  font-size: 0.95rem;
  opacity: 0.9;
}

.cpu-single-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cpu-single-spec-grid .spec-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 70px;
}

.cpu-single-spec-grid .spec-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cpu-single-spec-grid .spec-value {
  font-size: 1rem;
  font-weight: 600;
}

.cpu-single-body {
  padding: clamp(24px, 4vw, 36px);
  background: #ffffff;
  color: #1f2937;
}

.cpu-single-related {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.cpu-single-related-block {
  background: #f8fafc;
  border: 1px solid rgba(225, 232, 240, 0.8);
  border-radius: 14px;
  padding: 18px clamp(18px, 4vw, 24px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.cpu-single-related-block h2 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #1e293b;
}

.cpu-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpu-related-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpu-related-list a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.cpu-related-list a:hover {
  text-decoration: underline;
}

.cpu-related-note {
  font-size: 0.85rem;
  color: #475569;
}

.cpu-single-body h2,
.cpu-single-body h3,
.cpu-single-body h4 {
  color: #1f2937;
}

.cpu-single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
}

.cpu-single-body table th,
.cpu-single-body table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}

.cpu-single-body a {
  color: #2563eb;
}

/* CPU Compare page */

.cpu-compare-single .cpu-simplified-container {
  max-width: 1080px;
}
.cpu-compare-single-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(10, 20, 60, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: clamp(32px, 6vw, 48px);
}

.cpu-compare-single-header {
  padding: clamp(28px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(58, 90, 160, 0.9), rgba(99, 125, 196, 0.85));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpu-compare-single-header .cpu-compare-label {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 700;
  letter-spacing: .08em;
}

.cpu-compare-single-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
}

.cpu-compare-single-body {
  padding: clamp(24px, 4vw, 36px);
  background: #ffffff;
}

.cpu-compare-page {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.cpu-compare-hero {
  background: linear-gradient(135deg, rgba(70, 90, 160, 0.12), rgba(70, 90, 160, 0.08));
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
}

.cpu-compare-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cpu-compare-label {
  font-size: 0.9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

.cpu-compare-count {
  font-size: 0.95rem;
  opacity: 0.85;
}

.cpu-compare-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
}

.cpu-compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 24px);
}

.cpu-compare-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226,232,240,0.9);
}

.cpu-compare-card-title {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cpu-compare-card-title a {
  color: inherit;
  text-decoration: none;
}

.cpu-compare-card-title a:hover {
  text-decoration: underline;
}

.cpu-compare-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpu-compare-card-meta .item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cpu-compare-card-meta .label {
  font-size: 0.85rem;
  color: #4b5563;
}

.cpu-compare-card-meta .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.cpu-compare-card-meta .suffix {
  font-size: 0.9rem;
  color: #1e2a3a;
}

.cpu-compare-card.brand-amd {
  border-top: 4px solid #f97316;
}

.cpu-compare-card.brand-intel {
  border-top: 4px solid #3b82f6;
}

.cpu-compare-card.brand-other {
  border-top: 4px solid #6b7280;
}


.cpu-compare-table {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
}

.cpu-compare-table-head,
.cpu-compare-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(auto-fit, minmax(160px, 1fr));
}

.cpu-compare-table-head {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: #1e293b;
}

.cpu-compare-table .col {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.cpu-compare-table .col:last-child {
  border-right: none;
}

.cpu-compare-row:last-child .col {
  border-bottom: none;
}

.cpu-compare-row .value.better {
  background: rgba(34, 197, 94, 0.12);
  color: #047857;
  font-weight: 600;
}

.cpu-compare-row .value.worse {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.cpu-compare-row .value.equal {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.cpu-compare-row .value {
  transition: background 0.2s ease;
}

.cpu-compare-row .value a {
  color: inherit;
}

.cpu-compare-advice {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  padding: clamp(20px, 4vw, 28px);
}

.cpu-compare-advice h2 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.cpu-compare-advice-body ul {
  margin: 0 0 12px 20px;
  padding: 0;
  color: #1f2937;
}

.cpu-compare-advice-body li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.cpu-compare-advice-body p {
  margin: 0 0 10px 0;
  color: #1f2937;
  line-height: 1.5;
}

.cpu-compare-advice-body.is-empty {
  color: #64748b;
  font-style: italic;
}

.cpu-compare-advice-body.is-loading {
  color: #475569;
  font-style: italic;
}

.cpu-autolink {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(29, 78, 216, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cpu-autolink:hover {
  color: #0f172a;
  text-decoration-color: #1d4ed8;
}

.cpu-compare-page > * {
  width: 100%;
}

@media (max-width: 768px) {
  .cpu-compare-table-head,
  .cpu-compare-row {
    grid-template-columns: minmax(120px, 1fr) repeat(auto-fit, minmax(140px, 1fr));
  }
  .cpu-compare-card {
    padding: 16px;
  }
  .cpu-compare-toolbar {
    align-items: flex-start;
  }
  .cpu-compare-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cpu-selection-item {
    padding: 6px 12px;
  }
  .cpu-back-link {
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .cpu-single-hero {
    padding: 24px 20px;
  }
  .cpu-single-highlights {
    flex-direction: column;
  }
  .cpu-single-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .cpu-simplified-container { padding: 0 18px; }
  .cpu-simplified .main-count-list {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .cpu-simplified .main-count-list-num {
    width: 50px;
    height: 35px;
    font-size: 16px;
    margin: 0 auto;
  }
  .cpu-simplified .main-count-list-code {
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }
  .cpu-simplified .main-count-list-code::before {
    width: 100%;
    opacity: 0.85;
  }
  .cpu-simplified .main-count-list-code-p {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .cpu-simplified-bg { padding: 24px 0; }
  .cpu-simplified h1 { font-size: 1.8rem; }
  .cpu-simplified .main-count-list-code-score { font-size: 13px; }
}

/* Full-bleed wrapper: makes the block expand to the full viewport width while the inner chart stays centered */
.cpu-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Two-column AMD vs Intel chart styles */
.cpu-chart {
  position: relative;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(32px, 6vw, 48px);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.95), rgba(229, 240, 255, 0.92));
  border-radius: 24px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(25, 60, 112, 0.08);
  box-shadow: 0 20px 45px rgba(20, 57, 111, 0.15);
  overflow: hidden;
}

.cpu-chart-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 16px; }
.cpu-chart-brand { font-weight: 900; font-size: 2rem; text-transform: uppercase; opacity: 0.95; letter-spacing: .5px; }
.cpu-chart-brand.cpu-amd { color: #ea580c; justify-self: start; }
.cpu-chart-brand.cpu-intel { color: #3b82f6; justify-self: end; }
.cpu-chart-title { font-weight: 900; font-size: 1.4rem; color: #0f172a; letter-spacing: 0.5px; text-align:center; }

.cpu-chart-body { display: grid; row-gap: 12px; }
.cpu-chart-row { display: grid; grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); align-items: center; column-gap: 12px; }
.cpu-chart-col { min-height: 44px; }
.cpu-chart-col.amd { padding-right: 10px; }
.cpu-chart-col.intel { padding-left: 10px; }

.cpu-bar { position: relative; height: 44px; border-radius: 8px; background: #e5e7eb; }
.cpu-bar.placeholder { background: transparent; height: 44px; visibility: hidden; }
.cpu-bar.amd { background: linear-gradient(90deg,#f97316,#ea580c); width: var(--w, 0%); }
.cpu-bar.intel { background: linear-gradient(90deg,#60a5fa,#3b82f6); width: var(--w, 0%); margin-left: auto; }

.cpu-bar .cpu-label, .cpu-bar .cpu-score { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 700; font-size: 1rem; }
.cpu-bar .cpu-label { text-decoration: none; max-width: calc(100% - 90px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cpu-bar .cpu-label:hover { text-decoration: underline; transform: translateY(-50%) scale(1.02); }
.cpu-bar.amd .cpu-score { left: 12px; }
.cpu-bar.amd .cpu-label { right: 12px; text-align: right; }
.cpu-bar.intel .cpu-label { left: 12px; }
.cpu-bar.intel .cpu-score { right: 12px; }

.cpu-chart-mid { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; }
.cpu-chart-mid::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 26px; height: 100%; background: linear-gradient(180deg,#b11f0b,#7c1d0e); border-radius: 6px; }
.cpu-chart-mid::after { content: ''; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 22px solid #b11f0b; }
.cpu-rank-num { position: relative; z-index: 1; color: #fff; font-weight: 900; }

@media (max-width: 720px) {
  .cpu-chart-row { grid-template-columns: 1fr 60px 1fr; }
  .cpu-bar { height: 38px; }
}

/* Compare styles */
.cpu-compare2 { max-width: 1200px; margin: 16px auto; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.cpu-compare2 .cmp-head { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; background: #f2f6fb; padding: 10px; font-weight: 800; color:#0f172a; }
.cpu-compare2 .cmp-body { display: grid; }
.cpu-compare2 .cmp-row { display: grid; grid-template-columns: 1fr 140px 1fr; border-top: 1px solid #eee; }
.cpu-compare2 .cmp-row div { padding: 10px; }
.cpu-compare2 .cmp-row .label { color:#475569; font-weight:600; background:#f9fafb; }
.cpu-compare2 .better { background: rgba(34,197,94,.08); }
.cpu-compare2 .worse  { background: rgba(239,68,68,.08); }
.cpu-compare2 .equal  { background: rgba(107,114,128,.08); }
.cpu-compare2 a { text-decoration:none; color:#0f172a; font-weight:600; }
.cpu-compare2 a:hover { text-decoration:underline; }
