/* FANGST v80 - useful educational YouTube videos */
.v80-video-home{grid-column:1/-1;min-height:62px;display:flex!important;align-items:center;gap:13px;border:1px solid #54bac9!important;border-radius:13px!important;background:linear-gradient(105deg,#0d506b,#107a8d)!important;color:#fff!important;padding:12px 15px!important;text-align:left;cursor:pointer}
.v80-video-home strong{font-size:15px!important;color:#fff!important}
.v80-home-icon{width:36px;height:36px;background:#fff;color:#09647b;border-radius:11px;display:grid;place-items:center;font-size:15px;flex-shrink:0}
.v80-home-arrow{margin-left:auto;font-size:27px;color:#fff}
.v80-video-home:focus-visible,.v80-poster:focus-visible,.v80-close:focus-visible,.v80-youtube-link:focus-visible{outline:3px solid #16b1b2;outline-offset:3px}
.v80-videos h1{margin-bottom:8px}
.v80-group{margin:23px 0 26px}
.v80-group h2{font-size:19px;font-weight:800;margin:0 0 13px}
.v80-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.v80-video-card{min-width:0;overflow:hidden;background:#fff;color:#1a3143;border:1px solid #c9d9e2;border-radius:15px;box-shadow:0 3px 12px rgba(0,37,58,.09)}
.v80-media{position:relative;aspect-ratio:16/9;background:linear-gradient(125deg,#082d45,#166783);overflow:hidden}
.v80-poster{display:block;width:100%;height:100%;padding:0;border:0;cursor:pointer;position:relative;background:transparent}
.v80-poster img{width:100%;height:100%;object-fit:cover;display:block}
.v80-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#de2026;color:white;border-radius:13px;display:grid;place-items:center;width:54px;height:38px;box-shadow:0 2px 12px #0009;font-size:19px;padding-left:3px}
.v80-poster:hover .v80-play-icon{background:#f23339}
.v80-playlist-tag{position:absolute;bottom:9px;right:9px;background:#061e2bcf;color:#fff;border-radius:6px;font-size:11px;font-weight:700;padding:5px 8px}
.v80-media iframe{width:100%;height:100%;display:block;border:0}
.v80-card-body{padding:12px}
.v80-card-body h3{margin:0 0 9px;font-size:15px;line-height:1.35;font-weight:750}
.v80-video-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.v80-youtube-link{font-size:12px;font-weight:700;color:#006984;text-decoration:underline}
.v80-close{font:inherit;font-size:12px;font-weight:700;border:1px solid #9db8c6;background:#eaf3f6;border-radius:7px;color:#123d51;padding:5px 8px;cursor:pointer}
.v80-close[hidden]{display:none!important}
.v80-note{line-height:1.5;margin-top:18px}
body.fangst-dark .v80-video-card{background:#15394c;color:#f3fbff;border-color:#356375}
body.fangst-dark .v80-youtube-link{color:#91e7f1}
body.fangst-dark .v80-close{background:#174e61;color:#fff;border-color:#6a9caa}
@media(max-width:620px){.v80-video-grid{grid-template-columns:1fr}.v80-group{margin:22px 0}.v80-card-body h3{font-size:16px}.v80-play-icon{width:60px;height:42px}}
/* v110: Keep Useful Videos and Judge Panel adjacent as two equal cards on the home page. */
.v66-shortcuts > .v80-video-home,
.v66-shortcuts > .v110-judge-home{
  grid-column:auto!important;
  min-width:0!important;
  min-height:145px!important;
  padding:15px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:8px!important;
  position:relative;
  text-align:left!important;
  border:1px solid #47748a!important;
  border-radius:15px!important;
  color:#effbff!important;
  background:#173e53!important;
  cursor:pointer;
}
.v66-shortcuts > .v80-video-home strong,
.v66-shortcuts > .v110-judge-home strong{
  font-size:15px!important;
  line-height:1.3;
  color:#fff!important;
}
.v66-shortcuts .v80-home-icon,
.v66-shortcuts .v110-judge-icon{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-size:24px;
  line-height:1;
  color:#16a5c1;
  background:transparent;
}
.v66-shortcuts .v110-judge-icon{font-size:25px}
.v66-shortcuts .v110-card-description{
  font-size:12px;
  font-weight:400;
  line-height:1.35;
  color:#b6d0db;
  padding-right:10px;
}
.v66-shortcuts .v80-home-arrow,
.v66-shortcuts .v110-judge-arrow{
  position:absolute;
  right:13px;
  bottom:11px;
  font-size:20px;
  line-height:1;
  margin:0;
  color:#84c8da;
  opacity:.65;
}
.v110-judge-home:focus-visible{outline:3px solid #36d1e8;outline-offset:3px}

/* v111: The two home tools form ONE guaranteed row, outside the general shortcut grid. */
.v111-home-tools{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:166px!important;
  gap:10px!important;
  width:100%!important;
  margin:0 0 22px!important;
  padding:0!important;
  align-items:stretch!important;
}
.v111-home-tools>.v80-video-home,
.v111-home-tools>.v110-judge-home{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:9px!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  height:166px!important;
  box-sizing:border-box!important;
  padding:14px 12px!important;
  overflow:hidden!important;
  position:relative!important;
  margin:0!important;
  border:1px solid #46778b!important;
  border-radius:14px!important;
  background:#173e53!important;
  color:#fff!important;
  text-align:left!important;
  cursor:pointer;
}
.v111-home-tools>.v80-video-home strong,
.v111-home-tools>.v110-judge-home strong{font-size:15px!important;line-height:1.23!important;color:#fff!important}
.v111-home-tools .v80-home-icon,
.v111-home-tools .v110-judge-icon{width:34px!important;height:34px!important;display:flex!important;align-items:center;justify-content:center;background:transparent!important;font-size:24px!important;color:#18b6c4!important;flex:0 0 auto}
.v111-home-tools .v110-card-description{font-size:11px!important;line-height:1.32!important;color:#c0d6e1!important;font-weight:400!important;padding-right:12px}
.v111-home-tools .v80-home-arrow,
.v111-home-tools .v110-judge-arrow{position:absolute!important;bottom:10px!important;right:10px!important;top:auto!important;margin:0!important;font-size:19px!important;color:#8ed7e5!important}
@media(max-width:370px){
 .v111-home-tools{gap:8px!important;grid-template-rows:168px!important}
 .v111-home-tools>.v80-video-home,
 .v111-home-tools>.v110-judge-home{height:168px!important;padding:12px 10px!important}
 .v111-home-tools>.v80-video-home strong,
 .v111-home-tools>.v110-judge-home strong{font-size:14px!important}
}
