/* Post Header */
.post-header {
  background: #13294b;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #2a4a6e;
  margin-bottom: 10px;
}
.left-column {
  flex: 0 0 380px; /* Cột trái full width cho slider */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Slider full width bên trái */
.games-slider {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid #2a4a6e;
}
.games-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 12px;
}
.game-thumb {
  flex: 0 0 100px;
  text-align: center;
  transition: transform 0.3s;
}
.game-thumb:hover { transform: scale(1.08); }
.game-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2a4a6e;
}
.game-thumb span {
  font-size: 0.8rem;
  color: #b0c4d8;
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,212,255,0.6);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
}
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-arrow:hover { background: #00d4ff; }

/* Dưới slider: Chia 2 cột - poster trái + info phải */
.poster-info-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.post-poster {
  /*flex: 0 0 280px;*/ /* Poster nhỏ hơn */
}
.post-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,212,255,0.15);
}
.post-info {
  flex: 1;
}
.post-info h1 {
  color: white;
  margin-bottom: 12px;
}
/* Rating và Button ngang hàng, button căn phải */
.rating-button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 20px;
}
.post-rating {
  font-size: 2.2rem;
  margin: 0;
}
.post-rating span {
  color: #00d4ff;
  font-size: 1.1rem;
  margin-left: 12px;
}
.get-links-btn {
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.get-links-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255,107,107,0.4);
}
.get-links-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  border: 3px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.disclaimer {
  font-size: 0.85rem;
  color: #80a0c0;
  margin-top: 16px;
}
/* Phần còn lại (Popular Now, Article, Sidebar) */
.popular-section { margin: 32px 0; }
.popular-title { font-size: 1.6rem; color: #00d4ff; margin-bottom: 20px; text-align: center; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.popular-item {
  background: #13294b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a4a6e;
  transition: all 0.3s;
}
.popular-item:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,212,255,0.2); }

.trademark-note {
  white-space: normal;
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.8rem;
}
.sidebar {
  background: #13294b;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #2a4a6e;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.sidebar-title { color: #00d4ff; font-size: 1.4rem; margin-bottom: 16px; border-bottom: 2px solid #2a4a6e; padding-bottom: 8px; }
.sidebar-item { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #2a4a6e; }
.sidebar-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }

.main-content { margin: 15px 0; }
.article { background: #13294b; border-radius: 16px; padding: 24px; border: 1px solid #2a4a6e; }
.article h2 { font-size: 1.7rem; margin: 28px 0 14px; }

@media (max-width: 1200px) {
  .main-container { gap: 20px; padding: 20px 16px; }
  .left-column { flex: 0 0 320px; }
  .game-thumb { flex: 0 0 80px; }
  .game-thumb img { height: 80px; }
  .post-poster img { max-width: 280px; }
}
@media (max-width: 1024px) {
  .game-item { flex: 0 0 calc((100% - 2*18px)/3); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  /*.main-container { flex-direction: column-reverse; }*/
  .post-header { flex-direction: column; align-items: center; text-align: center; }
  .post-poster { max-width: 400px; }
  .main-container {
    flex-direction: column;
    gap: 24px;
  }
  aside { order: 3; position: static; } /* Sidebar xuống dưới cùng */
  .popular-section { order: 4; } /* Popular Now xuống cuối cùng */
  .main-content { order: 2; } /* Article ở giữa */
  .post-header { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .left-column { width: 100%; max-width: 400px; margin: 0 auto; }
  .poster-info-row { flex-direction: column; gap: 20px; align-items: center; }
  .rating-button-row { flex-direction: column; align-items: center; gap: 12px; }
  .get-links-btn { width: 100%; max-width: 300px; text-align: center; }
  .popular-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 768px) {
  /*.navbar { flex-direction: column; }*/
  .nav-links { display: none; }
  .slider-arrow { width: 40px; height: 40px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid .post-card { flex: 0 0 85%; }

  .navbar { flex-direction: column; gap: 10px; padding: 10px 12px; }
  .breadcrumb { font-size: 0.85rem; padding: 8px 12px; }
  .games-slider { padding: 8px; }
  .carousel-arrow { width: 24px; height: 24px; font-size: 0.8rem; }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
  .game-thumb { flex: 0 0 70px; }
  .game-thumb img { height: 70px; }
  .post-title { font-size: 1.8rem; }
  .post-rating { font-size: 1.6rem; }
  .get-links-btn { padding: 10px 24px; font-size: 0.95rem; }
  .popular-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .sidebar-item img { width: 60px; height: 60px; }
  #backToTop { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .post-header { padding: 10px; }
  .left-column { gap: 12px; }
  .games-wrapper { gap: 8px; }
  .game-thumb { flex: 0 0 60px; }
  .game-thumb img { height: 60px; }
  .game-thumb span { font-size: 0.7rem; }
}