/* ═══════════════════════════════════════════════════════════════
 * skins/board/webtoon/style.css — 웹툰 회차 목록 스킨
 * 클래스 접두사: wt-
 * ═══════════════════════════════════════════════════════════════ */

/* ─── 상단 배너 ─── */
.wt-banner {
  margin-bottom: 18px;
}
.wt-banner-img {
  display: block;
  width: 880px;
  max-width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--hair-soft);
}
.wt-banner-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.wt-banner-form input[type=url] {
  flex: 1;
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.wt-banner-form input[type=url]:focus {
  border-color: var(--accent);
}
.wt-banner-form button {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background: var(--accent);
  color: var(--paper);
}
.wt-banner-form .wt-banner-clear {
  background: var(--paper-2);
  color: var(--ink-mute);
  border: 1px solid var(--hair);
}

/* ─── 상단: 총 화수 + 정렬 토글 ─── */
.wt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 14px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 4px;
}
.wt-total {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 600;
}
.wt-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wt-sort-btn {
  background: none;
  border: none;
  padding: 2px 2px;
  font-size: 13px;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.wt-sort-btn.is-active {
  color: var(--ink);
  font-weight: 700;
}
.wt-sort-dot {
  color: var(--ink-mute);
  font-size: 12px;
}

/* board-actions.php 의 기본 "총 N편 · 최신순" 텍스트는 wt-head 와 중복이라 숨김 */
.wt-wrap .list-actions .meta {
  display: none;
}

/* ─── 목록 ─── */
.wt-list {
  display: flex;
  flex-direction: column;
}
.wt-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hair-soft);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.wt-item:hover {
  background: var(--paper-2);
}
.wt-item:last-child {
  border-bottom: none;
}

/* ─── 썸네일 ─── */
.wt-thumb {
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hair-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}
.wt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wt-thumb-fallback {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink-mute);
  user-select: none;
}
.wt-lock {
  font-size: 24px;
  color: var(--ink-mute);
}

/* ─── 텍스트 정보 ─── */
.wt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-ep-no {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.wt-list-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-list-subtitle {
  font-size: 13px;
  color: var(--ink-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-memo {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── 이전화 / 다음화 내비게이션 (상세 페이지) ─── */
.wt-ep-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.wt-ep-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  transition: border-color .12s, background .12s;
  min-width: 0;
}
.wt-ep-nav-btn:not(.wt-ep-disabled):hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wt-ep-next {
  text-align: right;
  align-items: flex-end;
}
.wt-ep-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mute);
}
.wt-ep-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-ep-disabled {
  opacity: .45;
  cursor: default;
}


.wt-banner-img.is-draggable { cursor: grab; touch-action: none; user-select: none; }
.wt-banner-img.is-dragging { cursor: grabbing; }
.wt-drag-hint { flex: 1 1 100%; font-size: 12px; color: var(--ink-mute); }

/* ─── 헤더 배너 위 페어명 ─── */
.wt-banner-wrap { position: relative; }
.wt-banner-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 22px 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff;
}
.wt-banner-title { font-size: 26px; font-weight: 800; line-height: 1.2; }
.wt-banner-sub { font-size: 13px; margin-top: 4px; opacity: .92; }
.wt-plain-head { padding: 6px 4px 14px; color: var(--ink); }
.wt-admin-bar { text-align: right; margin: 6px 0; font-size: 12px; }
.wt-admin-bar a { color: var(--ink-mute); text-decoration: none; opacity: .6; }
.wt-admin-bar a:hover { opacity: 1; }
.wt-banner-form input[type=text] {
  flex: 1; min-width: 0; background: var(--paper-2); border: 1px solid var(--hair);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; font-family: inherit; color: var(--ink);
}
.wt-banner-form { flex-wrap: wrap; }
.wt-banner-form input { flex: 1 1 200px; }

/* ─── 시리즈 목록 (게시판 첫 화면) ─── */
.wt-series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 22px;
  padding: 28px 4px;
  border-top: 1px solid var(--hair);
  margin-top: 18px;
}
.wt-series-card { display: block; text-decoration: none; color: inherit; }
.wt-series-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hair-soft);
  display: flex; align-items: center; justify-content: center;
}
.wt-series-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.wt-series-card:hover .wt-series-cover img { transform: scale(1.03); }
.wt-series-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 12px 2px 0; }
.wt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 2px 0; }
.wt-tag {
  font-size: 12px; font-weight: 600; color: var(--ink-mute);
  border: 1px solid var(--hair); background: var(--paper-2);
  border-radius: 8px; padding: 3px 10px; line-height: 1.4;
}
.wt-tag-adult { color: #e0701b; background: #fff0de; border-color: #fff0de; }

.wt-series-edit { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.wt-series-edit summary { cursor: pointer; }
.wt-series-edit form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.wt-series-edit input[type=url],
.wt-series-edit input[type=text] {
  background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--ink);
}
.wt-series-edit button {
  align-self: flex-start; border: none; border-radius: 8px; padding: 7px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer; background: var(--accent); color: var(--paper);
}

.wt-move { display: flex; gap: 6px; margin-top: 10px; }
.wt-move button {
  border: 1px solid var(--hair); background: var(--paper-2); color: var(--ink-mute);
  border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.wt-move button:hover { border-color: var(--accent); color: var(--ink); }

/* ─── 시리즈 안 헤더 ─── */
.wt-back { display: inline-block; font-size: 13px; color: var(--ink-mute); text-decoration: none; margin-bottom: 8px; }
.wt-back:hover { color: var(--ink); }
.wt-series-name { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.wt-series-name-desc { font-size: 13px; color: var(--ink-mute); margin-bottom: 10px; }

@media (max-width: 900px) {
  .wt-series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wt-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .wt-banner-title { font-size: 20px; }
}

/* ─── 모바일 ─── */
@media (max-width: 640px) {
  .wt-banner-img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }
  .wt-banner-form {
    flex-direction: column;
  }
  .wt-thumb {
    width: 110px;
  }
  .wt-ep-no {
    font-size: 15px;
  }
  .wt-list-title,
  .wt-list-subtitle,
  .wt-memo {
    font-size: 12.5px;
  }
  .wt-ep-nav-title {
    display: none;
  }
}
