/* 냥집 영상 상세 — PC only, 메인 2단 비율 재사용 */

.video-page .short-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.video-hero {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 16 / 9;
}

.video-hero.is-skeleton .ph-thumb {
  position: absolute;
  inset: 0;
}

.video-detail-meta.is-skeleton .video-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
}

.video-detail-meta.is-skeleton .video-detail-title .skel-line {
  height: 22px;
  width: 86%;
}

.video-detail-meta.is-skeleton .video-detail-copy > .skel-line {
  height: 14px;
  width: 42%;
}

.video-detail-meta.is-skeleton .video-detail-copy > .skel-line:last-child {
  margin-top: 8px;
}

.side-card--picked .is-skeleton .skel-line {
  height: 12px;
}

.side-card--picked .picked-actions .skel-line {
  height: 36px;
  width: 100%;
  margin-top: 6px;
}

.video-hero.has-media {
  background: #1d1a17;
}

.video-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero.is-short {
  background: #000;
}

.video-hero.is-short .video-hero-img {
  object-fit: contain;
}

.video-hero .video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.video-hero[data-video-hero] {
  cursor: pointer;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.58);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video-play img {
  display: block;
  width: 140px;
  height: auto;
  opacity: 0.88;
}

.video-hero:hover .video-play {
  background: rgba(255, 252, 248, 0.72);
}

.video-hero-player {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}

.video-hero.is-playing {
  cursor: default;
}

.video-hero.is-playing .video-play,
.video-hero.is-playing .video-duration {
  display: none;
}

.video-detail-meta {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 16px;
}

.video-detail-meta .channel-avatar {
  grid-row: auto;
  align-self: stretch;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  font-size: 32px;
}

.video-detail-meta .channel-avatar img {
  width: 100%;
  height: 100%;
}

a.channel-avatar {
  text-decoration: none;
}

.video-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 96px;
}

.video-detail-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 26px;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-detail-channel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
}

.video-detail-channel {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-detail-flag {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
  font-style: normal;
}

.video-detail-stats {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.video-below {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f5f5f5;
}

.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 16px;
  color: var(--ink-soft);
  text-align: center;
}

.video-empty img {
  width: 120px;
  height: 120px;
}

.video-loading {
  padding: 48px 0;
  color: var(--muted);
}

.side-card--picked {
  padding: 16px 16px 18px;
  margin-bottom: 18px;
  background: #faf8f6;
}

.picked-eyebrow {
  margin-bottom: 8px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.picked-title {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.picked-channel,
.picked-stats {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.picked-channel a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.picked-channel a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.82;
}

.picked-hanmadi {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #efe8e2;
}

.picked-hanmadi h3 {
  font-size: 14px;
  font-weight: 720;
}

.hanmadi-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.hanmadi-empty img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.hanmadi-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.picked-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.picked-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9cfc6;
  background: #fff;
  color: var(--brown-deep);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.picked-btn .hanmadi-count {
  font-size: 16px;
  font-weight: 760;
}

.picked-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.picked-btn.is-on {
  background: #775a3f;
  border-color: #775a3f;
  color: #fff;
}

.picked-btn--yt {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.picked-btn--yt:hover {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  color: #fff;
}

.scrap-note {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.scrap-note.is-open {
  display: flex;
}

.scrap-note img {
  width: 36px;
  height: 36px;
}

.hanmadi-empty-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.hanmadi-empty-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 22, 0.38);
}

.hanmadi-empty-dialog {
  position: relative;
  z-index: 1;
  width: 280px;
  max-width: calc(100% - 48px);
  padding: 20px 18px 16px;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fffaf6;
  text-align: center;
}

.hanmadi-empty-img {
  display: block;
  width: 84px;
  height: auto;
  margin: 2px auto 12px;
}

.hanmadi-empty-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.hanmadi-empty-text {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.hanmadi-empty-dialog .picked-btn {
  margin-top: 14px;
}

.hanmadi-write-dialog {
  width: 360px;
  text-align: center;
}

.hanmadi-write-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.hanmadi-write-input:focus {
  border-color: #d4c8be;
}

.hanmadi-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.hanmadi-empty-dialog .hanmadi-actions .picked-btn {
  margin-top: 0;
}

.hanmadi-list-dialog {
  width: 400px;
  text-align: left;
}

.hanmadi-list-dialog .hanmadi-empty-title {
  text-align: center;
}

.hanmadi-list-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  margin-top: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d4c6b8 transparent;
}

.hanmadi-list-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #efe8e2;
  border-radius: 12px;
  background: #fff;
}

.hanmadi-list-body {
  min-height: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.hanmadi-list-editor {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #efe8e2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  line-height: inherit;
  resize: vertical;
  outline: none;
}

.hanmadi-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.hanmadi-list-meta > span:first-child {
  min-width: 0;
}

.hanmadi-list-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.hanmadi-list-actions button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9a8c80;
  font-size: inherit;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.hanmadi-list-actions button:hover {
  color: var(--brown-deep);
}

.hanmadi-list-sep {
  color: #d4c8be;
}
