.channel-layout {
  display: flex;
  min-height: 100vh;
  background-color: #121212;
  color: #e0e0e0;
}

.channel-layout > * {
  flex-basis: 100%;
}

.channel-list-wrapper {
  padding: var(--space-sm);
}

.channel-list-wrapper h1 {
  font-size: 1.75rem;
  color: #f5f5f5;
}

.channel {
  display: grid;
  grid-template-columns: 1rem 4rem 1fr;
  gap: 1rem;
  align-items: center;
  background: #1e1e1e;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: transform 0.3s, box-shadow 0.3s;
  border: var(--border-width) solid #1e1e1e;
  box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.15);
}

.channel:hover {
  transform: scale(1.02);
}

.channel[data-playing="true"] {
  border-color: rgba(255, 255, 255, 0.5);
}

.play-channel {
  all: unset;
  cursor: pointer;
  height: 100%;
  background: #2a2a2a;
}

.channel-title {
  font-weight: 800;
  color: #ffffff;
}

.channel-language {
  color: #bdbdbd;
  font-size: 0.9rem;
  font-weight: 600;
}

.handle {
  text-align: center;
  opacity: 0.5;
  cursor: ns-resize;
}

.label {
  color: #9e9e9e;
  margin: var(--space-sm) 0 0.25rem 0;
}

.player-wrapper {
  background: #181818;
  padding: var(--space-sm);
  box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  transition: background-color 0.3s;
}

.sticky {
  position: sticky;
  top: var(--space-sm);
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius);
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper iframe {
  height: 100%;
  width: 100%;
  border: none;
  object-fit: cover;
}

.thumbnail-wrapper {
  position: relative;
  width: 100%; /* Ensures the wrapper takes full width of the container */
  height: 100%; /* Make sure the wrapper also has a defined height */
}

.channel-poster {
  width: 100%; /* Stretches to full width of the thumbnail-wrapper */
  height: 100%; /* Stretches to full height of the thumbnail-wrapper */
  object-fit: cover; /* Ensures the image covers the entire area without distortion */
  border-radius: var(--border-radius);
  filter: brightness(0.8); /* Optional: Dim the image */
  transition: filter 0.3s;
}


.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.play-channel:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-channel:hover .channel-poster {
  filter: brightness(1);
}

@media (max-width: 768px) {
  .channel-layout {
    flex-direction: column;
  }

  .player-wrapper {
    width: 90%;
    margin: 0 auto;
    order: -1;
  }

  .channel-list-wrapper {
    width: 100%;
  }
}

.channel,
.player-wrapper,
.thumbnail-wrapper {
  animation: fadeIn 0.5s ease-out;
}

#search-box {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius);
  background-color: #2a2a2a;
  color: #e0e0e0;
  font-size: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

#search-box:focus {
  outline: none;
  background-color: #3a3a3a;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

#clear-search {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  transition: color 0.3s;
}

#clear-search:hover {
  color: #ffffff;
}

#load-more {
  display: block;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  background-color: #333;
  color: #e0e0e0;
  font-size: 0.875rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

#load-more:hover {
  background-color: #444;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

#load-more:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.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 */
}
