body {
  background-color: #030303;
  color: #ccc;
  font-family: Consolas;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Bar */
.mainTitle {
  background-color: #1a1a1a;
  color: white;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-size: 52px;
  letter-spacing: 2px;
  border-bottom: 2px solid #333;
}

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

/* Bottom Bar (Subtext) */
.subtitle, .subtitle2 {
  background-color: #0F0F0F;
  color: #888;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.subtitle {
  padding-top: 10px;
  padding-bottom: 5px;
  color: lightgray;
}

.subtitle2 {
  font-style: italic;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.subtitle2 a {
  color: #bbb;
  text-decoration: underline;
}

/* Navigation and Search Bars */
.nav-bar, .search-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  box-sizing: border-box;
}

.nav-bar {
  background-color: #0F0F0F;
}

.nav-bar a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  font-style: italic;
}

.nav-bar a:hover {
  color: white;
}

.search-bar {
  background-color: #030303;
}


/* Main Content Area */
#browseScreen {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Search Box */
.panel {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  text-align: center;
}

.panel h2 {
  margin-top: 0;
  color: white;
  font-weight: 300;
}

.row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

input[type="text"] {
  background-color: #000;
  border: 1px solid #444;
  color: white;
  padding: 12px;
  width: 300px;
  border-radius: 4px;
  outline: none;
}

input[type="text"]:focus {
  border-color: #666;
}

button {
  background-color: #333;
  color: white;
  border: 1px solid #444;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

button:hover {
  background-color: #444;
}

.secondary-btn {
  background-color: #222;
  font-size: 0.8rem;
  margin: 5px;
}

/* Search Results Box (attached to panel) */
.results {
  display: grid;
  grid-template-columns: repeat(5, 294px);
  gap: 20px;
  justify-content: center;
}


.section-title {
  color: white;
  border-bottom: 2px solid #444;
  padding-left: 10px;
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;

}

/* Content Sections */
.home-section {
  margin-bottom: 50px;
  width: 100%;
}

.carousel {
  display: flex;
  align-items: center;
  max-width: 1630px;
  gap: 10px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 15px;
  padding-bottom: 10px;
  transition: transform 0.3s ease-in-out;
}

.carousel-btn {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 10px;
  min-width: 40px;
}

.card {
  background-color: #1a1a1a;
  border-radius: 25px;
  width: 242px;
}

.poster {
  padding: 10px;
  border-radius: 25px;
  width: 222px;
  height: auto;
}

.card-body {
  padding-left: 10px;
}

/* Player Screen */
.selected-info {
  padding-bottom: 10px;
  color: #888;
}

#playerScreen {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.player-header {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.player-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border: 2px solid #333;
}

#playerFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.player-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.active-player-btn {
  background-color: #666;
  border: 1px solid white;
}

.hidden {
  display: none;
}

.devCom {
  font-style: italic;
  color: grey !important;
}

/* Info Classes */
.info-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 50px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.info-row-si {
  gap: 10px;
  margin-bottom: 50px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding-bottom: 30px;
}

.info-row-si ul {
  padding-top: 10px;
  margin: 0;
}

.info-row-si li {
  padding-bottom: 5px;
}

.info-title {
  color: white;
  font-weight: bold;
  min-width: 150px;
  font-size: 58px;
}

.info-title-s {
  color: white;
  font-weight: bold;
  min-width: 150px;
  font-size: 30px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.info-text {
  padding-top: 30px;
  color: #ccc;
  flex: 1;
  line-height: 1.5;
  font-size: 18px;
}

.info-text-s {
  padding-top: 10px;
  color: #ccc;
  flex: 1;
  line-height: 1.5;
  font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 841px) {
  .mainTitle {
    font-size: 28px;
  }

  .subtitle, .subtitle2 {
    font-size: 0.8rem;
  }

  .nav-bar, .search-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 5px;
  }

  .search-bar input[type="text"] {
    width: 80%;
    font-size: 0.8rem;
    padding: 8px;
  }

  .results {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    justify-items: center;
  }

  .card {
    width: 160px !important;
  }

  .poster {
    width: 140px !important;
    padding: 8px !important;
  }

  .card-body {
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center;
  }

  .card-body h3 {
    font-size: 0.9rem;
  }

  .card-body p {
    font-size: 0.7rem;
  }
}
