/* === CRUNCHHUB GAME DETAIL STYLES === */
:root {
  --hub-bg-card: #141820;
  --hub-bg-card-alt: #1a1f2c;
  --hub-border: #232936;
}

.game-hero {
  position: relative;
  min-height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 35px 0;
  border-bottom: 1px solid var(--hub-border);
}

.hero-passport {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.poster-box {
  width: 250px;
  height: 350px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--hub-border);
  background: #141820;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.info-box {
  flex: 1;
  min-width: 300px;
  padding-bottom: 8px;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}

.badge {
  background: var(--cnp-yellow, #FFD800);
  color: #000;
  font-size: 0.75em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-dark {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--hub-bg-card-alt);
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--hub-border);
  font-size: 0.9em;
}

.rating-breakdown-label {
  color: #8c9ba5;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.rating-breakdown-score {
  font-weight: 800;
  color: #ffffff;
}

.game-h1 {
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}

.game-slogan {
  color: #cbd5e0;
  font-size: 1.05em;
  margin-bottom: 18px;
  max-width: 700px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: rgba(20, 24, 32, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--hub-border);
  margin-bottom: 18px;
}

.meta-item-label {
  font-size: 0.75em;
  color: #8c9ba5;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.meta-item-val {
  font-size: 0.95em;
  font-weight: 700;
  color: #ffffff;
}

.meta-item-val.highlight {
  color: var(--cnp-yellow, #FFD800);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.game-btn-primary {
  background: var(--cnp-yellow, #FFD800);
  color: #000;
}

.game-btn-primary:hover {
  background: #e5c200;
  transform: translateY(-2px);
}

.game-btn-dark {
  background: var(--hub-bg-card-alt);
  color: #fff;
  border: 1px solid var(--hub-border);
}

.game-btn-dark:hover {
  border-color: var(--cnp-yellow, #FFD800);
  color: var(--cnp-yellow, #FFD800);
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin: 35px auto 60px auto;
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

.section-card {
  background: var(--hub-bg-card);
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hub-border);
  padding-bottom: 10px;
}

.section-title {
  font-size: 1.3em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--cnp-yellow, #FFD800);
  border-radius: 2px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.specs-table th {
  background: var(--hub-bg-card-alt);
  color: var(--cnp-yellow, #FFD800);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9em;
  font-weight: 700;
  border: 1px solid var(--hub-border);
}

.specs-table td {
  padding: 10px 12px;
  border: 1px solid var(--hub-border);
  font-size: 0.9em;
}

.specs-table td:first-child {
  color: #8c9ba5;
  font-weight: 700;
  width: 140px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--hub-border);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.trailer-sources-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--hub-bg-card-alt);
  border-radius: 6px;
  border: 1px solid var(--hub-border);
}

.trailer-source-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trailer-source-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.82em;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  color: #fff;
}

.btn-yt {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-yt:hover {
  background: #ef4444;
  color: #fff;
}

.btn-vk {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.btn-vk:hover {
  background: #2563eb;
  color: #fff;
}

.btn-rutube {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.btn-rutube:hover {
  background: #f59e0b;
  color: #000;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--hub-bg-card-alt);
  border-radius: 6px;
  border: 1px solid var(--hub-border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.news-item:hover {
  border-color: var(--cnp-yellow, #FFD800);
  transform: translateX(3px);
}

.news-item-thumb {
  width: 100px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item-title {
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 4px;
}

.news-item-date {
  font-size: 0.8em;
  color: #8c9ba5;
}

.widget-box {
  background: var(--hub-bg-card);
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.widget-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 12px;
  border-left: 3px solid var(--cnp-yellow, #FFD800);
  padding-left: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--hub-bg-card-alt);
  border: 1px solid var(--hub-border);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.store-btn:hover {
  border-color: var(--cnp-yellow, #FFD800);
  background: #232936;
}

.store-btn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-btn-brand svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cnp-yellow, #FFD800);
  fill: currentColor;
}

.store-price {
  color: var(--cnp-yellow, #FFD800);
  font-weight: 700;
  font-size: 0.88em;
  white-space: nowrap;
}

.similar-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.similar-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.similar-title {
  font-size: 0.9em;
  font-weight: 700;
  color: #fff;
}
