/* CPOO 看片平台 · 原型样式
   风格：电影级深色、克制、暖金点缀 */

:root {
  --bg: #0c0c0f;
  --bg-soft: #15151b;
  --panel: #1a1a22;
  --panel-2: #20202a;
  --line: #2a2a35;
  --text: #ece9e4;
  --text-dim: #9a978f;
  --text-faint: #6a6760;
  --accent: #d4a373;        /* 暖金 */
  --accent-soft: #b88a55;
  --danger: #c96b5a;
  --ok: #6fae7e;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0,0,0,.5);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .2px;
}

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

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 2px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e6c89a);
  box-shadow: 0 0 12px rgba(212,163,115,.6);
}
.brand .name { font-size: 15px; }
.brand .sub { font-size: 11px; color: var(--text-faint); letter-spacing: 3px; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(212,163,115,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(80,120,160,.08), transparent 60%),
    var(--bg);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 32px 30px;
  box-shadow: var(--shadow);
}
.login-card .brand { margin-bottom: 28px; }
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.login-card .tagline { font-size: 13px; color: var(--text-dim); margin-bottom: 26px; line-height: 1.6; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px;
  background: #0f0f14; border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 14px;
  transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--accent-soft); }

.btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #1a1208; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .08s, filter .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.err {
  color: var(--danger); font-size: 12.5px; margin: 4px 2px 14px;
  min-height: 16px;
}
.login-foot {
  margin-top: 22px; font-size: 11.5px; color: var(--text-faint);
  line-height: 1.7; text-align: center;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line);
  background: rgba(12,12,15,.8); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .who { font-size: 13px; color: var(--text-dim); }
.topbar .who b { color: var(--text); font-weight: 600; }
.logout {
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px;
  transition: border-color .2s, color .2s;
}
.logout:hover { color: var(--text); border-color: var(--accent-soft); }

/* ---------- 项目列表 ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 32px 28px 60px; }
.page h2 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.page .desc { font-size: 13px; color: var(--text-dim); margin-bottom: 26px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .12s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.card .thumb {
  height: 152px; position: relative;
  background: linear-gradient(135deg, #23232e, #14141a);
  display: grid; place-items: center;
}
.card .thumb .play {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(212,163,115,.18); border: 1px solid rgba(212,163,115,.5);
  display: grid; place-items: center;
}
.card .thumb .play::after {
  content: ""; border-left: 13px solid var(--accent);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  margin-left: 4px;
}
.card .thumb .dur {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11px; background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 5px;
  color: var(--text-dim);
}
.card .body { padding: 14px 15px 16px; }
.card .body .title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.card .body .meta { display: flex; align-items: center; justify-content: space-between; }
.card .body .date { font-size: 11.5px; color: var(--text-faint); }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.badge.review { color: var(--accent); background: rgba(212,163,115,.12); border: 1px solid rgba(212,163,115,.3); }
.badge.done { color: var(--ok); background: rgba(111,174,126,.12); border: 1px solid rgba(111,174,126,.3); }

/* ---------- 播放页 ---------- */
.player-page { max-width: 1100px; margin: 0 auto; padding: 26px 28px 60px; }
.back { font-size: 13px; color: var(--text-dim); cursor: pointer; margin-bottom: 18px; display: inline-block; }
.back:hover { color: var(--text); }

.stage {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stage video { width: 100%; height: 100%; display: block; background: #000; }

/* 全屏淡平铺水印（追责底层） */
.wm-tile {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  opacity: .06; overflow: hidden;
  background-repeat: repeat;
}
.wm-tile span {
  position: absolute; white-space: nowrap; color: #fff;
  font-size: 14px; transform: rotate(-30deg); letter-spacing: 1px;
}
/* 漂移的明水印（每隔几秒换位置，防裁切） */
.wm-drift {
  position: absolute; pointer-events: none; z-index: 7;
  color: rgba(255,255,255,.42); font-size: 13px; letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap;
  transition: left 1.2s ease, top 1.2s ease;
}

.player-info { margin-top: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.player-info h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.player-info .sub { font-size: 12.5px; color: var(--text-dim); }
.notice {
  font-size: 12px; color: var(--text-dim); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  max-width: 360px; line-height: 1.7;
}
.notice b { color: var(--accent); }

.stub-banner {
  margin-top: 22px; font-size: 12px; color: var(--text-faint);
  border-top: 1px dashed var(--line); padding-top: 14px; line-height: 1.7;
}
.stub-banner code { color: var(--accent-soft); background: #0f0f14; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
