/* app/web/user/css/video.css */
* {
          box-sizing: border-box;
        }

        html,
        body {
          margin: 0;
          padding: 0;
        }

        body {
          font-family:
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            "PingFang SC",
            "Microsoft YaHei",
            Arial,
            sans-serif;
          color: #18191c;
          background: #ffffff;
        }

        a {
          color: inherit;
          text-decoration: none;
        }

        button,
        input,
        textarea {
          font-family: inherit;
        }

        .page {
          min-width: 1200px;
          background: #fff;
        }

        .video-page-header {
          position: sticky;
          top: 0;
          z-index: 1000;
          background: #fff;
          box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
        }

        .video-page-header .top-nav {
          color: #18191c;
          background: #fff;
        }

        .video-page-header .nav-left,
        .video-page-header .nav-right {
          text-shadow: none;
        }

        .video-page-header .nav-left a:hover,
        .video-page-header .nav-right a:hover {
          color: #00aeec;
        }

        .video-page-header .search-box {
          background: #f1f2f3;
          border: 1px solid #e3e5e7;
        }

        .container {
          width: 1320px;
          max-width: calc(100vw - 80px);
          margin: 0 auto;
        }

        .watch-layout {
          display: grid;
          grid-template-columns: minmax(760px, 1fr) 360px;
          gap: 28px;
          padding: 28px 0 60px;
        }

        .video-title {
          margin: 0 0 10px;
          font-size: 22px;
          line-height: 1.4;
          color: #18191c;
          font-weight: 700;
          word-break: break-word;
        }

        .video-meta {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          gap: 12px;
          color: #9499a0;
          font-size: 13px;
          margin-bottom: 18px;
        }

        .video-meta span {
          white-space: nowrap;
        }

        .player-card {
  position: relative;
  background: #000;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

        .player {
          width: 100%;
          aspect-ratio: 16 / 9;
          background: #000;
          display: block;
        }

        .player-empty {
          width: 100%;
          aspect-ratio: 16 / 9;
          display: grid;
          place-items: center;
          background: #111827;
          color: #fff;
          font-size: 18px;
        }

        .vip-player-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 114, 153, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.vip-preview-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.vip-preview-card {
  width: 360px;
  max-width: 90%;
  padding: 26px 24px;
  border-radius: 14px;
  background: rgba(24, 25, 28, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.vip-preview-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.vip-preview-desc {
  font-size: 14px;
  color: #dcdfe6;
  line-height: 1.7;
  margin-bottom: 18px;
}

.vip-preview-btn {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fb7299;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vip-preview-btn:hover {
  background: #ff85a8;
}

        .danmu-bar {
          height: 46px;
          padding: 0 14px;
          display: flex;
          align-items: center;
          gap: 12px;
          background: #fff;
          border: 1px solid #e3e5e7;
          border-top: 0;
          box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        }

        .watching-count {
          width: 110px;
          color: #61666d;
          font-size: 13px;
          white-space: nowrap;
        }

        .danmu-input {
          flex: 1;
          height: 32px;
          padding: 0 12px;
          border: 0;
          border-radius: 6px;
          background: #f1f2f3;
          outline: none;
          color: #18191c;
        }

        .danmu-btn {
          height: 32px;
          padding: 0 16px;
          border: 0;
          border-radius: 6px;
          background: #00aeec;
          color: #fff;
          cursor: pointer;
        }

        .action-bar {
          height: 64px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          border-bottom: 1px solid #e3e5e7;
        }

        .action-left {
          display: flex;
          align-items: center;
          gap: 32px;
        }

        .action-btn {
          border: 0;
          background: transparent;
          color: #61666d;
          cursor: pointer;
          font-size: 15px;
          display: flex;
          align-items: center;
          gap: 6px;
        }

        .action-btn:hover {
          color: #00aeec;
        }

        .action-icon {
          font-size: 25px;
          line-height: 1;
        }

        .action-right {
          display: flex;
          align-items: center;
          gap: 18px;
          color: #61666d;
          font-size: 14px;
        }

        .video-desc {
          padding: 8px 0 12px;
          color: #18191c;
          font-size: 15px;
          line-height: 1.8;
          white-space: pre-wrap;
          word-break: break-word;
        }

        .video-subtitle {
          padding: 18px 0 0;
          color: #18191c;
          font-size: 17px;
          line-height: 1.7;
          font-weight: 700;
          white-space: pre-wrap;
          word-break: break-word;
        }

        .tag-list {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          gap: 10px;
          padding: 10px 0 18px;
          border-bottom: 1px solid #e3e5e7;
        }

        .tag {
          padding: 6px 12px;
          border-radius: 999px;
          background: #f1f2f3;
          color: #61666d;
          font-size: 13px;
        }

        .tag:hover {
          color: #00aeec;
          background: #e3f6ff;
        }

        .comment-section {
          padding-top: 24px;
        }

        .comment-title {
          display: flex;
          align-items: baseline;
          gap: 12px;
          margin-bottom: 18px;
        }

        .comment-title h2 {
          margin: 0;
          font-size: 22px;
        }

        .comment-count {
          color: #9499a0;
          font-size: 14px;
        }

        .comment-editor {
          display: flex;
          gap: 14px;
          margin-bottom: 24px;
        }

        .comment-avatar {
          width: 48px;
          height: 48px;
          border-radius: 50%;
          background: #f1f2f3;
          overflow: hidden;
          flex-shrink: 0;
        }

        .comment-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .comment-box {
          flex: 1;
          display: flex;
          gap: 10px;
        }

        .comment-box textarea {
          flex: 1;
          height: 48px;
          padding: 12px;
          border: 1px solid #e3e5e7;
          border-radius: 8px;
          outline: none;
          resize: vertical;
          background: #f6f7f8;
          color: #18191c;
        }

        .comment-box textarea:focus {
          border-color: #00aeec;
          background: #fff;
        }

        .comment-submit {
          width: 76px;
          height: 48px;
          border: 0;
          border-radius: 8px;
          background: #00aeec;
          color: #fff;
          cursor: pointer;
        }

        .comment-list {
          display: flex;
          flex-direction: column;
          gap: 18px;
        }

        .comment-item {
          display: flex;
          gap: 14px;
          padding-bottom: 18px;
          border-bottom: 1px solid #f1f2f3;
        }

        .comment-main {
          flex: 1;
          min-width: 0;
        }

        .comment-user {
          display: flex;
          align-items: center;
          gap: 8px;
          margin-bottom: 6px;
          color: #fb7299;
          font-size: 14px;
          font-weight: 700;
        }

        .comment-fan-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 6px;
  border: 1px solid #fb7299;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.comment-fan-badge-name {
  padding: 0 6px;
  background: #fff0f5;
  color: #fb7299;
}

.comment-fan-badge-level {
  padding: 0 5px;
  background: #fb7299;
  color: #fff;
}

        .comment-content {
          color: #18191c;
          font-size: 15px;
          line-height: 1.7;
          word-break: break-word;
        }

        .comment-meta {
          margin-top: 8px;
          display: flex;
          align-items: center;
          gap: 16px;
          color: #9499a0;
          font-size: 13px;
        }

        .side-card {
          margin-bottom: 18px;
          background: #fff;
        }

        .video-side-ad {
          margin: 0 0 22px;
        }

        .video-side-ad-box {
          position: relative;
          width: 100%;
          height: 132px;
          overflow: hidden;
          border-radius: 8px;
          background: #f6f7f8;
          border: 1px solid #f1f2f3;
        }

        .video-side-ad-box a {
          position: relative;
          display: block;
          width: 100%;
          height: 100%;
          color: inherit;
          text-decoration: none;
        }

        .video-side-ad-box img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
          transition: transform .2s ease;
        }

        .video-side-ad-box a:hover img {
          transform: scale(1.018);
        }

        .video-side-ad-title {
          position: absolute;
          left: 0;
          right: 0;
          bottom: 0;
          z-index: 2;
          padding: 34px 12px 10px;
          color: #ffffff;
          font-size: 14px;
          line-height: 1.35;
          font-weight: 700;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          background: linear-gradient(to top, rgba(0, 0, 0, .66), transparent);
        }

        .video-side-ad-label {
          position: absolute;
          right: 8px;
          top: 8px;
          z-index: 3;
          height: 20px;
          padding: 0 7px;
          border-radius: 4px;
          background: rgba(0, 0, 0, .48);
          color: #ffffff;
          font-size: 12px;
          line-height: 20px;
        }

        .video-side-ad-placeholder {
          width: 100%;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 8px;
          border: 1px dashed #d9dde4;
          background: #fafafa;
          color: #b3b8c2;
          font-size: 14px;
        }


        .author-card {
          display: flex;
          gap: 12px;
          margin-bottom: 18px;
          cursor: pointer;
        }

        .author-card:hover .author-name {
          color: #00aeec;
        }

        .author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 4px;
}

.author-name-row .author-name {
  margin-bottom: 0;
}

.author-vip-badge {
  display: none;
  height: 18px;
  padding: 0 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff7aa8, #fb7299);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  flex-shrink: 0;
}

.author-vip-badge.svip {
  background: linear-gradient(90deg, #ffe7a3, #ff9fc2);
  color: #6b3300;
}

        .author-avatar {
          width: 54px;
          height: 54px;
          border-radius: 50%;
          overflow: hidden;
          background: #f1f2f3;
          flex-shrink: 0;
        }

        .author-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .author-info {
          flex: 1;
          min-width: 0;
        }

        .author-name {
          color: #fb7299;
          font-weight: 700;
          font-size: 16px;
          margin-bottom: 4px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .author-desc {
          color: #9499a0;
          font-size: 13px;
          line-height: 1.5;
          min-height: 20px;
          margin-bottom: 10px;
        }

        .author-actions {
          display: flex;
          gap: 10px;
        }

        .charge-btn,
        .follow-btn {
          height: 34px;
          border-radius: 6px;
          border: 0;
          cursor: pointer;
          color: #fff;
          font-size: 14px;
        }

        .charge-btn {
          width: 110px;
          background: #fb7299;
        }

        .author-charge-info {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  height: 24px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f6f7f8;
  color: #61666d;
  font-size: 12px;
  font-weight: 500;
}

.author-charge-info b {
  margin-left: 4px;
  color: #fb7299;
  font-weight: 800;
  border-left: none;
  padding-left: 0;
}

.charge-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .42);
}

.charge-dialog {
  width: 420px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .26);
  overflow: hidden;
}

.charge-dialog-head {
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.charge-dialog-title {
  font-size: 18px;
  font-weight: 800;
  color: #18191c;
}

.charge-dialog-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f2f3;
  color: #61666d;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.charge-dialog-body {
  padding: 22px 22px 18px;
}

.charge-creator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.charge-creator-row img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f2f3;
}

.charge-creator-name {
  font-size: 16px;
  font-weight: 800;
  color: #18191c;
}

.charge-creator-tip {
  margin-top: 4px;
  color: #9499a0;
  font-size: 13px;
}

.charge-price-box {
  background: #f8fbff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.charge-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #61666d;
  font-size: 14px;
}

.charge-price-value {
  color: #fb7299;
  font-size: 24px;
  font-weight: 900;
}

.charge-medal-preview {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff7ab6, #ff9fcb);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.charge-medal-preview span {
  padding: 0 10px;
}

.charge-medal-preview b {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: rgba(255, 255, 255, .22);
  font-size: 12px;
}

.charge-user-medal-tip {
  margin-top: 10px;
  color: #9499a0;
  font-size: 13px;
}

.charge-message-input {
  width: 100%;
  height: 72px;
  border: 1px solid #e3e5e7;
  border-radius: 10px;
  padding: 10px 12px;
  resize: none;
  outline: none;
  font-size: 14px;
  background: #f6f7f8;
}

.charge-message-input:focus {
  border-color: #fb7299;
  background: #fff;
}

.charge-dialog-foot {
  height: 64px;
  padding: 0 22px;
  border-top: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.charge-cancel-btn,
.charge-confirm-btn {
  height: 38px;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
}

.charge-cancel-btn {
  background: #f1f2f3;
  color: #61666d;
}

.charge-confirm-btn {
  background: #fb7299;
  color: #fff;
  font-weight: 700;
}

.charge-confirm-btn:hover {
  background: #ff85a8;
}

.charge-confirm-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

        .follow-btn {
          flex: 1;
          background: #00aeec;
        }

        .side-title {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin: 14px 0;
          font-size: 18px;
          font-weight: 700;
        }

        .recommend-change-btn {
  border: 0;
  background: transparent;
  color: #9499a0;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.recommend-change-btn:hover {
  color: #00aeec;
  background: #f1f2f3;
}

.collection-card {
  border-radius: 8px;
  background: #f6f7f8;
  padding: 14px 12px 12px;
  display: none;
}

.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.collection-title-main {
  min-width: 0;
  color: #18191c;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.collection-title-main span {
  color: #9499a0;
  font-size: 12px;
  font-weight: 500;
}

.collection-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #61666d;
  font-size: 12px;
  white-space: nowrap;
}

.collection-switch {
  width: 34px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: #c9ccd1;
  cursor: pointer;
  padding: 2px;
  transition: background .15s ease;
}

.collection-switch::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}

.collection-switch.active {
  background: #00aeec;
}

.collection-switch.active::before {
  transform: translateX(14px);
}

.collection-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9499a0;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e5e7;
}

.collection-subscribe-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #00aeec;
  border-radius: 4px;
  background: #fff;
  color: #00aeec;
  cursor: pointer;
  font-size: 13px;
}

.collection-list {
  max-height: 330px;
  overflow-y: auto;
  padding-top: 8px;
}

.collection-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px 4px;
  border-radius: 6px;
  color: #18191c;
}

.collection-item:hover {
  background: #edf2f5;
  color: #00aeec;
}

.collection-item.active {
  background: #e5f6ff;
  color: #00aeec;
}

.collection-playing-icon {
  width: 18px;
  color: #00aeec;
  font-size: 13px;
  text-align: center;
}

.collection-item-title {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collection-item-duration {
  color: #9499a0;
  font-size: 12px;
  text-align: right;
}

.collection-empty {
  padding: 24px 0;
  color: #9499a0;
  text-align: center;
  font-size: 13px;
}

        .recommend-list {
          display: flex;
          flex-direction: column;
          gap: 14px;
        }

        .recommend-item {
          display: grid;
          grid-template-columns: 142px 1fr;
          gap: 10px;
          color: #18191c;
        }

        .recommend-cover {
          position: relative;
          aspect-ratio: 16 / 9;
          border-radius: 6px;
          overflow: hidden;
          background: #f1f2f3;
        }

        .recommend-cover img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }

        .recommend-duration {
          position: absolute;
          right: 5px;
          bottom: 4px;
          padding: 1px 4px;
          border-radius: 3px;
          background: rgba(0, 0, 0, 0.65);
          color: #fff;
          font-size: 12px;
        }

        .recommend-vip-badge {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(251, 114, 153, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

        .recommend-title {
          height: 42px;
          line-height: 1.45;
          font-size: 14px;
          font-weight: 700;
          overflow: hidden;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        .recommend-title:hover {
          color: #00aeec;
        }

        .recommend-meta {
          margin-top: 6px;
          color: #9499a0;
          font-size: 12px;
          line-height: 1.6;
        }

        .float-tools {
          position: fixed;
          right: 18px;
          bottom: 70px;
          display: flex;
          flex-direction: column;
          gap: 10px;
          z-index: 50;
        }

        .float-tools button {
          width: 52px;
          height: 52px;
          border: 1px solid #e3e5e7;
          border-radius: 10px;
          background: #fff;
          color: #18191c;
          cursor: pointer;
          font-size: 13px;
        }

        .float-tools button:hover {
          color: #00aeec;
          border-color: #00aeec;
        }

        .empty {
          padding: 36px 0;
          text-align: center;
          color: #9499a0;
          background: #fafafa;
          border-radius: 8px;
        }

        .toast {
          position: fixed;
          top: 82px;
          left: 50%;
          transform: translateX(-50%);
          z-index: 99999;
          display: none;
          padding: 12px 18px;
          border-radius: 10px;
          background: rgba(0, 0, 0, 0.78);
          color: #fff;
          font-size: 14px;
        }

        @media (max-width: 1400px) {
          .container {
            max-width: calc(100vw - 48px);
          }

          .watch-layout {
            grid-template-columns: minmax(720px, 1fr) 330px;
          }

          .recommend-item {
            grid-template-columns: 130px 1fr;
          }
        }
/* =========================
   视频详情页移动端适配
   只影响手机端，不改 PC
========================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
  }

  .page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: #ffffff;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0 auto;
  }

  /* 顶部用户栏 */
  .video-page-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #f1f2f3;
  }

  /* 主布局：PC 左右栏改为手机上下 */
  .watch-layout {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding: 10px 0 24px;
    overflow: hidden;
  }

  .main-left,
  .main-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 标题 */
  .video-title {
    margin: 8px 0 6px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    word-break: break-word;
  }

  .video-meta {
    height: auto !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    color: #9499a0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* 播放器 */
  .player-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .player-card video,
  .player-card iframe,
  .player-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .player-empty {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9499a0;
    background: #111827;
    font-size: 13px;
  }

  /* 弹幕栏 */
  .danmu-bar {
    height: auto !important;
    padding: 8px 0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .watching-count {
    flex: 0 0 auto;
    font-size: 12px;
    color: #9499a0;
  }

  .danmu-input {
    flex: 1;
    min-width: 0;
    height: 32px;
    border-radius: 999px;
    font-size: 12px;
  }

  .danmu-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
  }

  /* 点赞 / 投币 / 收藏 / 分享 */
  .action-bar {
    width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f2f3 !important;
    overflow: hidden !important;
  }

  .action-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .action-left::-webkit-scrollbar {
    display: none;
  }

  .action-btn {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .action-icon {
    font-size: 16px !important;
  }

  /* 简介、标签 */
  .video-subtitle,
  .video-desc {
    margin-top: 10px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    word-break: break-word;
  }

  .tag-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: calc(100% + 20px) !important;
    max-width: none !important;
    padding: 10px 10px 2px !important;
    margin: 0 -10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .tag-list a,
  .tag-list span,
  .tag {
    flex: 0 0 auto !important;
    height: 28px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* 右侧作者卡、广告、相关推荐改成下面内容 */
  .main-right {
    margin-top: 14px !important;
  }

  .side-card {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 12px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #f1f2f3 !important;
    box-shadow: none !important;
  }

  .author-card {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .author-avatar {
    flex: 0 0 auto !important;
    width: 46px !important;
    height: 46px !important;
  }

  .author-avatar img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .author-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .author-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .author-name {
    max-width: 170px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .author-desc {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #9499a0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .author-actions {
    margin-top: 10px !important;
    display: flex !important;
    gap: 8px !important;
  }

  .charge-btn,
  .follow-btn {
    flex: 1 !important;
    height: 34px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .video-side-ad-box,
  .video-side-ad-placeholder {
    width: 100% !important;
    height: 66px !important;
    border-radius: 8px !important;
  }

  .side-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
  }

  .recommend-change-btn {
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  .recommend-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .recommend-item {
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .recommend-cover {
    width: 120px !important;
    height: 68px !important;
    border-radius: 7px !important;
    object-fit: cover !important;
  }

  .recommend-title {
    font-size: 13px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 2 !important;
  }

  .recommend-meta {
    margin-top: 5px !important;
    font-size: 11px !important;
    color: #9499a0 !important;
  }

  /* 评论区 */
  .comment-panel {
    width: 100% !important;
    margin-top: 14px !important;
    padding: 14px 0 0 !important;
    border-top: 8px solid #f6f7f8 !important;
  }

  .comment-head {
    padding: 0 !important;
    margin-bottom: 12px !important;
  }

  .comment-sort {
    gap: 8px !important;
  }

  .comment-sort-btn {
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  .comment-editor {
    gap: 8px !important;
    padding: 0 !important;
  }

  .comment-editor-avatar {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 auto !important;
  }

  .comment-editor-avatar img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
  }

  .comment-editor-main {
    flex: 1 !important;
    min-width: 0 !important;
  }

  #commentInput {
    min-height: 68px !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  .comment-editor-bottom {
    margin-top: 8px !important;
  }

  .comment-editor-tools {
    gap: 6px !important;
  }

  .comment-tool-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  #commentSendBtn {
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .comment-list {
    width: 100% !important;
  }

  .comment-item {
    padding: 14px 0 !important;
  }

  .comment-more-wrap {
    padding: 12px 0 20px !important;
  }

  #commentMoreBtn {
    width: 100% !important;
    height: 36px !important;
    border-radius: 999px !important;
  }

  /* 充电弹窗 */
  .charge-mask {
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .charge-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
  }

  .charge-dialog-head {
    height: 52px !important;
    padding: 0 16px !important;
  }

  .charge-dialog-title {
    font-size: 16px !important;
  }

  .charge-dialog-body {
    padding: 16px !important;
    max-height: calc(92vh - 110px) !important;
    overflow-y: auto !important;
  }

  .charge-creator-row {
    gap: 10px !important;
  }

  .charge-creator-row img {
    width: 42px !important;
    height: 42px !important;
  }

  .charge-price-box {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 10px !important;
  }

  .charge-message-input {
    min-height: 88px !important;
    margin-top: 14px !important;
    font-size: 13px !important;
  }

  .charge-dialog-foot {
    height: 58px !important;
    padding: 0 16px !important;
    gap: 10px !important;
  }

  .charge-cancel-btn,
  .charge-confirm-btn {
    flex: 1 !important;
    height: 38px !important;
    border-radius: 999px !important;
  }

  /* 悬浮按钮手机端隐藏，避免挡住视频 */
  .float-tools {
    display: none !important;
  }

  .toast {
    top: 70px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .empty {
    padding: 28px 0 !important;
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .video-title {
    font-size: 17px !important;
  }

  .player-empty {
    min-height: 176px;
  }

  .action-btn {
    min-width: 54px !important;
    height: 34px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  .recommend-item {
    grid-template-columns: 108px minmax(0, 1fr) !important;
  }

  .recommend-cover {
    width: 108px !important;
    height: 61px !important;
  }

  .author-name {
    max-width: 145px !important;
  }
}
/* =========================
   视频页返回栏最终版
   不悬浮，不挡标题
========================= */

.simple-video-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 44px !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f2f3 !important;
  box-shadow: none !important;
}

.video-back-btn {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.video-back-btn span {
  display: none !important;
}

.video-back-btn::before {
  content: "" !important;
  width: 11px !important;
  height: 11px !important;
  border-left: 2px solid #18191c !important;
  border-bottom: 2px solid #18191c !important;
  transform: rotate(45deg) translate(2px, -1px) !important;
}

.video-back-btn:active {
  background: #f1f2f3 !important;
}

.video-header-title {
  display: none !important;
}

/* 手机端播放器内容往上贴一点 */
@media (max-width: 768px) {
  .simple-video-header {
    height: 42px !important;
    padding: 0 8px !important;
  }

  .watch-layout {
    padding-top: 8px !important;
  }
}

/* =========================
   视频页头部显示控制
========================= */
.desktop-video-header {
  display: block;
}

.mobile-video-header {
  display: none !important;
}

.desktop-video-header .top-nav {
  color: #18191c;
  background: #ffffff;
  text-shadow: none;
}

.desktop-video-header .nav-left,
.desktop-video-header .nav-right {
  color: #18191c;
  text-shadow: none;
}

.desktop-video-header .search-box {
  background: #f1f2f3;
  border: 1px solid #e3e5e7;
}

.desktop-video-header .lang-select {
  border: 1px solid #e3e5e7;
  background: #ffffff;
}

@media (max-width: 768px) {
  .desktop-video-header {
    display: none !important;
  }

  .mobile-video-header {
    display: flex !important;
  }
}


/* =========================================================
   H5 播放页仿短视频/哔哩移动布局修复
   1. 去掉弹幕栏
   2. 手机端播放器置顶
   3. 作者卡移动到播放器下方
   4. 推荐列表移动到简介下方
   5. 隐藏不喜欢按钮
========================================================= */

/* 全端彻底隐藏弹幕入口 */
.danmu-bar,
#danmuInput,
.danmu-input,
.danmu-btn {
  display: none !important;
}

/* 如果其他脚本生成了“不喜欢 / dislike”，统一隐藏 */
#btnDislike,
.btn-dislike,
.action-btn[data-action="dislike"],
.action-btn[data-action="unlike"],
.action-btn[data-action="not-like"],
.action-btn[data-action="not_like"],
[data-action="dislike"],
[data-action="not-like"],
[data-action="not_like"] {
  display: none !important;
}

/* 桌面端不显示手机专用区域 */
.video-mobile-tabs,
.mobile-author-mount,
.mobile-recommend-mount {
  display: none;
}

.video-home-btn,
.video-more-btn {
  display: none;
}

/* 手机端播放器页面 */
@media (max-width: 768px) {
  body {
    background: #ffffff !important;
  }

  .desktop-video-header {
    display: none !important;
  }

  .page {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .watch-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 28px !important;
    overflow: hidden !important;
  }

  .main-left {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .main-right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
  }

  /* 手机顶部按钮覆盖在视频上 */
  .mobile-video-header.simple-video-header {
    position: fixed !important;
    top: env(safe-area-inset-top, 0) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3000 !important;
    height: 50px !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .video-back-btn,
  .video-home-btn,
  .video-more-btn {
    pointer-events: auto !important;
  }

  .video-back-btn,
  .video-home-btn {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .28) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
  }

  .video-back-btn span,
  .video-home-btn span {
    display: none !important;
  }

  .video-back-btn::before {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    border-left: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    transform: rotate(45deg) translate(2px, -1px) !important;
  }

  .video-home-btn::before {
    content: "⌂" !important;
    color: #ffffff !important;
    font-size: 23px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .video-more-btn {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .28) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    backdrop-filter: blur(4px);
  }

  /* 播放器置顶，铺满宽度 */
  .player-card {
    order: 1 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #000 !important;
  }

  .player {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
  }

  .player-empty {
    width: 100% !important;
    min-height: 210px !important;
    border-radius: 0 !important;
  }

  .vip-player-badge {
    top: 52px !important;
    left: 10px !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  /* 简介 / 评论 tab */
  .video-mobile-tabs {
    order: 2 !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f2f3 !important;
  }

  .video-mobile-tab {
    position: relative !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #61666d !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
  }

  .video-mobile-tab.active {
    color: #fb7299 !important;
    font-weight: 800 !important;
  }

  .video-mobile-tab.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #fb7299 !important;
  }

  /* 手机端作者卡移到播放器下面 */
  .mobile-author-mount {
    order: 3 !important;
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
  }

  .mobile-author-mount .author-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 8px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .mobile-author-mount .author-avatar {
    width: 46px !important;
    height: 46px !important;
  }

  .mobile-author-mount .author-avatar img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .mobile-author-mount .author-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .mobile-author-mount .author-name-row,
  .mobile-author-mount .author-desc,
  .mobile-author-mount .author-charge-info {
    grid-column: 1 / 2 !important;
  }

  .mobile-author-mount .author-name-row {
    margin-bottom: 2px !important;
  }

  .mobile-author-mount .author-name {
    max-width: 170px !important;
    color: #18191c !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 800 !important;
  }

  .mobile-author-mount .author-desc {
    min-height: 0 !important;
    margin: 0 !important;
    color: #9499a0 !important;
    font-size: 12px !important;
    line-height: 17px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .mobile-author-mount .author-actions {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 4 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* 充电在关注左边 */
  .mobile-author-mount .charge-btn {
    order: 1 !important;
    width: auto !important;
    min-width: 58px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #fff0f6 !important;
    color: #fb7299 !important;
    border: 1px solid #fb7299 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  .mobile-author-mount .follow-btn {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 88px !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fb7299 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  /* 标题、信息 */
  .video-title {
    order: 4 !important;
    margin: 12px 16px 6px !important;
    color: #18191c !important;
    font-size: 19px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
  }

  .video-meta {
    order: 5 !important;
    margin: 0 16px 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 9px !important;
    color: #9499a0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  .video-meta span {
    white-space: nowrap !important;
  }

  /* 操作按钮：去掉不喜欢，只保留赞 / 投币 / 收藏 / 分享 */
  .action-bar {
    order: 6 !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 16px 14px !important;
    margin: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid #f1f2f3 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .action-left {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .action-btn {
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #6b7280 !important;
    background: transparent !important;
    font-size: 12px !important;
  }

  .action-icon {
    font-size: 24px !important;
    line-height: 1 !important;
    filter: grayscale(1);
    opacity: .9;
  }

  .action-btn:hover {
    color: #fb7299 !important;
  }

  .action-btn:hover .action-icon {
    filter: none;
  }

  /* 简介、标签 */
  .video-subtitle {
    order: 7 !important;
    padding: 12px 16px 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .video-desc {
    order: 8 !important;
    padding: 8px 16px 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .tag-list {
    order: 9 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px 12px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    border-bottom: 8px solid #f6f7f8 !important;
    scrollbar-width: none !important;
  }

  .tag-list::-webkit-scrollbar {
    display: none !important;
  }

  .tag {
    flex: 0 0 auto !important;
    height: 28px !important;
    padding: 0 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  /* 手机端推荐列表移到简介下面 */
  .mobile-recommend-mount {
    order: 10 !important;
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
  }

  .mobile-recommend-mount #recommendCard {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .mobile-recommend-mount .side-title {
    margin: 0 0 12px !important;
    font-size: 16px !important;
  }

  .mobile-recommend-mount .recommend-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .mobile-recommend-mount .recommend-item {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .mobile-recommend-mount .recommend-cover {
    width: 132px !important;
    height: 74px !important;
    border-radius: 6px !important;
  }

  .mobile-recommend-mount .recommend-title {
    height: auto !important;
    min-height: 38px !important;
    font-size: 14px !important;
    line-height: 19px !important;
    -webkit-line-clamp: 2 !important;
  }

  .mobile-recommend-mount .recommend-meta {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  /* 评论区放到推荐下面 */
  .comment-panel {
    order: 20 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 0 !important;
    border-top: 8px solid #f6f7f8 !important;
  }

  /* 手机端隐藏右侧广告，避免像广告条一样占位置 */
  #videoSideAdBox {
    display: none !important;
  }

  /* 充电弹窗手机底部弹出 */
  .charge-mask {
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .charge-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .float-tools {
    display: none !important;
  }

  .toast {
    top: 58px !important;
  }
}

@media (max-width: 390px) {
  .mobile-recommend-mount .recommend-item {
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }

  .mobile-recommend-mount .recommend-cover {
    width: 118px !important;
    height: 66px !important;
  }

  .video-title {
    font-size: 18px !important;
  }

  .mobile-author-mount .follow-btn {
    min-width: 78px !important;
    padding: 0 14px !important;
  }

  .mobile-author-mount .charge-btn {
    min-width: 52px !important;
    padding: 0 10px !important;
  }
}

/* =========================================================
   手机端操作按钮最终排列
   不修改 video.js，不修改任何接口
========================================================= */
@media (max-width: 768px) {
  .action-bar {
    width: 100% !important;
    overflow: hidden !important;
  }

  .action-left {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    white-space: normal !important;
  }

  .action-left.has-download {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .action-left > .action-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .action-left:not(.has-download) > #btnDownload {
    display: none !important;
  }

  .action-left.has-download > #btnDownload {
    display: flex !important;
  }
}

/* =========================================================
   手机端合集位置与弹层最终修复
   1. 合集入口放在点赞/投币/收藏/分享按钮上方
   2. 手机端不再显示右侧电脑版合集卡片
   3. 合集列表只在弹层内部滚动，不带动整个页面
========================================================= */
.mobile-collection-mount,
.mobile-collection-mask {
  display: none;
}

@media (max-width: 768px) {
  #collectionCard {
    display: none !important;
  }

  .mobile-collection-mount {
    order: 6 !important;
    display: block !important;
    width: 100% !important;
    padding: 0 16px 10px !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  .mobile-collection-mount[style*="display: none"] {
    display: none !important;
  }

  .mobile-collection-entry {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f6f7f8 !important;
    color: #18191c !important;
    text-align: left !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-collection-entry:active {
    background: #eef0f2 !important;
  }

  .mobile-collection-entry-label {
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff0f5 !important;
    color: #fb7299 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .mobile-collection-entry-title {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .mobile-collection-entry-index {
    color: #9499a0 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .mobile-collection-entry-arrow {
    color: #9499a0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  /* 合集在操作按钮上面，后面的内容顺序向后移动 */
  .action-bar {
    order: 7 !important;
  }

  .video-subtitle {
    order: 8 !important;
  }

  .video-desc {
    order: 9 !important;
  }

  .tag-list {
    order: 10 !important;
  }

  .mobile-recommend-mount {
    order: 11 !important;
  }

  .mobile-collection-mask {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, .48) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility .2s ease !important;
  }

  .mobile-collection-mask.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .mobile-collection-sheet {
    width: 100% !important;
    max-height: min(78vh, 720px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    background: #ffffff !important;
    box-shadow: 0 -10px 36px rgba(0, 0, 0, .18) !important;
    transform: translateY(100%) !important;
    transition: transform .24s ease !important;
  }

  .mobile-collection-mask.show .mobile-collection-sheet {
    transform: translateY(0) !important;
  }

  .mobile-collection-sheet-head {
    flex: 0 0 auto !important;
    min-height: 66px !important;
    padding: 14px 16px 10px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-bottom: 1px solid #f1f2f3 !important;
  }

  .mobile-collection-sheet-title {
    max-width: calc(100vw - 84px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #18191c !important;
    font-size: 17px !important;
    line-height: 24px !important;
    font-weight: 800 !important;
  }

  .mobile-collection-sheet-meta {
    margin-top: 3px !important;
    color: #9499a0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  .mobile-collection-sheet-close {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f2f3 !important;
    color: #61666d !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  .mobile-collection-sheet-desc {
    flex: 0 0 auto !important;
    max-height: 44px !important;
    padding: 8px 16px 0 !important;
    overflow: hidden !important;
    color: #61666d !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  .mobile-collection-sheet-desc:empty {
    display: none !important;
  }

  .mobile-collection-sheet-desc.expanded {
    max-height: none !important;
  }

  .mobile-collection-expand-btn {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #00aeec !important;
    font-size: 12px !important;
    cursor: pointer !important;
  }

  .mobile-collection-sheet-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 8px 12px 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-collection-item {
    width: 100% !important;
    min-height: 82px !important;
    padding: 8px !important;
    border-radius: 9px !important;
    display: grid !important;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    color: #18191c !important;
    background: transparent !important;
  }

  .mobile-collection-item + .mobile-collection-item {
    margin-top: 2px !important;
  }

  .mobile-collection-item.active {
    background: #fff0f5 !important;
  }

  .mobile-collection-cover {
    position: relative !important;
    width: 124px !important;
    height: 70px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #f1f2f3 !important;
  }

  .mobile-collection-cover img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  .mobile-collection-cover > span {
    position: absolute !important;
    right: 5px !important;
    bottom: 4px !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, .62) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  .mobile-collection-info {
    min-width: 0 !important;
  }

  .mobile-collection-item-title {
    min-height: 40px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: #18191c !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    word-break: break-word !important;
  }

  .mobile-collection-item.active .mobile-collection-item-title,
  .mobile-collection-item-title b {
    color: #fb7299 !important;
  }

  .mobile-collection-item-title b {
    margin-right: 4px !important;
    font-size: 12px !important;
  }

  .mobile-collection-item-meta {
    margin-top: 5px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px 8px !important;
    color: #9499a0 !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }

  body.mobile-collection-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
}

@media (max-width: 390px) {
  .mobile-collection-item {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  .mobile-collection-cover {
    width: 112px !important;
    height: 63px !important;
  }
}
