.videos-page {
  min-height: 100vh;
  padding: 24px clamp(16px, 4vw, 56px) 40px;
}
.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 28px;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.videos-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
}
.video-library .mc-btn {
  font: inherit;
  font-size: 14px;
  text-transform: none;
  background: transparent;
  color: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 8px 0;
  text-shadow: none;
  box-shadow: none;
  text-decoration: none;
}
.video-library .mc-btn:hover {
  background: transparent;
  color: var(--text);
  transform: none;
  box-shadow: none;
}
.user-display {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.videos-content {
  max-width: 1400px;
  margin: 0 auto;
}
.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.stats-available {
  color: var(--accent);
}
.long-video-section {
  margin-bottom: 28px;
}
.long-video-heading {
  font-size: 20px;
  margin-bottom: 18px;
}
.long-video-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-bg);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.video-card:not(.video-card-locked):not(.long-video-placeholder):is(
    :hover,
    :focus-visible
  ) {
  border-color: var(--accent);
  background: var(--panel-hover);
}
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--panel-bg);
  overflow: hidden;
}
.video-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-card-info {
  padding: 14px;
}
.video-card-title {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.video-card-num {
  color: var(--muted);
  font-size: 13px;
  margin-right: 4px;
}
.video-card-category {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #091523de;
  color: #edf3fa;
  font-size: 11px;
}
.video-play-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #091523cc;
}
.video-play-icon::after {
  content: "";
  border-left: 9px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.video-tab {
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.video-tab:hover,
.video-tab.active {
  background: var(--panel-hover);
  border-color: var(--accent);
  color: var(--text);
}
.long-video-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-style: dashed;
  cursor: default;
}
.long-video-placeholder-text,
.video-coming-soon {
  font-size: 14px;
  color: var(--muted);
}
.long-video-placeholder-en {
  display: none;
}
.video-coming-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #09152388;
}
.video-card-locked {
  cursor: default;
}
.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.empty-text {
  font-size: 18px;
}
.empty-hint {
  font-size: 14px;
  margin-top: 8px;
}
.construction-animation {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  background: #030912d9;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.video-modal-content {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.video-player-wrapper {
  width: 100%;
  background: #000;
}
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
}
.video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-info {
  padding: 16px 20px;
}
.video-title {
  font-size: 18px;
  margin-bottom: 6px;
}
.video-description,
.video-unavailable {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.video-unavailable {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
}
@media (max-width: 1150px) {
  .long-video-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .videos-page {
    padding: 12px 16px 24px;
  }
  .videos-header {
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 20px;
  }
  .header-left {
    display: contents;
  }
  .header-left > a {
    order: 0;
  }
  .header-right {
    order: 1;
    margin-left: auto;
    gap: 10px;
    flex-wrap: wrap;
  }
  .videos-title {
    order: 2;
    width: 100%;
    margin-top: 12px;
  }
}
@media (max-width: 560px) {
  .long-video-grid,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
