/* Live Detail Interface Styles */
.live-detail-container {
  margin: 0 auto;
}

.live-detail-main {
  display: flex;
  height: auto;
  min-height: 600px;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

/* Video Section */
.live-detail-video-section {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #2a231f;
  padding: 0.5rem;
}

.live-detail-controls {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
  margin-bottom: 0.25rem;
}

/* Button Styles */
.live-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
  height: 1.75rem;
  padding: 4px 0.5rem;
  gap: 0.35rem;
  border: none;
}

.live-detail-btn-primary {
  background: linear-gradient(to right, #f03131, #ff6601);
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.live-detail-btn-secondary {
  background-color: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.live-detail-btn-secondary:hover {
  background-color: #f1f5f9;
}

.live-detail-btn-tertiary {
  background-color: #0c0908;
  color: #ada393;
  border: 1px solid #2a231f;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.live-detail-btn-tertiary:hover {
  background-color: #1a1f2e;
}

.live-detail-btn-text {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4rem;
  font-weight: 400;
  display: none;
}

.live-detail-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.live-detail-icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.live-detail-eye-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.15rem;
  color: inherit;
}

.live-detail-eye-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.live-detail-view-count {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
}

.live-detail-blv-tag {
  display: flex;
  align-items: center;
}

.live-detail-blv-name {
  max-width: 6rem;
  font-size: 0.75rem;
  line-height: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.live-detail-count-badge {
  padding: 0.125rem 0.625rem;
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: white;
  font-size: 0.75rem;
  font-weight: 400;
  color: black;
}

/* Player Container */
.live-detail-player-container {
  margin-top: 0.5rem;
  width: 100%;
  box-shadow: 0 1px 10.6px 0 rgba(255, 86, 0, 0.34);
}

/* Info Bar */
.live-detail-info-bar {
  margin-top: 0.5rem;
  border: 1px solid #2a231f;
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-radius: 0.375rem;
  padding: 0.75rem 0.5rem;
  background-color: rgba(26, 26, 26, 0.8);
}

.live-detail-info-left {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  font-size: 1rem;
}

.live-detail-avatar-container {
  display: flex;
  align-items: center;
}

.live-detail-avatar-hex {
  width: 2.5rem;
  height: 2.5rem;
}

.live-detail-match-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.live-detail-match-title {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  flex-wrap: wrap;
  line-height: 1.3;
}

.live-detail-competition {
  color: #ada393;
  font-weight: 500;
  white-space: nowrap;
}

.live-detail-team-name {
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.live-detail-team-score {
  color: #ada393;
  font-weight: 400;
  font-size: 0.85rem;
}

.live-detail-vs-score {
  color: #ff6601;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 1rem;
  text-align: center;
}

.live-detail-vs-separator {
  color: white;
  font-weight: 600;
  margin: 0 0.1rem;
}

.live-detail-blv-info {
  color: #ada393;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.live-detail-score {
  color: #ff6601;
  font-size: 1.25rem;
  font-weight: 600;
}

.live-detail-info-right {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}

.live-detail-followers {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 400;
  color: #ada393;
  gap: 0.25rem;
}

.live-detail-flame-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
}

.live-detail-flame-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: #ff6601;
}

.live-detail-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  height: 1.75rem;
  border-radius: 9999px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background: linear-gradient(to right, #f03131, #ff6601);
  border: none;
}

.live-detail-follow-btn span {
  font-size: 0.75rem;
}

/* Chat Section */
.live-detail-chat-section {
  height: 300px;
  width: 100%;
  border-radius: 0.375rem;
}

.live-detail-chat-container {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  background-color: #18181b;
}

.live-detail-chat-iframe-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  border: 1px solid #2a231f;
  scrollbar-width: thin;
  min-height: auto;
}

/* Responsive Design */
@media (min-width: 768px) {
  .live-detail-match-title {
    font-size: 0.9rem;
    gap: 0.25rem;
  }

  .live-detail-vs-score {
    font-size: 1rem;
  }

  .live-detail-blv-info {
    font-size: 0.75rem;
    margin-top: 0.15rem;
  }
}

@media (min-width: 1024px) {
  .live-detail-main {
    flex-direction: row;
    height: 777px;
    gap: 0.75rem;
  }

  .live-detail-video-section {
    width: 75%;
  }

  .live-detail-chat-section {
    width: 25%;
    height: auto;
  }

  .live-detail-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
  }

  .live-detail-btn {
    height: 2.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .live-detail-btn-text {
    display: inline;
  }

  .live-detail-blv-tag {
    font-size: 0.875rem;
  }

  .live-detail-count-badge {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.875rem;
  }

  .live-detail-avatar-hex {
    width: 3.5rem;
    height: 3.5rem;
  }

  .live-detail-match-title {
    font-size: 1rem;
    gap: 0.25rem;
  }

  .live-detail-vs-score {
    font-size: 1.1rem;
  }

  .live-detail-blv-info {
    font-size: 0.85rem;
    margin-top: 0.25rem;
  }

  .live-detail-followers {
    font-size: 1rem;
    gap: 0.35rem;
  }

  .live-detail-flame-icon {
    width: 1rem;
    height: 1rem;
  }

  .live-detail-flame-icon svg {
    width: 1rem;
    height: 1rem;
  }

  .live-detail-info-bar {
    padding: 0.25rem;
  }

  .live-detail-info-left {
    gap: 0.5rem;
  }

  .live-detail-match-info {
    gap: 0.3rem;
  }
}

/* Custom styles for the BLV popup */
.blv-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.blv-popup-content {
  background: #1a1a1a;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.blv-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  height: 30px;
  margin-bottom: 8px;
  color: white;
}

#close-blv-popup {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  width: 24px;
  margin: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blv-popup-subheader {
  color: #888;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.blv-list .blv-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #333;
}

.blv-list .blv-avatar {
  width: 44px;
  height: 44px;
  margin-right: 12px;
  flex-shrink: 0;
}

.blv-list .blv-info {
  flex-grow: 1;
  color: white;
  margin-right: 12px;
}

.blv-list .blv-name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.95em;
}

.blv-list .blv-followers {
  font-size: 0.85em;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blv-join-button {
  background: linear-gradient(to right, #f03131, #ff6601);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blv-join-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 1, 0.3);
}

/* Error message styles */
.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 0.375rem;
  text-align: center;
}

.match-detail h1 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  margin-bottom: 16px;
  padding-left: 15px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

.match-detail .match-detail-title-2 {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 16px;
  padding-left: 15px;
  color: white;
  letter-spacing: -0.02em;
}

.match-detail h1::before,
.match-detail .match-detail-title-2::before {
  content: "";
  width: 3px;
  height: 100%;
  left: 0;
  display: block;
  position: absolute;
  top: 0;
  background-color: #f26622;
}

.no-stream {
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* React App Container */
#root {
  width: 100%;
  margin-top: 1rem;
  border-radius: 0.375rem;
  border: 1px solid #2a231f;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 1rem;
  min-height: 200px;
  display: none;
}

/* Typography improvements for description */
.match-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #e5e5e5;
  margin: 16px 0;
}

.match-description p {
  margin-bottom: 12px;
  text-align: justify;
}

.match-description strong {
  color: white;
  font-weight: 600;
}

.match-description p a {
  color: #ff6601;
  text-decoration: none;
  font-weight: 600;
}

.match-description a:hover {
  text-decoration: none;
}

.match-description ul {
  margin: 12px 0;
  padding-left: 20px;
}

.match-description li {
  margin-bottom: 8px;
  color: #d1d1d1;
}

/* Responsive Typography */
@media (min-width: 768px) {
  .match-detail h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .match-detail .match-detail-title-2 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 18px;
  }

  .match-description {
    font-size: 15px;
    margin: 20px 0;
  }

  .match-description p {
    margin-bottom: 14px;
  }

  .match-description ul {
    margin: 16px 0;
  }

  .match-description li {
    margin-bottom: 10px;
  }
}

@media (min-width: 1024px) {
  .match-detail h1 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .match-detail .match-detail-title-2 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 20px;
  }

  .match-description {
    font-size: 16px;
    margin: 24px 0;
  }

  .match-description p {
    margin-bottom: 16px;
  }

  .match-description ul {
    margin: 20px 0;
  }

  .match-description li {
    margin-bottom: 12px;
  }

  #root {
    margin-top: 1.5rem;
    padding: 1.5rem;
    display: block;
  }
}
