/* Video rank — head / tabs / rank badge on video-static cards */

.video-rank-static .video-crumb__current {
  color: var(--video-muted);
}

.video-rank-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 18px;
}

.video-rank-tabs {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 18px;
}

.video-rank-tab {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--video-muted);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.video-rank-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
  font-size: 14px;
  line-height: 20px;
}

.video-rank-tab--active {
  background: rgba(255, 225, 32, 0.1);
  color: var(--video-accent, #ecd227);
}

.video-rank {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.video-rank__num {
  font-weight: 400;
  text-align: center;
  line-height: 1;
}

/* ========== H5 ========== */
@media (max-width: 768px) {
  .video-rank-static .video-view {
    padding: 12px 16px 24px;
  }

  .video-rank-static .video-inner {
    gap: 18px;
  }

  .video-rank-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    align-self: stretch;
    padding: 6px 12px;
    background: rgba(255, 225, 32, 0.1);
    border-radius: 6px;
  }

  .video-rank-static .video-crumb {
    font-size: 12px;
    line-height: 18px;
    color: var(--video-text);
  }

  .video-rank-static .video-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
  }

  .video-rank-tabs {
    gap: 6px;
  }

  .video-rank-tab {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .video-rank__pc {
    display: none;
  }

  .video-rank {
    left: 0;
    bottom: 0;
    top: auto;
    right: auto;
    width: 25px;
    height: 20px;
    border-radius: 5px 0.83px 5px 0.83px;
    overflow: hidden;
  }

  .video-rank::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  .video-rank--1::before {
    background: linear-gradient(225deg, #ffcd9a 0%, #e88a33 100%);
  }

  .video-rank--2::before {
    background: linear-gradient(225deg, #cce9ff 0%, #8da9bf 100%);
  }

  .video-rank--3::before {
    background: linear-gradient(225deg, #ffbfa4 0%, #d88867 100%);
  }

  .video-rank--4::before {
    background: linear-gradient(225deg, #878787 0%, #494949 100%);
  }

  .video-rank__num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  }
}

/* ========== PC ========== */
@media (min-width: 769px) {
  .video-rank-static .video-view {
    padding: 30px 200px 60px;
  }

  .video-rank-static .video-inner {
    gap: 30px;
  }

  .video-rank-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    padding: 24px 18px;
    background: rgba(255, 225, 32, 0.1);
    border-radius: 12px;
  }

  .video-rank-static .video-crumb {
    font-size: 18px;
    line-height: 24px;
    color: var(--video-text);
  }

  .video-rank-static .video-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
  }

  .video-rank {
    left: 12px;
    bottom: 12px;
    top: auto;
    right: auto;
    width: 44px;
    height: 52px;
  }

  .video-rank__pc {
    display: block;
    width: 44px;
    height: 52px;
    object-fit: contain;
  }

  .video-rank__num {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    color: #666;
    font-size: 18px;
    line-height: 20px;
    font-family: "Swis721 BlkCn BT", Impact, sans-serif;
  }

  .video-rank--1 .video-rank__num {
    color: #643f25;
  }

  .video-rank--2 .video-rank__num {
    color: #5d6c8c;
  }

  .video-rank--3 .video-rank__num {
    color: #be5e29;
  }

  .video-rank--4 .video-rank__num {
    color: #666;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .video-rank-static .video-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}
