/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  font-feature-settings: "calt", "case", "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: #ffffff;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  font-weight: 400;
  letter-spacing: -0.011em;
}

.section-description,
.specs-list,
.stats .stat-text,
.top-video-description {
  color: #cccccc;
  letter-spacing: -0.011em;
}

.logo {
  position: absolute;
  padding-left: 13%;
  left: 5%;
  font-size: 1.8rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: none;
}

.logo a {
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.logo:hover,
.logo a:hover {
  transform: none;
}

/* Điều chỉnh logo trong responsive */
@media (max-width: 1500px) {
  .logo {
    left: 5%; /* Về lại giá trị ban đầu khi màn hình nhỏ hơn */
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 16px 0;
  }

  .logo {
    position: relative;
    left: 0;
    margin-bottom: 12px;
    font-size: 1.6rem;
  }

  .menu {
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu li {
    margin: 8px 12px;
  }

  .menu a {
    padding: 6px 12px;
    font-size: 14px;
  }

  main {
    padding: 0 5%;
  }

  /* Navbar scrolled styles for mobile */
  .navbar.scrolled {
    padding: 10px 0;
  }

  .navbar.scrolled .logo {
    margin-bottom: 8px;
    font-size: 1.5rem;
  }

  .navbar.scrolled .menu {
    margin-top: 8px;
  }

  /* Các style cho social-links trên mobile nếu cần */
  .social-links a {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .menu li {
    margin: 6px 8px;
  }

  .menu a {
    padding: 5px 10px;
    font-size: 13px;
  }
}

/* Header & Navigation */
header {
  padding: 1.5rem 0;
  background-color: rgba(17, 17, 17, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  padding: 18px 0;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  justify-content: center;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.menu a:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.menu a:hover:before,
.menu a.active:before {
  width: 30px;
  opacity: 1;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  background: transparent;
}

/* Make navbar smaller on scroll */
.navbar.scrolled {
  padding: 12px 0;
  background-color: rgba(10, 10, 10, 0.98);
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Unified Section Styles */
.section-title,
.section-header,
.friends .section-title,
.my-skills .section-title,
.pc-specs .section-title,
.donate .section-title,
.new-video .section-title,
#top-videos .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  background: none;
  padding: 0;
  display: block;
  border-radius: 0;
}

.section-title h1,
.section-title h2,
.friends .section-title h2,
.my-skills .section-title h2,
.pc-specs .section-title h2,
.donate .section-title h2,
.new-video .section-title h2,
#top-videos .section-title h2 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 auto;
  text-align: center;
  position: relative;
  display: inline-block;
  background: none;
  padding: 0;
}

.section-description,
.friends .section-description,
.my-skills .section-description,
.pc-specs .section-description,
.donate .section-description,
.new-video .section-description,
#top-videos .section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #cccccc;
  font-size: 1.1rem;
}

/* Override any other section title styles */
.friends .section-title,
.my-skills .section-title,
.pc-specs .section-title,
.donate .section-title {
  background: none;
  padding: 0;
  display: block;
  text-align: center;
}

.friends .section-title h2,
.my-skills .section-title h2,
.pc-specs .section-title h2,
.donate .section-title h2 {
  background: none;
  padding: 0;
  display: inline-block;
  text-align: center;
}

/* Override all remaining section title styling */
.new-video .section-title {
  background: none;
  padding: 0;
  display: block;
}

.new-video .section-title h2 {
  background: none;
  padding: 0;
}

.new-video .section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #4287f5, #8a2be2);
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  bottom: -10px;
  left: 25%;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.greeting {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border-radius: 30px;
}

.intro-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: transparent;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
}

.role {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #cccccc;
}

.intro-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.profile-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.profile-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid #111111;
}

/* Stats Section */
.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
  padding: 2rem;
  background-color: #111111;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1.5rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-text {
  font-size: 1rem;
  color: #cccccc;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

/* Services Section */

/* Video Grid */

/* Project Grid */

.project-item {
  background-color: #111111;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.project-item:hover {
  transform: translateY(-10px);
}

.project-item img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
  object-fit: cover;
}

.project-item h3 {
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.project-item p {
  color: #cccccc;
  margin-bottom: 1.2rem;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.game-item {
  background-color: #111111;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-item:hover {
  transform: translateY(-10px);
}

.game-item img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
  object-fit: cover;
}

.game-info {
  padding: 1.5rem;
}

.game-info h3 {
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.game-info p {
  color: #cccccc;
  margin-bottom: 1.2rem;
}

/* Footer */
footer {
  background-color: #121212;
  color: #f1f1f1;
  padding: 2rem 0;
  margin-top: 2rem;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  text-align: left;
  max-width: 30%;
  flex: 0 0 auto;
  margin-left: 20px;
}

.copyright p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.copyright .fa-heart {
  color: #ff3366;
  animation: heartbeat 1.5s infinite;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
  margin-right: 20px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f1f1f1;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #4287f5;
  transform: translateY(-3px);
}

.chenius-credit {
  font-size: 0.85rem;
  color: #cccccc;
  display: flex;
  align-items: center;
  font-style: italic;
  flex: 0 0 auto;
  text-align: center;
  justify-content: center;
}

.chenius-credit a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.chenius-credit a:hover {
  color: #4287f5;
}

.chenius-credit .fa-heart {
  color: #ff3366;
  margin-left: 5px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Media query for mobile footer */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .copyright {
    text-align: center;
    max-width: 100%;
    margin-left: 0;
    order: 1;
  }

  .chenius-credit {
    order: 2;
    justify-content: center;
  }

  .social-links {
    order: 3;
  }
}

/* Gaming Setup */
.specs-list {
  list-style: none;
  margin-top: 1.5rem;
}

.specs-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.specs-list i {
  margin-right: 15px;
  font-size: 1.2rem;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border-radius: 50%;
  color: #ffffff;
}

.specs-list strong {
  margin-right: 8px; /* Khoảng cách sau dấu ':' */
}

.profile-text {
  flex: 2;
  min-width: 300px;
}

.profile-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
}

.profile-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #cccccc;
}

/* Playlist Grid */

/* Featured Game Section */
.featured-game-section {
  margin-bottom: 4rem;
}

/* Favorite Games */

/* New Video Section */
.new-video {
  margin-bottom: 5rem;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
}

.new-video .section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.new-video .section-title h2 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

.new-video .section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #4287f5, #8a2be2);
}

.new-video .section-description {
  text-align: center;
  color: #cccccc;
  margin: 0 auto 3rem;
  max-width: 800px;
}

.new-video .videos-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.new-video .videos-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.new-video .video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  background-color: #151515;
  flex: 0 0 auto;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: auto;
  margin-right: 0;
}

.new-video .video-thumbnail {
  position: relative;
  overflow: hidden;
  height: 180px;
  width: 100%;
}

.new-video .video-thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.new-video .video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

.video-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(66, 135, 245, 0.1),
    rgba(138, 43, 226, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card.featured {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.featured .video-thumbnail {
  height: 180px;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.video-card::after {
  content: none;
}

.new-video .video-info {
  position: relative;
  width: 100%;
  padding: 1rem;
  background-color: #151515;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 120px;
}

.featured .video-info {
  padding: 1rem;
}

.video-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured .video-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.new-video .video-info .video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #aaaaaa;
  font-size: 0.8rem;
  margin-top: auto;
}

/* Thêm một số kiểu dáng cho các liên kết và hiệu ứng */
.new-video .video-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.new-video .video-card:hover h3 {
  color: #4287f5;
}

.video-views,
.video-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-views i,
.video-date i {
  color: #4287f5;
}

.new-video .play-button {
  /* Hide the play button completely */
  display: none;
}

.new-video .video-card:hover .play-button {
  /* Override any hover effects */
  display: none;
  opacity: 0;
}

/* Also hide the play button in responsive views */
@media (max-width: 900px) {
  .new-video .play-button {
    display: none;
  }
}

@media (max-width: 576px) {
  .new-video .play-button {
    display: none;
  }
}

.new-video .featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 15px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.new-video .video-views,
.new-video .video-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.new-video .video-views i,
.new-video .video-date i {
  color: #4287f5;
}

.channel-link {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

.channel-link .video-btn {
  background: #ff0000;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.channel-link .video-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s ease;
}

.channel-link .video-btn:hover::before {
  left: 100%;
}

.channel-link .video-btn i {
  font-size: 1.5rem;
}

.channel-link .video-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.4);
  background: #e00000;
}

@media (max-width: 1400px) {
  .new-video .videos-grid {
    gap: 1.2rem;
  }

  .new-video .video-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }

  .new-video .video-thumbnail {
    height: 160px;
  }
}

@media (max-width: 1200px) {
  .new-video .videos-grid {
    justify-content: flex-start;
    padding: 1rem 1.5rem;
  }

  .new-video .video-card {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .new-video .videos-grid {
    gap: 1.5rem;
    padding: 1rem 1.2rem;
  }

  .new-video .video-card {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
  }

  .new-video .video-thumbnail {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .new-video .videos-grid {
    gap: 1.2rem;
    padding: 1rem 1rem;
  }

  .new-video .video-card {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
  }

  .new-video .video-thumbnail {
    height: 150px;
  }

  .new-video {
    padding: 2.5rem 0.5rem;
  }

  .new-video .section-title h2 {
    font-size: 1.8rem;
  }

  .new-video .video-info {
    padding: 0.75rem;
  }

  .new-video .video-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .channel-link .video-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}

/* Top Videos Section Styles */
.top-videos-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: #121212;
  border-radius: 8px;
  padding: 1rem;
}

.top-video-card {
  display: flex;
  background-color: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-bottom: 10px;
  position: relative;
  padding: 0.5rem;
  width: 100%;
  min-height: 120px;
}

.top-video-card:hover {
  transform: none;
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.05);
}

.top-video-thumbnail {
  flex: 0 0 180px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100px;
  margin-right: 10px;
}

.top-video-thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: none;
}

.top-video-thumbnail:hover img {
  transform: none;
}

/* Thời lượng video */

.top-video-info {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: calc(100% - 190px);
}

.top-video-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
}

.top-video-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0;
  color: #aaaaaa;
  font-size: 0.8rem;
  width: 100%;
}

.top-video-views,
.top-video-date {
  color: #aaaaaa;
}

/* Nút menu cho video */

/* Nút xem thêm cho danh sách video */

/* Responsive styles for Top Videos */
@media (max-width: 768px) {
  .top-video-card {
    flex-direction: row;
    max-height: none;
    padding: 0.3rem;
    width: 100%; /* Ensure full width on mobile */
  }

  .top-video-thumbnail {
    flex: 0 0 120px;
    height: 80px;
    max-height: none;
  }

  .top-video-info {
    padding: 0.3rem;
    width: calc(100% - 130px); /* Adjust width calculation for mobile */
  }

  .top-video-info h3 {
    font-size: 0.95rem;
    width: 100%;
  }

  .top-video-meta {
    flex-direction: row;
    gap: 0.3rem;
    font-size: 0.75rem;
    width: 100%;
  }
}

/* Software Section */
.software-container {
  display: flex;
  flex-direction: column;
}

.software-item {
  display: flex;
  align-items: center;
  background-color: #000000;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.software-projects {
  flex: 1;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-links a {
  display: block;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-links a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .software-item {
    flex-direction: column;
    text-align: center;
  }

  .software-logo {
    margin-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .new-video {
    padding: 3rem 1rem;
  }

  .new-video .section-title h2 {
    font-size: 2rem;
  }

  .video-info h3 {
    font-size: 1rem;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .new-video {
    padding: 2.5rem 1rem;
  }

  .new-video .section-title h2 {
    font-size: 1.8rem;
  }

  .featured .video-info {
    padding: 1.5rem;
  }

  .channel-link .video-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}

/* Container chung */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0; /* giữ đều hai bên */
}

/* Section styles */

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

/* Video grid layout riêng biệt */
.new-video .videos-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.new-video .videos-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.new-video .video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  background-color: #151515;
  flex: 0 0 auto;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: auto;
  margin-right: 0;
}

@media (min-width: 1440px) {
  main {
    max-width: 1400px;
  }
}

/* Friends & Team Sections */

.friends .section-title {
  margin-bottom: 1rem;
  text-align: center;
}

.friends .section-title h2 {
  color: #ffffff;
  margin: 0;
  font-size: 1.8rem;
}

.friends .section-description {
  max-width: 800px;
  text-align: center;
  margin: 0 auto 3rem;
  color: #cccccc;
  font-size: 1.1rem;
}

.friends-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  justify-items: center;
}

.friends-grid .friend-card,
.team-grid .friend-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
}

/* Loading and error state */
.friends-grid .loading,
.friends-grid .error,
.team-grid .loading,
.team-grid .error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #cccccc;
  width: 100%;
}

.friends-grid .error,
.team-grid .error {
  color: #ff6b6b;
}

/* Friend Cards */
.friend-card {
  background-color: rgba(18, 18, 18, 0.7);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  text-align: center;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.friend-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 10px 0;
}

.friend-card p {
  color: #cccccc;
  font-size: 0.9rem;
}

/* For older style friend cards */
.friend-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  width: 200px;
  margin: 1rem auto 1rem;
  border: 3px solid #4287f5;
}

.friend-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.5s;
  -webkit-user-drag: none;
  user-drag: none;
}

.friend-card:hover .friend-image img {
  transform: scale(1.1);
}

.friend-content {
  padding: 20px;
}

.friend-name {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.friend-description {
  color: #b1b1b1;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.friend-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.friend-social a {
  color: #6c5ce7;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-social a:hover {
  color: #8a7bff;
  transform: scale(1.2);
}

/* My Skills Section */

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.skill-group {
  flex: 1;
  min-width: 300px;
  background-color: #111111;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-group h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  padding-bottom: 0.8rem;
}

.skill-group h3:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ffffff;
}

.skill-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.skill-level {
  height: 100%;
  width: 0%;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border-radius: 4px;
  transition: width 1s ease;
}

.skill-percent {
  text-align: right;
  font-size: 0.8rem;
  color: #cccccc;
}

@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .skill-group {
    width: 100%;
  }
}

/* PC Specs Section */

.pc-specs-container {
  background-color: #111111;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.pc-specs-image {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-specs-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pc-specs-image .image-caption {
  margin-top: 1rem;
  color: #cccccc;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}

.pc-specs-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pc-specs-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.specs-list {
  list-style: none;
  margin-top: 0.5rem;
}

.specs-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 8px;
}

.specs-list i {
  margin-right: 15px;
  font-size: 1.2rem;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border-radius: 50%;
  color: #ffffff;
}

.donate-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  min-height: 400px;
}

.donate-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background-color: #111111;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 400px;
}

.donate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.donate-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.donate-icon i {
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.3s ease;
}

.donate-card:hover .donate-icon i {
  transform: scale(1.2);
}

.donate-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
}

.donate-card .donate-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border-radius: 30px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.donate-card .donate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(66, 135, 245, 0.4);
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  width: 80%;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .friends-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .friends-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Video card styles for the New Video section */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-card {
  background-color: rgba(18, 18, 18, 0.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: none;
}

.video-card::before,
.video-card::after {
  display: none !important;
}

.new-video .video-card,
.video-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
  outline: none !important;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  transition: transform 0.5s ease;
  -o-object-fit: cover;
  object-fit: cover;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 5;
}

.video-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #4287f5, #2e6fd3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(46, 111, 211, 0.3);
  z-index: 10;
}

.video-info {
  padding: 16px 20px;
}

.video-info h3 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  color: #aaaaaa;
  font-size: 0.9rem;
}

.video-meta span {
  display: flex;
  align-items: center;
}

.video-meta i {
  margin-right: 5px;
  font-size: 0.9rem;
}

/* Responsive styles for videos */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

/* Random Videos Section Styles */
/* Section deleted */

/* Project Page Download Button Styles */
.download-icon {
  font-size: 80px;
  color: #4287f5;
  background-color: rgba(66, 135, 245, 0.1);
  padding: 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
}

.download-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(66, 135, 245, 0.5);
  background-color: rgba(66, 135, 245, 0.2);
}

/* My Song Section Styles */
.songs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  padding: 15px 0;
}

.song-item {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  height: auto;
}

.song-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(40, 40, 40, 0.7);
  border-color: rgba(66, 135, 245, 0.3);
}

.song-item:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.song-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.song-info .artist {
  font-size: 0.9rem;
  color: #cccccc;
  margin: 0;
  font-weight: 400;
}

.song-info .released {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.85rem;
  color: #cccccc;
  font-weight: 400;
  background-color: rgba(66, 135, 245, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(66, 135, 245, 0.3);
}

.song-player {
  display: flex;
  align-items: center;
  gap: 15px;
}

.play-pause-btn {
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.play-pause-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.play-pause-btn i {
  font-size: 14px;
}

.song-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.song-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: height 0.2s ease;
}

.song-progress:hover {
  height: 7px;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4287f5, #8a2be2);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #aaaaaa;
  padding: 0 2px;
}

/* Media queries for My Song section */
@media (max-width: 768px) {
  .songs-container {
    padding: 10px;
  }

  .song-item {
    padding: 1.2rem;
  }

  .song-info h3 {
    font-size: 1.1rem;
  }

  .song-info .released {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .play-pause-btn {
    width: 32px;
    height: 32px;
  }

  .song-progress {
    height: 4px;
  }

  .song-progress:hover {
    height: 6px;
  }
}

.top-video-description {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%; /* Ensure consistent width */
  max-height: 2.4em; /* Limit height to 2 lines */
}

.top-video-info p {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nút Back to Top */
.back-to-top {
  position: fixed;
  bottom: 135px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  color: #ffffff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top i {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 80px;
    right: 20px;
  }

  .back-to-top i {
    font-size: 1.1rem;
  }
}

.keydrop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.skin-card {
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease; /* Thêm transition để có hiệu ứng mượt */
  border: 1px solid transparent; /* Để transition viền */
}

.skin-card:hover {
  box-shadow: 0 0 20px rgba(40, 40, 40, 0.7); /* Viền sáng vàng nhạt */
  transform: translateY(-4px); /* Nhẹ nhàng nâng thẻ lên một chút */
  border: 1px solid rgba(40, 40, 40, 0.7); /* Viền sáng */
}

/* Làm hình ảnh to lên khi hover */
.skin-card:hover .skin-img {
  transform: scale(1.1);
}

.skin-img-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.skin-img {
  max-height: 100%;
  max-width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
  -webkit-user-drag: none;
  user-drag: none;
}
.skin-price-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0;
}

.price {
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text; /* For Firefox */
  color: transparent;

  background-color: #1e1e1e;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
}

.received-time {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #888;
}

.skin-details {
  text-align: center;
}

.skin-type {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0;
}

.skin-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.skin-condition {
  font-size: 0.75rem;
  color: #777;
  margin: 0;
}

@media (max-width: 1200px) {
  .keydrop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .keydrop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .keydrop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.giveaway-bar {
  background-color: #111; /* Màu nền tối */
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.giveaway-info {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.giveaway-ticker {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  margin-left: 24px;
  height: 24px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%; /* Đẩy toàn bộ nội dung ra ngoài bên phải */
  animation: ticker-scroll 20s linear infinite;
}

.ticker-text {
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text; /* Firefox */
  color: transparent;

  font-size: 14px;
  font-weight: 500;
  padding-right: 60px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.stat-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
  padding: 20px 30px;
  border-radius: 12px;
  overflow-x: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  min-width: 180px;
  margin: 0 5px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
}

.stat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;

  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text; /* Firefox */
  color: transparent;
}

.stat-label {
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Section */
.game-accounts {
  background-color: #000;
}

/* Grid */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.account-card {
  width: 100%;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
  border-radius: 12px;
  padding: 15px 20px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Left (hình ảnh) */
.account-left {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.account-left img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Right (text) */
.account-right .game-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 0;
}

.account-right .server-name,
.account-right .game-id {
  font-size: 14px;
  margin: 0;
  color: #ccc;
}

/* Responsive */
@media (max-width: 992px) {
  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .accounts-grid {
    grid-template-columns: 1fr;
  }
}

.featured-games-section {
  padding: 20px;
}

.featured-games {
  padding: 20px;
}

.game-collection {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
}

.game-banner {
  position: relative;
  width: 100%;
  padding-top: 150%; /* 2:3 aspect ratio (height = 1.5 x width) */
  overflow: hidden;
  border-radius: 8px;
}

.game-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  -webkit-user-drag: none;
  user-drag: none;
}

.game-banner img:hover {
  transform: scale(1.05);
}

/**/
.profile-section {
  padding: 40px 20px;
}

.profile-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-image img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
  flex: 1;
  min-width: 250px;
}

.profile-name {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.profile-details {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
  font-size: 18px;
}

/**/
.youtube-members {
  text-align: center;
}

.youtube-members .title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ffffff;
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.member {
  width: 140px;
  text-align: center;
}

.member img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease, border-color 0.3s;
}

.member img:hover {
  transform: scale(1.1);
}

.member-name {
  margin-top: 6px;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Firefox */
  color: transparent;
}

/**/

.clrd-comment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #111;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  color: #fff;
}

.clrd-comment-left {
  flex-shrink: 0;
  align-items: center;
}

.clrd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
}

.clrd-comment-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clrd-comment-author {
  font-weight: bold;
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text; /* Firefox */
  color: transparent;
}

.clrd-comment-date {
  font-size: 0.85em;
  color: #aaa;
}

.clrd-comment-text {
  color: #fff;
  line-height: 1.4;
}

.clamp-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.clrd-comment-right {
  flex-shrink: 0;
  align-items: center; /* ✅ Link nằm giữa chiều dọc */
  height: 100%; /* Cho phép chiếm toàn chiều cao khối cha */
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clrd-comment-video-link {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.clrd-read-more {
  display: inline-block;
  background: none;
  border: none;
  color: #00aaff;
  font-size: 0.9em;
  cursor: pointer;
  padding: 4px 8px;
  margin: 6px auto 0;
  text-align: center;

  /* Thêm border nhẹ nếu muốn nổi bật hơn */
  border-radius: 4px;
  transition: background 0.2s;
}

.clrd-read-more:hover {
  background: rgba(0, 170, 255, 0.1);
}

.clrd-comment-text-wrapper {
  overflow: hidden;
  max-height: 66px; /* 3 dòng, giả sử mỗi dòng 22px */
  transition: max-height 0.4s ease;
  position: relative;
}

.clrd-comment-text-wrapper.expanded {
  max-height: 1000px; /* hoặc auto với JS hỗ trợ */
}

@media (max-width: 768px) {
  .clrd-comment-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .clrd-comment-left,
  .clrd-comment-center,
  .clrd-comment-right {
    width: 100%;
  }

  .clrd-comment-right {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

.giveaway-leaderboard {
  padding-top: 40px;
}

.leaderboard-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}

.leaderboard-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 300px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  padding: 8px 12px;
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
  justify-content: space-between;
  gap: 12px;
}

.left-group,
.middle-group,
.right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.left-group {
  min-width: 180px; /* căn đều tên + index */
}

.middle-group {
  min-width: 160px; /* giữ cột "Last Win" không bị lệch */
  justify-content: center;
}

.right-group {
  min-width: 150px;
  justify-content: flex-end;
}

/* Đảm bảo phần tên không bị đè */
.host-name {
  display: flex;
  align-items: center;
}

.index {
  font-weight: bold;
}

.host-x {
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;	
  font-weight: bold;
}
.leaderboard-row span {
  padding: 0 0px;
  white-space: nowrap;
}

.project-showcase {
	padding-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cột cố định */
  gap: 30px;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
}

.project-info {
  padding: 10px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 0.95rem;
}

.project-details li {
  margin-bottom: 5px;
}

.project-link {
  display: inline-block;
  padding: 8px 14px;
  background-color: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.project-link:hover {
  background-color: #444;
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.creator-section {
  margin-bottom: 60px;
  text-align: center;
}

.collab-cover {
  width: 100%;
  height: 200px; /* bạn có thể điều chỉnh chiều cao */
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px; /* tạo khoảng cách với phần header bên dưới */
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.collab-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* giúp ảnh co giãn mà không bị méo */
  border-radius: 20px;
  -webkit-user-drag: none;
  user-drag: none;
}

.collab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(ellipse at top left, #1a1a1f 0%, #121214 100%);
  padding: 20px 30px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 16px rgba(255,255,255,0.05);
}

.collab-header-left {
  display: flex;
  align-items: center;
  gap: 16px;  /* Khoảng cách giữa avatar và phần name-social */
}

.collab-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00f0ff;
  box-shadow: 0 0 10px #00f0ff80;
  -webkit-user-drag: none;
  user-drag: none;
}

.name-collab {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.collab-socials {
  display: flex;
  gap: 14px;
}

.collab-socials a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #333;
  color: white;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.collab-socials a:hover {
  background-color: #555;
}

.collab-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.video-collab-count {
  font-size: 16px;
  color: white;
}

.playlist-link a {
  display: inline-block;
  background: linear-gradient(45deg, #4287f5, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.playlist-link a:hover {
  background-color: #333;
}

.video-collab-list {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin:20px 0px;
  flex-wrap: wrap;
}

.video-collab-card {
  flex: 1 1 calc(33.333% - 10.7px); /* 3 cột, trừ gap */
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-collab-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-collab-card p {
  font-size: 0.9rem;
  padding: 8px 10px;
  color: #fff;
  text-align: center;
}

@media (max-width: 768px) {
  .video-collab-card {
    flex: 1 1 100%;
  }
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
	margin-right: 20px;
    padding-bottom: 20px;
}

.language-switcher img {
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.language-switcher img:hover {
    transform: scale(1.1);
}