body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.content {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.nav-bar {
    padding: 10px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.container {
    display: flex;
    gap: 20px;
    margin-top: 0;
}

.video {
    flex: 2;
    min-width: 300px;
}

.transcript {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .content {
        padding: 0;
    }
    
    .nav-bar {
        padding: 10px;
    }
    
    .video {
        position: sticky;
        top: 40px;
        width: 100%;
        max-width: 100%;
        background: white;
        z-index: 10;
    }
    
    .transcript {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-top: 10px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* 添加这些规则来控制内部元素的间距 */
    .transcript h1 {
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    .transcript > div:first-of-type {
        margin-top: 0;
    }
    
    /* 确保导航栏和视频之间没有额外空间 */
    .nav-bar + .container {
        margin-top: 0;
    }
}

/* 视频容器的响应式高度 */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.audio-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px; /* Set the desired height */
  background-color: #333; /* Set the desired background color */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.video-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333; /* Set the desired background color */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

input[type=range] {
  width: 100px;
  margin-left: 10px;
}

/* Media query for narrow and tall screens */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }
  .transcript {
    width: 100%;
  }
}

/* 移除这个可能导致顶部留白的类 */
.transcript_padding {
    display: none;
}

/* 添加这些新类 */
.nav-left {
    flex: 1;
    min-width: 0;  /* 允许内容换行 */
    margin-right: 10px;
}

.nav-right {
    white-space: nowrap;  /* 保持右侧按钮在同一行 */
}

/* 添加 tab 相关样式 */
.tab-buttons {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #666;
    margin-right: 20px;
}

.tab-button.active {
    color: #000;
    border-bottom: 2px solid #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 添加表单相关样式 */
textarea {
    width: 100%;
    min-height: 100px;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;  /* 确保padding不会增加总宽度 */
    font-family: 'Noto Sans SC', sans-serif;
}

form {
    width: 100%;
    margin: 15px 0;
}

/* 修改按钮样式，使其与其他按钮区分 */
form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
}

form button:hover {
    background-color: #0056b3;
}

