* {
  padding: 0;
  margin: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}
html,
body {
  background: #d6f0fa;
  color: #434242;
}

.header {
  border-bottom: 1px solid #efefef;
  background: #ffffff;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.6rem 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
}

.logo img {
  width: 100px;
  border-radius: 20px 0 0 0;
  height: 65px;
  display: block;
}

.search-box {
  display: flex;
  flex: 1;
  margin: 0 2rem;
  align-items: center;
  max-width: 500px;
  border-bottom: 1px solid #ccc;
  padding: 0.3rem 0.6rem;
  background: transparent;
}

.search {
  font-size: 0.9rem;
  flex: 1;
  border: none;
  outline: none;
}
.search-box i {
  margin-right: 0.8rem;
  color: #434242;
}

.category {
  font-weight: 500;
  margin-left: 1rem;
  color: #434242;
  cursor: pointer;
  white-space: nowrap;
}
.category + i {
  margin-left: 0.5rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.admin a {
  font-size: 0.9rem;
  margin-left: 1.2rem;
  text-decoration: none;
  color: #333;
}
.admin i {
  font-size: 1.2rem;
  margin-right: 0.1rem;
  color: #434242;
}

.nav {
  border-top: 1px solid #eee;
  padding: 0.7rem 2rem;
}
.nav ul {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
}
.nav li {
  font-size: 0.95rem;
  cursor: pointer;
  color: #333;
}
.nav li i {
  font-size: 1.2rem;
  margin-right: 0.1rem;
  color: #434242;
}

.nav li:first-child {
  font-weight: bold;
  color: #e60012;
  border-bottom: 2px solid #e60012;
  padding-bottom: 0.3rem;
}

.free {
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  padding: 0.7rem 2rem;
  background: #efefef;
}
.free p {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}
.free a {
  color: #434242;
}
.free a:last-child {
  font-weight: bold;
}
.free i {
  margin-right: 0.5rem;
  color: #434242;
}

.contain {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem;
}
.product {
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  background: #ffffff;
  overflow: hidden;
}
.product .contain {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.product-left {
  flex: 1.2;
  min-width: 0;
}
.main {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.main a {
  font-weight: 500;
  color: #434242;
  text-decoration: none;
}
.main a:hover {
  font-weight: bold;
}
.main i {
  font-size: 1.2rem;
  color: #434242;
}
.main span {
  font-weight: bold;
  color: #434242;
}
.main-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  height: auto;
}
.thumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.thumb img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.thumb img:hover {
  transform: scale(1.05);
  border-color: #e60012;
}

.rating {
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  color: #434242;
}
.rating img {
  height: 68px;
  flex-shrink: 0;
}

.rating p:last-child {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #434242;
}

.product-right {
  flex: 1;
  min-width: 0;
}
.switch {
  font-size: 0.85rem;
  color: #434242;
  margin: 1rem 0.3rem;
  text-decoration: underline #e60012;
}
.title {
  font-size: 2rem;
  margin: 3.5rem 0;
}
.price {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price i {
  font-size: 1.5rem;
  color: #e60012;
  cursor: pointer;
}
.price i:hover {
  color: #b8000f;
}
.points {
  font-size: 0.9rem;
  color: #434242;
  margin-bottom: 1.2rem;
}
.points i {
  font-size: 1.2rem;
  color: gold;
}

.but {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e60012;
  color: #ffffff;
  border-radius: 6px;
  padding: 1rem 2rem;
  border: none;
  margin-bottom: 1rem;
  width: 100%;
  cursor: pointer;
}
.but i {
  font-size: 1.5rem;
  margin-right: 0.8rem;
}
.but:hover {
  background: #b8000f;
}
.notes {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #434242;
}

.desc {
  width: 100%;
  margin: 2rem auto;
  padding: 2rem 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  background: #ffffff;
}

.desc .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.desc-left {
  width: 45%;
}
.desc-text {
  width: 85%;
  padding: 2rem;
  margin: 1rem 0;
}
.desc-text p {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: #434242;
}
.read-more {
  font-size: 0.85rem;
  border: none;
  color: #e60012;
  background: none;
  cursor: pointer;
  margin-bottom: 3.5rem;
}
.read-more i {
  font-size: 0.95rem;
}

.box-rating {
  text-align: center;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background: #efefef;
  border-radius: 8px;
}

.box-rating .esrb {
  font-size: 0.95rem;
  font-weight: bold;
}
.box-rating p {
  font-size: 0.7rem;
  color: #434242;
}
.box-rating .rating {
  font-size: 0.85rem;
  max-width: 500px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  color: #555;
  background: #ffffff;
}
.box-rating .rating img {
  height: 68px;
  flex-shrink: 0;
}
.box-rating .rating p:last-child {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #434242;
}

.desc-right {
  width: 50%;
}
.desc-img img {
  width: 95%;
  border-radius: 6px;
  margin: 1rem;
  margin-bottom: 3rem;
  display: block;
}

.box-modes {
  text-align: center;
  border-radius: 8px;
  padding: 1.5rem;
  background: #efefef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.box-modes p {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #434242;
}
.box-modes ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.box-modes li {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  color: #434242;
  gap: 0.6rem;
}
.box-modes .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 100px;
  background: #0b2b6b;
  border-radius: 8px;
}
.box-modes .icon i {
  font-size: 2rem;
  color: #ffffff;
}

.deta-box {
  font-size: 0.85rem;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  line-height: 1.6;
  color: #434242;
}
.deta-box p {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0.6rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #efefef;
}
.deta-box p:first-child {
  padding-top: 0.8rem;
  border-top: 2px solid #efefef;
}

.deta-box strong {
  display: flex;
  min-width: 160px;
}
.deta-box p span {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
}

.deta-box i {
  font-size: 1.5rem;
  color: #434242;
  margin-right: 0.6rem;
}

.deta-box p span a {
  color: #e60012;
}

.online {
  width: 100%;
  max-width: 1200px;
  margin-left: 5rem;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
}
.online-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
  background: #efefef;
}

.online-box .content {
  width: 60%;
}
.online-box h3 {
  font-size: 1.4rem;
  display: inline-block;
  margin-left: 2rem;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  border: 2px;
  border-radius: 2px;
  padding: 0.5rem 1rem;
  background: #e60012;
  color: #efefef;
}

.online-box p {
  font-size: 0.9rem;
  width: 60%;
  font-weight: bold;
  color: #434242;
  margin-left: 2rem;
  margin-bottom: 1.7rem;
  line-height: 1.6;
}

.online-links p {
  font-size: 0.8rem;
  margin-left: 2rem;
  color: #434242;
}
.online-links a {
  margin-left: 0.3rem;
  color: #e60012;
  font-weight: bold;
}
.learn-more {
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 2rem;
  margin-bottom: 0.8rem;
  padding: 0.6rem 1.5rem;
  background: #e60012;
  color: #efefef;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}
.learn-more:hover {
  background: #b8000f;
}
.online-box img {
  width: 50%;
  height: 320px;
  object-fit: cover;
}

.recently-viewed {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
}
.recently-viewed h2 {
  font-size: 1.4rem;
  color: #434242;
  margin-bottom: 2.5rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  position: relative;
  flex-direction: column;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 4rem;
}
.card img {
  width: 100%;
  height: 190px;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}
.card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card .sale {
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  padding: 0.2rem 0.4rem;

  background: #e60012;
  color: #efefef;
  border-radius: 15px 0 0 15px;
}

.card .price {
  font-size: 1.2rem;
  font-weight: bold;

  margin-top: 0.5rem;
  color: #434242;
}

.card .price .old {
  font-size: 0.7rem;
  text-decoration: line-through;
  color: #434242;
  margin-left: 0.3rem;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.card .switch {
  font-size: 0.85rem;
  color: #434242;
  text-decoration: underline #e60012;
}
.card i {
  font-size: 1.2rem;
  color: #e60012;
  cursor: pointer;
}
.card i:hover {
  color: #b8000f;
}

.online-play {
  font-size: 0.7rem;
  width: 90%;
  color: #434242;
  margin-bottom: 1rem;
}
.online-play2 {
  font-size: 0.7rem;
  color: #434242;
}

.footer {
  background: #ffffff;
  margin-top: 3rem;
  border-top: 1px solid #efefef;
  width: 100%;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e60012;
  color: #ffffff;
  padding: 1rem 2rem;
}
.footer-top .logo {
  height: 190px;
}
.footer-top .socials a {
  font-size: 1.7rem;
  margin-right: 4rem;
  color: #efefef;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid #efefef;
}
.footer-links div {
  border-right: 1px solid #efefef;
  padding-right: 1rem;
}
.footer-links div:last-child {
  border-right: none;
}
.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
}
.footer-links a {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
  color: #e60012;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  background: #434242;
  color: #efefef;
}
.footer-bottom p {
  font-size: 0.7rem;
  margin: 0;
  flex: 1;
}
.links {
  display: flex;
  gap: 0.4rem;
}
.links a {
  font-size: 0.76rem;
  font-weight: bold;
  margin-right: 1.6rem;
  color: #efefef;
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
}

@media (max-width: 676px) {
  .top {
    flex-direction: column;
    gap: 1rem;
  }

  .search-box {
    max-width: 100%;
    margin: 0;
  }

  .nav ul {
    flex-direction: column;
    margin-left: 0;
    gap: 1rem;
  }

  .product .contain {
    flex-direction: column;
  }
  .product-left {
    width: 100%;
  }
  .product-right {
    width: 100%;
  }

  .desc .container {
    flex-direction: column;
  }
  .desc-left {
    width: 100%;
  }
  .desc-right {
    width: 100%;
  }
  .box-modes ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .online-box {
    display: block;
    text-align: center;
  }
  .online-box .content {
    width: 100%;
  }
  .online-box img {
    width: 100%;
  }

  .recently-viewed {
    flex-direction: column;
    text-align: center;
  }
}
