/**
 * 一日女友 · Web 视频社区（Figma 2.0 / 225:24647）
 */
body.dg-content-page {
  overflow: auto !important;
  background: #0a0a0a;
}

body.dg-content-page .stars,
body.dg-content-page .nebula {
  opacity: 0.35;
}

body.dg-content-page .nav-center,
body.dg-content-page .nav-back {
  display: none !important;
}

body.dg-content-page .nav-links a {
  height: 38px !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
}
body.dg-content-page .nav-search-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 280px !important;
  max-width: 370px !important;
  flex: 0 1 370px !important;
  width: 370px !important;
}
body.dg-content-page .nav-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid #3a3c50;
  background: #252632;
}
body.dg-content-page .nav-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
}
body.dg-content-page .nav-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
body.dg-content-page .nav-search-ico {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  flex-shrink: 0;
}
body.dg-content-page .nav-auth-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}
body.dg-content-page .nav-auth-area[hidden] {
  display: none !important;
}
body.dg-content-page .nav-auth-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
body.dg-content-page .nav-auth-btn-reg {
  background: linear-gradient(101deg, #ff43a7 0%, #ef2df9 95%);
  border-color: transparent;
}
body.dg-content-page .nav-user-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff43a7, #ef2df9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}
body.dg-content-page .nav-user-link[hidden] {
  display: none !important;
}
body.dg-content-page .nav-user-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dg-content-page .nav-user-avatar-emoji {
  font-size: 18px;
  line-height: 1;
  color: #fff;
  user-select: none;
}

/* 页面主体：取消左右分栏 */
body.dg-content-page .layout {
  position: relative !important;
  top: auto !important;
  margin-top: 62px;
  display: block !important;
  min-height: calc(100vh - 62px);
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

body.dg-content-page .sidebar {
  display: none !important;
}

body.dg-content-page .main {
  overflow: visible !important;
  max-width: 1190px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

body.dg-content-page .search-panel {
  display: none !important;
}

/* 分类 Tab */
.dg-cate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 18px;
}
.dg-cate-tabs .cate-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  border-left: 0 !important;
  background: #232429;
  color: #b5b7bf;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dg-cate-tabs .cate-item:hover {
  background: #2c2d33;
  color: #fff;
}
.dg-cate-tabs .cate-item.active {
  background: #ff1290 !important;
  color: #fff !important;
}
.dg-cate-tabs .cate-icon,
.dg-cate-tabs .cate-count,
.dg-cate-tabs .sidebar-divider {
  display: none !important;
}
.dg-cate-tabs .cate-name {
  font-size: 16px;
  color: inherit;
  white-space: nowrap;
}

/* 筛选行 */
body.dg-content-page .filter-bar {
  position: static !important;
  padding: 0 0 18px !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
body.dg-content-page .filter-label {
  font-size: 18px;
  color: #fff;
  letter-spacing: 0;
  font-weight: 500;
}
body.dg-content-page .ftab {
  min-width: 60px;
  height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: #27282d;
  color: #b5b7bf;
  font-size: 14px;
}
/* 选中态与分类 Tab 一致：实心品牌粉 + 白字，避免粉字叠暗底看不清 */
body.dg-content-page .ftab.active {
  background: #ff1290 !important;
  color: #fff !important;
  border: 0;
  font-weight: 600;
}
body.dg-content-page .ftab:hover:not(.active) {
  background: #32333a;
  color: #fff;
}
body.dg-content-page .filter-count {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}
body.dg-content-page .publish-inline {
  display: none !important;
}
/* 发布视频 FAB · Figma 225:26165 · 90×90 竖排 */
body.dg-content-page .publish-fab {
  position: fixed;
  right: 48px;
  bottom: 48px;
  z-index: 90;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 90px;
  min-width: 90px;
  height: 90px;
  padding: 17px 12px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(94deg, #ff43a7 0%, #ef2df9 95%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 12px 32px rgba(255, 18, 144, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
body.dg-content-page .publish-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 18, 144, 0.5);
}
body.dg-content-page .publish-fab img {
  width: 33px;
  height: 33px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
@media (max-width: 700px) {
  body.dg-content-page .publish-fab {
    right: 16px;
    bottom: 20px;
    width: 74px;
    min-width: 74px;
    height: 74px;
    padding: 12px 8px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 18px;
    gap: 2px;
  }
  body.dg-content-page .publish-fab img {
    width: 26px;
    height: 26px;
  }
}

/* 卡片网格：Figma 2.0 — 4×290，列间距 10，行间距 20，总宽 1190 */
body.dg-content-page .content-grid,
body.dg-content-page #ssr-main .content-grid,
body.dg-content-page #ssr-main .ssr-ready {
  display: grid !important;
  grid-template-columns: repeat(4, 290px) !important;
  gap: 20px 10px !important;
  width: 1190px !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  justify-content: start;
}
body.dg-content-page .content-grid:has(> .dg-empty),
body.dg-content-page .content-grid:has(> .empty-state) {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100% !important;
  max-width: 1190px !important;
  min-height: 420px;
}
body.dg-content-page .content-grid > .dg-empty,
body.dg-content-page .content-grid > .empty-state {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 auto;
}

body.dg-content-page .ccard {
  width: 290px !important;
  max-width: 290px !important;
  height: 346px !important;
  min-height: 346px !important;
  background: #1a1b1e;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
body.dg-content-page .ccard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  border-color: transparent;
}
body.dg-content-page .ccard-thumb,
body.dg-content-page .ccard.featured .ccard-thumb {
  width: 290px !important;
  height: 180px !important;
  aspect-ratio: auto !important;
  background: #111;
  position: relative;
  overflow: hidden;
}
body.dg-content-page .ccard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dg-content-page .ccard-overlay {
  padding: 0 8px 17px;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 56.7%, #000);
}
body.dg-content-page .ccard-duration {
  font-size: 14px;
  line-height: 14px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(27, 27, 27, 0.4);
  color: #eee;
}
body.dg-content-page .ccard-type {
  font-size: 14px;
  line-height: 14px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(200, 154, 255, 0.1);
  color: #b48dff;
}
body.dg-content-page .ccard-paid {
  top: 8px;
  right: 8px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 10px;
  border: 1px solid #f5d79a;
  background: #322b2c;
  color: #ffc85c;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}
body.dg-content-page .ccard-paid img {
  width: 14px;
  height: 14px;
  display: block;
}
body.dg-content-page .ccard-body {
  flex: 1;
  padding: 12px 8px 10px !important;
  background: #1a1b1e;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.dg-content-page .ccard-author {
  margin-bottom: 6px !important;
  gap: 4px;
}
body.dg-content-page .ccard-avatar {
  width: 26px;
  height: 26px;
  font-size: 13px;
}
body.dg-content-page .ccard-author-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
body.dg-content-page .ccard-author-name .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dg-content-page .ccard-author-name .date {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  color: #b3b3b3;
}
body.dg-content-page .ccard-author-name em {
  display: none;
}
body.dg-content-page .ccard-title,
body.dg-content-page .ccard.featured .ccard-title {
  font-size: 16px;
  font-weight: 500;
  color: #f5f5f5;
  margin-bottom: 8px !important;
  -webkit-line-clamp: 2;
  min-height: 0;
  line-height: 1.3;
}
body.dg-content-page .ccard-tags {
  margin-bottom: 8px !important;
  gap: 6px;
  margin-top: auto;
}
body.dg-content-page .ccard-tag {
  font-size: 14px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 200, 92, 0.1);
  color: #ffc85c;
}
body.dg-content-page .ccard-meta {
  gap: 14px;
  font-size: 14px;
  color: #fff;
  align-items: center;
}
body.dg-content-page .ccard-meta .stat,
body.dg-content-page .ccard-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
}
body.dg-content-page .ccard-meta .stat img,
body.dg-content-page .ccard-act img {
  width: 20px;
  height: 20px;
  display: block;
}
body.dg-content-page .ccard-act.active {
  color: #ff1290;
}
body.dg-content-page .ccard-act.hide-on-figma {
  display: none;
}

body.dg-content-page .content-pagination {
  padding: 28px 0 16px !important;
  display: flex;
  justify-content: center;
}
body.dg-content-page .dg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
body.dg-content-page .dg-pager-total {
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.01px;
  white-space: nowrap;
}
body.dg-content-page .dg-pager-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dg-content-page .page-btn,
body.dg-content-page a.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  background: #232429;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: none;
}
body.dg-content-page .page-btn:disabled,
body.dg-content-page .page-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
}
body.dg-content-page .page-btn.active {
  background: #ff1290;
  border-color: #ff1290;
  color: #fff;
  font-weight: 600;
}
body.dg-content-page .dg-pager-goto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}
body.dg-content-page .dg-pager-goto input {
  width: 40px;
  height: 24px;
  padding: 0 4px;
  border: 1px solid #dcdfe6;
  border-radius: 2px;
  background: #232429;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  font-family: inherit;
  outline: none;
}
body.dg-content-page .dg-pager-goto input::-webkit-outer-spin-button,
body.dg-content-page .dg-pager-goto input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.dg-content-page .dg-pager-goto input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

body.dg-content-page #dg-ads-video-list-top {
  margin: 0 0 20px;
}
body.dg-content-page #dg-ads-video-list-bottom {
  margin: 28px 0 8px;
}

/* 页脚 */
.dg-site-footer {
  margin-top: 40px;
  padding: 56px 48px 28px;
  background: #1a1b1e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dg-site-footer-inner {
  max-width: 1430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 64px;
  row-gap: 12px;
  align-items: start;
}
.dg-site-footer-brand {
  display: contents;
}
.dg-site-footer-brand img {
  width: 143px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1;
}
.dg-site-footer-note {
  font-size: 14px;
  line-height: 1.5;
  color: #b0b1b3;
  margin-bottom: 0;
  white-space: nowrap;
  grid-column: 1;
  grid-row: 2;
}
.dg-site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 1;
  grid-row: 3;
  margin-top: 10px;
}
.dg-site-footer-copy {
  font-size: 16px;
  line-height: 29px;
  color: #fff;
  letter-spacing: 0.02em;
}
.dg-site-footer-meta-line {
  font-size: 16px;
  line-height: 29px;
  color: #fff;
  word-break: break-all;
}
.dg-site-footer-link {
  color: #ff1290;
  text-decoration: none;
}
.dg-site-footer-link:hover {
  text-decoration: underline;
}
.dg-site-footer-cols {
  display: flex;
  gap: 96px;
  padding-top: 0;
  grid-column: 2;
  grid-row: 3;
  margin-top: 10px;
  align-self: start;
}
.dg-site-footer-col {
  min-width: 60px;
}
.dg-site-footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1;
}
.dg-site-footer-col a {
  display: block;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2px;
}
.dg-site-footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  opacity: 0.85;
}

@media (max-width: 1180px) {
  body.dg-content-page .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  body.dg-content-page .nav-search-wrap {
    display: none;
  }
  body.dg-content-page .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.dg-content-page .publish-fab {
    right: 16px;
    bottom: 24px;
    min-width: 0;
    height: 52px;
    padding: 10px 16px;
    font-size: 16px;
  }
  .dg-site-footer {
    padding: 32px 16px;
  }
  .dg-site-footer-inner {
    gap: 32px;
  }
  .dg-site-footer-cols {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  body.dg-content-page .layout {
    margin-top: 0 !important;
    padding-top: 62px;
  }
  body.dg-content-page .main {
    padding: 12px 12px 32px;
  }
  body.dg-content-page .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.dg-content-page .ccard-author-name {
    font-size: 14px;
  }
  body.dg-content-page .ccard-title {
    font-size: 14px;
  }
}
