body {
  margin: 0%;
  font-family: Arial, sans-serif;
  background-color: black;
}

.page {
  border: 1px solid rgba(255, 255, 255, 0.151);
  /*border color with transparency*/
  min-height: 100vh;
  /* Full height of the viewport */
  width: 95%;
  padding: 20px;
  margin: 0 auto;
  background-color: black;
  color: white;
  text-align: justify;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers content horizontally when flex-direction is column */
  justify-content: flex-start;
  /* Aligns content to the top vertically */
  position: relative;
  overflow: hidden;
}

.page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.151);
  /*border color with transparency*/
  min-width: 95%;
  padding: 0px;
  margin-top: 0px;
  margin-left: 0%;
  background-color: black;
  color: white;
  text-align: justify;
}

.page-heading {
  margin-top: 1%;
  margin-left: 0%;
  color: white;
  text-align: justify;
  font-family: "orbitron", sans-serif;
  font-weight: bold;
  font-size: 30px;
}

.page-content {
  width: 95%;
  padding-left: 0px;
  padding-top: 1%;
  margin-left: 0%;
  background-color: black;
  color: white;
  text-align: justify;
}

.content-text {
  margin-top: 0px;
  margin-left: 10%;
  margin-right: 10%;
  padding: 0px;
  font-size: 16px;
  font-family: "Saira", sans-serif;
}

.content-heading {
  margin-top: 0px;
  margin-left: 10%;
  margin-right: 10%;
  padding: 0px;
  font-size: 17px;
  font-family: "Saira", sans-serif;
  font-weight: bold;
  text-decoration: underline;
}

.form-labels {
  font-family: "Saira", sans-serif;
}

.form-button {
  background-color: #fefe00;
  color: #1a1a1a;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

#homepage {
  display: block;
}

#memberspage,
#contentpage,
#newspage,
#shoppage,
#aboutuspage,
#joinuspage,
#privacypage,
#termsconditionspage {
  display: none;
  /* Hide all other pages by default */
}

.navbar {
  list-style-type: none;
  margin: 0%;
  padding: 0%;
  background-color: black;
  /* Background color of the navbar */
  border-bottom: 1px solid;
  border-color: rgba(255, 255, 255, 0.151);
  /*border color with transparency*/
  display: flex;
  /* Flexbox for containers*/
  align-items: center;
  /* Center items vertically */
  height: 60px;
  width: auto;
}

.navbar-logo {
  height: 50%;
  width: auto;
  margin-left: 10px;
  margin-right: 15px;
}

.navbar li {
  padding: 0%;
}

.navbar li a {
  font-family: "Audiowide", sans-serif;
  display: block;
  color: white;
  text-align: center;
  padding: 20px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

/* NEW: Styles for the active navigation tab */
.navbar li a.active {
  color: #fefe00;
}

/* NEW: Make the line visible when the tab is active */
.navbar li a.active::after {
  transform: translateX(-50%) scaleX(1);
  /* Show the line for active tab */
}

/*Short centered hover line*/
.navbar li a::after {
  content: "";
  position: absolute;
  bottom: 0;

  /*centering the line*/
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: bottom center;

  width: 15px;
  /*Length of the line*/
  height: 2px;
  /*Thickness of the line*/
  background-color: #fefe00;
  /*Color of the line*/

  transition: transform 0.3s ease-in-out;
}

/*On hover, animation*/
.navbar li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/*Style for Account button*/
.account-menu {
  position: relative;
  display: flex;
  list-style-type: none;
  margin: 0%;
  padding: 0%;
  margin-left: auto;
  /*Push the Join Us button to the right*/
}

.account-menu-svg {
  width: 27px;
  height: 27px;
  fill: #ffffff;
  stroke: #ffffff;
}

.account-menu:hover svg {
  fill: #fefe00;
  /* Change color on hover */
  stroke: #fefe00;
  /* Change stroke color on hover */
}

.navbar li.account-menu a.active .account-menu-svg {
  fill: #fefe00;
  stroke: #fefe00;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #222;
  border: 1px solid #fefe00;
  border-radius: 6px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
  flex-direction: column;
}

.account-dropdown a {
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-family: "Saira", sans-serif;
  transition: background 0.2s;
}

.account-dropdown a:hover {
  background: #333;
  color: #fefe00;
}

/*Renaissance Image*/
.homepage-img-container {
  max-height: 500px;
  width: 95%;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.151);
  /*border color with transparency*/
  max-width: 1920px;
}

.homepage-img-container img {
  max-width: 100%;
  max-height: 500px;
  display: block;
  margin: 0 auto 15px auto;
}

.bottom-div {
  width: 95%;
  padding: 20px;
  margin: 0 auto;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.151);
  /*border color with transparency*/
  max-height: 200px;
}

.bottom-div-grid {
  max-width: 80%;
  width: 100%;
  margin: 0 auto;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  position: relative;

  /*Layout inside the grid*/
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  /* 1.5fr for the first column, 3 equal columns after that */
  gap: 20px;
  align-items: start;
  /* Align items to the start of the grid cell */
  font-size: 0.9em;
}

.grid-col {
  padding: 0 10px;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.grid-logo {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 5px;
  width: 10px;
  /* Set initial size for SVG */
  height: 10px;
  /* Set initial size for SVG */
  fill: #fefe00;
  /* Initial color (e.g., light gray with transparency) */
  transition: fill 0.3s ease, transform 0.2s ease;
  /* Smooth transition for color and scale */
}

.social-icon {
  width: 25px;
  /* Controls the size of the SVG */
  height: 25px;
  /* Controls the size of the SVG */
}

.youtube-icon:hover {
  fill: #ff0000;
  /* YouTube red */
  transform: scale(1.1);
  /* Slightly enlarge on hover */
}

.facebook-icon:hover {
  fill: #1877f2;
  /* Facebook blue */
  transform: scale(1.1);
  /* Slightly enlarge on hover */
}

.instagram-icon:hover {
  fill: #e4405f;
  /* Instagram pink/red */
  transform: scale(1.1);
  /* Slightly enlarge on hover */
}

.grid-heading {
  color: white;
  font-weight: bold;
  margin-bottom: 15px;
  padding-top: 0%;
  font-family: "orbitron", sans-serif;
}

.grid-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.grid-links li {
  margin-bottom: 10px;
}

.grid-links li a {
  color: rgba(255, 255, 255, 0.37);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Saira", sans-serif;
}

/* Container for text and arrow*/
.hover-container {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/*Hover Arrow*/
.hover-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 0.5rem;
  font-weight: bold;
}

/*On hover, arrow appears*/
.hover-container:hover .hover-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hover-container:hover {
  color: #ffffff;
  /* Change text color on hover */
}

/*Responsive Adjustments of Grid*/
@media (max-width: 768px) {
  .bottom-div-grid {
    grid-template-columns: 1fr 1fr;
    /* Two equal columns on smaller screens */
  }

  .logo-section {
    grid-column: span 2;
    /* Logo section spans two columns */
    align-items: center;
    /* Center logo section */
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .bottom-div-grid {
    grid-template-columns: 1fr;
    /* Single column on very small screens */
  }

  .logo-section {
    grid-column: span 1;
  }
}

/* Styles for the Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,
      minmax(200px, 1fr));
  /* Responsive grid columns */
  gap: 20px;
  /* Space between tiles */
  padding: 20px;
  align-items: start;
  /* Align items to the top of their cells */
  width: 95%;
  margin: 0 auto;
  z-index: 1;
}

/* Styles for individual Member Tiles */
.member-tile {
  background-color: #1a1a1a;
  /* Darker background for tiles */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  /* Ensures image corners are rounded */
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  /*removed part in notepad*/
  width: 100%;
  /* Make sure it takes full grid column width */
  padding-bottom: 100%;
  /* This creates a square aspect ratio based on width */
  position: relative;
  /* Make member-tile the positioning context for its content */
  box-sizing: border-box;
  z-index: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, z-index 0s 0.4s;
  /* Z-index returns after the main animation */
}

.member-tile:hover {
  transform: translateY(-5px);
  /* Lift the tile slightly on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  /* Add a stronger shadow on hover */
  background-color: #2a2a2a;
  /* Slightly lighter background on hover */
}

.member-content {
  position: absolute;
  /* Position absolutely within the member-tile */
  top: 0;
  left: 0;
  width: 100%;
  /* Ensure it fills the tile horizontally */
  height: 100%;
  /* Ensure it fills the tile vertically */
  display: flex;
  /* Use flex to stack content for now (will change visually) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  /* For fading out when expanded */
}

.member-image {
  width: 100%;
  /* Image now fills the member-content (which fills the tile) */
  height: 100%;
  /* Image now fills the member-content */
  object-fit: cover;
  /* Ensures images cover the area without distortion */
  transition: opacity 0.3 ease;
  border-radius: 8px;
}

.member-tile:hover .member-image {
  opacity: 0.7;
  /* Dim the image slightly on hover */
}

.member-name {
  color: white;
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: 1.1em;
  margin: 0;
  /* Remove default margins */
  padding: 5px 10px;
  /* Add some padding around the text */
  background-color: rgba(0,
      0,
      0,
      0.7);
  /* Semi-transparent background for readability */
  border-radius: 5px;
  white-space: nowrap;
  /* Prevents name from wrapping to a new line */
  overflow: hidden;
  /* Hides overflow if name is too long */
  text-overflow: ellipsis;
  /* Adds "..." if name is too long */

  /* Positioning the text over the image */
  position: absolute;
  /* Take the text out of normal flow */
  bottom: 10px;
  /* Position from the bottom of .member-content */
  left: 50%;
  /* Start from the horizontal center */
  transform: translateX(-50%);
  /* Shift left by half its width to truly center */
  opacity: 0;
  /* Initially hidden */
  transition: opacity 0.3s ease;
  /* Smooth transition for fade-in */
  z-index: 1;
  /* Ensure text is above the image */
}

/* Show member name on tile hover */
.member-tile:hover .member-name {
  opacity: 1;
  /* Make visible on hover */
}

.member-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Dark overlay */
  opacity: 0;
  /* Hidden by default */
  transition: opacity 0.3s ease;
  border-radius: 8px;
  /* Match tile border-radius */
  z-index: 0;
  /* Below the text, above the image */
}

.member-tile:hover .member-content::before {
  opacity: 1;
  /* Show overlay on hover */
}

/*Hidden by default*/
.member-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  /* Same as tile or slightly different */
  color: white;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Push close button to bottom */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease 0.2s, visibility 0s 0.6s;
  /* Delay visibility change */
  z-index: 2;
  /* Above image/name */
  text-align: left;
  /* Align detail text left */
}

.member-detail .detail-heading {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5em;
  color: #fefe00;
  margin-top: 0;
  margin-bottom: 15px;
  text-decoration: none;
  /* Remove underline */
}

.member-info-grid {
  display: grid;
  /* Makes this div a grid container */
  /* Define 2 columns: 1 unit for the first, 2 units for the second */
  grid-template-columns: 1fr 2fr;
  gap: 0 10px;
  /* 0 vertical gap, 10px horizontal gap between columns */
  margin-bottom: 20px;
  /* Space between grid and detail-text */
  font-family: "Saira", sans-serif;
  color: rgba(255, 255, 255, 0.8);
  align-items: center;
}

.member-info-grid .grid-item {
  padding: 8px 0;
  /* Vertical padding for each item, no horizontal border padding */
  vertical-align: top;
  /* Align content to the top within cells (though grid handles this well) */
  /* No border property here means invisible borders */
}

/* Style for the first column (labels) */
.member-info-grid .grid-item.label {
  font-weight: 500;
  color: white;
}

/* Add subtle bottom border for rows if desired, to separate them */
/* We'll apply this to every other pair of grid items to act like rows */
.member-info-grid .grid-item:nth-child(even) {
  /* Targets the second item in each pair (the value) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Very subtle separator */
}

/* Ensure the last pair doesn't have a bottom border if it's not needed */
.member-info-grid .grid-item:nth-last-child(2),
/* The label of the last row */
.member-info-grid .grid-item:nth-last-child(1) {
  /* The value of the last row */
  border-bottom: none;
}

.game-icon-img {
  height: 35px;
  width: 35px;
}

.member-detail .detail-text {
  margin-top: 0;
  padding-right: 5px;
  font-family: "Saira", sans-serif;
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  /* Allow text to take up available space */
  overflow-y: auto;
  /* Enable scrolling for long content */
  padding-right: 5px;
  /* Space for scrollbar if present */
}

.close-detail {
  background-color: #fefe00;
  color: #1a1a1a;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  /* Above the detail content */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.close-detail:hover {
  background-color: #fff;
  transform: scale(1.1);
}

/* Class for active/expanded tile */
.member-tile.expanding {
  width: 40vw !important;
  height: 60vh !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  /* Takes it out of document flow, positions relative to viewport */
  margin: 0 !important;
  /* Override any grid margins */
  padding-bottom: 0 !important;
  /* Remove aspect ratio padding */
  border-color: rgba(255, 255, 255, 0.4);
  /* Highlight border */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  /* More prominent shadow */
  transition: top 0.4s ease-in-out, left 0.4s ease-in-out,
    width 0.4s ease-in-out, height 0.4s ease-in-out, border-color 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 1000;
  /* Bring to very front */
  cursor: default;
  /* Change cursor on expanded tile */
  border-radius: 8px;
  /* Ensure border-radius is maintained */
}

.member-tile.expanding .member-content {
  opacity: 0.3;
  /*pointer-events: none; /* Disable interaction with hidden content */
}

.member-tile.expanded .member-detail {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease 0.1s, visibility 0s;
  display: flex;
  /* Ensure it's a flex container */
  flex-direction: column;
  /* Stack children vertically */
  justify-content: flex-start;
  /* Align content to the top */
  /* Add this line: */
  align-items: stretch;
  /* Stretch items to fill container width */
}

/* Overlay for the background when a tile is expanded */
.overlay {
  position: fixed;
  /* Fixed to viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  /* Semi-transparent black */
  z-index: 999;
  /* Below expanded tile, above everything else */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* Dim other tiles in the grid when one is expanded */
.members-grid.dimmed .member-tile:not(.expanding) {
  opacity: 0.3;
  pointer-events: none;
  /* Disable clicks on other tiles */
  transition: opacity 0.4s ease;
}

/* Prevent scrolling when overlay is active */
body.no-scroll {
  overflow: hidden;
}

/* Style for form input and textarea fields on Join Us page */
#joinus-form input[type="text"],
#joinus-form input[type="email"],
#joinus-form textarea {
  background-color: rgb(27, 27, 27);
  color: white;
  border: 2px solid #fefe0046;
  border-radius: 5px;
  padding: 0.5em;
  font-family: "Saira", sans-serif;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s;
}

#joinus-form input[type="text"]:focus,
#joinus-form input[type="email"]:focus,
#joinus-form textarea:focus {
  border-color: #ffd900c0;
  /* Slightly brighter yellow on focus */
}

#joinus-form select {
  background-color: rgb(27, 27, 27);
  color: white;
  border: 2px solid #fefe0046;
  border-radius: 5px;
  padding: 0.5em;
  font-family: "Saira", sans-serif;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s;
}

#joinus-form select:focus {
  border-color: #ffd900c0;
}

/* Styles for the profile page */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  /* Left column 1/5, right column 4/5 */
  gap: 2em;
  /* Space between columns */
  width: 98vw;
  /* Full width with some margin */
  max-width: 1600px;
  /* Limit max width for larger screens */
  margin: 2em auto;
  /* Center the grid */
}

.profile-management-list {
  list-style: none;
  /* Remove default list styles */
  padding: 0;
  /* Remove padding */
  margin-top: 2em;
  /* Space above the list */
}

.profile-management-list li {
  color: white;
  font-family: "Orbitron", sans-serif;
  opacity: 0.9;
  /* Slightly transparent */
  font-weight: bold;
  margin-bottom: 1em;
  /* Space between list items */
}

/* Media Queries for expanded tile on smaller screens */
@media (max-width: 768px) {
  .member-tile.expanding {
    width: 95vw !important;
    height: 90vh !important;
  }

  .member-detail .detail-heading {
    font-size: 1.3em;
  }

  .member-detail .detail-text {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .member-tile.expanding {
    width: 90vw !important;
    height: 80vh !important;
  }

  .member-detail {
    padding: 15px;
  }

  .member-detail .detail-heading {
    font-size: 1.1em;
  }

  .member-detail .detail-text {
    font-size: 0.8em;
  }

  .close-detail {
    width: 25px;
    height: 25px;
    font-size: 0.8em;
  }
}


/* Live Streams Grid - 4 videos in single row */
.live-streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Always 4 columns */
  grid-template-rows: 1fr;
  /* Only 1 row */
  gap: 20px;
  padding: 20px 0;
  max-width: 100%;
}

/* Responsive for live streams */
@media (max-width: 768px) {
  .live-streams-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Keep 4 columns on tablets */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .live-streams-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    grid-template-rows: repeat(2, 1fr);
    /* 2 rows on mobile */
    gap: 10px;
  }
}




/* Responsive adjustments for member tiles */
@media (max-width: 600px) {
  .members-grid {
    grid-template-columns: 1fr;
    /* Single column on very small screens */
  }
}

/* 
Content Page Video Grid Styles */
.content-section {
  margin-bottom: 20px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Always 4 columns */
  grid-template-rows: repeat(2, 1fr);
  /* Always 2 rows */
  gap: 20px;
  padding: 20px 0;
  max-width: 100%;
}

.video-tile {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 0 0;
  /* Only round bottom corners */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

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

.video-tile: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;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-tile:hover .play-button {
  opacity: 1;
}

.video-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  z-index: 3;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.video-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-tile:hover .video-logo {
  opacity: 1;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff0000;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 2;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading,
.error,
.no-content {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.error {
  color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Keep 4 columns on tablets */
    gap: 15px;
  }

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile, 4 rows */
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
  }

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

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Responsive navbar toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px 10px;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    height: auto;
    padding: 8px 12px;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .navbar-logo {
    height: 40px;
    width: auto;
    max-width: 60px;
    margin-right: 0;
    margin-left: 0;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
    flex-grow: 1;
    text-align: left;
  }

  /* Hide links by default on mobile (except account menu) */
  .navbar>li {
    display: none !important;
  }

  .navbar>li.account-menu {
    display: flex !important;
    margin-left: 0;
    flex-shrink: 0;
    flex-grow: 1;
    justify-content: flex-end;
  }

  /* When navbar is expanded, show dropdown menu below navbar */
  .navbar.expanded {
    flex-wrap: wrap;
  }

  .navbar.expanded>li:not(.account-menu) {
    display: block !important;
    width: 100%;
    order: 10;
  }

  .navbar.expanded>li a {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
  }

  /* Make the page container full width and reduce padding on phones */
  .page {
    width: 100%;
    padding: 12px;
  }

  .page-heading {
    font-size: 22px;
  }

  .content-text {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 15px;
  }

  .bottom-div-grid {
    max-width: 95%;
    gap: 12px;
  }

  /* Mobile homepage styles */
  .homepage-img-container {
    width: 100%;
    max-height: 300px;
    padding: 12px;
  }

  .homepage-img-container img {
    max-height: 300px;
  }

  .bottom-div {
    width: 100%;
    padding: 12px;
  }

  /* Mobile members grid - 1 column on mobile */
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 12px;
    width: 100%;
  }

  .member-tile {
    padding-bottom: 100%;
  }

  .member-name {
    font-size: 0.9em;
    padding: 4px 8px;
  }

  .member-detail .detail-heading {
    font-size: 1.2em;
  }

  .member-info-grid {
    font-size: 0.85em;
    gap: 0 8px;
  }

  .game-icon-img {
    height: 28px;
    width: 28px;
  }

  /* Mobile expanded member tile modal */
  .member-tile.expanding {
    width: 90vw !important;
    height: 85vh !important;
    max-width: 500px !important;
  }

  .member-detail {
    padding: 15px;
  }

  .member-detail .detail-heading {
    font-size: 1.2em;
    margin-bottom: 12px;
  }

  .member-info-grid {
    font-size: 0.85em;
    margin-bottom: 12px;
  }

  .member-detail .detail-text {
    font-size: 0.85em;
    line-height: 1.5;
  }

  .close-detail {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
  }
}

/* small phones */
@media (max-width: 420px) {
  .nav-toggle {
    font-size: 22px;
  }

  .video-title {
    font-size: 12px;
  }

  .member-detail .detail-heading {
    font-size: 1.1em;
  }

  /* Extra small members grid adjustment */
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .member-tile {
    padding-bottom: 100%;
  }

  .member-name {
    font-size: 0.85em;
  }

  .member-info-grid {
    font-size: 0.8em;
  }

  .game-icon-img {
    height: 24px;
    width: 24px;
  }

  .close-detail {
    width: 25px;
    height: 25px;
    font-size: 0.8em;
  }

  /* Extra small expanded member tile modal */
  .member-tile.expanding {
    width: 95vw !important;
    height: 80vh !important;
    max-width: 450px !important;
  }

  .member-detail {
    padding: 12px;
  }

  .member-detail .detail-heading {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .member-info-grid {
    font-size: 0.8em;
    gap: 0 6px;
    margin-bottom: 10px;
  }

  .member-info-grid .grid-item {
    padding: 6px 0;
  }

  .member-detail .detail-text {
    font-size: 0.8em;
    line-height: 1.4;
  }
}

/* Shorts Grid Styles */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* 6 columns for shorts (smaller size) */
  gap: 15px;
  padding: 20px 0;
  max-width: 100%;
}

.short-tile {
  /* Inherits basic video-tile styles including background and box-shadow */
  /* Removed background: transparent to use the default tile background */
  /* Removed box-shadow: none to use the default tile shadow */
}

.short-tile:hover {
  transform: translateY(-5px);
  /* Use default or slightly adjusted shadow */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.short-thumbnail {
  aspect-ratio: 9/16;
  /* Vertical aspect ratio for Shorts */
  border-radius: 0;
  /* No rounded corners, matches regular videos */
  width: 100%;
  max-width: 200px;
  /* Enforce a max width to prevent them from getting too huge */
  margin: 0 auto;
  /* Center if it hits max-width */
}

/* Responsive for Shorts */
@media (max-width: 1024px) {
  .shorts-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on small laptop/tablet */
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .shorts-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on tablet */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 10px;
  }
}