.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.embedded-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}


.player-x,
.brid-video-embed .player-x,
body .player-x {
  position: relative !important;
  width: 100% !important; 
  max-width: 100% !important;
  margin: 0 auto !important;
  background: #000 !important;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 29px;
  border: none !important;
  box-shadow: none !important;
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  height: auto !important;
  min-height: unset !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Updated embedded-video class for aspect ratio */
.embedded-video,
.player-x .embedded-video {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
  height: 0 !important;
  overflow: hidden !important;
}

/* Fix the player container positioning */
.brid-player-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Location bar and snapshot button styles */
.location-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  padding-right: 15px;
  height: 40px;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-sizing: border-box;
  width: 100%;
  margin-top: 2px;
}

.location-text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  font-weight: 400;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4;
  max-width: 75%;
  text-align: left !important;
  box-sizing: border-box !important;
  position: relative;
  left: 0 !important;
  text-indent: 0 !important;
  transform: translateX(0) !important;
  float: none !important;
  display: inline-block !important;
  padding-left: 0 !important;
}




.location-bar.no-snapshot .location-text,
html body .location-bar.no-snapshot .location-text {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 10px !important;
}

.location-text a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.location-text a:hover {
  text-decoration: underline;
}

.snapshot-button {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: normal;
  color: #333;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
}

.snapshot-button:hover {
  background-color: #e5e5e5;
}

.camera-icon {
  margin-right: 5px;
}

.camera-icon i {
  font-size: 14px;
  color: #555;
}

/* CSS Variables for better control */
:root {
  --modal-header-height: 50px;
  --modal-footer-height: 55px;
  --modal-content-max-height: 95vh;
 
}

/* Enhanced Modal Styling for Screenshot Preview */
.snapshot-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.snapshot-modal-content {
  position: relative;
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-height: var(--modal-content-max-height);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.snapshot-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  height: var(--modal-header-height);
  box-sizing: border-box;
}

.snapshot-modal-title {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.snapshot-modal-close {
  font-size: 24px;
  font-weight: normal;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f1f1;
}

.snapshot-modal-close:hover {
  color: #000;
  background-color: #e5e5e5;
}

.snapshot-modal-body {
  padding: 0;
  text-align: center;
  background-color: #000;
  position: relative;
  flex: 1;
  height: calc(var(--modal-content-max-height) - var(--modal-header-height) - var(--modal-footer-height));
  display: block;
  overflow: hidden;
}

.snapshot-modal-body img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 15%; /* Changed from 20% to better show logo */
  display: block;
  margin: 0 auto;
}

.snapshot-modal-footer {
padding: 8px 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e9ecef;
  background-color: rgba(255, 255, 255, 0.98);
  height: var(--modal-footer-height);
  box-sizing: border-box;
  min-height: 40px;
}

.snapshot-resolution {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin: 0;
  text-align: right;
  order: 2;
}

.snapshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  order: 1;
}

/* Primary action button */
.snapshot-download-btn,
button[onclick^="downloadSnapshot"] {
  padding: 10px 20px !important;
  background-color: #0078D7 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 170px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  height: 40px !important;
}
.snapshot-download-btn:hover,
button[onclick^="downloadSnapshot"]:hover {
  background-color: #106EBE !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Share buttons */
.snapshot-share-btn,
button[onclick^="share"] {
  padding: 10px 16px !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 90px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  height: 40px !important;
}

.snapshot-share-btn:hover,
button[onclick^="share"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Facebook share button */
button[onclick*="facebook"] {
  background-color: #1877F2 !important;
}
button[onclick*="facebook"]:hover {
  background-color: #166FE5 !important;
}

/* Tumblr share button */
button[onclick*="tumblr"] {
  background-color: #1DA1F2 !important;
}
button[onclick*="tumblr"]:hover {
  background-color: #0D95E8 !important;
}


/* Pinterest share button */
button[onclick*="pinterest"] {
  background-color: #E60023 !important;
}
button[onclick*="pinterest"]:hover {
  background-color: #D50020 !important;
}

/* Additional features */
.snapshot-timestamp {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  pointer-events: none;
}

/* Loading indicator */
.snapshot-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile-specific improvements with more subtle button */
@media screen and (max-width: 768px) {
  .snapshot-modal-footer {
    flex-direction: column;
    padding: 10px 15px;
    height: auto;
  }
  
  .snapshot-resolution {
    order: 1;
    text-align: left;
    margin-bottom: 10px;
  }
  
  .snapshot-actions {
    order: 2;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .location-bar {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    padding-right: 12px;
    margin-top: 3px;
    height: auto;
    min-height: 38px;
  }
  

  
  .location-text {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 13px;
    max-width: 70%;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
    color: #444;
  }
  
  .location-text a {
    color: #0078D7;
    font-weight: 500;
  }
  
  .snapshot-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: auto;
    margin-left: auto;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
  }
  
  .camera-icon i {
    color: #555;
  }
  
  .player-x {
    margin-bottom: 15px;
  }
  
  .snapshot-modal-content {
    width: 95%;
    margin: 5% auto;
    border-radius: 10px;
  }
  
  .snapshot-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .snapshot-download-btn,
  button[onclick^="downloadSnapshot"] {
    width: 100%;
    margin-bottom: 8px !important;
  }
  
  .snapshot-share-btn,
  button[onclick^="share"] {
    width: 100%;
    margin-bottom: 4px !important;
  }
}

/* For very small screens */
@media screen and (max-width: 360px) {
  .location-text {
    font-size: 12px;
    max-width: 65%;
  }
  
  .snapshot-button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .snapshot-modal-header {
    padding: 10px 15px;
  }
  
  .snapshot-modal-title {
    font-size: 18px;
  }
}

/* Context menu styles */
#custom-context-menu {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #112144;
  border: none;
  padding: 5px 20px;
  list-style: none;
  display: none;
  color: #fff;
  width: 100%;
  max-width: 260px;
  z-index: 1000;
  font-family: system-ui, fangsong, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  font-size: 15px;
  line-height: 16px;
}
#custom-context-menu ul {
  padding: 0px;
}
#custom-context-menu li {
  margin: 2px 0;
  display: flex;
  align-items: center;
}
#custom-context-menu a {
  text-decoration: none;
  color: inherit;
  padding: 5px 10px;
}
#custom-context-menu a:hover {
  color: #f1f1f1;
}
#custom-context-menu i {
  margin-right: 5px;
  color: #fff;
}
#custom-context-menu .company-info {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fff;
}
#custom-context-menu.hidden {
  display: none;
}

.player-x .lower-content {
  padding: 3px 10px;
  background: #353535
    url(https://thesurfersview.com/cams/grayButtonBackground2.png) repeat-x left
    bottom;
}
.player-x .content-left {
  float: left;
}
.player-x .content-right {
  float: right;
}
.player-x .blue {
  color: #9eb0d5;
  font-weight: 600;
  font-size: 1.1em;
}

