/* Desktop view - wider width and bigger font */
@media (min-width: 768px) {
  .nav-info {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    font-size: 18px; /* bigger font on desktop */
    width: 80%;      /* or any width you prefer */
  }
}

/* ads */
 .mobileShow {display: none;}

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){ 
      .mobileShow {display: inline;}
  }
  .mobileHide { display: inline; }

  /* Smartphone Portrait and Landscape */
  @media only screen
    and (min-device-width : 320px)
    and (max-device-width : 480px){
     .mobileHide { display: none;}
  }


/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  width: 100%;
  overflow-x: hidden;
  background: black;
  color: white;
}

/* Header */
#header {
  background: #222;
  color: #fff;
  padding: 1em;
  text-align: left;
}

#header nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#header nav a, 
#header nav input {
  color: black;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4em;
  border-radius: 4px;
}

#video-thumbnail {
  text-align: center;
  width: 15px;
  height: 15px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

main h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

/* Video Container */
#video-container {
  width: 100%;
  background: black;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#video-container video {
  width: 100%;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;        /* Locks landscape shape */
  background: black;
  position: relative;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* Prevents stretching for portrait videos */
  background: black;
}

/* Footer */
footer {
  background: #222;
  color: #aaa;
  padding: 1em;
  text-align: center;
  font-size: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer div {
  background-color: #191a19;
}

/* Comment Section */
.comment-section {
  margin-top: 30px;
  background: #222;
  padding: 20px;
  justify-content: start;
  text-align: left;
}

#comment-form input, 
#comment-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

#post-comment {
  padding: 8px 16px;
  background: #28a745;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  
}

/* Ad container */
#ads-container, .ads-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3px; text-align: center;
}

.video-details {
  margin: 1em;
  padding-left: 0.5em;
  width: 100%;           /* full width */
  text-align: left;      /* override centering from main */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tags {
  color: white;
  font-size: 0.85em;
  margin: 0.2em 0;
  text-align: left;
}

/* uTag pill for main video */
.utag-pill {
  display: inline-flex;
  align-items: center;
  background-color: blue; /* soft blue background */
  color: white;
  font-size: 0.85em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  margin: 0.2em 0;
  text-align: left;
  gap: 0.5em;
}

.utag-pill .icon {
  font-size: 1.5em;
  color: blue;
  background-color: white;
  width: 1em; height: 1em;
  border-radius: 20px;
  
}

/* Recommendations styling */
#recommendations-section {
  margin: 1.5em 1em 3em 1em;
}

.recommendations-list {
  gap: 1em;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  
}

.rec-card {
  background-color: #222;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
}

.rec-card:hover {
  transform: scale(1.05);
}

.rec-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid #444;
}

.rec-no-thumb {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #444;
  color: #ccc;
  font-weight: bold;
  text-align: center;
  padding: 0 0.5em;
}

.rec-info {
  padding: 0.5em 0.75em;
  color: white;
}

.rec-info h4 {
  margin: 0 0 0.3em 0;
  font-size: 1em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* smaller uTag pill for recommendations */
.utag-pill-small {
  display: inline-flex;
  align-items: center;
  background-color: #007bff22;
  color: white;
  padding: 2px 8px;
  border-radius: 14px;
  font-size: 0.75em;
  margin-bottom: 0.3em;
  user-select: none;
  max-width: max-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utag-icon-small {
  color: #00cfff;
  font-size: 1em;
  margin-right: 6px;
  line-height: 1;
}

.tags-small {
  font-size: 0.7em;
  color: #bbb;
  margin: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.rating-wrapper {
  margin: 1em;
  left: 1em;
  color: white;
}

.rating-label {
  font-size: 1em;
  margin-bottom: 0.3em;
}

.star-rating {
  display: flex;
  gap: 0.3em;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
}

.star {
  color: gray;
  transition: color 0.2s;
}

.star.filled {
  color: #FFD700; /* Yellow */
}

.rating-thanks {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #80ff80;
}

#stickyAd {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 5px;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#stickyAd button {
  position: absolute;
  top: 2px;
  right: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
