/* Lust theme — MacCMS v10, written from scratch */
:root {
  --bg: #000000;
  --bg-elevated: #121212;
  --bg-nav: #000000;
  --bg-input: #111111;
  --bg-page: #2f2f2f;
  --bg-page-hover: #363636;
  --bg-badge: rgba(0, 0, 0, 0.5);
  --text: #ffffff;
  --text-title-pc: #dcdcdc;
  --text-muted: #888888;
  --text-soft: #c6c6c6;
  --line: #333333;
  --line-section: #86173c;
  --accent: #e50914;
  --accent-2: #ff236d;
  --grad-a: #F3C622;
  --grad-b: #F953C6;
  --grad: linear-gradient(270deg, #F3C622 0%, #F953C6 75%);
  --radius-card: 8px;
  --radius-pill: 20px;
  --radius-badge: 6px;
  --nav-h: 60px;
  --gap: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; border: 0; vertical-align: middle; }
button, input { font: inherit; }
.container { width: 100%; margin: 0 auto; padding: 0 10px; }
@media (min-width: 991px) {
  .container { width: 55%; padding: 0; }
}

/* header */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  background: var(--bg-nav);
}
.navbar .logo { display: flex; align-items: center; width: 120px; height: 40px; overflow: hidden; }
.navbar .logo img { max-height: 40px; width: auto; }
.navbar .logo-text { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.navbar .nav-right { display: flex; align-items: center; gap: 8px; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border: 1px solid #c6c6c6; border-radius: var(--radius-pill);
  background: transparent; color: #c6c6c6; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.btn-pill:hover { color: #fff; border-color: #fff; }
.nav-search { font-size: 24px; color: #fff; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* dialogs */
.lust-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; }
.lust-dialog { display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 90%; max-width: 360px; background: var(--bg-elevated); border-radius: 12px; padding: 20px; z-index: 90; color: #fff; }
.lust-dialog h3 { margin: 0 0 12px; font-size: 16px; }
.lust-dialog p { margin: 6px 0; color: var(--text-soft); font-size: 13px; word-break: break-all; }
.lust-dialog .qr { display: flex; justify-content: center; margin: 12px 0; background: #fff; padding: 8px; border-radius: 8px; }
.lust-dialog.is-open, .lust-mask.is-open { display: block; }

/* type tabs */
.type-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.type-tabs::-webkit-scrollbar { display: none; }
.type-tab { flex: none; padding: 6px 14px; border-radius: 16px; color: var(--text-soft); font-size: 14px; }
.type-tab.is-on, .type-tab:hover { color: #fff; background: var(--bg-elevated); }
.sub-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.sub-tabs a { flex: none; color: var(--text-soft); font-size: 13px; white-space: nowrap; }
.sub-tabs a:hover, .sub-tabs a.is-on { color: #fff; }

/* featured */
.featured { background: #000; padding-top: 15px; }
.featured-tabs { display: flex; gap: 8px; margin: 0 5px 15px; padding: 10px; background: #121212; border-radius: 5px; overflow-x: auto; scrollbar-width: none; }
.featured-tab {
  flex-shrink: 0; height: 40px; min-width: 80px; padding: 0 12px;
  border-radius: 20px; border: 1px solid #212121; background: transparent;
  color: #C6C6C6; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.featured-tab.is-on { border: 0; background: var(--grad); color: #fff; }
.featured-pane { display: none; }
.featured-pane.is-on { display: block; }

/* section */
.home-section { margin: 16px 0 24px; }
.home-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid var(--line-section); padding-bottom: 8px; }
.home-header { margin: 0; font-size: 18px; font-weight: 700; }
.home-section-head .more { color: var(--accent-2); font-size: 13px; }
.ad-slot { min-height: 0; }
.ad-slot:empty, .ad-slot:blank { display: none; }

/* cards */
.grid-display { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.video-element { margin-bottom: 0; }
@media (min-width: 991px) {
  .video-element { margin-bottom: 32px; }
}
.video-cover { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; background: #1a1a1a; }
.video-cover img {
  width: 100%; height: 129px; object-fit: cover; display: block; border-radius: var(--radius-card);
}
@media (min-width: 991px) {
  .video-cover img { height: 213px; }
  .video-title { font-size: 15px; color: var(--text-title-pc); }
}
.list-heat-badge {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  padding: 4px 8px; border-radius: var(--radius-badge);
  background: var(--bg-badge); color: #fff; font-size: 12px; line-height: 1.2; pointer-events: none;
}
.video-duration {
  position: absolute; right: 8px; bottom: 8px; z-index: 4;
  padding: 3px 6px; border-radius: 5px; background: #00000099; color: #ccc; font-size: 11px; pointer-events: none;
}
.video-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 8px 0 0; padding: 0; font-size: 12px; font-weight: 500; color: #fff; word-break: break-all;
}

/* pager */
.page_navi { width: 100%; line-height: 36px; text-align: center; overflow: hidden; padding-top: 5px; padding-bottom: 20px; }
.page_navi .pagenum, .page_navi a {
  padding: 5px 10px; margin: 5px 2px; text-decoration: none; display: inline-block;
  color: #888; line-height: 26px; font-size: 14px; white-space: nowrap; min-width: 46px;
  border-radius: 5px; background: #2f2f2f;
}
.page_navi a:hover, .page_navi .pagenum:hover { background: #363636; color: #fff; }
.page_navi .current, .page_navi .active a, .page_navi li.active a {
  color: #000; font-weight: 700; background: #ff236d;
}

/* play */
.play-wrap { width: 100%; background: #000; }
#video, #video .MacPlayer { width: 100%; height: 250px !important; background: #000; }
@media only screen and (min-width: 1000px) {
  #video, #video .MacPlayer { height: 504px !important; }
}
.play-title { font-size: 18px; margin: 12px 0 8px; }
.play-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.play-lines, .play-eps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.play-lines a, .play-eps a { padding: 4px 10px; border: 1px solid #333; border-radius: 4px; font-size: 13px; color: var(--text-soft); }
.play-lines a.is-on, .play-eps a.is-on { border-color: var(--accent-2); color: #fff; }
.play_actions_ct {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #333; padding: 12px 0; margin-top: 8px;
}
.play_actions { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14px; color: #c6c6c6; background: none; border: 0; }
.play_actions.share { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.unable-btn { margin-left: auto; padding: 3.5px 6px; height: 24px; background: rgba(255,45,85,.1); border-radius: 6px; color: #ff2d55; font-size: 12px; border: 0; cursor: pointer; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag-list a { padding: 3px 10px; border-radius: 12px; background: #1c1c1c; color: var(--text-soft); font-size: 12px; }
.vod-content { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin: 10px 0 20px; }
.share-box { display: none; margin: 8px 0; padding: 10px; background: #121212; border-radius: 8px; }
.share-box.is-open { display: flex; gap: 8px; align-items: center; }
.share-box input { flex: 1; background: #111; border: 1px solid #333; color: #fff; padding: 6px 8px; border-radius: 4px; }
.sheet { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; padding: 16px; background: #121212; border-radius: 16px 16px 0 0; min-height: 160px; }
.sheet.is-open { display: block; }

/* search / user */
.search-form { display: flex; gap: 8px; margin: 16px 0; }
.search-form input[type=text] {
  flex: 1; background: #111; border: 1px solid #323232; color: #e4e4e4; border-radius: 6px; padding: 10px 12px;
}
.search-form input[type=text]::placeholder { color: #c9c9c9; }
.search-form button { background: var(--accent-2); color: #000; border: 0; border-radius: 6px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.user-page { max-width: 400px; margin: 40px auto; padding: 0 16px; }
.user-page h1 { font-size: 22px; margin: 0 0 8px; }
.user-page h2 { font-size: 16px; font-weight: 500; color: var(--text-soft); margin: 0 0 16px; }
.user-page .field { margin-bottom: 12px; }
.user-page input[type=text], .user-page input[type=password] {
  width: 100%; background: #111; border: 1px solid #323232; color: #e4e4e4; border-radius: 6px; padding: 12px;
}
.user-page .submit { width: 100%; background: var(--accent-2); color: #000; border: 0; border-radius: 6px; padding: 12px; font-weight: 700; cursor: pointer; }
.user-links { display: flex; justify-content: space-between; margin-top: 12px; color: var(--text-soft); font-size: 13px; }
.tip { color: #e1356e; font-size: 13px; min-height: 18px; }

/* footer */
.site-footer { margin-top: 40px; padding: 24px 12px 80px; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.back-top {
  position: fixed; right: 12px; bottom: 24px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4); z-index: 40; font-size: 16px;
}
.empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
