*, *::before, *::after {
  box-sizing: border-box;
}

body {
  position: relative;
  overflow-x: hidden; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background-color: black;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/uploads/Studio50.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.4);
  z-index: -1;
  transform: scale(1.05);
}

.header {
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid rgba(255, 0, 0, 0.4);
  box-shadow: 0 8px 16px -6px rgba(255, 0, 0, 0.3);
  background-color: black;
  z-index: 100;
  padding: 0 20px;
}

.header-logo {
  height: 60px;
  margin-left: 20px;
  width: 100px;
  object-fit: cover;
}

.left-section {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.middle-section {
  display: flex;
  align-items: center;
  flex: 1; 
  justify-content: center;
}

.search-form-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; 
  display: flex;
  align-items: center;
}

.header-search-bar {
  width: 100%;
  background-color: #0b0b0b; 
  border: 1px solid rgba(215, 1, 1, 0.4); 
  border-radius: 20px; 
  padding: 8px 40px 8px 16px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.header-search-bar:focus {
  border-color: red;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); 
  background-color: black;
}

.header-search-bar::placeholder {
  color: #555;
}

.search-icon-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon-btn img {
  width: 20px;          
  height: 20px;         
  object-fit: contain;  
  display: block;       
  margin: 0;
  padding: 0;
  filter: invert(11%) sepia(91%) saturate(6747%) hue-rotate(357deg) brightness(89%) contrast(114%);
  transition: filter 0.2s ease-in-out;
}

.search-icon-btn:hover img {
  filter: invert(100%); 
}


.right-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  color: red;
  gap: 30px;
}

.right-section p {
  margin: 0;
  border-radius: 12px;
  transition: color 0.3s ease;
}

.right-section p:hover {
  padding: 4px 8px;
  background-color: rgba(255, 0, 0, 0.2);
}

.right-section a {
  text-decoration: none;
  color: red;
  transition: color 0.3s ease;
  font-family: Arial, sans-serif;
}

.right-section a:hover, 
.right-section a.active {
  color: white;
}

.nav-mini-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(215, 1, 1);
  box-shadow: 0 0 10px rgba(215, 1, 1, 0.3);
  background-color: black;
  flex-shrink: 0;
  display: inline-block;
}

.user-dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger-link {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: red;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown-trigger-link:hover {
  color: white;
}

.dropdown-checkbox {
  display: none;
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background-color: #0b0b0b;
  border: 1px solid rgba(215, 1, 1, 0.5);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 10px;
  margin: 0;
  min-width: 140px;
  z-index: 1000;
}

.custom-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-checkbox:checked ~ .custom-dropdown-menu {
  display: block;
}

.logout-form {
  margin: 0;
  padding: 0;
}

.logout-submit-btn {
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.logout-submit-btn:hover {
  background-color: rgba(255, 0, 0, 0.2);
  color: red;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 100px; 
  margin-bottom: 40px;
  padding: 0 20px;
  width: 100%;
}

.view-post-container {
  width: 100%;
  max-width: 680px; 
  border: 1px solid rgba(215, 1, 1, 0.5);
  border-radius: 10px;
  background-color: #0b0b0b; 
  box-shadow: 0 0 25px rgba(215, 1, 1, 0.4);
  padding: 24px;
}

.view-media-box {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
}

.view-media-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.player-section {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(0, 0, 0, 0.4);
}

.player-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  color: white;
  font-weight: bold;
}

.waveform-graphic {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

.native-player {
  width: 100%;
  display: block;
}

.view-post-title {
  font-family: Arial, sans-serif;
  font-size: 36px;
  color: white;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: bold;
  line-height: 1.2;
}

.view-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #888;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.view-post-meta strong {
  color: rgb(215, 1, 1);
}

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: -10px;
  margin-bottom: 24px;
  font-family: Arial, sans-serif;
}

.metric-item {
  color: #888;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-button {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}

.like-button:hover {
  background-color: rgba(215, 1, 1, 0.1);
  border-color: rgba(215, 1, 1, 0.4);
  color: white;
}

.like-button.liked {
  background-color: rgba(215, 1, 1, 0.2);
  border-color: rgb(215, 1, 1);
  color: #fff;
  box-shadow: 0 0 10px rgba(215, 1, 1, 0.3);
}

.view-post-content {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #ccc;
  line-height: 1.7;
  text-align: left; 
  white-space: pre-line; 
}

.emoji-toggle-btn {
  background: transparent !important;
  border: none !important;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  outline: none;
  transition: transform 0.1s ease;
}

.emoji-toggle-btn:hover {
  transform: scale(1.15);
}

.comments-section {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-family: Arial, sans-serif;
  text-align: left;
}

.section-heading {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.comment-submission-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  position: relative;
  overflow: visible !important;
}

.comment-submission-form textarea {
  width: 100%;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  padding: 12px;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.comment-submission-form textarea:focus {
  border-color: rgba(215, 1, 1, 0.8);
  box-shadow: 0 0 8px rgba(215, 1, 1, 0.2);
}

.comment-input-wrapper {
  position: relative;
  width: 100%;
}

.comment-input-wrapper textarea {
  width: 100%;
  padding-right: 40px; 
  box-sizing: border-box;
}

.comment-emoji-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: transparent !important;
  border: none !important;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  outline: none;
  z-index: 5;
  transition: transform 0.1s ease;
}

.comment-emoji-btn:hover {
  transform: scale(1.15);
}

emoji-picker {
  display: block;
  width: 320px;
  height: 400px;
  max-width: 90vw;
  max-height: 50vh;
  --num-columns: 8;
  --category-icon-size: 1.1rem;
  --font-family: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.hidden { 
  display: none !important; 
}

.comment-submit-btn {
  align-self: flex-end;
  background-color: rgb(215, 1, 1);
  color: white;
  border: none;
  padding: 8px 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-submit-btn:hover {
  opacity: 0.9;
}

.login-prompt-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  color: #888;
  margin-bottom: 30px;
}

.login-link {
  color: rgb(215, 1, 1);
  text-decoration: none;
  font-weight: bold;
}

.comments-wrapper-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-card {
  display: flex;
  gap: 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 8px;
}

.animation-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

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

.commenter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(215, 1, 1, 0.3);
}

.comment-body {
  flex: 1;
}

.commenter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.commenter-name {
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
}

.comment-time {
  color: #666;
  font-size: 0.8rem;
}

.comment-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: auto; 
  padding: 8px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.comment-delete-btn:hover {
  opacity: 1;
}

.comment-text-content {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.no-comments-msg {
  color: #666;
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}


.image-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); 
  z-index: 99999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out; 
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-expanded-img {
  width: 100%;
  height: 100%;
  max-width: 98vw;
  max-height: 98vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(215, 1, 1, 0.5); 
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.image-lightbox-overlay.active .lightbox-expanded-img {
  transform: scale(1);
}

.view-media-box img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.view-media-box img:hover {
  transform: scale(1.01);
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.custom-modal-overlay.is-visible {
  display: flex;
}

.modal-card-box {
  width: 100%;
  max-width: 500px;
  background-color: #0b0b0b;
  border: 2px solid rgb(215, 1, 1);
  box-shadow: 0 0 35px rgba(215, 1, 1, 0.4);
  border-radius: 10px;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-alert-title {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: white;
  background-color: rgb(215, 1, 1);
  margin: 0;
  padding: 16px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-body-content {
  padding: 24px 20px;
  font-family: Arial, sans-serif;
}

.modal-body-content p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 14px;
}

.modal-actions-panel {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px 20px;
  flex-wrap: wrap;
}

.modal-cancel-btn,
.modal-danger-submit-btn {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  flex: 1;
}

.modal-cancel-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #888;
}

.modal-cancel-btn:hover {
  color: white;
  border-color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

.modal-danger-submit-btn {
  background-color: rgb(215, 1, 1);
  border: none;
  border-bottom: 2px solid transparent;
  color: white;
}

.modal-danger-submit-btn:hover {
  background-color: white;
  border-bottom-color: rgb(215, 1, 1);
  color: black;
}

.chat-widget-container,
#studioChatContainer {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 320px;
  max-width: 90vw;
  background-color: #0b0b0b;
  border: 1px solid rgba(215, 1, 1, 0.4);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.chat-header,
#chatHeader {
  background-color: rgb(215, 1, 1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 1px solid rgba(215, 1, 1, 0.4);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.chat-title { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.chat-title h3 { 
  margin: 0; 
  font-size: 14px; 
  color: #fff; 
  text-transform: uppercase; 
}

.status-indicator.online {
  width: 8px; 
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.chat-toggle-btn { 
  background: none; 
  border: none; 
  color: white; 
  font-size: 16px; 
  cursor: pointer; 
}

.chat-body-collapsed { 
  display: none; 
}

.chat-body-expanded { 
  display: flex; 
  flex-direction: column; 
  height: 380px; 
}

#chatBody {
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

#chatBody.chat-body-collapsed {
  display: none !important;
  pointer-events: auto;
}

#chatBody.chat-body-expanded {
  display: flex !important;
  height: 380px;
}

.chat-tab-bar {
  display: flex; 
  gap: 6px; 
  background: #0d0d0d; 
  padding: 6px 10px; 
  border-bottom: 1px solid rgba(215, 1, 1, 0.3); 
  overflow-x: auto;
  scrollbar-width: thin;
}

.chat-tab {
  background: #1a1a1a;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-tab:hover {
  background: #262626;
  color: #fff;
  border-color: rgba(215, 1, 1, 0.5);
}

.chat-tab.active-tab,
.chat-tab[data-target] {
  box-shadow: 0 0 8px rgba(215, 1, 1, 0.3);
}

.close-tab-btn {
  color: #ff4444;
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
  border-radius: 50%;
  padding: 0 3px;
  transition: color 0.1s ease;
}

.close-tab-btn:hover {
  color: #ff6666;
  background: rgba(255, 68, 68, 0.2);
}

.chat-messages-area,
#chatMessages {
  flex: 1; 
  padding: 12px;
  overflow-y: auto; 
  display: flex;
  flex-direction: column; 
  gap: 10px;
  background-color: #000;
}

.chat-system-msg {
  color: #888888;
  font-size: 12px;
  text-align: center;
  margin: 4px 0;
}

.chat-bubble { 
  max-width: 85%; 
  padding: 8px 12px; 
  border-radius: 8px; 
  font-size: 13px; 
  display: flex;
  flex-direction: column;
  word-break: break-word;
  cursor: pointer;
  position: relative;
}

.chat-bubble.incoming { 
  background-color: #1a1a1a; 
  color: #eee; 
  align-self: flex-start; 
  border-left: 2px solid rgb(215, 1, 1); 
}

.chat-bubble.outgoing { 
  background-color: rgb(215, 1, 1); 
  color: #fff; 
  align-self: flex-end; 
}

.chat-sender-meta { 
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  font-size: 11px; 
  margin-bottom: 4px;
  gap: 8px; 
}

.chat-sender-meta strong {
  color: #00ffcc;
}

.direct-chat-btn {
  background: rgb(215, 1, 1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 6px rgba(215, 1, 1, 0.3);
}

.direct-chat-btn:hover {
  background: rgb(240, 20, 20) !important;
  box-shadow: 0 0 10px rgba(215, 1, 1, 0.6);
  transform: translateY(-1px);
}

.voice-call-trigger { 
  background: transparent !important; 
  border: 1px solid #00ffcc !important;
  color: #00ffcc !important;
  border-radius: 4px;
  padding: 2px 6px; 
  cursor: pointer; 
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px; 
}

.voice-call-trigger:hover {
  background-color: #00ffcc !important;
  color: #000000 !important;
}

.chat-delete-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
  padding: 2px;
  outline: none;
  pointer-events: auto !important;
  z-index: 10;
}

.chat-delete-btn:hover {
  opacity: 0.8;
}

.chat-input-form, 
#chatForm { 
  display: flex; 
  padding: 8px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px; 
  background: #111111; 
  border-top: 1px solid rgba(215, 1, 1, 0.3);
  position: relative;
}

.emoji-toggle-btn {
  background: transparent !important;
  border: none !important;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  outline: none;
  transition: transform 0.1s ease;
}

.emoji-toggle-btn:hover {
  transform: scale(1.15);
}

emoji-picker {
  display: block;
  width: 320px;
  height: 400px;
  max-width: 90vw;
  max-height: 50vh;
  --num-columns: 8;
  --category-icon-size: 1.1rem;
  --font-family: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.chat-text-input, 
#chatInput { 
  flex: 1; 
  background-color: #111; 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  color: white; 
  padding: 8px; 
  border-radius: 4px; 
  font-size: 13px; 
  outline: none; 
}

.chat-send-btn { 
  background-color: rgb(215, 1, 1); 
  color: white; 
  border: none; 
  padding: 8px 12px; 
  margin-left: 6px; 
  border-radius: 4px; 
  cursor: pointer; 
  font-weight: bold; 
}

.active-call-bar, 
#callBanner, 
#activeCallBar {
  background-color: #1a1a1a;
  border-bottom: 1px solid rgb(215, 1, 1);
  padding: 10px;
  font-size: 12px;
  color: #fff;
}

#callBanner.call-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#activeCallBar.active-call-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.active-call-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#activeCallTimer {
  font-weight: bold;
  color: #00ffcc;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.call-btn { 
  border: none; 
  padding: 6px 10px; 
  border-radius: 4px; 
  font-weight: bold; 
  cursor: pointer; 
}

.call-btn.accept { 
  background-color: #22c55e; 
  color: white; 
}

.call-btn.reject, .call-btn.end { 
  background-color: rgb(215, 1, 1); 
  color: white; 
}


.hidden { 
  display: none !important; 
}

.video-container {
  position: relative;
  width: 100%;
  max-height: 200px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden; 
  margin: 4px 0 8px 0;
}

.video-container:has(video[style*="display: none"]:first-child:last-child),
.video-container:empty {
  margin: 0;
  max-height: 0;
}

#localVideo {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #fff;
  z-index: 10;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-vector {
  width: 18px;
  height: 18px;
  color: rgb(215, 1, 1); 
  flex-shrink: 0; 
}

.contact-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

.system-footer {
  width: 100%;
  background-color: #0b0b0b; 
  border-top: 1px solid rgba(215, 1, 1, 0.4); 
  box-shadow: 0 -8px 16px rgba(215, 1, 1, 0.1); 
  padding: 24px 0;
  margin-top: auto; 
}

.footer-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-array {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(215, 1, 1); 
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.social-icon-link:hover svg {
  stroke: white;
  transform: translateY(-3px); 
}


@media (max-width: 768px) {

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    gap: 12px;
  }

  .header-logo {
    height: 50px;     
    width: 88px; 
    margin-left: 5px;
    object-fit: contain !important;
    flex: none; 
  }
  
  body {
    background-image: none !important;
  }

  .left-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: none;
  }

  .middle-section {
    order: 3;
    width: 100%;
    flex: none;
    margin-top: 12px;
    margin-bottom: 2px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .search-form-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .header-search-bar {
    padding: 8px 40px 8px 16px;
    font-size: 14px;
  }

  .right-section {
    margin-right: 0;
    gap: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
    touch-action: manipulation;
  }

  .right-section p {
    margin: 0;
    padding: 0;
    display: inline-block;
  }

  .right-section p:hover {
    padding: 0;
    background-color: transparent;
  }

  .right-section a,
  .dropdown-trigger-link {
    display: inline-block;
    font-size: 14px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .user-dropdown-container {
    display: inline-block;
  }

  .nav-mini-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .main-wrapper {
    margin-top: 210px !important;
    margin-bottom: 40px !important;
    padding: 0 15px;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  h1 {
    font-size: 26px;
  }

  .view-post-title {
    font-size: 26px !important;
    margin-top: 0 !important;
    margin-bottom: 10px;
    line-height: 1.25 !important;
  }

  .view-post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px !important;
    width: 100% !important;
  }

  .view-post-meta > strong,
  .view-post-meta > div {
    text-align: left !important;
    margin: 0 !important;
  }

  .engagement-bar {
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .like-button {
    padding: 5px 12px !important;
    font-size: 0.85rem !important;
  }

  .comment-submission-form textarea {
    font-size: 0.9rem !important;
    padding: 10px !important;
  }

  .comment-submit-btn {
    width: 100% !important; 
    text-align: center !important;
  }

  .comment-card {
    gap: 10px !important;
    padding: 10px !important;
  }

  .commenter-avatar {
    width: 32px !important; 
    height: 32px !important;
  }

  .commenter-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }


  .commenter-name {
    font-size: 0.85rem !important;
  }

  .comment-time {
    font-size: 0.75rem !important;
  }

  .comment-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto; 
    padding: 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
  }

  .comment-delete-btn:hover {
    opacity: 1;
  }

  .comment-text-content {
    font-size: 0.9rem !important;
  }

  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .post-title {
    font-size: 20px;
  }

  .media-container {
    height: 200px;
  }

  #studioChatContainer.chat-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    z-index: 9999;
    overflow: hidden;
  }

  #chatMessages.chat-messages-area {
    max-height: 220px;
    overflow-y: auto;
  }

  #chatForm.chat-input-form {
    margin-bottom: 0 !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    background-color: #0b0b0b !important;
  }

  #callBanner.call-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  #activeCallBar.active-call-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
  }

  .active-call-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .active-call-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }

  .video-container {
    position: relative;
    width: 100%;
    max-height: 180px;
    border-radius: 6px;
    overflow: hidden;
  }

  #remoteVideo {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
  }

  #localVideo {
    width: 65px;
    height: 48px;
    position: absolute;
    bottom: 6px;
    right: 6px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #fff;
    z-index: 10;
  }

  #chatInput.chat-text-input {
    font-size: 16px !important; 
    padding: 10px;
  }

  .chat-send-btn,
  .call-btn,
  .chat-toggle-btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 14px;
  }
  

  .footer-wrapper {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 0 20px 65px 20px !important;
    text-align: center !important;
  }

  .footer-contact-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 12px !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .contact-text {
    text-align: left !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .contact-vector {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }


  .footer-social-array {
    display: flex !important;
    gap: 20px !important; 
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
  }
}