* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #0a0a0f;
  color: #f3f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

body {
  position: relative;
}

.screen {
  width: 600px;
  height: 600px;
  background: #0a0a0f;
}

.hidden {
  display: none !important;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 64px;
  border-bottom: 1px solid #2c3038;
  background: #14171d;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aeb6c2;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 4px solid transparent;
}

.tab.active {
  color: #83e6ff;
  border-bottom-color: #83e6ff;
  background: #1b2028;
}

.message {
  position: absolute;
  top: 64px;
  left: 0;
  width: 600px;
  height: 536px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
  color: #f3f6fb;
  font-size: 24px;
  line-height: 1.45;
  text-align: center;
  background: #0a0a0f;
  z-index: 3;
}

.video-list {
  width: 600px;
  height: 536px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 18px;
  scrollbar-width: none;
}

.video-list::-webkit-scrollbar {
  display: none;
}

.video-row {
  width: 576px;
  min-height: 96px;
  margin: 0 0 10px;
  padding: 2px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  border: 3px solid #252a33;
  border-radius: 8px;
  background: #151920;
  color: #f3f6fb;
}

.video-row.focusable:focus {
  outline: none;
  border-color: #83e6ff;
  background: #202834;
  box-shadow: 0 0 0 2px rgba(131, 230, 255, 0.22);
}

.thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  background: #242832;
}

.video-info {
  min-width: 0;
  padding: 6px 8px 6px 0;
}

.title {
  min-height: 46px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta {
  margin-top: 8px;
  color: #b9c1cc;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duration {
  color: #83e6ff;
  font-weight: 700;
}

.action-row {
  width: 576px;
  min-height: 88px;
  margin: 0 0 10px;
  padding: 18px 22px;
  border: 3px solid #303641;
  border-radius: 8px;
  background: #18222b;
  color: #f3f6fb;
  font-size: 22px;
  font-weight: 800;
}

.action-row.focusable:focus {
  outline: none;
  border-color: #83e6ff;
  background: #233241;
}

.note-row,
.warning-row {
  width: 576px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-left: 4px solid #83e6ff;
  background: #111820;
  color: #c8d2de;
  font-size: 14px;
  line-height: 1.35;
}

.warning-row {
  border-left-color: #ffd166;
  color: #d6cfb8;
}

.screen-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-wrap,
#ytPlayer,
#ytPlayer iframe {
  width: 600px !important;
  height: 338px !important;
  background: #111319;
  border: 0;
}

.overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  padding: 14px 16px;
  border-left: 4px solid #83e6ff;
  background: rgba(10, 10, 15, 0.88);
}

.overlay-title {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #c9d1dc;
  font-size: 16px;
  font-weight: 700;
}
