/* 通用基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    /* background-color: #; */
}

a {
    text-decoration: none;
    color: rgb(96, 96, 96);
}

span {
    color: rgb(96, 96, 96);
    font-size: 14px;
}

hr {
    height: 1px;
    background-color: #e5e5e5;
    border: none;
}

.material-icons {
    color: rgb(96, 96, 96);
    vertical-align: middle;
    margin-right: 5px;
}

/* 侧边栏样式 */
.sidebar {
    height: 100%;
    background-color: white;
    overflow-y: scroll;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar__categories {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    width: 100%;
}

.sidebar__category {
    display: flex;
    align-items: center;
    padding: 12px 25px;
}

.sidebar__category span {
    margin-left: 15px;
}

.sidebar__category a {
    color: #555;
    display: block;
    padding: 8px 16px;
}

.sidebar__category a:hover {
    color: #007bff;
    background-color: #f0f0f0;
}

/* 视频容器网格 */
.videos__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 视频播放器容器 */

.video-player-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;  /* 保持16:9比例 */
  background-color: #000;
  margin-bottom: 1rem;
}

.video-player-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 或 contain，看你想裁剪还是留黑边 */
}

.video-player-container .plyr {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% ;
  height: 100% ;
  object-fit: contain;
}

/* 视频卡片 */
.video {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.video__thumbnail video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video__details {
    padding: 10px;
}

/* 视频信息与样式 */
.video-card {
    margin-bottom: 30px;
}

.video-thumbnail {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
}

.video-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.video-description {
    font-size: 0.9rem;
    color: #555;
}

.video-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}




/* 视频作者与动作按钮 */
.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.video-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-action {
    font-size: 17px;
}

.subscribe-btn {
    background: red;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
}

.verified-icon {
    color: blue;
    margin-left: 5px;
}

/* 响应式辅助类 */
@media (min-width: 992px) {
    .col-lg-1-5 {
        width: 12.5%;
    }
}
