html.page-video {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Toolbar */
.v-toolbar {
  position: sticky;
  top: var(--site-header-h);
  z-index: 35;
  margin: 0 -1rem;
  padding: 0.25rem 1rem 0.5rem;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
}

.v-search {
  position: relative;
  display: flex;
  align-items: center;
}

.v-search-icon {
  position: absolute;
  left: 0.85rem;
  width: 15px;
  height: 15px;
  color: #a3a3a3;
  pointer-events: none;
}

.v-search input {
  width: 100%;
  height: 2.5rem;
  padding: 0 2.4rem 0 2.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fafafa;
  font: inherit;
  font-size: 14px;
  color: #171717;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.v-search input::placeholder {
  color: #a3a3a3;
}

.v-search input:placeholder-shown {
  padding-right: 0.9rem;
  text-overflow: ellipsis;
}

.v-search input::-webkit-search-cancel-button {
  display: none;
}

.v-search input:focus {
  border-color: #111;
  background: #fff;
}

.v-search-clear {
  position: absolute;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 16px;
  line-height: 1;
  color: #737373;
}

.v-search-clear:hover {
  color: #111;
  background: #f0f0f0;
}

.v-cats {
  display: flex;
  gap: 0.375rem;
  margin: 0.625rem -1rem 0;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.v-cats::-webkit-scrollbar {
  display: none;
}

.v-cat {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fff;
  padding: 0.3rem 0.75rem;
  font-size: 12.5px;
  font-weight: 500;
  color: #737373;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.v-cat-count {
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #b5b5b5;
}

.v-cat:hover:not(.is-active) {
  border-color: #111;
  color: #111;
}

.v-cat.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
  font-weight: 600;
}

.v-cat.is-active .v-cat-count {
  color: #a3a3a3;
}

.v-cat.is-empty:not(.is-active) {
  color: #c4c4c4;
}

.v-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.v-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 9999px;
  background: #f1f1f1;
}

.v-toggle-btn {
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-size: 12.5px;
  color: #737373;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.v-toggle-btn:hover {
  color: #111;
}

.v-toggle-btn.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  font-weight: 700;
  color: #111;
}

.v-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.v-sort-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #a3a3a3;
}

@media (min-width: 640px) {
  .v-sort {
    padding-left: 1.25rem;
    border-left: 1px solid #e5e5e5;
  }
}

.v-seg {
  display: flex;
  align-items: center;
}

.v-seg-btn {
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: #8a8a8a;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.v-seg-btn:hover {
  color: #111;
}

.v-seg-btn.is-active {
  border-bottom-color: #111;
  font-weight: 700;
  color: #111;
}

.v-seg-sep {
  margin: 0 0.45rem;
  font-size: 11px;
  color: #d4d4d4;
  user-select: none;
}

.v-play {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.v-mode-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
}

.v-mode-btn svg {
  width: 15px;
  height: 15px;
}

.v-play-btn {
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: #111;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.v-play-btn:hover {
  background: #404040;
}

/* Summary + grid */
.v-summary {
  margin: 1rem 0 0.75rem;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.v-summary-count {
  margin-left: 0.25rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #a3a3a3;
}

.v-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v-card {
  min-width: 0;
}

.v-card-hit {
  display: flex;
  width: 100%;
  flex-direction: column;
  text-align: left;
  color: inherit;
}

.v-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f5f5f5;
}

.v-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .v-card-hit:hover .v-thumb img {
    transform: scale(1.03);
  }

  .v-card-hit:hover .v-card-title {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.v-thumb.is-missing img {
  visibility: hidden;
}

.v-card.is-playing .v-thumb {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.v-card.is-playing .v-thumb::after {
  content: "재생 중";
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  background: #111;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
}

.v-badge,
.v-dur {
  position: absolute;
  bottom: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.78);
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
}

.v-badge {
  left: 0.35rem;
}

.v-dur {
  right: 0.35rem;
}

.v-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.5rem 0.1rem 0;
}

.v-card-date {
  font-size: 11px;
  font-weight: 500;
  color: #8a8a8a;
}

.v-card-title {
  display: -webkit-box;
  margin-top: 0.2rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  word-break: break-all;
}

.v-card-meta {
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #737373;
}

.v-card-ext {
  margin-top: 0.2rem;
  font-size: 11px;
  color: #a3a3a3;
}

.v-more {
  height: 1px;
}

.v-empty {
  margin: 3rem 0;
  text-align: center;
  font-size: 13px;
  color: #a3a3a3;
}

/* Player */
.v-player {
  scroll-margin-top: var(--site-header-h);
  margin: 0 -1rem 0.75rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.v-frame {
  position: relative;
  overflow: hidden;
  margin: 0 -1rem;
  aspect-ratio: 16 / 9;
  background: #000;
}

.v-frame iframe,
.v-frame #vPlayerMount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.v-now {
  margin-top: 0.75rem;
}

.v-now-meta {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #8a8a8a;
}

.v-now-title {
  margin: 0.25rem 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}

.v-now-src {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.4rem 0 0;
  font-size: 11.5px;
  line-height: 1.6;
}

.v-now-src:empty {
  display: none;
}

.v-now-src-label {
  margin-right: 0.45rem;
  font-weight: 600;
  color: #a3a3a3;
}

.v-now-src a {
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v-now-src a:hover {
  color: #111;
}

.v-now-pts button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.v-now-pts button:hover {
  color: #111;
}

.v-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: 0.75rem;
}

.v-ctrl {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  color: #111;
  transition: border-color 0.15s ease;
}

.v-ctrl:hover {
  border-color: #111;
}

.v-ctrl svg {
  width: 15px;
  height: 15px;
}

.v-controls .v-ctrl + .v-ctrl {
  margin-left: -0.5rem;
}

.v-queue-pos {
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8a8a8a;
}

.v-ctrl-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.v-ctrl-text:hover {
  color: #111;
}

.v-queue-toggle {
  margin-left: auto;
}

.v-queue-toggle[aria-expanded="true"] {
  font-weight: 700;
  color: #111;
}

.v-notice {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #f5f5f5;
  font-size: 12px;
  color: #404040;
}

.v-queue-wrap {
  display: none;
  margin-top: 0.75rem;
}

.v-player.is-queue-open .v-queue-wrap {
  display: block;
}

.v-queue-label {
  margin: 0 0 0.4rem;
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.v-queue {
  max-height: 18rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  border-top: 1px solid #f1f1f1;
}

.v-q button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid #f5f5f5;
  text-align: left;
}

.v-q button:hover {
  background: #fafafa;
}

.v-q-num {
  flex-shrink: 0;
  width: 1.9rem;
  font-family: Oswald, Pretendard, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #a3a3a3;
  text-align: right;
}

.v-q img {
  flex-shrink: 0;
  width: 4.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.25rem;
  background: #f5f5f5;
}

.v-q-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.38;
  color: #404040;
  word-break: break-all;
}

.v-q.is-current button {
  background: #f5f5f5;
}

.v-q.is-current .v-q-num,
.v-q.is-current .v-q-title {
  font-weight: 700;
  color: #111;
}

.v-q-more {
  padding: 0.6rem 0.25rem;
  font-size: 11.5px;
  color: #a3a3a3;
  text-align: center;
}

@media (min-width: 768px) {
  .v-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .v-frame {
    margin: 0;
    border-radius: 0.5rem;
  }

  .v-player {
    padding-top: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .v-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .v-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 1.5rem;
    align-items: start;
  }

  .v-queue-wrap,
  .v-player.is-queue-open .v-queue-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .v-queue {
    max-height: 26rem;
  }

  .v-queue-toggle {
    display: none;
  }

  .v-open-yt {
    margin-left: auto;
  }
}
