/* Layout */
body {
  background: #111;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Header */
.top-header {
  background: #111;
  text-align: center;
  padding: 15px;
}
.top-header h1 {
  color: red;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

/* Category Bar */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #222;
  padding: 10px;
  gap: 8px;
}
.category-bar a {
  background: #f39c12;
  padding: 6px 10px;
  border-radius: 4px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}
.category-toggle {
  text-align: center;
  background: #333;
  color: #f39c12;
  font-weight: bold;
  padding: 8px;
  cursor: pointer;
  display: none;
}
@media (max-width: 768px) {
  .category-toggle { display: block; }
  .category-bar { display: none; }
  .category-bar.active { display: flex; }
}

/* Search Box */
.search-box {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #1c1c1c;
}
.search-box input {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 4px 0 0 4px;
}
.search-box button {
  padding: 10px;
  background: #f39c12;
  color: black;
  border: none;
  border-radius: 0 4px 4px 0;
}

/* Info Bar */
.info-bar {
  background: #111;
  text-align: center;
  padding: 10px;
}
.tg-btn {
  background: #0f9d58;
  color: white;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
}

/* Section */
.section {
  padding: 15px;
}
.section-title {
  font-size: 20px;
  margin-bottom: 10px;
  padding-left: 10px;
  font-weight: bold;
}
.section-title.green {
  color: #00e676;
  border-left: 5px solid green;
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.movie-card {
  background: #1c1c1c;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  position: relative;
}
.movie-card img {
  width: 100%;
  border-radius: 4px;
  max-height: 160px;
  object-fit: cover;
}
.movie-card h3 {
  font-size: 14px;
  margin-top: 5px;
}
.badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  background: #4caf50;
  padding: 2px 4px;
  color: white;
  border-radius: 2px;
}

/* Trending Scroll */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
}
.trending-card {
  min-width: 120px;
  text-align: center;
}
.trending-card img {
  width: 100px;
  height: auto;
  border-radius: 4px;
}
.scroll-container::-webkit-scrollbar {
  height: 6px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: #f39c12;
  border-radius: 4px;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 20px 0;
}
.pagination a {
  background: #f39c12;
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  margin: 0 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: #2f2f2f;
  padding: 15px 10px;
  color: #ccc;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #444;
  margin-top: auto;
}
.social-icons {
  margin-top: 10px;
}
.social-icons a {
  color: #f39c12;
  margin: 0 8px;
  font-size: 18px;
  text-decoration: none;
}

/* Floating Ad */
.floating-ad {
  position: fixed;
  bottom: 70px;
  right: 10px;
  background: #f39c12;
  color: #000;
  padding: 10px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 1000;
  cursor: pointer;
  display: none;
}
