.site-header {
  background: #0f1220;
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;

  span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;

  img {
    width: 36px;
    height: 36px;
  }

  span {
    font-weight: 700;
    line-height: 1.1;
    font-size: 14px;
    text-transform: lowercase;
  }
}

/* CENTER */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-form {
  width: 100%;
  max-width: 520px;
  position: relative;

  input {
    width: 100%;
    height: 44px;
    background: #2a2d3e;
    border: none;
    border-radius: 12px;
    padding: 0 48px 0 16px;
    color: #ffffff;
    font-size: 14px;

    &::placeholder {
      color: #9aa0b4;
    }

    &:focus {
      outline: none;
    }
  }

  button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;

    svg {
      width: 20px;
      height: 20px;
      stroke: #9aa0b4;
      fill: none;
      stroke-width: 2;
    }
  }
}

/* RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #2a2d3e;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    font-size: 16px;
  }

  &:hover {
    background: #343851;
  }
}

.search-form button {
  i {
    font-size: 16px;
    color: #9aa0b4;
  }
}


.has-badge .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff3b3b;
  color: #ffffff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn {
  height: 40px;
  padding: 0 18px;
  background: #6c4bff;
  color: #ffffff;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;

  &:hover {
    background: #7b5cff;
  }
}

.search_overlay {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;

  &.active {
    display: flex;
  }

  .search_box {
    position: relative;
    width: 90%;
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 0.3s ease forwards;

    form {
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

      input {
        flex: 1;
        padding: 14px 18px;
        border: none;
        font-size: 16px;
        color: #333;
        outline: none;
      }

      button {
        background: #2a93d5; /* xanh dương */
        color: #fff;
        border: none;
        padding: 14px 18px;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;

        &:hover {
          background: #1976b3;
        }
      }
    }

    .close_search {
      position: absolute;
      bottom: -60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.4);
      color: #fff;
      font-size: 20px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;

      &:hover {
        background: rgba(255,255,255,0.4);
      }
    }
  }
}

  @media (max-width: 992px) {
	.main-header {
        .container {
			padding: 12px 0;
        }
		.main-nav {
		  flex: none;
			display: none;
		  margin: 0;
		  position: absolute;
		  top: 100%;
		  width: 100%;
          background: #fff;
            .menu li.menu-item a {
              color: #333;
              padding: 10px 20px;
              display: block;

              &:hover {
                background-color: #f0f4ff;
                color: #072b6f;
              }
            }
            .menu {
                display: block;
			}
			.sub-menu {
				width: 100%;
				box-shadow: none !important;
				padding: 0 20px !important;
			}
		}
        .header-right {
            padding-right: 15px;
			.micon {
			  display: block;
			}
        }
        &.is-open .main-nav {
			display: block;
        }
		
    }
      	
  }
}
.top_slide {
  width: 100%;
  margin: 0 auto;
  position: relative;

  .swiper {
    width: 100%;
  }

  .swiper-slide {
    position: relative;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    color: #fff;
    &:after {
      font-size: 16px;
    }
  }

  .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
  }

  .swiper-pagination-bullet-active {
    opacity: 1;
  }
}
.home.blog .site-wrapper {
  padding: 0;
}

.about_company {
  background: #f8f8fb;
  padding: 60px 20px;

  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
  }

  .about_left {
    flex: 1 1 48%;

    .about_logo {
      height: 48px;
    }

    p {
      margin-bottom: 12px;
      line-height: 1.6;
      color: #222;
    }

.about_stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;

  .item {
    text-align: center;
    flex: 1 1 30%;

    .num {
      font-size: 30px;
      font-weight: 700;
      color: #e65a00;
      margin-bottom: 8px;
    }

    .label {
      font-size: 14px;
    }
  }
}


    .btn {
      display: inline-block;
      background: #e65a00;
      color: #fff;
      padding: 8px 26px;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 600;
      transition: background .3s;
            margin-top: 25px;
      &:hover {
        background: #cc4e00;
      }
    }
  }

  .about_right {
    flex: 1 1 47%;

    .video_wrapper {
      position: relative;
      padding-top: 56.25%; // 16:9
      border-radius: 12px;
      overflow: hidden;

      iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    }
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }

    .about_left,
    .about_right {
      flex: 1 1 100%;
    }

    .about_stats {
      flex-direction: column;
      .item {
        flex: 1 1 100%;
      }
    }
  }
}
.site-header {
  width: 100%;
  height: 72px;
  background: #0f1220;
  z-index: 1100;
  transition: background 0.25s ease, box-shadow 0.25s ease;

  &.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
  }
}

/* khi cuộn xuống */
body.header-scrolled {
  .site-header {
    background: rgba(15, 18, 32, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

/* tránh content bị che */
.site-main {
  padding-top: 72px;
}

/* ===== SIDEBAR ===== */
.admin-bar {
	.sidebar {
	  top: 104px;
	  @media (max-width: 600px) {
		top: 70px;
	  }
	}
	.site-header.header-fixed {
	  top: 32px;
	  @media (max-width: 600px) {
		top: 0;
	  }
	}
}
.sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 72px;
  height: 100vh;
  background: #0b0e1a;
  transition: transform 0.25s ease;
  z-index: 1000;

	/* RESET UL */
	.menu-list {
	  list-style: none; 
	  padding: 0;
	  margin: 0;
	}

	/* TITLE */
	.menu-title {
	  font-size: 10px;
	  text-transform: uppercase;
	  color: #6e7390;
	  text-align: center;
	  margin-bottom: 10px;
	}

	/* ITEM */
	.menu-list li {
	  display: flex;
	  justify-content: center;
	  margin-bottom: 12px;
	}

	/* LINK */
	.menu-list a {
	  width: 44px;
	  height: 44px;
	  border-radius: 12px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  text-decoration: none;
	  background: transparent;
	  transition: background 0.2s ease;
	}

	/* ICON */
	.menu-list i {
	  font-size: 20px;
	}

	/* HOVER */
	.menu-list a:hover {
	  background: #1f2337;
	}

	/* ===== ICON COLORS (GIỐNG ẢNH) ===== */

	/* Home - tím xanh */
	.icon-home i {
	  background: linear-gradient(135deg, #9b7bff, #5ddcff);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Clock - xanh đậm */
	.icon-clock i {
	  background: linear-gradient(135deg, #2ec7ff, #1b6fff);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Sparkle - vàng */
	.icon-sparkle i {
	  background: linear-gradient(135deg, #ffe066, #ffb703);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Fire - cam đỏ */
	.icon-fire i {
	  background: linear-gradient(135deg, #ff8c42, #ff3d3d);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Refresh - xanh mint */
	.icon-refresh i {
	  background: linear-gradient(135deg, #3fffa8, #1ed6c1);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Discord - tím */
	.icon-discord i {
	  background: linear-gradient(135deg, #7289da, #5865f2);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* Group - tím nhạt */
	.icon-group i {
	  background: linear-gradient(135deg, #c77dff, #9d4edd);
	  -webkit-background-clip: text;
	  -webkit-text-fill-color: transparent;
	}

	/* DIVIDER */
	.menu-divider {
	  width: 32px;
	  height: 1px;
	  background: #1f2337;
	  margin: 14px auto;
	}

}



/* ===== MAIN ===== */
.site-wrapper {
  margin-left: 72px;
  transition: margin-left 0.25s ease;
  min-height: 100vh;
  background: #0f1220;
}

/* ===== HIDE MENU STATE ===== */
body.hide-menu {
  .sidebar {
    transform: translateX(-100%);
  }

  .site-wrapper {
    margin-left: 0;
  }
}

.section-welcome {
  background: linear-gradient(90deg, #0b0e1a, #0f1220);
  padding: 24px;
  border-radius: 16px;
  margin: 0 24px;

  .welcome-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* LEFT */
  .welcome-left {
    display: flex;
    align-items: center;
    gap: 14px;

    h2 {
      font-size: 20px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;

      span {
        color: #8b7bff;
      }
    }
  }

  .welcome-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b7bff, #5ddcff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;

    i {
      font-size: 22px;
      color: #ffffff;
    }
  }

  /* RIGHT */
  .welcome-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 28px;

    li {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #e1e4ff;
      font-size: 14px;
      white-space: nowrap;
    }

    i {
      font-size: 18px;
      background: linear-gradient(135deg, #8b7bff, #5ddcff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .welcome-inner {
      flex-direction: column;
      align-items: flex-start;
    }

    .welcome-features {
      flex-wrap: wrap;
      gap: 16px;
    }
  }
}

/* ===== GAME CARD ===== */
.game-card {
    display: block;
    position: relative;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171a2f;
    transition: transform .2s ease;
	&.short {
		aspect-ratio: 2 / 3;
	}
	color: #fff;
    a {
		color: #fff;
	}

    &:hover {
	  .card-overlay {
		position: absolute;
		inset: 0;
		background: linear-gradient(
		  180deg,
		  rgba(0,0,0,0) 45%,
		  rgba(0,0,0,.85) 100%
		);
		display: flex;
		align-items: flex-end;
		padding: 12px;
	  }
	  .card-title, .card-meta {
		  display: block;
	  }
    .game-thumb {
      display: none;
    }

    .thumb-animated {
      display: block;
    }
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .game-thumb {
      display: block;
    }

  .card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
      display: none;
  }
  .card-meta {
      display: none;
  }
}


.iplaytab-swiper {
  background: #0f1220;
  padding-bottom: 10px;
  color: #ffffff;

  .section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
  }

  /* ===== SWIPER ===== */
  .swiper {
    padding-bottom: 10px;
  }

  .swiper-slide {
    display: flex;
    height: auto;
    /* SLIDE CÓ 1 ITEM → CARD LỚN */
    &:not(.is-group) {
      .game-card {
        width: 100%;
        aspect-ratio: 16 / 9;
      }
    }
  }
  /* SLIDE GROUP → 4 ITEM NHỎ */
  .swiper-slide.is-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    .game-card {
      aspect-ratio: 16 / 9;
    }
  }

  /* ===== NAV ===== */
  .swiper-button-prev,
  .swiper-button-next {
    color: #ffffff;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1024px) {
    .swiper {
      padding-bottom: 32px;
    }
  }

  @media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }
  }
}

.game-swiper-block {
  background: #0f1220;
  padding-bottom: 10px;
  color: #ffffff;
  .block-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
  }

  /* ===== SWIPER ===== */
  .swiper {
    padding-bottom: 10px;
  }

  .swiper-slide {
    height: auto;
  }

  /* ===== NAV ===== */
  .swiper-button-prev,
  .swiper-button-next {
    color: #ffffff;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }
  }
}





