.game {
  position: absolute;
  color: white;

  transform: scale(1.8);
  z-index: 3;
  font-family: Arial, Helvetica, sans-serif;
}
.fade {
  position: absolute;
  background: linear-gradient(to bottom, #1d1d1d, #1d1d1d5d, rgba(39, 39, 39, 0));
  width: 300px;
  height: 150px;
  border-radius: 15px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  width: 85vw;
  margin: 1rem auto;
}

.bg,
.overlay {
  text-align: center;
}

img,
.overlay {
  transition: 0.3s all;
}

.day {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.hello img {
  width: 100%;
  transition: 0.5s all ease-in-out;
}

.hello:hover img {
  transform-origin: top;
  transform: scale(1.1);
}

.topnav {
  overflow: hidden;
  position: fixed;
  z-index: 5;
  display: none;
  border-radius: 30px;
  background-color: #333;
}

p {
  transition: 0.5s;
}

.topnav p {
  float: left;
  color: #f2f2f2;
  text-align: center;

  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.ImageForGame {
  border-radius: 15px;
  width: 180px;
  opacity: 0;

  height: 180px;
  transition: 0.5s;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.725);
}
.ImageForGame:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 2px 2px rgba(54, 54, 54, 0.725);
}
@keyframes scroll {
  0% {
    top: 10px;
    transform: translate(-50%) scale(1);
    opacity: 1;
  }
  50% {
    top: 10px;
    transform: translate(-50%) scale(1.3);
    opacity: 0;
  }
  100% {
    top: -50%;
    opacity: 0;
  }
}
@keyframes scroll2 {
  0% {
    top: -50%;
    opacity: 0;
  }
  45% {
    top: 10px;
    opacity: 0;
  }
  50% {
    top: 10px;
    transform: translate(-50%) scale(1.2);
    opacity: 0;
  }
  100% {
    top: 10px;
    transform: translate(-50%) scale(1);
    opacity: 1;
  }
}
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(146, 145, 145, 0.378);
  border-radius: 20px;
}

::-moz-scrollbar {
  width: 8px;
}

::-moz-scrollbar-track {
  background-color: transparent;
}
::-moz-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner,
::-moz-scrollbar-track-piece {
  background-color: transparent;
}

@keyframes OpenLang {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes CloseLang {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
}
.openLang {
  animation: OpenLang 0.8s;
  transform-origin: center;
}
.closeLang {
  animation: CloseLang 0.8s;
  transform-origin: center;
  opacity: 0;
  visibility: hidden;
}

@keyframes showalert {
  from {
    transform: translateX(-50%) translateY(-20%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0%);
    opacity: 1;
  }
}
@keyframes hidealert {
  from {
    transform: translateX(-50%) translateY(0%);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-20%);
    opacity: 0;
  }
}

::-webkit-scrollbar-track-piece {
  border-radius: 15px;
}

body {
  background: rgb(35, 35, 35);

  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img {
  margin: 10px;
  position: relative;
  z-index: 1;
}

.header {
  position: relative;
  z-index: 1;
  padding: 60px;
  text-align: center;
  /*background: linear-gradient(to bottom right, #9a9a9a, rgb(39, 39, 39)); */
  background: rgb(55, 53, 53);
  color: white;
  width: auto;
  font-size: 30px;

  font-family: Arial, Helvetica, sans-serif;
  border-radius: 0px 0px 15px 15px;
}

#pickforme:hover #icon {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

#pickforme:hover #tooltipText {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

#pickforme:hover {
  width: 120px !important;
}

#pickforme {
  width: 40px !important;
}

.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: max-content;
  max-width: 65%;
  left: 50%;
  z-index: 500;
  transform: translateX(-50%);
  margin-bottom: 20px;
  margin-top: 10px;
}
@media screen and (max-width: 680px) {
  .group {
    width: 100%;
    min-width: max-content;
    max-width: 80%;
    margin-left: 15px;
    margin-right: 15px;
    left: 0;
    transform: translateX(0%);
  }
}
.input {
  height: 40px;
  line-height: 28px;
  padding: 0 1rem;
  width: 80%;

  padding-left: 2.5rem;
  border: 2px solid transparent;
  border-radius: 8px;

  outline: none;
  background-color: #3d3d3d;
  color: #ffffff;
  box-shadow: 0 0 5px #474747, 0 0 0 10px #9e9e9e00;
  transition: 0.3s ease;
}

.input::placeholder {
  color: #ffffff;
  text-align: center;
}

.icon {
  position: absolute;
  left: 1rem;
  fill: #ffffff;
  width: 1rem;
  height: 1rem;
}

@keyframes show {
  from {
    transform: scale(1.1);
    opacity: 0 !important;
  }

  to {
    transform: scale(1);
    opacity: 1 !important;
  }
}

.box {
  opacity: 0;
  transition: 0.5s;
}

.show {
  animation: show 0.5s;
  opacity: 1 !important;
}

.showIMG {
  opacity: 1 !important;
}

#TEST3 {
  width: 80%;
  transition: 0.5s;
}
#TEST3:hover {
  box-shadow: 0px 0px 8px #4d4d4d !important;
}

.select {
  width: fit-content;
  cursor: pointer;
  position: relative;

  transition: 300ms;
  color: white;
}

.selected {
  background-color: #363636;
  padding: 5px;
  margin-left: 10px;
  padding-right: 10px;
  margin-bottom: 3px;
  width: 150px;
  border-radius: 5px;
  position: absolute;
  z-index: 400;
  font-size: 15px;
  top: -19px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrow {
  position: relative;
  right: 0px;
  height: 10px;
  transform: rotate(-90deg);
  width: 25px;
  fill: white;
  z-index: 100000;
  transition: 300ms;
}

.options {
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  padding: 5px;

  background-color: #363636ad;
  position: absolute;
  top: 10px;
  margin-top: 20px;
  margin-left: 8px;
  height: 100px;
  overflow-y: scroll;
  opacity: 0;
  transition: 300ms;
}

.select:hover > .options {
  opacity: 1;
  top: 0;
}

.select:hover > .selected .arrow {
  transform: rotate(0deg);
}

.option {
  border-radius: 5px;
  padding: 5px;
  transition: 300ms;
  background-color: #1d1d1dd0;
  width: 150px;
  margin-bottom: 3px;
  font-size: 15px;
}
.option:hover {
  background-color: #414141;
}

.options input[type='radio'] {
  display: none;
}

.options label {
  display: inline-block;
}
.options label::before {
  content: attr(data-txt);
}

.options input[type='radio']:checked + label {
  display: none;
}

.options input[type='radio']#all:checked + label {
  display: none;
}

.select:has(.options input[type='radio']#all:checked) .selected::before {
  content: attr(data-default);
}
.select:has(.options input[type='radio']#option-1:checked) .selected::before {
  content: attr(data-one);
}
.select:has(.options input[type='radio']#option-2:checked) .selected::before {
  content: attr(data-two);
}
.select:has(.options input[type='radio']#option-3:checked) .selected::before {
  content: attr(data-three);
}
.select:has(.options input[type='radio']#option-4:checked) .selected::before {
  content: attr(data-four);
}
.select:has(.options input[type='radio']#option-5:checked) .selected::before {
  content: attr(data-five);
}
.select:has(.options input[type='radio']#option-6:checked) .selected::before {
  content: attr(data-six);
}
.select:has(.options input[type='radio']#option-7:checked) .selected::before {
  content: attr(data-seven);
}
.select:has(.options input[type='radio']#option-8:checked) .selected::before {
  content: attr(data-eight);
}
.select:has(.options input[type='radio']#option-9:checked) .selected::before {
  content: attr(data-nine);
}
.select:has(.options input[type='radio']#option-10:checked) .selected::before {
  content: attr(data-ten);
}
.select:has(.options input[type='radio']#option-11:checked) .selected::before {
  content: attr(data-eleven);
}

.ipAR {
  transition: 0.5s;
}
.ipAR:hover {
  transform: scale(1.2) !important;
}

.header-ad {
  display: none;
}

@media (min-width: 1200px) {
  .header-ad {
    display: block;
  }
}

@media (max-width: 1200px) {
  .youtube-header {
    justify-content: space-between;
  }
}

#TopMenu {
  box-shadow: 0px 0px 7px rgb(19, 19, 19);
  top: 10px;
  border-radius: 15px 15px 15px 15px;
  z-index: 7;
  position: fixed;
  overflow-y: hidden;
  left: 10px;
  right: 10px;
  background-color: #1d1d1d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 1024px) {
  #TopMenu {
    right: 300px;
  }
}
.split {
  display: flex;
  width: 100%;
  position: relative;
}
.split-left {
  flex: 1;
  width: 100%; /* Default to full width */
}
.sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .sidebar {
    display: block;
    flex: 0 0 300px;
    background-color: #141414;
    border-left: 1px solid #3a3a3a;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    z-index: 101;
  }
  .sidebar .wrapper {
    position: sticky;
    top: 0;
    height: 100%;
  }
  /* Adjust split-left width only at 1024px+ */
  .split-left {
    width: calc(100% - 300px);
  }
}

@media (max-width: 1023px) {
  /* Hide right sidebar on smaller screens */
  .sidebar {
    display: none;
  }

  /* Let header and categories span full width on smaller screens */
  .site-header,
  .categories-container {
    right: 0;
  }
}

@media (max-width: 1023px) {
  .split-left {
    width: 100%;
  }
}

@keyframes menuM {
  0% {
    border: solid gray 3px;
  }
  50% {
    border: solid rgb(13, 13, 13) 3px;
  }
  100% {
    border: solid gray 3px;
  }
}

.MenuIt {
  position: relative;
  display: inline-block;
  margin-top: 5px;
  padding: 10px;
  border-radius: 10px;
  height: 75px;
  width: 90%;
  color: #000;

  left: 50%;
  transform: translateX(-50%);
  border: solid 2px rgb(31, 31, 31);
  box-shadow: 0px 0px 8px black;
  background: linear-gradient(to bottom left, rgba(131, 131, 131, 0.801), transparent);
  overflow: hidden;
  transition: 0.8s;
}

.MenuIt:hover {
  background-color: #565656;
  transform: translateX(-50%);
}
.MenuIt h1 {
  font-size: 21px !important;
}

.iconsmenu {
  color: white;
  position: absolute;
  transform: rotate(-16deg) translateY(-50%) scale(3);
  right: 20px;
  top: 50%;
  color: rgba(255, 255, 255, 0.158);
}

@keyframes SLMenu {
  from {
    right: 10px;
    transform: translateY(-50%);
    opacity: 1;
  }
  to {
    right: -310px;
    transform: translateY(-50%);
    opacity: 0;
  }
}

@keyframes SLMenu2 {
  from {
    right: -310px;
    transform: translateY(-50%);
    opacity: 0;
  }
  to {
    right: 10px;
    transform: translateY(-50%);
    opacity: 1;
  }
}

.SlSlide {
  animation: SLMenu 0.5s !important;
}

.SlSlideIn {
  animation: SLMenu2 0.5s !important;
}

@keyframes medal {
  0% {
    left: -500px;
  }
  20% {
    left: -1px;
  }
  50% {
    left: -1px;
  }
  70% {
    left: -1px;
  }
  90% {
    opacity: 1;
    left: -1px;
  }
  100% {
    opacity: 0;
    left: -500px;
  }
}

.textover {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 80% !important;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 15px;
  background-color: #191919db;
  color: rgb(255, 255, 255) !important;
  font-weight: bold;
  text-align: center;
  font-size: 15px;
  padding: 3px 4px 4px 3px;
}

.notice-box-wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;

  z-index: 800;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  visibility: hidden;
}

.notice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #222;
  color: white;
  padding: 10px 15px;

  border-radius: 15px;
  box-shadow: 0px 0px 10px rgb(0, 0, 0);
  cursor: pointer;
  animation: slideUp 0.5s ease forwards 2s;
}

.svg-placeholder {
  margin-top: 3px;
  margin-right: 10px;
}

.notice-content {
  font-size: 16px;
  line-height: 1.2;
  flex-grow: 1;
}

.notice-content strong {
  display: block;
  font-weight: bold;
  color: white;
}

.notice-content span {
  display: block;
  font-weight: normal;
  color: #ccc;
}

.icon-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  width: 24px;
  height: 24px;
}

.icon-button:hover {
  color: #aaa;
}

@keyframes slideUp {
  0% {
    transform: translateY(200%);
    visibility: visible;
  }
  100% {
    transform: translateY(0);
    visibility: visible;
  }
}

.Discord {
  transition: 0.5s !important;
  fill: rgb(255, 255, 255);
}

.Discord:hover {
  fill: #7785cc !important;
  box-shadow: 0px 0px 8px rgb(0, 0, 0);
}

.featgameit {
  min-width: 200px;
  flex: 0 0 auto;
  float: left;
  top: 50%;
  transform: translateY(-50%);
  position: relative;
  height: 155px !important;
  width: 265px !important;

  background-color: #161616;
  border-radius: 15px;
  margin-right: 15px;
  cursor: pointer;
  transition: 0.8s;
  max-width: 265px !important;
}
.featgameit p {
  width: fit-content;
  font-size: 15px;
}

.featgameit:hover {
  transform: translateY(-50%);
  filter: brightness(70%);
}

.text {
  color: rgb(202, 202, 202);
  font-size: 18px;
  margin: 0 15px;
  opacity: 0;
  opacity: 1;
  transform: translateY(0px);
}

@keyframes fadeInMove {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInMovetxt {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* YouTube-style header */
.youtube-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #212121;
  height: 56px;
  padding: 0 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.left-section {
  display: flex;
  align-items: center;
}

.menu-icon {
  cursor: pointer;
  font-size: 24px;
  color: white;
  margin-right: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  color: white;
  font-size: 18px;
  margin-left: 8px;
  font-family: 'Roboto', Arial, sans-serif;
}

.right-section {
  display: flex;
  align-items: center;
}

.Discord {
  width: 24px;
  height: 24px;
  fill: white;
  margin-right: 16px;
  cursor: pointer;
}

.account-icon {
  cursor: pointer;
  font-size: 24px;
  color: white;
}

/* YouTube Layout */
.youtube-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--sidebar-bg-color);
  width: 100%;
  max-width: 100%;
  padding-top: 112px; /* Increased to accommodate header + categories */
}

/* YouTube Sidebar */
.youtube-sidebar {
  width: 220px; /* Default Expanded Width */
  background-color: var(--sidebar-bg-color);
  overflow-y: auto;
  position: fixed;
  top: 56px; /* Start below header ONLY */
  bottom: 0;
  left: 0;
  padding: 0;
  z-index: 99;
  transition: width 0.2s ease;
}

/* Styles for when JS adds .collapsed class */
.youtube-sidebar.collapsed {
  width: 60px;
  overflow: visible; /* Keep hover behavior */
}
.youtube-sidebar.collapsed:hover {
  width: 220px;
}

.sidebar-logo {
  display: none; /* Hide since it's moved to header */
}

.sidebar-item {
  display: flex;
  align-items: center;
  height: 48px; /* Fixed height for all items */
  padding: 0 12px 0 24px;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s ease;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.sidebar-item:hover {
  background-color: #383838;
}

.sidebar-item.active {
  background-color: #383838;
  font-weight: bold;
}

.collapsed .sidebar-item {
  padding-left: 18px;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
}

.sidebar-item .material-icons {
  margin-right: 24px;
  font-size: 22px;
  min-width: 24px;
}

.collapsed .sidebar-item .material-icons {
  margin-right: 0;
}

.sidebar-text {
  font-size: 14px;
  color: white;
  text-decoration: none;
  flex: 1;
  transition: opacity 0.1s ease;
  white-space: nowrap;
}

.sidebar-item a {
  color: white;
  text-decoration: none;
}

.collapsed .sidebar-text {
  display: none;
}

.collapsed:hover .sidebar-text {
  display: inline;
}

.collapsed:hover .sidebar-item {
  padding: 0 12px 0 24px;
  justify-content: flex-start;
}

.collapsed:hover .sidebar-item .material-icons {
  margin-right: 24px;
}

/* YouTube Main Content */
.youtube-main {
  flex: 1;
  padding: 16px;
  padding-top: 0;
  margin-left: 220px; /* Default Expanded Margin */
  background-color: var(--main-bg-color);
  min-height: 100%;
  border-left: 1px solid var(--border-color);
  max-width: calc(100% - 220px); /* Default Expanded Max Width */
  transition: margin-left 0.2s ease, max-width 0.2s ease;
}

/* Style for when JS adds .collapsed-sidebar to layout */
.collapsed-sidebar .youtube-main {
  margin-left: 60px;
  max-width: calc(100% - 60px);
}

/* Hide original sticky header in main content */
.sticky-header {
  display: none;
}

/* Featured section adjustments */
.featured-section {
  margin-top: 16px;
}

/* Show expanded sidebar at 1536px+ */
/* Base styles handle this, no specific rule needed here */

/* Maintain collapsed sidebar at smaller screens */
@media (max-width: 1535px) {
  /* Default state for smaller screens */
  .youtube-sidebar {
    width: 60px; /* Default collapsed width */
  }

  .youtube-main {
    margin-left: 60px; /* Default collapsed margin */
    max-width: calc(100% - 60px); /* Default collapsed max-width */
  }

  .sidebar-item {
    padding: 0;
    justify-content: center;
  }

  .sidebar-item .material-icons {
    margin-right: 0;
  }

  .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none; /* Ensure text is hidden */
  }

  /* Keep Hover expansion rules */
  .youtube-sidebar:hover {
    width: 220px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .youtube-sidebar:hover .sidebar-item {
    padding: 0 12px 0 18px; /* Adjust padding on hover */
    justify-content: flex-start;
  }

  .youtube-sidebar:hover .sidebar-item .material-icons {
    margin-right: 24px;
  }

  .youtube-sidebar:hover .sidebar-text {
    opacity: 1;
    width: auto;
    overflow: visible;
    display: inline;
  }
}

/* Adjustments for JS Toggle on Large Screens */
@media (min-width: 1536px) {
  /* Styles for when JS explicitly adds .collapsed */
  .youtube-sidebar.collapsed {
    width: 60px;
  }
  /* .collapsed-sidebar .youtube-main is handled globally */

  .youtube-sidebar.collapsed .sidebar-text {
    /* Hide text when explicitly collapsed */
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
  }
  .youtube-sidebar.collapsed .sidebar-item {
    padding: 0;
    justify-content: center;
  }
  .youtube-sidebar.collapsed .sidebar-item .material-icons {
    margin-right: 0;
  }

  /* Keep hover expansion when explicitly collapsed */
  .youtube-sidebar.collapsed:hover {
    width: 220px;
  }
  .youtube-sidebar.collapsed:hover .sidebar-text {
    opacity: 1;
    width: auto;
    overflow: visible;
    display: inline;
  }
  .youtube-sidebar.collapsed:hover .sidebar-item {
    padding: 0 12px 0 24px;
    justify-content: flex-start;
  }
  .youtube-sidebar.collapsed:hover .sidebar-item .material-icons {
    margin-right: 24px;
  }
}

/* Site header - limit width to exclude right sidebar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Default to full width */
  height: 56px;
  background-color: var(--sidebar-bg-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
  .site-header {
    right: 300px; /* Adjust for sidebar at 1024px+ */
  }
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header img {
  width: 30px;
  height: 30px;
  margin: 0 8px 0 0;
}

.site-header h1 {
  color: white;
  font-size: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}

.menu-toggle {
  margin-right: 16px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 0;
}

/* Header search */
.header-search {
  flex: 1;
  margin: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container {
  display: flex;
  width: 100%;
  max-width: 600px;
}

.youtube-search {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #303030;
  background-color: #121212;
  color: white;
  font-size: 16px;
  border-radius: 2px 0 0 2px;
  width: 100%;
}

.search-button {
  width: 64px;
  height: 40px;
  background-color: #323232;
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button .material-icons {
  color: #aaa;
}

/* Categories bar - limit width to exclude right sidebar */
.categories-container {
  position: fixed;
  top: 56px;
  left: 220px;
  right: 0; /* Default to full width */
  background-color: var(--sidebar-bg-color);
  padding: 12px 0;
  z-index: 98;
  border-bottom: 1px solid var(--border-color);
  transition: left 0.2s ease;
}

@media (min-width: 1024px) {
  .categories-container {
    right: 300px; /* Adjust for sidebar at 1024px+ */
  }
}

/* Adjust category container when sidebar is collapsed */
.collapsed-sidebar .categories-container {
  left: 60px;
}

.category-chips {
  display: flex;
  overflow-x: auto;
  margin: 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 40px;
  align-items: center;
  justify-content: flex-start;
}

.category-chip {
  flex-shrink: 0;
  padding: 8px 12px;
  margin-right: 12px;
  background-color: #303030;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.category-chip:hover {
  background-color: #4d4d4d;
}

.category-chip.active {
  background-color: white;
  color: black;
}

/* Featured Section */
.featured-section {
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.featured-header {
  margin-bottom: 16px;
}

.featured-title h1 {
  font-size: 20px;
  margin: 0;
  color: white;
  padding-bottom: 8px;
}

.featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.featured-game {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  transition: transform 0.3s ease;
  background-color: var(--card-bg-color);
  cursor: pointer;
  border: 1px solid var(--card-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--card-hover-border);
}

.featured-game a {
  display: block;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.featured-game-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.featured-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  margin: 0;
}

.featured-game-info {
  padding: 8px 5px;
  background-color: var(--card-bg-color);
  transition: transform 0.3s ease;
}

.featured-game:hover .featured-game-info {
  transform: translateY(-3px);
}

.featured-game-info h3 {
  font-size: 12px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

/* YouTube Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Game Card Styles - Updated to match Roblox */
.game-card {
  background-color: var(--card-bg-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--card-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--card-hover-border);
}

.game-card a {
  color: white;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  margin: 0;
}

.game-card:hover img {
  filter: brightness(0.9);
  transform: scale(1.02);
}

.game-info {
  padding: 8px 5px;
  background-color: var(--card-bg-color);
  transition: transform 0.3s ease;
}

.game-card:hover .game-info {
  transform: translateY(-3px);
}

.game-info h3 {
  font-size: 12px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

/* Hide category badges and other elements */
.game-category-badge,
.popular-badge {
  display: none;
}

/* Responsive Adjustments */
@media (min-width: 1600px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 479px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }

  .game-info h3,
  .featured-game-info h3 {
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  .youtube-sidebar {
    width: 60px;
  }

  .sidebar-text,
  .sidebar-logo h1 {
    display: none;
  }

  .sidebar-item {
    padding: 16px 0;
    justify-content: center;
  }

  .sidebar-item .material-icons {
    margin-right: 0;
    margin-bottom: 4px;
  }

  .youtube-main {
    margin-left: 60px;
    padding: 16px;
    padding-top: 0;
  }

  .sidebar-logo {
    display: flex;
    justify-content: center;
    padding: 16px 0;
  }

  .sidebar-logo img {
    margin: 0;
  }

  .sticky-header {
    margin: 0 -16px 24px -16px;
    width: calc(100% + 32px);
  }
}

@media (max-width: 768px) {
  .youtube-sidebar {
    width: 60px;
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 99;
    transform: none;
    display: block;
    background-color: var(--sidebar-bg-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .sidebar-text {
    display: none;
  }

  .sidebar-item {
    justify-content: center;
    padding: 12px 0;
  }

  .sidebar-item .material-icons {
    margin-right: 0;
  }

  .youtube-main {
    margin-left: 60px;
    width: calc(100% - 60px);
  }

  /* Update the rest of the mobile styles */
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .game-info h3,
  .featured-game-info h3 {
    font-size: 13px;
  }

  .sticky-header {
    padding: 12px 16px 0;
  }

  .search-container {
    margin-bottom: 12px;
  }

  /* Adjust categories container to account for sidebar */
  .categories-container {
    left: 60px;
  }

  /* Hide mobile menu toggle since we're showing sidebar all the time */
  .mobile-menu-toggle {
    display: none;
  }

  /* Add to existing media query */
  .site-header {
    left: 60px; /* Leave space for sidebar */
    padding-left: 10px; /* Adjust padding */
  }
}

@media (max-width: 600px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .game-info,
  .featured-game-info {
    padding: 8px 5px;
  }

  .game-info h3,
  .featured-game-info h3 {
    font-size: 12px;
  }

  .sticky-header {
    padding: 10px 10px 0;
  }

  .search-container {
    max-width: 100%;
  }

  .youtube-main {
    padding: 16px;
  }

  .category-chips {
  }

  .category-chip {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.mobile-menu-toggle {
  display: none;
  color: white;
  cursor: pointer;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  background-color: rgba(33, 33, 33, 0.8);
  padding: 8px;
  border-radius: 50%;
  z-index: 100;
}

/* Thumbnail Container - ensure image edges are smooth */
.thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* Improve category and info visibility */
.game-info,
.featured-game-info {
  padding: 8px 5px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-info,
.featured-game:hover .featured-game-info {
  transform: translateY(-3px);
}

/* Common Card Styles - For both regular and featured game cards */
.game-card,
.featured-game {
  background-color: var(--card-bg-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--card-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.game-card:hover,
.featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--card-hover-border);
}

.game-card a,
.featured-game a {
  color: white;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.thumbnail-container,
.featured-game-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.game-card img,
.featured-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  margin: 0;
}

.game-card:hover img,
.featured-game:hover img {
  filter: brightness(0.9);
  transform: scale(1.02);
}

.game-info,
.featured-game-info {
  padding: 8px 5px;
  padding: 12px 8px;
  background-color: var(--card-bg-color);
  transition: transform 0.3s ease;
}

.game-card:hover .game-info,
.featured-game:hover .featured-game-info {
  transform: translateY(-3px);
}

.game-info h3,
.featured-game-info h3 {
  font-size: 12px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

/* YouTube Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Featured Section */
.featured-section {
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

/* Common borders and colors */
:root {
  --main-bg-color: #1e1e1e;
  --sidebar-bg-color: #141414;
  --border-color: #3a3a3a;
  --card-bg-color: #2a2a2a;
  --card-border-color: #404040;
  --card-hover-border: #4a4a4a;
}

/* Initial state for Material Icons to prevent FOUT */
.material-icons {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* State when font is loaded */
body.material-icons-loaded .material-icons {
  opacity: 1;
}

/* Mobile optimizations for game cards */
@media (max-width: 767px) {
  .game-card,
  .featured-game {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .game-info,
  .featured-game-info {
    padding: 6px 4px;
  }

  /* Simpler hover effects for touch devices */
  .game-card:hover,
  .featured-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }

  .game-card:hover img,
  .featured-game:hover img {
    transform: scale(1.01);
  }

  .game-card:hover .game-info,
  .featured-game:hover .featured-game-info {
    transform: translateY(-2px);
  }
}

/* Extra small screens */
@media (max-width: 359px) {
  .youtube-grid,
  .featured-games {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .game-info h3,
  .featured-game-info h3 {
    font-size: 10px;
  }
}

/* Mobile optimizations for main content area */
@media (max-width: 767px) {
  .youtube-main {
    padding: 12px 10px;
    padding-top: 0;
  }

  .featured-section {
    margin-bottom: 16px;
  }

  .featured-title h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  /* Optimize for touch - increase tap targets */
  .sidebar-item {
    height: 56px;
  }

  .sidebar-item .material-icons {
    font-size: 24px;
  }

  /* Allow horizontal scrolling for category chips */
  .category-chips {
    margin: 0 8px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .category-chip {
    padding: 6px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}
