/* ===== VIDEOS PAGE COMMON ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}


/* ===== VIDEO LIST PAGE ===== */
.videos-main {
  padding: 30px 0;
  background: #f5f7fa;
  min-height: 600px;
}

/* VIDEO TABS */
.video-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.video-tab {
  padding: 10px 24px;
  border: 2px solid #e0e5ec;
  background: #fff;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.video-tab:hover {
  border-color: #1f488a;
  color: #1f488a;
}

.video-tab.active {
  background: #1f488a;
  border-color: #1f488a;
  color: #fff;
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(31, 72, 138, 0.15);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
}

.video-card:hover .video-play {
  opacity: 1;
}

.video-play span {
  width: 0;
  height: 0;
  border-left: 18px solid #1f488a;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.video-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.skill-tag { background: #1f488a; }
.exam-tag { background: #e67e22; }
.safety-tag { background: #27ae60; }
.activity-tag { background: #9b59b6; }

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-info h3 a {
  color: #333;
  transition: color 0.3s;
}

.video-info h3 a:hover {
  color: #1f488a;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #999;
}

.video-views {
  display: flex;
  align-items: center;
  gap: 4px;
}



/* ===== VIDEO DETAIL PAGE ===== */
.video-detail-main {
  padding: 30px 0;
  background: #f5f7fa;
  min-height: 700px;
}

.video-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

.video-detail-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* VIDEO PLAYER */
.video-player {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  text-align: center;
  color: #666;
}

.play-btn-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  cursor: pointer;
  transition: transform 0.3s;
}

.play-btn-large:hover {
  transform: scale(1.1);
}

.play-btn-large span {
  width: 0;
  height: 0;
  border-left: 24px solid #1f488a;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 8px;
}

.video-placeholder p {
  color: #999;
  font-size: 14px;
}

/* VIDEO INFO */
.video-detail-info {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.video-detail-info h1 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 16px;
}

.video-detail-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.video-detail-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f5f7fa;
  border: 1px solid #e0e5ec;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  border-color: #1f488a;
  color: #1f488a;
}

.action-icon {
  font-size: 16px;
}

/* VIDEO DESCRIPTION */
.video-description {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.video-description h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
}

.video-description p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 12px;
}

.video-description ul {
  margin: 16px 0;
  padding-left: 20px;
}

.video-description li {
  font-size: 15px;
  line-height: 2;
  color: #666;
  list-style: disc;
}

/* VIDEO TAGS */
.video-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.tag-label {
  font-size: 14px;
  color: #999;
}

.video-tag-link {
  padding: 4px 12px;
  background: #f5f7fa;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  transition: all 0.3s;
}

.video-tag-link:hover {
  background: #1f488a;
  color: #fff;
}

/* VIDEO NAV */
.video-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.video-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f7fa;
  border-radius: 8px;
  transition: all 0.3s;
  max-width: 48%;
}

.video-nav-btn:hover {
  background: #e8edf4;
}

.video-nav-btn.prev {
  flex-direction: row;
}

.video-nav-btn.next {
  flex-direction: row-reverse;
  text-align: right;
}

.nav-icon {
  width: 32px;
  height: 32px;
  background: #1f488a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-text small {
  font-size: 12px;
  color: #999;
}

.nav-text strong {
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.video-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1f488a;
}

/* CATEGORY LIST */
.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 4px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
  background: rgba(31, 72, 138, 0.08);
  color: #1f488a;
}

.category-list .count {
  font-size: 12px;
  color: #999;
}

/* RECOMMEND LIST */
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommend-item {
  display: flex;
  gap: 12px;
}

.recommend-thumb {
  position: relative;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recommend-item:hover .recommend-thumb img {
  transform: scale(1.1);
}

.recommend-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.recommend-item:hover .recommend-play {
  opacity: 1;
}

.recommend-play span {
  width: 0;
  height: 0;
  border-left: 10px solid #1f488a;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.recommend-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.recommend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recommend-info h5 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-info h5 a {
  color: #333;
  transition: color 0.3s;
}

.recommend-info h5 a:hover {
  color: #1f488a;
}

.recommend-views {
  font-size: 12px;
  color: #999;
}

/* CONTACT CARD */
.sidebar-widget.contact-card {
  background: linear-gradient(135deg, #1f488a, #2d5aa0);
  text-align: center;
}

.sidebar-widget.contact-card .widget-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-phone {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.contact-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #fff;
  color: #1f488a;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3%;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .video-layout {
    grid-template-columns: 1fr;
  }
  
  .video-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
  
  .recommend-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .recommend-item {
    width: calc(50% - 8px);
  }
  
  .recommend-thumb {
    width: 100px;
    height: 56px;
  }
}

@media (max-width: 600px) {
  .video-tabs {
    gap: 8px;
  }
  
  .video-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .video-detail-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .video-detail-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .video-nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .video-nav-btn {
    max-width: 100%;
  }
  
  .recommend-item {
    width: 100%;
  }
}
