body {
  font-family: Poppins, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.5s cubic-bezier(.4, 2, .6, 1), color 0.5s cubic-bezier(.4, 2, .6, 1);
}

a {
  text-decoration: none;
}

:root {
  --primary-color: #ff9800;
  --secondary-color: #ff6d00;
  --accent-color: #ffa726;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --text-color: #212529;
  --bg-color: #fff8f0;
  --card-bg: #fff3e0;
  --navbar-bg: #fff8f0;
  --footer-bg: #fff3e0;
  --shadow-color: rgba(255, 152, 0, 0.15);
  --border-color: #ffe0b2;
  --card-border-radius: 16px;
  --btn-border-radius: 10px;
}

:root {
  --primary-color: #ff9100f3;
  --secondary-color: #ff6b6b;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background-color: var(--navbar-bg) !important;
  box-shadow: 0 2px 20px var(--shadow-color);
  padding: 15px 0;
  transition: background-color 0.5s cubic-bezier(.4, 2, .6, 1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-color);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px var(--shadow-color);
}

.navbar-toggler {
  border: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.bs-icon.bs-icon-primary {
  background: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  padding: 8px 18px !important;
  border-radius: var(--btn-border-radius);
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
  margin: 0 7px;
  box-shadow: 0 2px 8px transparent;
}

.nav-link:hover, .nav-link:focus {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
  color: #fff !important;
  box-shadow: 0 2px 12px var(--shadow-color);
  transform: scale(1.08);
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masthead {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--accent-color) 100%);
  padding: 90px 0 70px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  margin-bottom: 35px;
  box-shadow: 0 8px 32px var(--shadow-color);
  animation: bgMove 8s linear infinite alternate;
}

.masthead h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 22px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  letter-spacing: 2px;
  animation: fadeInDown 1s;
}

.masthead h2 {
  font-weight: 400;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  animation: fadeInUp 1.2s;
}

.search-container {
  max-width: 600px;
  margin: 22px auto 0;
  animation: fadeIn 2s;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 5px 18px var(--shadow-color);
  background: #fff8f0;
  transition: box-shadow 0.3s, background 0.3s;
}

.search-btn {
  position: absolute;
  right: 5px;
  height: 42px;
  width: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
  box-shadow: 0 2px 8px var(--shadow-color);
  font-size: 1.2rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.category-pill {
  background: linear-gradient(90deg, #fff8f0 60%, #ffe0b2 100%);
  color: var(--primary-color);
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color);
  font-size: 1.08rem;
  letter-spacing: 1px;
  animation: fadeIn 1.5s;
}

.category-pill:hover, .category-pill.active {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
  color: #fff;
  background: #ff9800;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 5px 18px var(--shadow-color);
  border-color: var(--accent-color);
}

/* game-section */

.section-title {
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px var(--shadow-color);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.game-title {
  display: block;
  padding-bottom: 25px;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: 0 5px 18px var(--shadow-color);
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  transform: translateY(0);
  text-decoration: none;
  /*height: 100%;*/
  position: relative;
  margin-bottom: 25px;
}

.game-title img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1.5px solid var(--border-color);
  transition: transform 0.3s cubic-bezier(.4, 2, .6, 1);
  filter: brightness(0.98) drop-shadow(0 2px 8px var(--shadow-color));
}

.game-title h4 {
  padding: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  font-size: 1.13rem;
  transition: color 0.3s cubic-bezier(.4, 2, .6, 1);
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px var(--shadow-color);
}

.game-title:hover, .game-title:focus {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 15px 40px var(--shadow-color), 0 0 0 4px var(--primary-color);
  text-decoration: none;
  border-color: var(--primary-color);
  z-index: 2;
}

.game-title:hover img {
  transform: scale(1.06) rotate(-2deg);
  filter: brightness(1.05) drop-shadow(0 4px 16px var(--accent-color));
}

.game-title:hover h4 {
  color: var(--primary-color);
}

/* footer */

footer {
  background: var(--footer-bg);
  color: var(--dark-gray);
  padding: 50px 0 20px;
  margin-top: 60px;
  transition: background-color 0.5s cubic-bezier(.4, 2, .6, 1);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -2px 16px var(--shadow-color);
}

.footer-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px var(--shadow-color);
}

.btn-social {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
  font-size: 1.2rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  background: transparent;
}

.btn-social:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transform: translateY(-3px) scale(1.1);
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.footer-link {
  list-style: none;
  padding-left: 0;
}

.footer-link li a {
  display: flex;
  align-items: center;
  color: var(--dark-gray);
}

.icon-ft {
  color: var(--primary-color);
  padding-right: 5px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1.5px solid var(--border-color);
  text-align: center;
  color: var(--dark-gray);
  font-size: 1rem;
}

/* category */

.section-title.section-cate {
  margin-bottom: 15px;
}

.total {
  margin-bottom: 30px;
}

/* detail */

.game-container {
  margin-top: 30px;
}

.game-content {
  margin-bottom: 30px;
}

.game-player {
  background-color: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
  border-radius: 16px 16px 30px 30px;
  color: white;
  overflow: hidden;
}

.game-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.game-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.single-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@media (min-width: 1400px) {
  .game-iframe-container {
    /*padding-top: 58.25% !important;*/
  }
}

@media (min-width: 1400px) {
  .single-info-container {
    /*padding: 20px 15px;*/
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  border-radius: 10px;
}

h1.single-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.25rem;
}

.action-btn {
  display: flex;
  gap: 20px;
}

.action-btn > div {
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stats-vote svg {
  font-size: 30px;
  padding: 6px;
}

.icon-btn {
  color: white;
}

.stats-vote svg:hover {
  color: #1abc9c;
  cursor: pointer;
}

.action-btn i, .action-btn img {
  color: white;
  font-size: 16px;
}

.info-the-game .rating {
  margin-bottom: 10px;
  font-size: 14px;
  color: #9595d1;
}

.info-the-game .rating i {
  margin-right: 5px;
}

.star-on {
  color: #ffa73f;
  margin-right: 5px;
  margin-bottom: -3px;
  width: 16px;
  display: inline-block;
  font-size: 13.5px;
  position: relative;
  left: 1px;
  top: -1px;
}

.social-share {
  position: relative;
  top: -2px;
  margin-right: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.social-share {
  display: inline-block;
  margin-right: 10px;
}

.sidebar {
  display: block;
}

.sidebar .widget {
  margin-bottom: 20px;
}

.sidebar .row {
  /*margin-right: 0;*/
  /*margin-left: 0;*/
}

.list-game {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 5px;
  box-shadow: 0 5px 18px var(--shadow-color);
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
}

@media (min-width: 992px) {
  .sidebar .list-game {
    margin-bottom: 26px;
  }
}

@media (max-width: 991px) {
  .sidebar .list-game {
    margin-bottom: 15px;
  }
}

@media (min-width: 768px) and (max-width:991px) {
  .item-right {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 12.5%;
  }
}

@media (max-width: 768px) {
  .item-right {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.singlepage-title {
  padding-bottom: 10px;
  font-weight: bold;
  font-size: 1.75rem;
}

button.btn.hidden {
  display: none;
}

.list-thumbnail.square-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
}

.list-thumbnail.square-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.list-thumbnail img {
  transition: all .3s ease;
}

.hover-info {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  color: white;
  text-align: center;
  padding: 15px 0;
  transform: translateY(100%);
  transition: transform .3s ease-in-out;
  font-weight: 700;
}

.list-game:hover .hover-info {
  transform: translateY(0);
}

.list-game:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 15px 40px var(--shadow-color), 0 0 0 4px var(--primary-color);
  border-color: var(--primary-color);
}

.list-game:hover img {
  transform: scale(1.06) rotate(-2deg);
  filter: brightness(1.05) drop-shadow(0 4px 16px var(--accent-color));
}

.info-the-game h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  font-weight: 700;
}

.single-description {
  color: #333;
}

.text-page {
  margin: 40px auto;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.text-page h1 {
  font-weight: 700;
}

.text-page h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  color: #444;
  font-weight: 700;
}

