/* ============================================================
   小姐姐 · 小姐姐视频模板
   样式忠实还原自原站 pc.css：配色 / 尺寸 / 渐变按钮 / 字体 / 阴影 / 弹窗
   仅做类名化整理与搞笑主题文案替换，视觉细节保持一致。
   ============================================================ */

html, body {
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #161823;
  margin: 0;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

.app {
  width: 650px;
  height: 640px;
  overflow: hidden;
  margin: 15px auto;
}

/* ===== 左侧竖屏播放器 ===== */
.player-col {
  position: relative;
  width: 348px;
  height: 618.63px;
  float: left;
  background: #000;
  border-radius: 5px;
  overflow: hidden;
}

/* 封面背景层：铺满容器，任何比例的封面都不留黑边 */
.poster-bg {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

#player {
  position: relative;
  width: 348px;
  float: none;
  border-radius: 5px;
  z-index: 2;
  border: 0;
  height: 618.63px;
  background: transparent;
  display: block;
  /* 视频铺满容器，消除黑边（裁掉超出部分，不变形） */
  object-fit: cover;
  object-position: center;
}

.corner-logo {
  position: absolute;
  margin-top: 5px;
  margin-left: 5px;
  z-index: 3;
}
.corner-logo img { width: 100px; }

/* ===== 右侧控制栏 ===== */
.box {
  width: 242px;
  height: 600px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  float: left;
  font-size: 12px;
}

.brand { padding: 10px 0 30px 0; text-align: center; }
.brand img { width: 180px; }
.brand .userid { color: #fff; font-size: 16px; }
.brand .status {
  display: block;
  min-height: 16px;
  margin-top: 8px;
  color: #ffb02e;
  font-size: 12px;
}
.brand .status.is-error { color: #ff4040; }

/* 每个按钮外层容器：还原原站 inline padding */
.box-row {
  padding-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* ===== 按钮：还原原站渐变视觉 ===== */
.xhms {
  -moz-box-shadow: inset 0 1px 0 0 #f5978e;
  -webkit-box-shadow: inset 0 1px 0 0 #f5978e;
  box-shadow: inset 0 1px 0 0 #f5978e;
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#f24537),color-stop(1,#c62d1f));
  background: -moz-linear-gradient(center top,#f24537 5%,#c62d1f 100%);
  background-color: #f24537;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-indent: 0;
  display: inline-block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  height: 33px;
  line-height: 30px;
  width: 190px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 0 #810e05;
  border: 0;
  cursor: pointer;
}
.xhms:hover {
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#c62d1f),color-stop(1,#f24537));
  background: -moz-linear-gradient(center top,#c62d1f 5%,#f24537 100%);
  background-color: #c62d1f;
}
.xhms:active { position: relative; top: 1px; }

.zdlb {
  -moz-box-shadow: inset 0 1px 0 0 #a4e271;
  -webkit-box-shadow: inset 0 1px 0 0 #a4e271;
  box-shadow: inset 0 1px 0 0 #a4e271;
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#89c403),color-stop(1,#77a809));
  background: -moz-linear-gradient(center top,#89c403 5%,#77a809 100%);
  background-color: #89c403;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-indent: 0;
  display: inline-block;
  color: #fff;
  font-family: arial;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  height: 33px;
  line-height: 30px;
  width: 190px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 0 #528009;
  border: 0;
  cursor: pointer;
}
.zdlb:hover {
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#77a809),color-stop(1,#89c403));
  background: -moz-linear-gradient(center top,#77a809 5%,#89c403 100%);
  background-color: #77a809;
}
.zdlb:active { position: relative; top: 1px; }

.pass {
  -moz-box-shadow: inset 0 1px 0 0 #fff;
  -webkit-box-shadow: inset 0 1px 0 0 #fff;
  box-shadow: inset 0 1px 0 0 #fff;
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#ededed),color-stop(1,#dfdfdf));
  background: -moz-linear-gradient(center top,#ededed 5%,#dfdfdf 100%);
  background-color: #ededed;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-indent: 0;
  display: inline-block;
  color: #777;
  font-family: arial;
  font-size: 35px;
  font-weight: 700;
  height: 55px;
  line-height: 50px;
  width: 190px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  border: 0;
  cursor: pointer;
}
.pass:hover {
  background: -webkit-gradient(linear,left top,left bottom,color-stop(.05,#dfdfdf),color-stop(1,#ededed));
  background: -moz-linear-gradient(center top,#dfdfdf 5%,#ededed 100%);
  background-color: #dfdfdf;
}
.pass:active { position: relative; top: 1px; }

#yuan {
  line-height: 26px;
  height: 30px;
  width: 182px;
  color: #1b1919;
  background-color: #ededed;
  font-size: 17px;
  font-weight: 700;
  font-family: Arial;
  background: -webkit-gradient(linear,left top,left bottom,color-start(.05,#ffec64),color-stop(1,#ffab23));
  background: -moz-linear-gradient(top,#ffec64 5%,#ffab23 100%);
  background: -o-linear-gradient(top,#ffec64 5%,#ffab23 100%);
  background: -ms-linear-gradient(top,#ffec64 5%,#ffab23 100%);
  background: linear-gradient(to bottom,#ffec64 5%,#ffab23 100%);
  background: -webkit-linear-gradient(top,#ffec64 5%,#ffab23 100%);
  border: 3px solid #fa2;
  -webkit-border-radius: 26px;
  -moz-border-radius: 26px;
  border-radius: 26px;
  -moz-box-shadow: inset 0 1px 20px -1px #fff6af;
  -webkit-box-shadow: inset 0 1px 20px -1px #fff6af;
  box-shadow: inset 0 1px 20px -1px #fff6af;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
#yuan:hover {
  background-color: #f5f5f5;
  background: -webkit-gradient(linear,left top,left bottom,color-start(.05,#ffab23),color-stop(1,#ffec64));
  background: -moz-linear-gradient(top,#ffab23 5%,#ffec64 100%);
  background: linear-gradient(to bottom,#ffab23 5%,#ffec64 100%);
  background: -webkit-linear-gradient(top,#ffab23 5%,#ffec64 100%);
}

.love-btn {
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #ffd65a;
  border: 0;
  cursor: pointer;
}
.love-btn:hover { background-color: #ffcf3d; }

/* ===== 提示文字 ===== */
.source-tip {
  padding-top: 15px;
  padding-left: 40px;
  padding-right: 40px;
  text-align: center;
  font-size: 14px;
}
.tip-red { color: #ff4040; }

.usage-tip {
  padding-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}
.usage-tip span { color: #fff; }

.disclaimer {
  padding-top: 35px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}
.disclaimer span { color: #999; }

/* ===== 源菜单弹窗（还原原站 layui 表格样式） ===== */
.layui-table td {
  border: #878787 solid 1px;
  text-align: center;
  color: #fff;
  padding: 6px 4px;
}
.layui-table th {
  border: #878787 solid 1px;
  text-align: center;
  color: #fff;
  padding: 6px 4px;
}
.layui-table tbody tr { cursor: pointer; }
.layui-table tbody tr:hover { background: #787878; }
.layui-table tbody tr.is-active { color: #ffd65a; }

.login-header {
  width: 100%;
  text-align: center;
  height: 30px;
  font-size: 24px;
  line-height: 30px;
  background-color: #fff;
}

.login {
  position: fixed;
  border-radius: 5px;
  border: #ebebeb solid 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background-color: #656565;
  box-shadow: 0 0 20px #000;
  z-index: 9999;
}

.login-title {
  width: 100%;
  margin: 10px 0 0 0;
  text-align: center;
  line-height: 40px;
  height: 40px;
  font-weight: inherit;
  color: white;
  font-size: 18px;
  position: relative;
  background-color: #656565;
}

.login-title span {
  position: absolute;
  font-size: 12px;
  right: -20px;
  top: -30px;
  border: #ebebeb solid 1px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: #fff;
}

.login-title span a {
  display: block;
  border-radius: 20px;
  font-size: 16px;
  background-color: #656565;
  color: #fff;
  line-height: 40px;
  cursor: pointer;
}

.login strong {
  display: block;
  border-radius: 20px;
  font-size: 16px;
  background-color: #fff;
}

.login span {
  display: block;
  border-radius: 20px;
  font-size: 14px;
  background-color: #fff;
}

.login-input-content {
  color: white;
  margin: 20px;
  background-color: #656565;
}

.login-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  -moz-opacity: .3;
  -khtml-opacity: .3;
  opacity: .3;
  display: none;
}

#footer { color: #999999; }

/* ============================================================
   移动端适配（≤640px）
   桌面端保持原站视觉不变；窄屏改为上下堆叠：
   视频全宽竖屏居中、按钮放大易点、弹窗表格自适应。
   配色/渐变按钮/字体/Logo 等原站视觉全部保留。
   ============================================================ */
@media screen and (max-width: 640px) {
  html, body {
    height: auto;
    min-height: 100dvh;
  }

  body {
    justify-content: flex-start;
    padding: 0;
    -webkit-text-size-adjust: 100%;
  }

  .app {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: visible;
  }

  /* 视频列：全宽居中，保持 9:16 竖屏比例；封面层与视频同尺寸铺满 */
  .player-col {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 9 / 16;
    float: none;
    margin: 0 auto;
    border-radius: 0;
  }
  .poster-bg { border-radius: 0; }
  #player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
  }
  .corner-logo {
    position: absolute;
    margin-top: 8px;
    margin-left: 8px;
    z-index: 3;
  }
  .corner-logo img { width: 88px; }

  /* 控制栏：整宽居中，取消固定高与左浮动 */
  .box {
    width: 100%;
    max-width: 480px;
    height: auto;
    float: none;
    margin: 0 auto;
    padding: 0 16px 32px;
  }
  .brand { padding: 22px 0 10px; }
  .brand img { width: 200px; }
  .brand .status { min-height: 18px; }

  /* 按钮适当增高，便于手指点击；保留原站渐变与字体 */
  .box-row { padding-top: 14px; }
  .xhms, .zdlb, .pass, #yuan { max-width: 100%; }
  .pass { font-size: 38px; height: 58px; line-height: 54px; }

  .source-tip, .usage-tip, .disclaimer {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* 源菜单弹窗：限制宽度、表格可横向滚动、关闭按钮内移 */
  .login { width: calc(100% - 32px); max-width: 420px; }
  .login-title span { right: 4px; top: -4px; }
  .login-input-content { overflow-x: auto; }
  .layui-table th, .layui-table td { white-space: nowrap; }
}

/* 超窄屏（≤360px）微调字号 */
@media screen and (max-width: 360px) {
  .brand img { width: 168px; }
  .brand .userid { font-size: 14px; }
  .pass { font-size: 32px; height: 52px; line-height: 48px; }
  .source-tip { font-size: 13px; }
}
