body {
  font-family: 'Inter', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #1f2227 0%, #0e0f11 100%);
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.navbar {
  background-color: #2d3e50;
}

.navbar a,
.navbar-brand,
.navbar .nav-link {
  color: #fff;
}

/* Make the brand title much larger */
.navbar-brand {
  font-size: 3rem;
  font-weight: 600;
}

h1 {
  margin-bottom: 1rem;
}

.clip-card {
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #23262a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 320px;
  flex: 0 0 auto;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
}

form input[type="text"],
form input[type="url"],
form input[type="password"],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.btn {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
}

.tag-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  user-select: none;
}


.gallery-row {
  position: relative;
}

.clip-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.clip-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-left,
.scroll-right {
  position: absolute;
  top: 0px;
  bottom: 15px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 1);
  color: #fff;
  border: none;
  opacity: 0.8;
  z-index: 1;
  font-size: 2.5rem;
}

.scroll-left { left: 0; }
.scroll-right { right: 0; }

.clip-thumb {
  width: 320px;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
}

.modal-content {
  background-color: #23262a;
  color: #f0f0f0;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-title {
  flex: 1 1 auto;
  white-space: normal;
  word-break: break-word;
}

.clip-title {
  white-space: normal;
  word-break: break-word;
}


.clip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Make the video preview responsive on mobile
   without affecting the rest of the layout */
#clipModal iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

@media screen and (max-device-width: 700px) and (orientation: portrait) {
  #clipModal .modal-dialog {
    width: 100vw;
    max-width: none;
    margin: 0;
  }
  #clipModal iframe {
    width: 100vw;
  }
  /* make navigation buttons noticeably larger */
  .navbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .navbar .btn,
  .navbar .nav-link {
    padding: 1.2rem 2rem;
    font-size: 2rem;
  }
}


