* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 18px;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
}

.header {
    text-align: center;
    padding: 32px;
}

.search-container {
    text-align: center;
    margin: 16px 0;
}

.search-container input {
    padding: 8px;
    width: 80%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

.search-container input::placeholder {
    color: #bbb;
}

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

.column {
    position: relative;
    overflow: hidden;
    padding: 0 4px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.column:hover {
    transform: scale(1.05);
}

.column img {
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.column:hover .play-icon {
    opacity: 1;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid transparent;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

img.loaded {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;
}

/* Responsive grid layout */
@media (min-width: 1200px) {
    .column {
        flex: 12.5%;
        max-width: 12.5%;
    }
}

@media (min-width: 800px) and (max-width: 1199px) {
    .column {
        flex: 16.66%;
        max-width: 16.66%;
    }
}

@media (max-width: 799px) {
  .column {
    flex: 33.33%;
    max-width: 33.33%;
  }
}

.show-rating {
  position: absolute;
  top: 4px;
  left: 5px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-radius: 3px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background-color: #1a1a1a;
  padding: 6px 0;
  border-top: 2px solid #333;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.bottom-nav:hover {
  background-color: #2a2a2a;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

.nav-item {
  color: #e0e0e0;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  flex-grow: 1;
  position: relative;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
  animation: pulse 1.5s infinite;
}

.nav-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.nav-item:hover {
  color: #ffffff;
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6);
}

.nav-item:hover i {
  transform: scale(1.4);
}

/* Slide-up Extra Links */
.more-links {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  padding: 10px;
  border: 1px solid #333;
  z-index: 1001;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.more-links a {
  display: block;
  color: #e0e0e0;
  padding: 4px 0;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.more-links a:hover {
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6);
}

.more-links.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideIn 0.5s forwards ease-in-out;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background-color: #1a1a1a; /* Dark background */
  padding: 5px;
  border-top: 2px solid #333; /* Darker border for contrast */
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
}

.nav-item {
  color: #e0e0e0; /* Light gray text for better contrast */
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  flex-grow: 1;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out; /* Added text-shadow transition */
  position: relative;
}

.nav-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth bounce effect */
}

.nav-item:hover {
  color: #ffffff; /* Change color to normal white on hover */
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6); /* Normal white glow effect */
}

.nav-item:hover i {
  transform: scale(1.4); /* Enlarge the icon */
}

.more-links {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  background-color: #1a1a1a; /* Dark background */
  padding: 10px;
  border: 1px solid #333; /* Darker border for contrast */
  z-index: 1001;
  opacity: 0;
  transform: translateY(30px); /* More exaggerated start position */
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.more-links a {
  display: block;
  color: #e0e0e0; /* Light gray for links */
  padding: 3px 0;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s ease-in-out, transform 0.3s, text-shadow 0.3s ease-in-out; /* Added text-shadow transition */
}

.more-links a:hover {
  color: #ffffff; /* Light teal color on hover */
  transform: scale(1.05); /* Slight scaling for links */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6); /* Normal white glow effect */
}

.more-links.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Adding animation keyframes for attention-drawing effects */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the animations conditionally */
.more-links.show {
  animation: slideIn 0.5s forwards ease-in-out;
}

.nav-item:hover {
  animation: pulse 1s infinite;
}

/* Additional hover effect for .bottom-nav */
.bottom-nav:hover {
  background-color: #2a2a2a; /* Slightly lighter on hover */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4); /* Slight shadow effect on hover */
}

nav {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: #000000;
color: #e2e2e2;
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px; /* Add 10px padding to the top and bottom, and 20px padding to the left and right */
height: 80px;
 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Set the fixed height of the navigation bar */
}
