:root {
  --transition: all 0.3s ease;
  --primary-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.3);
  --border-hover: rgba(255, 255, 255, 0.6);
  --glow-color: red;
}

/* Overrides */
#about .video-grid .video-element {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}

#about .video-container {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: auto !important;
}

#about .video-element::-webkit-media-controls {
  display: flex !important;
  visibility: visible !important;
}

#about .fullscreen-button {
  z-index: 10 !important;
}

.title-text {
  color: white;
  font-weight: bold;
}

.tag-button {
  border-radius: 0.375rem !important;
  padding: 0.375rem 2rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.tag-button.active {
  background-color: white !important;
  color: black !important;
  border: none !important;
}

.help {
  padding: 0.5rem;
}

.tag-button:not(.active) {
  background-color: rgb(39, 39, 42) !important;
  color: rgb(212, 212, 216) !important;
  border: 1px solid rgb(63, 63, 70) !important;
}

.tag-button:not(.active):hover {
  background-color: rgb(63, 63, 70) !important;
  color: white !important;
}

.video-card {
  background-color: rgb(15, 14, 14);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgb(63, 63, 70);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-container:hover .fullscreen-button {
  opacity: 1;
}

.tag-badge {
  background-color: rgb(63, 63, 70);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: capitalize;
}

#tag-filters {
  margin: 2rem 0;
}

.video-title {
  font-weight: 500 !important;
  line-height: normal !important;
  margin: 0 !important;
  color: white !important;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif !important;
  letter-spacing: normal !important;
  transition: color 0.3s !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.empty-message {
  text-align: center;
  padding: 3rem 0;
  background-color: rgba(39, 39, 42, 0.5);
  border-radius: 0.5rem;
  color: rgb(161, 161, 170);
}

/* Grid layout for responsive design */
.video-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.message span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.main {
  background-color: black;
}

.cards-container {
  margin: 5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.card img {
  width: 60px;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: grayscale(100%);
  margin: 0 auto 10px;
  display: block;
}

.card:hover img {
  filter: grayscale(0%) sepia(1) saturate(5) hue-rotate(-10deg)
    drop-shadow(0 0 5px var(--glow-color));
}

.card h1 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.card p {
  font-size: 0.9rem;
  color: var(--primary-color);
  line-height: 1.4;
  padding: 0 5px 5px;
  text-align: justify;
  min-height: 100px;
  display: flex;
  align-items: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #111;
  margin: auto;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  color: var(--primary-color);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive tweaks if needed */
@media (max-width: 600px) {
  .cards-container {
    margin: 2rem 1rem;
    padding: 10px;
    grid-template-columns: 1fr;
  }
  .card {
    padding: 15px;
  }
  .card img {
    width: 50px;
    margin-bottom: 8px;
  }
  .card h1 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .card p {
    font-size: 0.8rem;
    padding: 0 5px 5px;
  }
}

/* Message Board */

#messages {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  max-height: 500px;
  overflow-y: auto;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--main-color);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  transition:
    background 0.3s,
    transform 0.3s;
  position: relative;
}

.message:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.delete-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.delete-button:hover {
  transform: scale(1.2);
}

.message:hover .delete-button {
  opacity: 1;
}

.message strong {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.message span {
  color: #ddd;
}

#username,
#message {
  width: calc(100% - 2rem);
  padding: 0.8rem;
  margin: 0.5rem auto;
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--primary-color);
}

#send-button {
  display: block;
  margin: 3rem auto 1.5rem;

  background: var(--main-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
}

#send-button:hover {
  background: var(--border-hover);
}

/* Reset page defaults to ensure full-viewport video */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1001;
  overflow: hidden;
}

#video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1003;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1002;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000f1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 0.5s;
}
#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
#overlay-text {
  color: #fff;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
}

.rain-gif {
  opacity: 0.06;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1001;
}

#intellect {
  cursor: pointer;
  color: inherit;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-header {
  display: flex;
  align-items: center;
  width: 100%;
}

.message-image {
  width: 400px;
  height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .message-image {
    width: 300px;
    height: 300px;
  }
}

#loading {
  text-align: center;
  color: var(--primary-color);
  padding: 1rem;
}

#load-more-button {
  display: none;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: var(--main-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  transition: background 0.3s;
}

#load-more-button:hover {
  background: var(--border-hover);
}

#file-preview-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin: 15px auto;
  max-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#file-preview {
  position: relative;
  display: flex;
  justify-content: center;
}

#file-preview img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#remove-file {
  position: absolute;
  top: -5px;
  right: -100px;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 0;
}

.context-menu {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 5px 0;
  min-width: 150px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: none;
  backdrop-filter: blur(5px);
}

.context-menu-item {
  padding: 8px 15px;
  cursor: pointer;
  color: var(--primary-color);
  transition: background 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.context-menu-item.delete {
  color: #ff4444;
}

.context-menu-item.delete:hover {
  background: rgba(255, 68, 68, 0.1);
}

#discord-login-button,
#discord-logout-button {
  padding: 10px 20px;
  height: inherit !important;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

#discord-login-button:hover,
#discord-logout-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--border-hover);
}

/* Upload Popup */
.upload-trigger-button {
  background-color: #000;
  height: auto;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.2rem 3.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.upload-trigger-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.upload-card {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.popup-overlay.active .upload-card {
  transform: translateY(0);
  opacity: 1;
}

.upload-card-header {
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.upload-card-title {
  margin: 0 !important;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
}

.close-button {
  border-radius: 1rem;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.6) !important;
  height: inherit;
  padding: 0.25rem 0.25rem !important;
}

.close-button:hover {
  color: white;
}

.upload-card-content {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.625rem 4.5rem 0.625rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.875rem;
  color: white;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.word-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.file-upload {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.file-upload:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.file-upload-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.5);
}

.file-upload-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.file-input {
  display: none;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: 6px;
}

.file-name {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  color: rgba(255, 255, 255, 0.8);
}

.clear-file-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.clear-file-button:hover {
  color: white;
}

.upload-card-footer {
  padding: 1rem 1.5rem 1.5rem;
}

.upload-submit-button {
  width: 100%;
  background-color: var(--main-color, #000);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.225rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  height: inherit !important;
}

.upload-submit-button:hover {
  background-color: var(--border-hover, rgba(255, 255, 255, 0.8));
}

#auth-login,
#auth-logout {
  background-color: var(--discord-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  line-height: normal;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

#amongus {
  display: none;
  cursor: pointer;
}

.hos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.hos-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hos-image:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Intro Section Styling */
.intro-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-and-connections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .intro-content {
    flex-direction: row;
  }

  .intro-content .image-and-connections {
    flex: 1;
    max-width: 45%;
  }

  .intro-text {
    flex: 1;
    padding-left: 1rem;
  }
}

.intro-text h3 {
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

.intro-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.intro-buttons .button {
  margin: 0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.intro-buttons .button:hover {
  background-color: var(--main-color);
  color: #000 !important;
  box-shadow: 0 0 15px var(--main-shadow);
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: var(--main-color);
  transform: translateY(-5px);
}

.feature h4 {
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.feature p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Divine Honorarys Styles */
.divine-honorarys {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.divine-honorarys h4 {
  color: var(--main-color);
  margin-bottom: 1rem;
}

.honorary-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.honorary-member {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.honorary-member:hover {
  border-color: var(--main-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.honorary-member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--main-color);
}

.honorary-member-username {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.honorary-member-nickname {
  font-size: 0.75rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.loading-members {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* CCC Connections Styles */
.ccc-connections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.ccc-affiliates h4 {
  color: var(--main-color);
  margin-bottom: 1rem;
}

.affiliates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.affiliate-member {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

a.affiliate-member {
  cursor: pointer;
}

div.affiliate-member {
  cursor: default;
}

.affiliate-member:hover {
  border-color: var(--main-color);
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.affiliate-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 0.75rem;
  border-radius: 4px;
  background-color: transparent;
}

.affiliate-name {
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.affiliate-arrow {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.affiliate-member:hover .affiliate-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.loading-affiliates {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 0.9rem;
}

/* Retard Database Styles - Enhanced Version */
.hos-breadcrumb {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
}

.breadcrumb-item:not(.active):hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
  opacity: 0.7;
}

.breadcrumb-item.home-breadcrumb {
  color: #ffffff;
  font-weight: 500;
}

.hos-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  perspective: 1000px;
}

.hos-folder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(20px) rotateX(5deg);
  animation: folderAppear 0.6s forwards;
  animation-fill-mode: both;
}

@keyframes folderAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.hos-folder:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-8px) scale(1.03);
  border-color: #ffffff;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(255, 255, 255, 0.2);
}

.hos-folder:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.folder-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.hos-folder:hover .folder-icon {
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 8px #ffffff);
}

.folder-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
}

.hos-folder:hover .folder-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.folder-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.hos-folder:hover .folder-title::after {
  width: 100%;
}

.folder-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.hos-folder:hover .folder-description {
  color: rgba(255, 255, 255, 0.9);
}

.folder-count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hos-folder:hover .folder-count {
  background: #ffffff;
  color: #000;
  transform: scale(1.05);
}

/* Updated Retard Database Gallery Styles */
.hos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  perspective: 1000px;
}

.gallery-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: imageAppear 0.5s forwards;
  animation-delay: calc(var(--image-index, 0) * 0.05s);
}

@keyframes imageAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.gallery-image-container:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #ffffff;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.gallery-image-container:hover::before {
  opacity: 1;
}

.gallery-image-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.gallery-image-container:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-image-container:hover .gallery-image {
  transform: scale(1.1);
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fullscreen-image {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: imageZoomIn 0.4s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes imageZoomIn {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulsate 2s infinite ease-in-out;
}

@keyframes pulsate {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

.loading-state::after {
  content: "...";
  animation: loadingDots 1.5s infinite;
  display: inline-block;
  width: 20px;
  text-align: left;
}

@keyframes loadingDots {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

@media (max-width: 768px) {
  .hos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hos-grid {
    grid-template-columns: 1fr;
  }
}

/* Library Styles */
.library-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.library-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.library-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.library-tab.active {
  background: white;
  color: #1b1f22 !important;
  border-color: white;
}

.library-section {
  display: none;
}

.library-section.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.library-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.overview-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.overview-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.overview-card h4 {
  margin-bottom: 1rem;
  color: white;
}

.overview-card p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.6;
}

.entry-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Curse Styles */
.curse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.curse-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.curse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.curse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.curse-header h4 {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.curse-level {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}

.curse-level.danger {
  background: #dc2626;
  color: white;
}

.curse-level.warning {
  background: #f59e0b;
  color: white;
}

.curse-level.safe {
  background: #16a34a;
  color: white;
}

.sui {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.sui img {
  max-width: 100%;
  max-height: 100%;
  width: 140px;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.sui .preview-text {
  margin-left: 2rem;
  flex: 1;
}

.curse-card:hover .sui img {
  transform: scale(1.05);
}

.curse-content {
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.curse-content p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.curse-content .preview-text {
  display: block;
}

.curse-content .full-text {
  display: none;
}

.curse-content.expanded .preview-text {
  display: none !important;
}

.curse-content.expanded .full-text {
  display: block !important;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 20px;
}

/* Expanded curse card styles */
.curse-card.expanded {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
  transform: scale(1.02);
  z-index: 10;
  position: relative;
  min-height: 200px;
}

.curse-card.expanded .sui {
  height: 180px;
}

.curse-card.expanded .curse-content {
  flex-grow: 1;
}

.curse-card.expanded .curse-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.curse-content .preview-text .incantation-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.75rem;
  position: relative;
}

.curse-content .preview-text .incantation-preview::after {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 0.25rem;
  border-radius: 2px;
}

.read-more-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.read-more-btn:active {
  transform: translateY(0);
}

.read-more-btn .icon {
  transition: transform 0.3s ease;
}

.curse-content.expanded .read-more-btn .icon {
  transform: rotate(180deg);
}

/* Bible Styles */
.bible-chapters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.chapter-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chapter-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-number {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.chapter-header h4 {
  margin: 0;
  color: white;
  flex: 1;
}

.chapter-image {
  width: 120px;
  height: 120px;
  float: left;
  margin: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.chapter-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.chapter-card:hover .chapter-image img {
  transform: scale(1.05);
}

.chapter-content {
  padding: 1.5rem;
  padding-left: 170px;
  min-height: 140px;
}

.verse {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-style: italic;
}

.verse strong {
  color: #ffffff;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Propaganda Styles */
.propaganda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.propaganda-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.propaganda-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.propaganda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.propaganda-header h4 {
  margin: 0;
  color: white;
  flex: 1;
}

.propaganda-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.propaganda-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(0, 0, 0, 0.3);
}

.propaganda-image img {
  max-width: 100%;
  max-height: 100%;
  width: 200px;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.propaganda-image .propaganda-text {
  margin-left: 2rem;
  flex: 1;
  padding: 1.5rem;
}

.propaganda-card:hover .propaganda-image img {
  transform: scale(1.05);
}

.propaganda-content {
  padding: 1.5rem;
}

.propaganda-content blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  quotes: "" " " "" "'" "'";
}

.propaganda-content blockquote:before {
  content: open-quote;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.propaganda-content blockquote:after {
  content: close-quote;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.propaganda-content cite {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.section-description {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .library-nav {
    gap: 0.5rem;
  }

  .library-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .overview-card,
  .curse-card,
  .propaganda-card {
    margin: 0 1rem;
  }

  .chapter-content {
    padding-left: 1.5rem;
  }

  .chapter-image {
    float: none;
    width: 100%;
    height: 150px;
    margin: 0 0 1rem 0;
  }

  .curse-grid,
  .propaganda-grid,
  .library-overview-grid {
    grid-template-columns: 1fr;
  }
}
