/* ==========================================================================
   SPKLOVE UNIFIED STYLESHEET
   Generated from the existing site styles, embedded page styles, and the new
   unified design layer. Keep this as the only project stylesheet in base.html.
   ========================================================================== */

/* ===== LEGACY SOURCE: style.css ===== */
body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height:100vh;           /* 기본 */
  min-height:100dvh;          /* 모바일 브라우저 동적 주소창 대응 */
  display:flex;               /* 세로 플렉스 레이아웃 */
  flex-direction:column;
}

main{
  flex:1 1 auto;
  display:block;
}

.site-footer {
  background: #111;
  color: #ccc;
  padding: 20px 40px;
  font-size: 14px;
  margin-top:auto;
  border-top: 1px solid #333;
}


.site-footer .footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 18px;
  color: #f55;
  font-weight: bold;
}

.footer-description {
  margin: 5px 0 0;
  font-size: 13px;
  color: #888;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #222;
  padding-top: 10px;
}

.footer-nav a {
  margin-right: 16px;
  text-decoration: none;
  color: #aaa;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

body.sidebar-collapsed .site-footer{ 
  margin-left: calc(var(--sidebar-w-collapsed) + var(--gap));
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #828282;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #6C6C6C;
}

.logo {
  height: 40px;
  margin-right: 15px;
}

/* === HEADER LOGO (site-title) 반응형 === */
.nav-left{ display:flex; align-items:center; gap:12px; min-width:0; }

.site-title{
  display:flex; align-items:center; gap:10px;
  min-width: 0;                         /* ← 반드시 필요 (축소 허용) */
  max-width: clamp(140px, 24vw, 260px); /* 화면에 따라 자연스럽게 축소 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;              /* 말줄임 */
}
.site-title .logo{ flex:0 0 auto; width:28px; height:28px; }
.site-title .text{ display:inline-block; min-width:0; }

/* 좁은 화면에서는 텍스트 숨기고 로고만 표시 */
@media (max-width: 900px){
  .site-title{ max-width: 42px; }       /* 로고 크기만큼 */
  .site-title .text{ display:none; }
}

/* === SIDEBAR BRAND(로고+텍스트)도 축소 허용 === */
.brand-link{ min-width:0; }
.brand-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;                /* 접히지 않을 때도 말줄임 */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 24px;
  background: linear-gradient(to bottom, #000000, #121212);
  /* border-bottom: 1px solid #222; */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  color: #aaa;
  margin-right: 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon {
  font-size: 20px;
  color: #fff;
  cursor: var(--spk-cursor-pointer);
  padding: 8px;
  transition: 0.3s;
  border-radius: 50%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-profile-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  cursor: var(--spk-cursor-pointer);
}

.nav-icon:hover {
  background-color: rgba(255,255,255,0.1);
}

/* 메인 페이지 배너 및 추가 영역 부분 */
.main-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr; /* 1번이 더 큼 */
  gap: 20px;

  padding: 24px;
}
.box {
  background: #1D1D1D;
  border-radius: 10px;
  padding: 14px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);

  box-sizing: border-box;
}
.box-banner {
  padding: 14px; /* 박스 안쪽 여백 */
  min-height: 460px;  /* 초기 높이 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;

  background: #111; /* 이미지 로딩 전 대비 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.box-side {
  min-height: 460px;
}
/* end */

/* 추천 동영상, 이미지, 만화 섹션 */
.recommend-section {
  position: relative;
  margin: 40px 16px;
}
.section-box {
  position: relative;
  z-index: 1;
  overflow: hidden; 
  border: 2px solid #000; /* 테두리 */

  background: #1A1A1A;
  border-radius: 14px;              /* 살짝 둥근 */
  padding: 22px 16px 18px;

  min-height: 180px;                /* 예시용 */
}
.section-label {
  z-index: 20;
  border: 2px solid #000; 

  position: absolute;
  top: -18px;
  left: 24px;

  background: linear-gradient(
    135deg,
    #2a2a2a,
    #232323
  );

  color: #f2f2f2;
  font-size: 18px;
  font-weight: 600;

  padding: 10px 20px;
  border-radius: 999px;             /* 많이 둥글게 */

  letter-spacing: 0.2px;
}
.section-video .section-label {
  background: linear-gradient(135deg, #2b2b2b, #1f1f1f);
}

.section-image .section-label {
  background: linear-gradient(135deg, #2a2630, #1e1b24);
}

.section-manga .section-label {
  background: linear-gradient(135deg, #2a2a2a, #1c1c1c);
}

/* END */
.banner {
  background: url('../images/banner.jpg') no-repeat center center;
  background-size: cover;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.content-section {
  padding: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.card {
  background: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 4px;
}

.search-sort {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}


.center {
  justify-content: center;
  text-align: center;
}

.video-thumb {
  position: relative;
}

.video-thumb img {
  border-radius: 4px;
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 3px;
  color: white;
}

.form-box {
  background: #1c1c1c;
  padding: 20px;
  margin: 0 auto;
  max-width: 400px;
  border-radius: 8px;
}

.video-page {
  padding-inline: var(--page-gutter-x);   /* 좌/우 */
  padding-block: var(--page-gutter-y);  
}

.search-bar {
  margin-bottom: 20px;
  text-align: center;
}

.search-bar input,
.search-bar select,
.search-bar button {
  padding: 8px;
  margin-right: 5px;
}

/* 동영상 그리드, 카드 표시 스타일 */
.video-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 20px;
}
.video-grid > * {
  min-width: 0;
  max-width: 100%;
}

.video-card{
  min-width: 0;
  width:100%;
  background:transparent;
  border-radius:4px;
  overflow:hidden;
  color:#e9eaec;
  transition:transform .18s ease, box-shadow .18s ease;
}
.video-card:hover{ transform:translateY(-3px); }

.video-card .video-title{
  margin:12px 4px 6px;
  padding:0;
  font-size:18px;
  white-space:nowrap;
  font-weight:700;
  line-height:1.4;
  overflow:hidden;
  font-stretch:normal;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  text-overflow:ellipsis;
}

.video-card .video-author{
  margin:0 4px 12px;
  font-size:14px;
  line-height:1.4;
  font-stretch:normal;
}

.video-thumb{
  position:relative;
  background:#0b0c10;
  aspect-ratio:16/9;
  border-radius:4px;
  overflow:hidden;
}
.video-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.video-duration{
  position:absolute; right:8px; bottom:8px;
  background:rgba(0,0,0,.78);
  color:#fff; font-size:12px; line-height:1;
  padding:3px 6px; border-radius:6px;
  border:1px solid rgba(255,255,255,.09);
  z-index:2;
}

.video-thumb::before, .video-thumb::after{ content:""; position:absolute; inset:auto; pointer-events:none; }
.video-thumb::before{
  width:42px; height:42px; top:50%; left:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:rgba(0,0,0,.42);
  box-shadow:0 8px 22px rgba(0,0,0,.35);
  transition:transform .18s ease, background .18s ease, opacity .18s ease;
  z-index:1;
}
.video-thumb::after{
  top:50%; left:50%;
  transform:translate(-38%,-50%);
  border-left:14px solid #fff;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition:transform .18s ease, opacity .18s ease;
  z-index:1;
}
.video-card:hover .video-thumb::before{ background:rgba(0,0,0,.60); transform:translate(-50%,-50%) scale(1.04); }
.video-card:hover .video-thumb::after{ opacity:.9; transform:translate(-38%,-50%); }

.video-card a,
.video-card a:hover,
.video-card a:focus{
  text-decoration:none !important;
  color:inherit;
}

.video-info{
  background:transparent !important;   /* 배경 제거 */
  padding:0;                           /* 카드와 간격은 개별 요소에서 처리 */
}

.video-title{
  padding:10px 4px 2px; margin:0;
  font-size:16px; font-weight:800; line-height:1.35;
  color:#e9eaec;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width: 0;
}

.video-author{
  margin:0 4px 10px;
  font-size:13px; color:#a9acb3;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.video-stats{
  justify-content:flex-start;
  gap:8px;
  padding:0 4px 12px;
  margin:0;
  align-items: center; 
}

.video-stat-box{
  display:inline-flex; align-items:center; gap:6px;
  background:#2a2a2a; border:1px solid #26272b;
  height: 22px;  
  color:#b5b8c3;
  padding:0px 10px; border-radius:6px;
  font-size:12px; font-weight:700; white-space:nowrap;
  line-height: 1;
}

.video-stat-box .fa-heart{ width:16px; height:16px;  color:#ff6b81; font-size:16px; display: inline-block; }

.video-stats .video-stat-box:first-child::before{
  content:""; width:16px; height:16px; flex:0 0 16px; display:inline-block;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
}

/* 하트(두 번째) : 폰트아이콘 숨기고 같은 16×16 하트 SVG로 대체 */
.video-stats .video-stat-box:nth-child(2) .fa-heart{ display:none !important; }

.video-stats .video-stat-box:nth-child(2)::before{
  content:""; width:16px; height:16px; flex:0 0 16px; display:inline-block;
  background:#ff6b81;
  -webkit-mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 6 4 4 6.5 4c1.74 0 3.41 1 4.13 2.44C11.09 5 12.76 4 14.5 4 17 4 19 6 19 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 6 4 4 6.5 4c1.74 0 3.41 1 4.13 2.44C11.09 5 12.76 4 14.5 4 17 4 19 6 19 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
}

.video-stats .video-stat-box:first-child::before{
  content:""; width:16px; height:16px; flex: 0 0 16px; background:currentColor; display:inline-block;
  -webkit-mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/>\
</svg>") center/contain no-repeat;
}


/* END */

.thumbnail-container {
  position: relative;
}

.thumbnail-container img {
  width: 100%;
  display: block;
}


.video-view-page {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.main-video video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.video-detail h2 {
  margin-bottom: 5px;
}

.video-meta span {
  margin-right: 20px;
  color: #ccc;
  font-size: 14px;
}

.video-keywords {
  margin-top: 10px;
  color: #bbb;
}



/* 모달 바뀐거 시작 */

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal.hidden {
  display: none;
}


.close-btn {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 22px;
  color: #fff;
  cursor: var(--spk-cursor-pointer);
}

.auth-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px; 
}

.auth-box input,
.auth-box button {
  width: 100%;
  box-sizing: border-box; 
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
}

.auth-box button {
  background-color: #444;
  color: #fff;
  cursor: var(--spk-cursor-pointer);
  transition: background 0.3s;
}

.auth-box button:hover {
  background-color: #e53935;
}

/* 폼 간격 */
.auth-form {
  margin-bottom: 30px;
}

/* 전환 텍스트 */
.toggle-text {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.toggle-text a {
  color: #f44336;
  text-decoration: none;
  font-weight: bold;
}

/* 기본 숨김 처리 */
.hidden {
  display: none;
}

/* 모달 바뀐거 끝 */

/* 공통 프로필 이미지 스타일 */
.profile-img,
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* 마이페이지 또는 사용자 프로필에서 더 큰 이미지 */
.user-header .profile-img {
  width: 120px;
  height: 120px;
  border-radius: 0%;
}

.comment-section {
  margin-top: 40px;
}

.comment-input-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.comment-input-box textarea {
  background-color: #000;
  color: #fff;
  border: 1px solid #666;
  border-radius: 5px;
  border-width: 2px;
  font-size: 14px;
  flex: 1;
  margin-left: 10px;
  padding: 10px;
  resize: none;
  font-size: 14px;
}
/* 표시 */

.comment-button {
  margin-top: 10px;
  background: #444;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  cursor: var(--spk-cursor-pointer);
}
.comment-submit-box {
  text-align: right;
  margin-bottom: 20px;
}

.comment-list .comment {
  display: flex;
  margin-bottom: 20px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  margin-left: 12px;
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.comment-time {
  color: #aaa;
  font-size: 12px;
}

.comment-content {
  margin-top: 4px;
  font-size: 15px;
}

.edit-btn, .delete-btn {
  font-size: 12px;
  margin-left: 8px;
  color: #888;
  text-decoration: underline;
  cursor: var(--spk-cursor-pointer);
}

.video-toolbar {
  position: relative;
  z-index: 40;
  display: block;
  margin: 10px 20px 20px;
  overflow: visible;
}

.video-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-count {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

:root{
  --section-title-left: 21px;
}

.content .section-title{
  /* top  right  bottom  left */
  margin: 22px 0 12px var(--section-title-left);
}

/* Section Title: text + underline */
.section-title{
  /* 타이포 */
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;

  /* 배치 */
  display: inline-block;           /* 라인이 텍스트 너비만큼만 */
  margin: 1.25rem 0 .75rem;
  padding: 0 0 .45rem;             /* 라인과 글자 사이 간격 */

  /* 이전 스타일 제거 */
  background: transparent;
  border: 0;

  position: relative;
}

.section-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;                     /* 텍스트 길이만큼 */
  height: 3px;                     /* 라인 두께 */
  background: #ff6b88;
  border-radius: 2px;
}

/* 선택: 모바일에서 라인 살짝 얇게 */
@media (max-width: 640px){
  .section-title{ font-size: 1.25rem; padding-bottom: .4rem; }
  .section-title::after{ height: 2px; }
  :root{ --section-title-left: 12px; }
}


:root{
  --ctrl-h: 40px;
  --ctrl-r: 12px;
  --ctrl-bg: var(--panel-2, #121212);
  --ctrl-bd: var(--border, #30272b);
  --ctrl-tx: var(--text, #e6eaf2);
  --ctrl-ph: var(--muted, #9aa4b2);
}

:root{
  --filter-gap: 10px;       /* 컨트롤 간 간격 (기존 6~10px → 살짝 증가) */
  --select-width: 120px;    /* 최신순/오래된순 select 고정 폭 */
}

.video-filter-form{
  gap: var(--filter-gap);
}

.video-filter-form input[type="text"]{
  flex: 1 1 320px;          /* 넓게 늘어남 */
}

.video-filter-form select{
  flex: 1 1 var(--select-width);
  width: var(--select-width);
}

/* 버튼과의 간격이 더 필요하면 */
.video-filter-form button{
  margin-left: var(--filter-gap);
}

/* 모바일에서 더 컴팩트하게 */
@media (max-width: 640px){
  :root{
    --filter-gap: 10px;
    --select-width: 132px;
  }
}

.video-filter-form input[type="text"],
.video-filter-form select{
  height: var(--ctrl-h);
  padding: 0 12px;
  border-radius: var(--ctrl-r);
  background: var(--ctrl-bg);
  border: 2px solid var(--ctrl-bd);
  color: var(--ctrl-tx);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.video-filter-form input::placeholder{ color: var(--ctrl-ph); }



/* Select 커스텀 화살표 */
.video-filter-form select{
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239aa4b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* 버튼: 프라이머리 스타일 */
.video-filter-form button{
  height: var(--ctrl-h);
  padding: 0 14px;
  border-radius: var(--ctrl-r);
  border: 1px solid transparent;
  background: var(#636462);
  color: #fff;
  font-weight: 700;
  cursor: var(--spk-cursor-pointer);
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
}

.video-filter-form button:active{ transform: translateY(1px); }

/* 어둡게(보조 버튼) 쓰고 싶을 때 */
.video-filter-form .btn-ghost{
  background: var(--ctrl-bg);
  color: var(--ctrl-tx);
  border: 1px solid var(--ctrl-bd);
}
.video-filter-form .btn-ghost:hover{ border-color: var(--accent, #7aa2ff); }

/* 작은 화면 최적화 */
@media (max-width: 640px){
  :root{ --ctrl-h: 36px; }
  .video-filter-form input[type="text"], .video-filter-form select{ min-width: 160px; }
}


/* 마이 페이지 */

.my-page-container {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

.my-page-container h2, .my-page-container h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
}

.profile-preview {
  margin-top: 10px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #333;
}

button {
  padding: 10px 20px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: var(--spk-cursor-pointer);
}

.liked-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.liked-video-card {
  width: 160px;
}

.liked-video-card img {
  width: 100%;
  border-radius: 6px;
}


/* 사용자 페이지 */
.user-profile {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.user-header .profile-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #333;
}

.user-bio {
  font-size: 14px;
  color: #ccc;
}


/* 만화 MANGA */

/* 만화 목록 (manga.html) */
.mg-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 1.5rem;
    background-color: #121212;
}


/* ===== Manga card – upgraded ===== */
.mg-card{
  background:#1e1e1e;
  border:1px solid #26272b;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.6);
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.mg-card:hover{ transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.45); }

/* 썸네일은 비율 고정 (3:4) */
.mg-thumb{ display:block; position:relative; background:#000; aspect-ratio:3/4; }
.mg-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* 제목 2줄로 확장(기존 한줄 규칙 무력화) */
.mg-info{ padding:12px; display:flex; flex-direction:column; gap:8px; }
.mg-card .mg-card-title{
  margin:0; font-weight:800; font-size:1rem; line-height:1.35; color:#e0e0e0;
  white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; min-height:calc(1.35em * 2);
}

/* 하단 메타: 좌·중·우 */
.mg-meta3{
  display:grid;
  grid-template-columns: 1fr auto 1fr;  /* left | center | right */
  align-items:center;
  column-gap:12px;
  margin-top:2px;
  font-size:.9rem; color:#a9acb3; font-weight:700;
}
.mg-meta3 .meta{ display:inline-flex; align-items:center; gap:6px; }
.mg-meta3 .left{ justify-self:start; }
.mg-meta3 .center{ justify-self:center; }
.mg-meta3 .right{ justify-self:end; }

/* 아이콘(마스크 방식: 눈/이미지) */
.mg-meta3 .meta .ico{
  width:18px; height:18px; background:currentColor; display:inline-block;
  -webkit-mask-size:contain; -webkit-mask-repeat:no-repeat; -webkit-mask-position:center;
          mask-size:contain;         mask-repeat:no-repeat;         mask-position:center;
}
.mg-meta3 .views .ico{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5C7 5 2.73 8.11 1 12c1.73 3.89 6 7 11 7s9.27-3.11 11-7c-1.73-3.89-6-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10z' fill='%23fff'/></svg>");
}
.mg-meta3 .pages .ico{
  -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11.5 11 14l2.5-3L19 17H5l3.5-5.5zM8 8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z' fill='%23fff'/></svg>");
          mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11.5 11 14l2.5-3L19 17H5l3.5-5.5zM8 8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z' fill='%23fff'/></svg>");
}

/* 국기 이미지 */
.mg-meta3 .flag .flag-img{
  width:22px; height:16px; object-fit:cover; display:block;
  border-radius:3px; box-shadow:0 0 0 1px rgba(255,255,255,.12);
}



/* 링크 밑줄 제거 유지 */
.mg-card a{ text-decoration:none !important; color:inherit; }

@media (max-width:480px){
  .mg-info{ padding:10px; }
  .mg-card .mg-card-title{ font-size:.95rem; }
}





/* 만화 뷰어 (view_manga.html) */
.manga-viewer {
    max-width: 1000px;
    margin: 2rem auto;
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.manga-page {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* 입력 폼 공통 */
.manga-input[type="text"], .manga-input[type="file"], .manga-button {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem;
    margin: 0.25rem 0;
    width: 100%;
}

.mg-pagination {
  text-align: center;
  margin: 2rem 0;
}

.mg-pagination a {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  background-color: #333;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.mg-pagination span {
  color: #ccc;
}

/* 이미지 image */
:root{
  --chip-bg: color-mix(in srgb, var(--bg, #121212) 78%, white 22%);
  --chip-bd: color-mix(in srgb, var(--bg, #121212) 55%, white 12%);
}

.sort-options{
  display: flex;             /* block 컨테이너 */
  flex-wrap: wrap;           /* 칩이 좁으면 다음 줄로 */
  width: 100%;
  margin: 6px 0 18px var(--section-title-left, 0);  /* 제목과 동일한 좌측 오프셋 */
  gap: 8px;                  /* 칩 간격 */
  font-size: .95rem;
  color: var(--muted, #9aa4b2);
}

/* 각 항목을 버튼처럼 */
.sort-options a{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.sort-options a:hover{
  background: rgba(255,255,255,.04);
  border-color: var(--chip-bd);
  color: #e8f1ff;
}

/* 선택됨 */
.sort-options a.active,
.sort-options a.is-active{
  background: var(--chip-bg);
  border-color: var(--chip-bd);
  color: #fff;
  font-weight: 800;
  text-decoration: none; /* 기존 밑줄 제거 */
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
}

/* 키보드 접근성 */
.sort-options a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #7aa2ff) 45%, transparent);
}

/* 텍스트 사이에 '|' 구분자를 쓰는 경우 더 어울리게 */
.sort-options .sep{
  opacity: .35;
  pointer-events: none;
  margin: 0 2px;
}








/* ===============================
   Gelbooru Square - Correct Version
   =============================== */

.image-grid {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
    gap:18px;
    padding:1.5rem;
}

/* 카드 */
.image-card {
    position:relative;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.6);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.image-card .image-like-btn{
    position:absolute;
    bottom:10px;
    right:10px;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.8);
}


/* ===== 정사각형 영역은 wrapper에서만 ===== */
.image-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 정사각형 */
    overflow: hidden;
}

/* 이미지 */
.image-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* 이미지 개수 배지 */
.image-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 20px;
}

/* ===============================
   Related Image Sidebar
   =============================== */

.related-images-sidebar {
    width: 240px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
}

.related-images-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.9);
}

/* 세로 리스트 */
.related-images-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 한 줄 전체 차지 */
.related-image-item {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.related-image-item:hover {
    transform: translateY(-2px);
}

/* 썸네일이 가로 전부 차지 */
.related-image-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.related-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

/* hover 효과 */
.related-image-thumb:hover {
    transform: translateY(-3px);
}

.related-image-thumb:hover img {
    transform: scale(1.07);
}

/* 모바일 대응 */
@media (max-width: 1200px) {
    .related-image-sidebar {
        position: static;
        max-width: 100%;
        margin-top: 40px;
    }

    .related-image-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 600px) {
    .related-image-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===============================
   Image View 2 Column Layout
   =============================== */

.view-image-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.view-image-main {
    min-width: 0;
}

.full-image {
    width: 100%;
}

.image-section-title{
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;

  display: inline-block;
  margin: 22px 0 12px 0;
  padding: 0 0 .45rem;

  background: transparent;
  border: 0;
  position: relative;
}

/* 모바일 */
@media (max-width: 1200px) {
    .view-image-page {
        grid-template-columns: 1fr;
    }
}


.image-title {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #ddd;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-image-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    background-color: #1e1e1e;
    border-radius: 10px;
}

.img-pagination {
    text-align: center;
    margin: 2rem 0;
}

.img-pagination a {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background-color: #333;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

.img-pagination span {
    color: #ccc;
    margin: 0 1rem;
}

.notice-box {
  background: linear-gradient(to bottom, #191919, #121212);
  border-radius: 12px;
  padding: 16px;
  width: 460px;
  min-height: 440px; /* 고정 높이 지정 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* 공지사항 왼쪽 컬럼 */
.notice-column {
  width: 48%;
  min-width: 400px;
  background-color: #111;
  border-radius: 12px;
  padding: 20px;
}

.notice-column, .video-column {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 400px;
}


/* 공지사항 헤더 */
.notice-header {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.notice-header i {
  font-size: 20px;
  color: #f55;
  font-weight: bold;
}

/* 공지사항 리스트 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  background-color: #2c2c2c;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  color: #eee;
  font-size: 14px;
  transition: background 0.2s;
}

.notice-item:hover {
  background-color: #3a3a3a;
}

.notice-item a {
  color: #fff;
  text-decoration: none;
}

.notice-item .date {
  font-size: 12px;
  color: #aaa;
}

/* 공지사항 페이지네이션 */
.notice-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  gap: 6px;
}

.notice-pagination a {
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #333;
  color: #eee;
  font-size: 13px;
  text-decoration: none;
}

.notice-pagination .active {
  background-color: #ff4d4d;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 992px) {
  .index-layout {
    flex-direction: column;
    align-items: center;
  }

  .notice-column, .video-column {
    width: 100%;
    max-width: 700px;
  }
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.notice-detail {
  padding: 2rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 800px;
  margin: 3rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.notice-detail h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.notice-detail em {
  display: block;
  color: #888;
  margin-bottom: 1rem;
}

.notice-detail p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* 채팅 Chat */
.chat-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 3rem 0;
}

.chat-box {
  width: 500px;
  height: 400px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.chat-box form {
  display: flex;
  gap: 10px;
}

.chat-box input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  font-size: 15px;
}

.chat-box input[type="text"]:focus {
  outline: none;
  border-color: #90caf9;
  box-shadow: 0 0 0 2px rgba(144, 202, 249, 0.2);
}

.chat-box button {
  background-color: #2a2a2a;
  color: #90caf9;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: var(--spk-cursor-pointer);
}

.chat-box button:hover {
  background-color: #333;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 6px;
}

/* 커스텀 스크롤바 */
#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #666;
}



.chat-wrapper {
  position: fixed;
  bottom: 30px;
  right: 200px;
  width: 360px;
  display: none;
  z-index: 998;
}

.chat-wrapper.visible {
  display: block;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 공지 notice box 우측 하단 */

.notification-container {
  position: fixed;
  bottom: 20px;
  left: 20px; /* ✅ 왼쪽으로 변경 */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 좌우 정렬 */
  gap: 10px;
  padding: 14px 16px;
  min-width: 250px;
  max-width: 300px;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  background-color: #2c2c2c;
  border: 1px solid #444;
}

.notification .message {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1; /* message가 남은 공간 차지 */
}

.notification .close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: white;
  cursor: var(--spk-cursor-pointer);
  padding: 0 6px;
  margin-left: auto; /* 오른쪽 끝으로 이동 */
  line-height: 1;
}

.notification .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  animation: progressBar 4s linear forwards;
}

/* 진행 바 색상 */
.notification.success .progress  { background: #28a745; }
.notification.error .progress    { background: #dc3545; }
.notification.warning .progress  { background: #ffc107; }
.notification.info .progress     { background: #007bff; }

@keyframes progressBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* end 끝 */

/* 게임 항목 Game --------------- */

/* 게임 목록 스타일 */
.game-list-container{
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.game-card{
  min-width: 0;
  border-radius: 18px;

  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;

  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.game-card:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.34);
}

.game-card:active{
  transform: translateY(-1px) scale(0.99);
}

.game-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* thumbnail */
.game-thumb-wrap{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.game-thumb-wrap img{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.game-thumb-wrap::after{
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.42),
      rgba(0,0,0,0.04) 55%,
      rgba(255,255,255,0.04)
    );

  opacity: .75;
  pointer-events: none;
  transition: opacity .18s ease;
}

.game-card:hover .game-thumb-wrap::after{
  opacity: .45;
}

.game-thumb{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  background: #000;

  transform: scale(1);
  transition:
    transform .24s ease,
    filter .24s ease;
}

.game-card:hover .game-thumb{
  transform: scale(1.055);
  filter: brightness(1.08);
}

/* title */
.game-title{
  padding: 12px 13px 14px;

  color: rgba(255,255,255,0.94);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* empty state - games가 없을 때 직접 추가 가능 */
.game-empty{
  grid-column: 1 / -1;
  padding: 60px 18px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);

  color: rgba(255,255,255,0.65);
  text-align: center;
  font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px){
  .game-list-container{
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding: 14px 12px 40px;
  }

  .game-title{
    font-size: 14px;
    padding: 10px 11px 12px;
  }
}

@media (max-width: 520px){
  .game-list-container{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card{
    border-radius: 14px;
  }

  .game-thumb-wrap{
    border-radius: 0;
  }

  .game-title{
    font-size: 13px;
  }
}

/* =========================================================
   Game Download / View Page
   ========================================================= */

.game-view-container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 56px;
  box-sizing: border-box;
}

.game-view-header{
  margin-bottom: 14px;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.game-view-label{
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 7px;
  padding: 6px 10px;

  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;

  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.72);

  font-size: 13px;
  font-weight: 800;
}

.game-view-label i{
  color: #ff6b88;
}

.game-view-title{
  margin: 0;

  color: rgba(255,255,255,0.96);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.game-view-card{
  padding: 14px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;

  background:
    radial-gradient(circle at top left, rgba(255,107,136,0.10), transparent 32%),
    rgba(255,255,255,0.035);

  box-shadow: 0 16px 46px rgba(0,0,0,0.28);
}

/* main thumbnail */
.thumbnail-slider-container{
  width: 100%;
}

.thumbnail-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  border-radius: 18px;
  background: #050505;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.slider-thumbnail{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  background: #000;

  transition:
    transform .25s ease,
    filter .25s ease,
    opacity .18s ease;
}

.thumbnail-wrapper:hover .slider-thumbnail{
  filter: brightness(1.06);
}

.thumbnail-gradient{
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.48),
    rgba(0,0,0,0)
  );

  pointer-events: none;
}

/* slider buttons */
.slider-btn{
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;

  background: rgba(0,0,0,0.48);
  color: #fff;

  cursor: var(--spk-cursor-pointer);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);

  opacity: 0.88;
  transition:
    opacity .15s ease,
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.slider-btn.left{
  left: 14px;
}

.slider-btn.right{
  right: 14px;
}

.slider-btn:hover{
  opacity: 1;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}

.slider-btn:active{
  transform: translateY(-50%) scale(0.96);
}

/* preview gallery */
.preview-gallery{
  margin-top: 14px;

  display: flex;
  flex-wrap: nowrap;
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 2px 2px 8px;
  scroll-behavior: smooth;
}

.preview-gallery::-webkit-scrollbar{
  height: 8px;
}

.preview-gallery::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.preview-gallery::-webkit-scrollbar-thumb{
  background: rgba(255,107,136,0.55);
  border-radius: 999px;
}

.preview-gallery::-webkit-scrollbar-thumb:hover{
  background: rgba(255,107,136,0.75);
}

.preview-item{
  position: relative;

  flex: 0 0 170px;
  width: 170px;
  aspect-ratio: 16 / 9;

  padding: 0;
  overflow: hidden;

  border: 2px solid transparent;
  border-radius: 13px;

  background: #111;
  cursor: var(--spk-cursor-pointer);

  opacity: 0.68;
  transition:
    opacity .15s ease,
    border-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.preview-item:hover{
  opacity: 1;
  transform: translateY(-2px);
}

.preview-item.active{
  opacity: 1;
  border-color: #ff6b88;
  box-shadow: 0 0 0 3px rgba(255,107,136,0.18);
}

.preview-thumb{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* download */
.game-download-area{
  margin-top: 18px;

  display: flex;
  justify-content: center;
}

.game-download-btn{
  min-width: 220px;
  min-height: 48px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(255,107,136,0.42);
  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(255,107,136,0.95), rgba(255,120,84,0.92));

  color: #fff;
  text-decoration: none;

  font-size: 15px;
  font-weight: 900;

  box-shadow:
    0 12px 26px rgba(255,107,136,0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    transform .15s ease,
    filter .15s ease,
    box-shadow .15s ease;
}

.game-download-btn:hover{
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(255,107,136,0.24),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.game-download-btn:active{
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px){
  .game-view-container{
    padding: 14px 12px 44px;
  }

  .game-view-title{
    font-size: 22px;
  }

  .game-view-card{
    padding: 10px;
    border-radius: 18px;
  }

  .thumbnail-wrapper{
    border-radius: 15px;
  }

  .slider-btn{
    width: 38px;
    height: 38px;
  }

  .slider-btn.left{
    left: 10px;
  }

  .slider-btn.right{
    right: 10px;
  }

  .preview-gallery{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .preview-item{
    flex-basis: 132px;
    width: 132px;
  }

  .game-download-btn{
    width: 100%;
  }
}

/* Gaem End */

.nav-icons {
  display: flex;
  gap: 16px;
  margin-left: 20px;
  align-items: center;
}

.nav-icons i {
  font-size: 20px;
  color: white;
  cursor: var(--spk-cursor-pointer);
  transition: color 0.3s;
}

.nav-icons i:hover {
  color: #ff5555;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}


/* 드롭다운 */
.nav-profile-menu { position: relative; display: inline-block; }
.nav-profile-trigger { padding:0; border:0; background:transparent; cursor:var(--spk-cursor-pointer); border-radius:999px; }
.nav-profile-trigger:focus-visible { outline:2px solid #5b9dff; outline-offset:2px; border-radius:999px; }

.header, .topbar { overflow: visible; }

/* 드롭다운 메뉴 */
.nav-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  background: #212121;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1001;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

/* 열림 상태 */
.nav-profile-dropdown[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 메뉴 항목 */
.nav-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.nav-profile-dropdown a:hover {
  background: rgba(255,255,255,0.08);
}

/* 아이콘 (FontAwesome 아이콘 사용할 경우) */
.nav-profile-dropdown a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* 구분선 */
.nav-profile-dropdown a:last-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 배경 오버레이 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}


/* Pagination is defined in the unified component section. */

.image-thumb-wrapper{
    position: relative;
}

.image-like-btn{
    position:absolute;
    bottom:8px;
    right:8px;
    display:flex;
    align-items:center;
    gap:4px;
    padding:4px 8px;
    border-radius:20px;
    border:1px solid #000;
    background:#fff;
    color:#000;
    font-size:13px;
    cursor:var(--spk-cursor-pointer);
    transition:0.2s;
}

.image-like-btn i{
    font-size:14px;
}

.image-like-btn.liked{
    background:#ff6b88;
    border-color:#ff6b88;
    color:#fff;
}

.like-tabs{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.like-tab{
  padding:6px 16px;
  border-radius:20px;
  border:1px solid #333;
  background:#1a1a1a;
  color:#ccc;
  cursor:var(--spk-cursor-pointer);
}

.like-tab.active{
  background:#ff6b88;
  color:#fff;
  border-color:#ff6b88;
}

.like-content{
  display:none;
}

.like-content.active{
  display:block;
}

.image-keyword-box{
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}

.keyword-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.keyword-item{
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 7px 14px;
    border-radius: 999px;

    background: linear-gradient(135deg, #ff6b88, #ff8aa0);
    color: #fff;

    font-size: 13px;
    font-weight: 500;

    border: none;
}

.keyword-item:hover{
    background: linear-gradient(135deg, #ff6b88, #ff8aa0);
    color: #fff;
}



.tag-container{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;

    width:100%;
    min-height:52px;

    padding:0 18px 0 48px;

    border-radius:18px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.05);

    box-sizing:border-box;
}

.tag-container input{
    flex:1;
    min-width:120px;
    height:40px;

    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    font-size:15px;
}

/* 검색 아이콘 */
.search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#aaa;
    pointer-events:none;
}

.custom-select{
    flex:0 0 150px;
    position:relative;
}

.select-selected{
    height:52px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.08);

    background:rgba(255,255,255,0.05);
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;

    cursor:var(--spk-cursor-pointer);
}

.select-options{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    width:100%;

    background:#1b1719;
    border-radius:14px;
    border:1px solid rgba(255,240,244,0.10);

    overflow:hidden;
    z-index:320;
    box-shadow:0 18px 44px rgba(0,0,0,0.42);
}

.select-options div{
    padding:12px 16px;
    cursor:var(--spk-cursor-pointer);
}

.select-options div:hover{
    background:#ff6b88;
}

.search-btn{
    flex:0 0 auto;
    height:52px;
    padding:0 24px;
    border:none;
    border-radius:16px;
    background:linear-gradient(135deg,#ff6b88,#ff8aa0);
    color:#fff;
    font-weight:600;
    cursor:var(--spk-cursor-pointer);
}

.search-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(255,107,136,0.35);
}

.tag-item{
    display:flex;
    align-items:center;
    gap:6px;

    padding:6px 12px;
    border-radius:999px;

    background:#ff6b88;
    color:#fff;
    font-size:13px;
}

/* 제거 버튼 */
.tag-remove{
    cursor:var(--spk-cursor-pointer);
    font-size:12px;
    opacity:0.8;
}

.tag-remove:hover{
    opacity:1;
}

/* 자동완성 */
.autocomplete-box{
    position:absolute;
    top:60px;
    left:0;
    width:100%;

    background:#111;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.08);
    z-index:100;
}

.autocomplete-box:empty{
    display:none;
    border:none;
}

.autocomplete-box div{
    padding:10px;
    cursor:var(--spk-cursor-pointer);
}

.autocomplete-box div:hover{
    background:#ff6b88;
    border-radius:12px;
}

.image-search-wrapper{
    position:relative;
    z-index:40;
    margin:22px 20px 20px var(--section-title-left);
    overflow:visible;
}

.image-search-bar{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1fr) 170px auto;
    align-items:center;
    gap:14px;
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
}

.image-search-wrapper,
.image-search-bar{
    border-bottom:none !important;
}

.search-input-wrapper{
    position:relative;
    min-width:0;
    overflow:visible;
}

@media (max-width:900px){
    .video-page .image-search-bar,
    .image-search-wrapper .image-search-bar{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .video-page .image-search-bar > *,
    .image-search-wrapper .image-search-bar > *{
        width:100%;
        margin:0;
        flex:none;
    }

    .video-page .custom-select,
    .image-search-wrapper .custom-select{
        display:block;
        width:100%;
    }

    .video-page .search-btn,
    .image-search-wrapper .search-btn{
        width:100%;
    }
}

/* ===== 메인 박스 ===== */
.image-main-box{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* ===== 타이틀 ===== */
.image-section-title{
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== 타이틀 아래 선 ===== */
.image-divider{
    height: 1.5px;
    background: rgba(255,255,255,0.08);
    margin: 18px 0 22px 0;
}

/* ===== 태그 박스 ===== */
.image-keyword-box{
    margin-bottom: 22px;
}

/* 왼쪽 정렬 */
.keyword-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}



/* 타이틀 + 하트 정렬 */
.image-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* 큰 하트 버튼 */
.large-like-btn{
    position:static !important;
    padding:10px 18px;
    border-radius:999px;
    font-size:15px;
    gap:8px;
}

/* 아이콘 키우기 */
.large-like-btn i{
    font-size:18px;
}

/* 숫자 키우기 */
.large-like-btn .like-count{
    font-size:15px;
    font-weight:600;
}

/* =========================================================
   SPKLOVE Live Chat - New System
========================================================= */

.spk-live-chat-layer.hidden {
  display: none !important;
}

.spk-live-chat-layer {
  position: fixed;
  inset: 0;
  z-index: 100300;
  pointer-events: none;
}

.spk-live-chat-backdrop {
  display: none;
}

.spk-live-chat-mount {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  pointer-events: auto;

  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.spk-live-chat-layer.show .spk-live-chat-mount {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spk-live-chat-card {
  width: 100%;
  height: 540px;
  max-height: min(640px, calc(100vh - 48px));

  display: flex;
  flex-direction: column;

  border-radius: 24px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(27, 23, 28, 0.98), rgba(14, 14, 18, 0.98));

  border: 1px solid rgba(255, 118, 162, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255,255,255,0.035);
}

.spk-live-chat-head {
  flex: 0 0 auto;
  min-height: 70px;
  padding: 16px 16px 14px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.spk-live-chat-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.spk-live-chat-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 10px 22px rgba(255, 95, 143, 0.22);
}

.spk-live-chat-title strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.spk-live-chat-title small {
  display: block;
  margin-top: 3px;
  color: rgba(226,232,240,0.52);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spk-live-chat-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.055);
  color: #fff;

  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.spk-live-chat-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 95, 143, 0.15);
  border-color: rgba(255, 118, 162, 0.28);
}

.spk-live-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 15px;

  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 118, 162, 0.45) rgba(255,255,255,0.04);
}

.spk-live-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.spk-live-chat-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.spk-live-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 118, 162, 0.45);
  border-radius: 999px;
}

.spk-live-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.spk-live-chat-message.mine {
  flex-direction: row-reverse;
}

.spk-live-chat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  border-radius: 12px;
  object-fit: cover;

  background: #111;
  border: 1px solid rgba(255,255,255,0.09);
}

.spk-live-chat-bubble-wrap {
  min-width: 0;
  max-width: 78%;
}

.spk-live-chat-message.mine .spk-live-chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.spk-live-chat-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.spk-live-chat-message.mine .spk-live-chat-meta {
  justify-content: flex-end;
}

.spk-live-chat-meta a {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.spk-live-chat-meta a:hover {
  color: #ff8bab;
}

.spk-live-chat-meta span {
  color: rgba(226,232,240,0.42);
  font-size: 11px;
  font-weight: 700;
}

.spk-live-chat-bubble {
  width: fit-content;
  max-width: 100%;

  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;

  color: rgba(248,250,252,0.92);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;

  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.07);
}

.spk-live-chat-message.mine .spk-live-chat-bubble {
  border-radius: 16px 16px 6px 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 95, 143, 0.9), rgba(255, 124, 166, 0.9));
  border-color: rgba(255, 118, 162, 0.4);
}

.spk-live-chat-form {
  flex: 0 0 auto;
  padding: 13px;

  display: flex;
  gap: 9px;

  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.12);
}

.spk-live-chat-form input {
  flex: 1;
  min-width: 0;
  height: 42px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.24);
  color: #fff;

  padding: 0 13px;
  outline: none;

  font-size: 13px;
  font-weight: 700;
}

.spk-live-chat-form input::placeholder {
  color: rgba(226,232,240,0.4);
}

.spk-live-chat-form input:focus {
  border-color: rgba(255, 118, 162, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.12);
}

.spk-live-chat-form button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border: 0;
  border-radius: 14px;

  display: grid;
  place-items: center;

  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 10px 20px rgba(255, 95, 143, 0.2);

  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.spk-live-chat-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.spk-live-chat-loading,
.spk-live-chat-empty,
.spk-live-chat-login-required {
  height: 100%;
  min-height: 180px;

  display: grid;
  place-items: center;
  text-align: center;

  color: rgba(226,232,240,0.56);
  font-size: 13px;
  font-weight: 800;
}

.spk-live-chat-login-required {
  padding: 32px 20px;
  gap: 8px;
}

.spk-live-chat-login-required i {
  color: #ff7ca6;
  font-size: 34px;
}

.spk-live-chat-login-required strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.spk-live-chat-login-required span {
  display: block;
  color: rgba(226,232,240,0.55);
  font-size: 13px;
}

/* 모바일: 중앙 모달 */
@media (max-width: 640px) {
  .spk-live-chat-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    pointer-events: auto;
  }

  .spk-live-chat-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .spk-live-chat-layer.show .spk-live-chat-backdrop {
    opacity: 1;
  }

  .spk-live-chat-mount {
    position: relative;
    right: auto;
    bottom: auto;

    width: min(100%, 430px);
    max-width: 100%;

    transform: translateY(18px) scale(0.96);
    transform-origin: center;
  }

  .spk-live-chat-layer.show .spk-live-chat-mount {
    transform: translateY(0) scale(1);
  }

  .spk-live-chat-card {
    height: min(680px, calc(100vh - 36px));
    max-height: calc(100vh - 36px);
    border-radius: 24px;
  }

  .spk-live-chat-title small {
    max-width: 220px;
  }
}

/* ===============================
   Live Chat Button Icon Center Fix
================================ */

.spk-live-chat-close,
.spk-live-chat-form button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
}

.spk-live-chat-close i,
.spk-live-chat-form button i {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

/* X 버튼 크기 보정 */
.spk-live-chat-close i {
  font-size: 17px !important;
}

/* 전송 버튼 아이콘 크기 보정 */
.spk-live-chat-form button i {
  font-size: 17px !important;
}

/* =========================================================
   Top Notice / Chat Buttons - Compact Action Group
========================================================= */

/* 두 버튼을 시각적으로 하나의 그룹처럼 */
.spk-top-icon-btn {
  position: relative;

  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: rgba(255, 255, 255, 0.82);

  font-size: 16px;
  line-height: 1;

  cursor: var(--spk-cursor-pointer);

  box-shadow: none;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.spk-top-icon-btn i {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

/* 공지/채팅 버튼이 붙어 있을 때 하나의 패널처럼 보이게 */
.spk-top-icon-btn.notice-icon {
  margin-left: 4px;
  border-radius: 12px 7px 7px 12px;
}

.spk-top-icon-btn.chat-icon {
  margin-left: 2px;
  border-radius: 7px 12px 12px 7px;
}

/* 버튼 뒤에 밝은 얇은 배경 */
.spk-top-icon-btn.notice-icon,
.spk-top-icon-btn.chat-icon {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

/* 사이에 너무 두꺼운 간격이 생기지 않게 */
.spk-top-icon-btn.notice-icon + .spk-top-icon-btn.chat-icon {
  margin-left: 3px;
}

/* 아이콘 색상 */
.spk-top-icon-btn.notice-icon i {
  color: #ff78a4;
}

.spk-top-icon-btn.chat-icon i {
  color: rgba(255, 255, 255, 0.92);
}

/* hover는 밝기만 살짝 */
.spk-top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

/* 채팅 알림 배지 */
.spk-chat-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 5;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: none;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #ff5f8f;
  color: #fff;

  font-size: 10px;
  font-weight: 900;
  line-height: 1;

  border: 2px solid #111317;
  box-shadow: 0 4px 10px rgba(255, 95, 143, 0.26);

  pointer-events: none;
}

.spk-chat-unread-badge.show {
  display: inline-flex !important;
}

/* 모바일에서 살짝 축소 */
@media (max-width: 640px) {
  .spk-top-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .spk-chat-unread-badge {
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    top: -5px;
    right: -5px;
  }
}

.spk-top-action-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;

  padding: 3px;

  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
}
/* 상단 공지/채팅 그룹 최종 정리 */
.spk-top-action-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;

  padding: 4px;

  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow: none;
}

.spk-top-action-group .spk-top-icon-btn {
  width: 34px;
  height: 34px;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 11px;
  border: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.spk-top-action-group .spk-top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  transform: translateY(-1px);
}

.spk-top-action-group .notice-icon i {
  color: #ff6f9d !important;
}

.spk-top-action-group .chat-icon i {
  color: #f5f5f5 !important;
}

/* 아이콘 중앙 정렬 보정 */
.spk-top-action-group .spk-top-icon-btn i {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: block !important;
}

/* 알림 배지는 그룹 위에 자연스럽게 */
.spk-top-action-group .spk-chat-unread-badge {
  top: -7px;
  right: -7px;
  border-color: #18181c;
}



/* =========================
   Sidebar Category Sections
========================= */

.spk-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 8px 24px;
}

.spk-menu-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spk-menu-section-title {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  white-space: nowrap;
}

.spk-menu-section::after {
  content: "";
  display: block;
  height: 1px;
  margin: 8px 10px 0;
  background: rgba(255, 255, 255, 0.07);
}

.spk-menu-section:last-child::after {
  display: none;
}

.spk-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.spk-menu-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.58);
}

.spk-menu-link span {
  font-size: 14px;
  font-weight: 600;
}

.spk-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.spk-menu-link:hover i {
  color: #fff;
}

/* 접힌 사이드바 대응 */
.sidebar-collapsed .spk-sidebar-nav {
  align-items: center;
  gap: 14px;
  padding-left: 6px;
  padding-right: 6px;
}

.sidebar-collapsed .spk-menu-section {
  width: 100%;
  align-items: center;
}

.sidebar-collapsed .spk-menu-section-title {
  width: 28px;
  height: 1px;
  padding: 0;
  margin: 6px 0;
  overflow: hidden;
  color: transparent;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.sidebar-collapsed .spk-menu-section::after {
  display: none;
}

.sidebar-collapsed .spk-menu-link {
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
}

.sidebar-collapsed .spk-menu-link span {
  display: none;
}

.sidebar-collapsed .spk-menu-link i {
  width: auto;
  font-size: 17px;
}

/* =========================================================
   User Video Page - match normal video page alignment
========================================================= */

.user-video-page {
  width:100%;
  max-width:none;
  margin:0;
  padding:22px 20px 70px;
  color:#fff;
  box-sizing:border-box;
  overflow:visible;
}

/* 제목 영역: 기존 동영상 페이지처럼 왼쪽 시작점 맞춤 */
.user-video-header {
  display: block;
  width: 100%;
  margin: 0 0 26px;
  padding: 0;
}

.user-video-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.user-video-subtitle {
  margin: 10px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* 툴바: 제목과 같은 시작 위치 */
.user-video-page .video-toolbar {
  width:100%;
  margin:0 0 32px;
  padding:0;
  box-sizing:border-box;
}

/* 기존 동영상 페이지처럼 한 줄 정렬 */
.user-video-page .image-search-bar {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 150px 84px 128px;
  align-items:center;
  gap:14px;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* 검색창 */
.user-video-page .search-input-wrapper {
  width: 100%;
  min-width: 0;
  height: 58px;
  margin: 0;
  box-sizing: border-box;
}

/* 정렬 */
.user-video-page .custom-select {
  position:relative;
  display:block;
  width:150px;
  height:58px;
  margin:0;
  box-sizing:border-box;
}

/* 검색 버튼 */
.user-video-page .search-btn {
  width: 80px;
  height: 58px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 업로드 버튼 새로 제작 */
.user-video-page .toolbar-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 130px;
  height: 58px;
  margin: 0;
  padding: 0 18px;
  box-sizing: border-box;

  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #2563eb 100%);
  color: #fff !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  cursor: var(--spk-cursor-pointer);
}

.user-video-page .toolbar-upload-btn i,
.user-video-page .toolbar-upload-btn span {
  color: #fff !important;
  font-size: 15px;
  line-height: 1;
}

.user-video-page .toolbar-upload-btn:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}

/* 빈 상태 안내 */
.user-video-empty {
  display: flex;
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: 34px 0 0;
  box-sizing: border-box;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.user-video-empty i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  color: rgba(255, 255, 255, 0.42);
  font-size: 46px;
}

.user-video-empty p {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

/* 가로 스크롤 방지 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
   User Video Form
========================= */

.user-video-form-page {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 34px 20px 70px;
  color: #fff;
}

.user-video-form-card {
  width: 100%;
  max-width: 760px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background: rgba(18, 18, 26, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.user-video-form-card h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.form-desc {
  margin: 8px 0 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.user-video-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.86);
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  outline: none;
}

.form-group input[type="text"] {
  height: 46px;
  padding: 0 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  padding: 14px;
  line-height: 1.5;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
}

.form-group small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #ff8a8a;
}

.delete-video-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.current-thumb-box {
  overflow: hidden;
  width: 240px;
  max-width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.06);
}

.current-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  max-width: 100%;
  height: 135px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* =========================
   User Video Watch
========================= */

.user-watch-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px;
  color: #fff;
}

.user-watch-main {
  min-width: 0;
}

.user-watch-player {
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.user-watch-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.user-watch-info {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.user-watch-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.user-watch-title-row h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
}

.watch-edit-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.watch-edit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.user-watch-description {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}

.user-watch-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.user-watch-sidebar h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 900;
}

.side-video-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
}

.side-video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.06);
}

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

.side-video-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.side-video-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.side-video-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-video-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.35;
}

.side-video-info small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* =========================
   User Video Mobile Grid Fix
========================= */


/* =========================
   SPKLOVE Sidebar Sections
========================= */

.vnav__list {
  gap: 8px;
}

.vnav__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vnav__section + .vnav__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vnav__section-title {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 14px;
  margin-bottom: 2px;
}

.vnav__section-text {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 접힌 사이드바 상태 */
.vnav.is-collapsed .vnav__section-title,
.vnav--collapsed .vnav__section-title,
.sidebar-collapsed .vnav__section-title,
body.sidebar-collapsed .vnav__section-title {
  justify-content: center;
  min-height: 14px;
  padding: 0;
  margin: 4px 0 2px;
}

.vnav.is-collapsed .vnav__section-text,
.vnav--collapsed .vnav__section-text,
.sidebar-collapsed .vnav__section-text,
body.sidebar-collapsed .vnav__section-text {
  display: block;
  width: 26px;
  height: 2px;
  overflow: hidden;
  color: transparent;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.vnav.is-collapsed .vnav__section + .vnav__section,
.vnav--collapsed .vnav__section + .vnav__section,
.sidebar-collapsed .vnav__section + .vnav__section,
body.sidebar-collapsed .vnav__section + .vnav__section {
  margin-top: 12px;
  padding-top: 10px;
}

/* 유저 동영상: 썸네일 없는 경우 */
.user-video-page .user-video-no-thumb {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.32), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.28), transparent 40%),
    rgba(255, 255, 255, 0.055);
}

.user-video-page .user-video-no-thumb i {
  color: rgba(255, 255, 255, 0.72);
  font-size: 34px;
}

.user-video-page .home-video-card a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   User Video Grid Alignment Fix
========================= */

.user-video-page .video-grid.user-video-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 기존 video-grid에 중앙정렬이나 여백이 걸려있을 경우 제거 */
.user-video-page .video-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  justify-content: start;
}

/* 카드 자체가 안쪽으로 밀리지 않게 */
.user-video-page .home-video-card {
  margin: 0;
}


/* =========================================================
   User Video Upload Page - SPKLOVE Style
========================================================= */

.uv-upload-page {
  width: 100%;
  min-height: calc(100vh - 86px);
  padding: 46px 24px 80px;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  color: #fff;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 111, 156, 0.12), transparent 32%),
    radial-gradient(circle at 78% 16%, rgba(80, 110, 255, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.012), transparent 260px);
}

.uv-upload-shell {
  width: 100%;
  max-width: 1040px;
}

.uv-upload-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.uv-upload-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;
  background: linear-gradient(135deg, #ff6f9c 0%, #8b5cf6 52%, #2563eb 100%);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.25),
    0 12px 30px rgba(255, 111, 156, 0.16);
}

.uv-upload-icon i {
  font-size: 26px;
  color: #fff;
}

.uv-upload-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.uv-upload-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 600;
}

.uv-upload-card {
  position: relative;
  overflow: hidden;

  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 28px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(16, 16, 24, 0.94);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.055);
}

.uv-upload-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 111, 156, 0.18), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 26%);
  opacity: 0.9;
}

.uv-form-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.uv-form-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.uv-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uv-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uv-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 900;
}

.uv-field label i {
  color: #ff6f9c;
  font-size: 13px;
}

.uv-field input[type="text"],
.uv-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.055);
  color: #fff;

  outline: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.uv-field input[type="text"] {
  height: 58px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
}

.uv-field textarea {
  min-height: 240px;
  resize: vertical;
  padding: 18px;
  font-size: 15px;
  line-height: 1.65;
}

.uv-field input[type="text"]::placeholder,
.uv-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.uv-field input[type="text"]:focus,
.uv-field textarea:focus {
  border-color: rgba(255, 111, 156, 0.46);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 111, 156, 0.08);
}

.uv-file-box {
  position: relative;
  overflow: hidden;
  min-height: 202px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 22px;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 111, 156, 0.10), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);

  color: #fff;
  text-align: center;
  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.uv-file-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 156, 0.42);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 111, 156, 0.16), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.uv-file-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: var(--spk-cursor-pointer);
}

.uv-file-box-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;
}

.uv-file-box-icon.video {
  background: rgba(255, 111, 156, 0.14);
  color: #ff79a3;
}

.uv-file-box-icon.thumb {
  background: rgba(76, 112, 255, 0.15);
  color: #7aa2ff;
}

.uv-file-box-icon i {
  font-size: 25px;
}

.uv-file-box strong {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.uv-file-box span {
  display: block;
  width: 100%;
  max-width: 260px;
  overflow: hidden;

  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uv-upload-notice {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-top: 24px;
  padding: 14px 16px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.58);

  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.uv-upload-notice i {
  margin-top: 2px;
  color: #ff79a3;
}

.uv-actions {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: flex-end;
  gap: 12px;

  margin-top: 24px;
}

.uv-btn {
  height: 48px;
  min-width: 104px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 0;
  border-radius: 15px;

  text-decoration: none !important;
  font-size: 14px;
  font-weight: 950;
  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    background 0.14s ease;
}

.uv-btn:hover {
  transform: translateY(-1px);
}

.uv-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82) !important;
}

.uv-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

.uv-btn-submit {
  background: linear-gradient(135deg, #ff6f9c 0%, #8b5cf6 48%, #2563eb 100%);
  color: #fff;
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.26),
    0 12px 28px rgba(255, 111, 156, 0.15);
}

.uv-btn-submit:hover {
  filter: brightness(1.08);
}

@media (max-width: 980px) {
  .uv-upload-page {
    padding: 34px 18px 70px;
  }

  .uv-form-grid {
    grid-template-columns: 1fr;
  }

  .uv-form-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .uv-file-box {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .uv-upload-page {
    padding: 26px 14px 60px;
  }

  .uv-upload-hero {
    align-items: flex-start;
  }

  .uv-upload-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 18px;
  }

  .uv-upload-hero h1 {
    font-size: 28px;
  }

  .uv-upload-hero p {
    font-size: 13px;
  }

  .uv-upload-card {
    padding: 18px;
    border-radius: 22px;
  }

  .uv-form-side {
    grid-template-columns: 1fr;
  }

  .uv-file-box {
    min-height: 156px;
  }

  .uv-field textarea {
    min-height: 180px;
  }

  .uv-actions {
    flex-direction: column-reverse;
  }

  .uv-btn {
    width: 100%;
  }
}

/* =========================================================
   User Video Upload Page - Seamless Background + Thumbnail Picker
========================================================= */

.uv-upload-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 54px 28px 90px;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  color: #fff;

  /* 사이드바와 끊겨 보이지 않게 페이지 자체 배경은 투명 */
  background: transparent !important;
}

.uv-upload-shell {
  position: relative;
  width: 100%;
  max-width: 1180px;
}

.uv-upload-shell::before {
  content: "";
  position: absolute;
  inset: -70px -80px auto -80px;
  height: 520px;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 18% 10%, rgba(255, 111, 156, 0.18), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(37, 99, 235, 0.20), transparent 36%),
    radial-gradient(circle at 48% 80%, rgba(139, 92, 246, 0.12), transparent 42%);
  filter: blur(4px);
}

.uv-upload-hero,
.uv-upload-form {
  position: relative;
  z-index: 1;
}

.uv-upload-card {
  background:
    linear-gradient(135deg, rgba(255, 111, 156, 0.095), rgba(37, 99, 235, 0.075)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026)),
    rgba(17, 17, 25, 0.94) !important;

  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.uv-form-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.uv-video-file-box {
  min-height: 170px;
}

.uv-thumb-picker {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 24px;

  background:
    radial-gradient(circle at 20% 0%, rgba(255, 111, 156, 0.10), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.uv-thumb-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(255, 111, 156, 0.10), rgba(37, 99, 235, 0.10)),
    rgba(0, 0, 0, 0.38);
}

.uv-thumb-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uv-thumb-empty {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.54);
  text-align: center;
  padding: 22px;
}

.uv-thumb-empty i {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;
  background: rgba(76, 112, 255, 0.15);
  color: #7aa2ff;
  font-size: 25px;
}

.uv-thumb-empty span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.uv-thumb-controls {
  padding: 18px;
}

.uv-thumb-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.uv-thumb-label-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 900;
}

.uv-thumb-label-row label i {
  color: #ff79a3;
  font-size: 13px;
}

#thumbTimeText {
  padding: 5px 9px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;
  font-weight: 900;
}

.uv-thumb-controls input[type="range"] {
  width: 100%;
  accent-color: #ff6f9c;
  cursor: var(--spk-cursor-pointer);
}

.uv-thumb-controls input[type="range"]:disabled {
  opacity: 0.45;
  cursor: var(--spk-cursor-not-allowed);
}

.uv-thumb-controls p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .uv-upload-page {
    padding: 36px 18px 76px;
  }

  .uv-form-grid {
    grid-template-columns: 1fr;
  }

  .uv-form-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .uv-video-file-box {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .uv-upload-page {
    padding: 28px 14px 64px;
  }

  .uv-upload-shell::before {
    inset: -40px -40px auto -40px;
    height: 420px;
  }
}

/* =========================================================
   User Video Upload Page - Tone Down Background
========================================================= */

.uv-upload-page {
  background: transparent !important;
  padding-top: 54px;
}

/* 강한 배경 사각형/그라데이션 제거 */
.uv-upload-shell::before {
  display: none !important;
}

/* 업로드 카드 주변 색감 약하게 */
.uv-upload-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.022)),
    rgba(17, 17, 24, 0.96) !important;

  border: 1px solid rgba(255, 255, 255, 0.075) !important;

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

/* 카드 안쪽에 들어간 강한 핑크/블루 오버레이 약화 */
.uv-upload-card::before {
  opacity: 0.25 !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 111, 156, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 28%) !important;
}

/* 입력 영역 색감도 조금 더 중립적으로 */
.uv-field input[type="text"],
.uv-field textarea {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 파일 선택 박스 색감 약화 */
.uv-file-box,
.uv-thumb-picker {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.025) !important;

  border-color: rgba(255, 255, 255, 0.09) !important;
}

/* 썸네일 미리보기 영역도 과한 블루톤 제거 */
.uv-thumb-preview-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.26) !important;
}

/* 안내 박스도 중립 톤 */
.uv-upload-notice {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}



/* =========================================================
   User Video Watch Page - match admin video watch style
========================================================= */

.user-watch-page-v2 {
  align-items: flex-start;
}

.user-watch-card-v2 {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022)),
    rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  overflow: hidden;
}

.user-video-info-panel-v2 {
  border-top: 1px solid rgba(255,255,255,0.055);
}

.user-watch-static-like {
  cursor: var(--spk-cursor-default);
}

.user-watch-edit-btn {
  background: rgba(255,255,255,0.07);
  color: #fff;
  text-decoration: none;
}

.user-watch-edit-btn:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.user-watch-description-meta {
  display: block;
}

.user-watch-description-text {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.7;
  box-sizing: border-box;
}

.user-rec-no-thumb {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 111, 156, 0.14), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.14), transparent 40%),
    rgba(255,255,255,0.04);
}

.user-rec-no-thumb i {
  color: rgba(255,255,255,0.72);
  font-size: 24px;
}

/* 유저 추천 패널이 관리자 추천 패널과 같은 느낌으로 보이도록 */
.user-vx-rec-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018)),
    rgba(18, 18, 18, 0.96);
}

/* 기본 native video controls가 잠깐 보이는 경우 방지 */
.user-watch-page-v2 video#customVideo {
  width: 100%;
  height: 100%;
  background: #000;
  display: block;
}

/* 작은 화면에서는 관리자 보기 페이지처럼 한 줄 배치 해제 */
@media (max-width: 1180px) {
  .user-watch-page-v2 {
    display: block;
  }

  .user-watch-page-v2 .vx-rec-panel {
    position: static;
    margin-top: 22px;
  }
}

@media (max-width: 720px) {
  .user-watch-page-v2 {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-watch-page-v2 .spk-video-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-watch-page-v2 .spk-watch-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .user-watch-page-v2 .spk-watch-action-btn {
    flex: 1 1 auto;
  }
}

/* =========================================================
   User Video Responsive Clean Reset
   - 유저 동영상 목록
   - 유저 동영상 보기
   - 유저 동영상 업로드/수정 페이지
========================================================= */


/* =========================
   1. 유저 동영상 목록 그리드
========================= */

.user-video-page .video-grid.user-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px 18px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.user-video-page .home-video-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.user-video-page .home-video-card > a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.user-video-page .home-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.user-video-page .home-video-thumb img,
.user-video-page .user-video-no-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   2. 큰 화면 ~ 일반 데스크탑
========================= */

@media (max-width: 1280px) {
  .user-video-page {
    padding-left:20px;
    padding-right:20px;
  }

  .user-video-page .image-search-bar {
    grid-template-columns: minmax(0, 1fr) 150px 84px 128px;
    gap: 12px;
    max-width: 100%;
  }

  .user-video-page .custom-select {
    width: 150px;
  }

  .user-video-page .search-btn {
    width: 84px;
  }

  .user-video-page .toolbar-upload-btn {
    width: 128px;
  }

  .user-video-page .video-grid.user-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 28px 16px;
  }
}


/* =========================
   3. 태블릿 / 작은 브라우저
   - 툴바는 세로 정렬
   - 카드는 2열 유지
========================= */

@media (max-width: 900px) {
  .user-video-page {
    padding: 34px 18px 56px;
  }

  .user-video-header {
    margin-bottom: 24px;
  }

  .user-video-title {
    font-size: 28px;
  }

  .user-video-subtitle {
    font-size: 15px;
  }

  .user-video-page .video-toolbar {
    margin: 24px 0 34px;
  }

  .user-video-page .image-search-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .user-video-page .image-search-bar > * {
    width: 100%;
    margin-top:0;
    margin-bottom:0;
    flex: none;
  }

  .user-video-page .search-input-wrapper,
  .user-video-page .custom-select,
  .user-video-page .search-btn,
  .user-video-page .toolbar-upload-btn {
    width: 100%;
    height: 58px;
  }

  .user-video-page .custom-select {
    display:block;
  }

  .user-video-page .search-btn,
  .user-video-page .toolbar-upload-btn {
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .user-video-page .video-grid.user-video-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:28px 16px;
  }

  .user-video-empty {
    min-height:300px;
  }
}


/* =========================
   4. 모바일 직전 폭
   - 아직 2열 유지
   - 카드 간격만 줄임
========================= */

@media (max-width: 720px) {
  .user-video-page {
    padding: 30px 14px 52px;
  }

  .user-video-title {
    font-size: 28px;
  }

  .user-video-page .video-grid.user-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .user-video-page .home-video-title {
    font-size: 15px;
  }

  .user-video-page .home-video-author {
    font-size: 13px;
  }

  .user-video-page .home-video-stats {
    gap: 8px;
  }
}


/* =========================
   5. 진짜 모바일
   - 이때만 1열
========================= */

@media (max-width: 560px) {
  .user-video-page {
    padding: 28px 14px 48px;
  }

  .user-video-page .video-grid.user-video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .user-video-page .home-video-title {
    font-size: 18px;
  }

  .user-video-page .home-video-author {
    font-size: 14px;
  }
}


/* =========================
   6. 유저 동영상 보기 페이지
========================= */

@media (max-width: 1180px) {
  .user-watch-page-v2 {
    display: block;
  }

  .user-watch-page-v2 .watch-main {
    width: 100%;
  }

  .user-watch-page-v2 .vx-rec-panel {
    position: static;
    width: 100%;
    margin-top: 22px;
  }
}

@media (max-width: 720px) {
  .user-watch-page-v2 {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-watch-page-v2 .spk-video-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .user-watch-page-v2 .spk-watch-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .user-watch-page-v2 .spk-watch-action-btn {
    flex: 1 1 auto;
  }
}


/* DM 메뉴 기본 기준 */
#spk-dm-nav-link {
  position: relative;
  overflow: visible;
}

/* 아이콘은 항상 중앙에 */
#spk-dm-nav-link > i {
  position: relative;
  z-index: 1;
}

/* 접힌 메뉴 상태: 뱃지를 버튼 바깥 모서리에 작게 배치 */
.vnav.is-collapsed #spk-dm-nav-link #spk-dm-unread-badge,
body.nav-collapsed #spk-dm-nav-link #spk-dm-unread-badge,
body.sidebar-collapsed #spk-dm-nav-link #spk-dm-unread-badge {
  position: absolute;
  top: 8px;
  right: 5px;
  transform: translate(35%, -35%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin: 0;
  border-radius: 999px;
  font-size: 10px;
  line-height: 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff4f86, #ff2f66);
  box-shadow:
    0 6px 14px rgba(255, 47, 102, 0.35),
    0 0 0 3px rgba(15, 15, 18, 0.95);
  pointer-events: none;
  z-index: 3;
}

/* ===== LEGACY SOURCE: spk-theme.css ===== */
/* === SPKLOVE: Sidebar on top, header under, perfect seam, animated collapse === */
:root{
  --header-h: 64px;
  --sidebar-w: 260px;            /* 펼침 폭 */
  --sidebar-w-collapsed: 72px;   /* 접힘 폭 */
  --gap: 16px;
  --toggle-gap: 32px;            /* 토글 버튼이 경계선에서 떨어지는 거리 */

  --bg:#121212; --panel:#191517; --panel-2:#121212;
  --text:#e6eaf2; --muted:#9aa4b2;
  --brand:#ff6b88; --accent:#ffd5de; --border:#30272b;

  --header-bg:#181818;           /* 상단 가로바 색상 */
  --sidebar-bg:#1D1D1D;          /* 좌측 레일 */
}

/* 기본 톤 */
body{ background: var(--bg); color: var(--text); }

/* ===== 상단 가로바(헤더) — 사이드바 아래(z-index 낮게), 왼쪽 영역은 사이드바 색으로 연장 ===== */
header .navbar{
  position: sticky; top: 0; z-index: 900;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex; align-items: center;
  position: relative;
}
header .navbar::before{
  content:""; position:absolute; top:0; bottom:0; left:0;
  width: var(--sidebar-w);                /* 접힘/펼침과 연동 */
  background: var(--sidebar-bg);
  pointer-events:none;                    /* 세로 경계선은 사이드바에서만 그림 */
  border-right: none;
  transition: width .25s ease;
}

/* ===== 좌측 고정 사이드바 — 헤더보다 위(z-index ↑) ===== */
.vnav{
  position: fixed; top: 0; left: 0; z-index: 2000;
  width: var(--sidebar-w); height: 100dvh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);  /* 유일한 세로 경계선 */
  padding: calc(var(--header-h) + 12px) 10px 16px;  /* 목록은 헤더 아래에서 시작 */
  overflow: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  transition: width .25s ease, padding .25s ease;
}

/* === BRAND: 상단 빈공간에 로고 + 텍스트(접으면 로고만) === */
.brand{
  position: fixed; top: 0; left: 0; z-index: 2500;
  width: var(--sidebar-w); height: var(--header-h);
  background: var(--sidebar-bg);
  display:flex; align-items:center; justify-content:center;
  padding: 0 16px; margin: 0; box-sizing: border-box;
  transition: width .25s ease;
}
.brand-link{
  display:flex; align-items:center; justify-content:center;
  gap: 12px; width:100%; text-decoration:none; color:#e6eaf2; text-align:center;
}
.brand-logo{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  width:30px; height:30px; border-radius:10px; object-fit:cover;
  border:0;
  box-shadow:none;
  background:transparent;
}
.brand-name{
  font-weight:800; letter-spacing:.4px; white-space:nowrap;
  max-width:200px; opacity:1; transform:translateX(0);
  transition: opacity .22s ease, transform .22s ease, max-width .22s ease;
}

/* ===== 메뉴 아이템 ===== */
.vnav__list{ display:flex; flex-direction:column; gap:8px; }
.vnav__item{
  display:flex; align-items:center; gap:12px;
  height:44px; padding:0 12px; border-radius:12px;
  border:1px solid transparent; background:transparent;
  color:var(--muted); text-decoration:none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vnav__item i{ width:20px; text-align:center; font-size:16px; color:inherit; }
.vnav__item:hover{ background:rgba(255,255,255,.03); border-color:var(--border); color:var(--text); }
.vnav__item.is-active{
  background:linear-gradient(135deg,var(--brand),#ffa1b5);
  color:#FFF; border-color:transparent; box-shadow:0 6px 16px rgba(255,107,136,.25);
}

/* ===== 콘텐츠/푸터는 사이드바 폭만큼 밀기 ===== */
.content{ margin-left: calc(var(--sidebar-w) + var(--gap)); padding: var(--gap); min-width:0; transition: margin-left .25s ease; }
.site-footer{ margin-left: calc(var(--sidebar-w) + var(--gap)); border-top: 1px solid var(--border); transition: margin-left .25s ease; }

.nav-collapse-btn{
  position: absolute;                /* ← fixed 에서 absolute로 변경 */
  left: calc(var(--sidebar-w) + var(--toggle-gap));  /* 사이드바 경계선 + 간격 */
  top: 50%;
  transform: translateY(-50%);       /* 헤더 세로 중앙 정렬 */
  z-index: 950;                      /* 헤더 안 위쪽에만 보이도록 */

  width: 36px; height: 36px; padding: 0;
  background: transparent !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  -webkit-tap-highlight-color: transparent;

  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: var(--spk-cursor-pointer);
  transition: left .25s ease, opacity .16s ease;
}
.nav-collapse-btn::after{ content:""; position:absolute; inset:-6px; } /* 보이지 않는 히트박스 */
.nav-collapse-btn .bar{
  display:block; width:20px; height:2px; border-radius:2px;
  background:#c9d1e2; opacity:.9; margin:0;
}
.nav-collapse-btn:hover .bar{ opacity:1; }

/* ===== 접힘 상태 (로고만, 간격 제거, 너비/마진/토글 위치 자동 보정) ===== */
body.sidebar-collapsed{ --sidebar-w: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .vnav__item .label{ display:none; }
body.sidebar-collapsed .vnav__item{ justify-content:center; padding:0; }

body.sidebar-collapsed .brand{ width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand-link{ gap:0; }
body.sidebar-collapsed .brand-name{ display:none; }

body.sidebar-collapsed .content,
body.sidebar-collapsed .site-footer{ margin-left: calc(var(--sidebar-w-collapsed) + var(--gap)); }

/* ===== 푸터 색감 유지 ===== */
.site-footer .footer-content{
  display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between;
  padding:16px; color:var(--text);
}
.site-footer .footer-title{ color:#ffd5de; font-weight:800; }
.site-footer .footer-description{ color:var(--muted); }
.site-footer .footer-nav a{
  display:inline-flex; align-items:center; height:36px; padding:0 12px; margin:2px;
  border-radius:12px; border:1px solid var(--border);
  background:#171315; color:var(--muted); text-decoration:none;
}
.site-footer .footer-nav a:hover{ color:var(--text); border-color:var(--accent); }
.site-footer .footer-bottom{ text-align:center; color:var(--muted); padding:12px 16px 24px; }

/* ===== 반응형: 기본은 접힘 폭 사용 ===== */


.spklove-logo{
  width:24px; height:24px;
}


:root{
  --sidebar-pad-x-expanded: 10px; /* 펼침 좌우 */
  --sidebar-pad-x-collapsed: 8px; /* 접힘 좌우 (대칭) */
}

/* 사용자가 접었을 때 */
body.sidebar-collapsed .vnav{
  padding-left:  var(--sidebar-pad-x-collapsed);
  padding-right: var(--sidebar-pad-x-collapsed);
}
body.sidebar-collapsed .vnav__item{ justify-content: center; padding: 0; width: auto; }
body.sidebar-collapsed .vnav__item .label{ display: none; }
body.sidebar-collapsed .brand{ width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand-link{ gap: 0; }
body.sidebar-collapsed .brand-name{ display: none; }

/* 화면이 좁아져 자동-축소될 때(토글 안 눌러도 동일한 레이아웃 적용) */



@media (max-width: 992px){

  /* 모바일에서는 기본적으로 숨김 */
  .vnav{
    transform: translateX(-100%);
    width: var(--sidebar-w);
  }

  /* 열렸을 때는 전체 폭으로 */
  body.sidebar-open{
    --sidebar-w: 260px;   /* 펼침 폭 강제 */
  }

  body.sidebar-open .vnav{
    transform: translateX(0);
  }

  /* content는 밀리지 않음 */
  .content,
  .site-footer{
    margin-left: var(--gap) !important;
  }

  /* 오버레이 실제 DOM 요소 */
  .mobile-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1500;
  }
}
@media (max-width: 992px){

  /* header 왼쪽 확장 영역 제거 */
  header .navbar::before{
    width: 0 !important;
  }

  /* 모바일에서는 content를 밀지 않음 */
  .content,
  .site-footer{
    margin-left: var(--gap) !important;
  }

  /* overlay 열림 상태일 때도 밀림 방지 */
  body.sidebar-open .content,
  body.sidebar-open .site-footer{
    margin-left: var(--gap) !important;
  }
  .nav-collapse-btn{
    left: 16px !important;   /* 헤더 왼쪽 여백 */
    transform: translateY(-50%);
  }

}

/* 언어 변경 토글 */
.lang-dropdown{
    position:relative;
    width:80px; /* 전체 길이 */
    cursor:var(--spk-cursor-pointer);
}

/* 전체 박스 */
.lang-selected{
    display:flex;
    border-radius:12px;
    overflow:hidden;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    height:34px;
}

.lang-selected:hover{
    background:rgba(255,255,255,0.1);
}

.lang-flag{
    width:100%;
    aspect-ratio: 3 / 2;
    overflow:hidden;
}

.lang-flag img{
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

/* 화살표 영역 */
.lang-arrow{
    width:44%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:11px;
    color:#ccc;
    background:#2D2D2D
}

.lang-options{
    position:absolute;
    top:48px;
    right:0;
    min-width:160px;
    width:max-content;
    background:#1c1c1f;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.08);
    display:none;
    z-index:999;
    overflow:hidden;
}

.lang-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    color:#fff;
    white-space:nowrap;
}

.lang-option img{
    width:22px;
    height:16px;
    object-fit:cover;
    border-radius:3px;
}

.lang-option:hover{
    background:#ff6b88;
}

/* =========================================================
   SPK Endcap footer layout override
   새 footer는 사이드바 margin 계산에서 제외
   ========================================================= */

.spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  flex-shrink: 0;
}

/* 기존 footer 전용 밀림 규칙이 새 footer에 영향 주지 않도록 고정 */
body.sidebar-collapsed .spk-endcap,
body.sidebar-open .spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
}

/* 모바일에서도 왼쪽 gap 제거 */
@media (max-width: 992px){
  .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }

  body.sidebar-open .spk-endcap,
  body.sidebar-collapsed .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* =========================================================
   Sticky footer base
   콘텐츠가 적어도 footer를 브라우저 하단에 고정
   ========================================================= */

html,
body{
  min-height: 100%;
}

body{
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}


/* =========================================================
   SPK Endcap Footer - Dark Clean Version
   ========================================================= */

.spk-endcap{
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-top: auto;
  overflow: hidden;

  flex-shrink: 0;

  border-top: 1px solid rgba(255,255,255,0.08);
  background: #151515;
  color: rgba(255,255,255,0.86);
  box-sizing: border-box;
}

.spk-endcap__glow{
  display: none;
}

.spk-endcap__inner{
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 34px 24px 24px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.spk-endcap__brand{
  min-width: 0;
}

.spk-endcap__logo{
  display: inline-flex;
  align-items: center;
  gap: 11px;

  color: #fff;
  text-decoration: none;
}

.spk-endcap__logo-mark{
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: #ff6b88;

  color: #fff;
  font-size: 18px;
  font-weight: 950;

  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.spk-endcap__logo-text{
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: normal;
  white-space: nowrap;
}

.spk-endcap__desc{
  margin: 10px 0 0;

  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.5;
}

.spk-endcap__desc span{
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}

.spk-endcap__nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spk-endcap__nav a{
  min-height: 36px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;

  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.74);

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.spk-endcap__nav a:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-1px);
}

.spk-endcap__bottom{
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 15px 24px 18px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  gap: 12px;

  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.46);

  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px){
  .spk-endcap__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .spk-endcap__nav{
    justify-content: flex-start;
  }
}


@media (max-width: 720px){
  .spk-endcap{
    width: 100%;
    margin-left: 0;
    margin-top: auto;
  }

  .spk-endcap__inner{
    padding: 28px 14px 20px;
  }

  .spk-endcap__bottom{
    padding-left: 14px;
    padding-right: 14px;
    flex-direction: column;
  }
}

@media (max-width: 560px){
  .spk-endcap__logo-mark{
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 16px;
  }

  .spk-endcap__logo-text{
    font-size: 18px;
  }

  .spk-endcap__nav{
    gap: 7px;
  }

  .spk-endcap__nav a{
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
}

/* =========================================================
   SPK Endcap footer sidebar-safe content offset
   배경은 전체 폭, 내용만 사이드바 영역을 피함
   ========================================================= */

.spk-endcap{
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: auto !important;
  flex-shrink: 0;
}

/* PC / 태블릿: 왼쪽 사이드바 영역만큼 footer 내부 내용 밀기 */
@media (min-width: 993px){
  .spk-endcap__inner,
  .spk-endcap__bottom{
    padding-left: calc(var(--sidebar-w, 72px) + 24px) !important;
  }

  body.sidebar-collapsed .spk-endcap__inner,
  body.sidebar-collapsed .spk-endcap__bottom{
    padding-left: calc(var(--sidebar-w-collapsed, 72px) + 24px) !important;
  }
}

/* 모바일: 사이드바가 오버레이 방식이므로 내용 밀지 않음 */
@media (max-width: 992px){
  .spk-endcap{
    width: 100% !important;
    margin-left: 0 !important;
  }

  .spk-endcap__inner,
  .spk-endcap__bottom{
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===============================
   Notice List
================================ */

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-list-item {
  border-radius: 16px;
  overflow: hidden;
}

.notice-open-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(15, 15, 20, 0.92);
  color: #f8fafc;
  text-align: left;
  padding: 15px 16px;
  border-radius: 16px;
  cursor: var(--spk-cursor-pointer);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.notice-open-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 162, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.13), transparent 36%),
    rgba(20, 16, 22, 0.96);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.notice-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notice-list-title {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.notice-pin {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
}

.notice-list-date {
  color: rgba(226, 232, 240, 0.5);
  font-size: 12px;
  white-space: nowrap;
}

.notice-list-preview {
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.notice-empty {
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  color: rgba(226, 232, 240, 0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
}

/* ===============================
   Notice Modal
================================ */

.notice-modal-open {
  overflow: hidden;
}

.spk-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.spk-notice-modal.show {
  display: block;
}

.spk-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.spk-notice-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow-y: auto;
  border-radius: 26px;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(28, 14, 22, 0.98), rgba(12, 12, 15, 0.98));
  border: 1px solid rgba(255, 118, 162, 0.32);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}

.spk-notice-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: var(--spk-cursor-pointer);
  z-index: 2;
}

.spk-notice-close:hover {
  background: rgba(255, 95, 143, 0.18);
  border-color: rgba(255, 118, 162, 0.34);
}

.spk-notice-detail-head {
  margin-top: -28px;
  padding-right: 46px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.spk-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffd6e3;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 95, 143, 0.14);
  border: 1px solid rgba(255, 118, 162, 0.24);
}

.spk-notice-detail-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.spk-notice-detail-head p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.55);
  font-size: 13px;
}

.spk-notice-detail-content {
  padding: 22px 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

/* ===============================
   Notice Comments
================================ */

.spk-notice-comments {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.spk-notice-comments-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.spk-notice-comments-head i {
  color: #ff6f9d;
}

.spk-notice-comment-list {
  display: grid;
  gap: 10px;
}

.notice-comment-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

.notice-comment-item img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 38px;
}

.notice-comment-body {
  min-width: 0;
  flex: 1;
}

.notice-comment-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.notice-comment-meta a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.notice-comment-meta span {
  color: rgba(226,232,240,0.48);
  font-size: 12px;
}

.notice-comment-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ff8bab;
  font-size: 12px;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}

.notice-comment-text {
  color: rgba(248,250,252,0.86);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.notice-comment-empty,
.spk-notice-login-hint {
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  color: rgba(226,232,240,0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
}

.spk-notice-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.spk-notice-comment-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
  color: #fff;
  padding: 12px 14px;
  box-sizing: border-box;
  outline: none;
}

.spk-notice-comment-form textarea:focus {
  border-color: rgba(255, 118, 162, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.12);
}

.spk-notice-comment-form button {
  justify-self: end;
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  cursor: var(--spk-cursor-pointer);
  box-shadow: 0 10px 22px rgba(255,95,143,0.22);
}

/* ===============================
   Admin Notice Lang Tabs
================================ */

.notice-lang-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.notice-lang-tab {
  border: 1px solid rgba(255,255,255,.1);
  background: #15151a;
  color: #d1d5db;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}

.notice-lang-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255,118,162,.6);
}

.notice-lang-panel {
  display: none;
}

.notice-lang-panel.active {
  display: block;
}

.admin-notice-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-check-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .spk-notice-dialog {
    width: min(100% - 18px, 880px);
    margin: 9px auto;
    max-height: calc(100vh - 18px);
    padding: 18px;
    border-radius: 20px;
  }

  .spk-notice-detail-head {
    margin-top: -38px;
  }

  .notice-list-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .spk-notice-comment-form button {
    justify-self: stretch;
  }
}

.notice-comment-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notice-comment-edit,
.notice-comment-delete {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
  padding: 3px 4px;
}

.notice-comment-edit {
  color: #ffd6e3;
}

.notice-comment-edit:hover {
  color: #ffffff;
}

.notice-comment-delete {
  color: #ff8bab;
}

.notice-comment-delete:hover {
  color: #ff4f83;
}

.notice-comment-edited {
  color: rgba(226, 232, 240, 0.36) !important;
  font-size: 11px !important;
}

.notice-comment-edit-form {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.notice-comment-edit-form.hidden {
  display: none;
}

.notice-comment-text.hidden {
  display: none;
}

.notice-comment-edit-form textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.22);
  color: #fff;
  padding: 11px 13px;
  box-sizing: border-box;
  outline: none;
  font-size: 14px;
  line-height: 1.55;
}

.notice-comment-edit-form textarea:focus {
  border-color: rgba(255, 118, 162, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.12);
}

.notice-comment-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notice-comment-edit-buttons button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.notice-comment-edit-buttons button[type="submit"] {
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

.notice-comment-cancel {
  background: rgba(255,255,255,0.08);
  color: #d1d5db !important;
}


/* =========================================================
   NOTICE LIST MODAL - REBUILT
========================================================= */

.notice-list-modal.hidden {
  display: none !important;
}

.notice-list-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.notice-list-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
}

.notice-list-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  border-radius: 28px;
  padding: 26px 26px 22px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(31, 19, 27, 0.985), rgba(14, 14, 18, 0.985));

  border: 1px solid rgba(255, 118, 162, 0.24);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(255,255,255,0.035);
}

.notice-list-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.035), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.08), transparent 38%);
}

.notice-list-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 18px;
  cursor: var(--spk-cursor-pointer);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.notice-list-close:hover {
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.3);
  transform: translateY(-1px);
}

.notice-list-header {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding-right: 56px;
}

.notice-list-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #ffd6e3;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.notice-list-header-badge i {
  color: #ff5f8f;
}

.notice-list-header h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.notice-list-header p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.58);
  font-size: 13px;
  font-weight: 600;
}

.notice-list-body {
  position: relative;
  z-index: 1;
}

.notice-list-items {
  display: grid;
  gap: 10px;
}

.notice-row {
  border-radius: 18px;
}

.notice-row-button {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 16px 18px 14px;
  text-align: left;
  cursor: var(--spk-cursor-pointer);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.02)),
    rgba(10, 10, 14, 0.86);

  color: #fff;

  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.notice-row-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 162, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.12), transparent 34%),
    rgba(14, 14, 19, 0.95);
  box-shadow: 0 14px 28px rgba(0,0,0,0.26);
}

.notice-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notice-row-title {
  min-width: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-row-pin {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 7px 16px rgba(255, 95, 143, 0.2);
}

.notice-row-arrow {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.34);
  font-size: 14px;
  transition: transform 0.16s ease, color 0.16s ease;
}

.notice-row-button:hover .notice-row-arrow {
  color: #ff8bab;
  transform: translateX(2px);
}

.notice-row-date {
  margin-top: 8px;
  color: rgba(226,232,240,0.48);
  font-size: 12px;
  font-weight: 800;
}

.notice-list-empty {
  padding: 28px 18px;
  border-radius: 18px;
  text-align: center;
  color: rgba(226, 232, 240, 0.56);
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
  font-weight: 800;
}

.notice-list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.notice-list-pagination a {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #d1d5db;
  font-size: 13px;
  font-weight: 900;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.notice-list-pagination a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.28);
}

.notice-list-pagination a.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255, 118, 162, 0.58);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

@media (max-width: 640px) {
  .notice-list-modal {
    padding: 14px;
  }

  .notice-list-panel {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .notice-list-header {
    padding-right: 48px;
    margin-bottom: 16px;
  }

  .notice-list-header h2 {
    font-size: 25px;
  }

  .notice-row-button {
    padding: 15px 14px 13px;
    border-radius: 16px;
  }

  .notice-row-title {
    font-size: 17px;
  }

  .notice-row-date {
    font-size: 11px;
  }

  .notice-list-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

.notice-comment-limit-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 15px;
  text-align: center;
  color: rgba(255, 216, 228, 0.82);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 95, 143, 0.09);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

/* 공지 목록 모달 */
.notice-list-modal {
  z-index: 100000;
}

/* 공지 상세/댓글 모달은 목록보다 항상 위 */
.spk-notice-modal {
  z-index: 100100 !important;
}

.spk-notice-modal.show {
  display: block;
}

/* 공지 상세 모달 위치를 공지 목록 모달과 동일하게 중앙 정렬 */
.spk-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 100100 !important;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.spk-notice-modal.show {
  display: flex !important;
}

.spk-notice-dialog {
  position: relative;
  margin: 0 !important;

  width: min(920px, calc(100vw - 32px));
  max-width: 920px;

  max-height: calc(100vh - 48px);
  overflow-y: auto;
}


/* =========================================================
   SPKLOVE Auth Modal
   Login / Register 로그인 / 회원가입 
========================================================= */

#authModal {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(9px);
}

#authModal.hidden {
  display: none !important;
}

#authModal .modal-content {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 34px 32px 30px;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 118, 162, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(31, 21, 28, 0.98), rgba(14, 14, 18, 0.98));

  border: 1px solid rgba(255, 118, 162, 0.28);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

#authModal .modal-content::before {
  content: "SPKLOVE";
  position: absolute;
  top: 22px;
  left: 30px;

  padding: 6px 11px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;

  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

#authModal .modal-content::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -95px;
  top: -95px;
  border-radius: 999px;
  background: rgba(255, 95, 143, 0.16);
  filter: blur(18px);
  pointer-events: none;
}

#authModal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #ffffff;
  font-size: 24px;
  line-height: 1;

  cursor: var(--spk-cursor-pointer);
  z-index: 3;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

#authModal .close-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.32);
}

#authModal .auth-form {
  position: relative;
  z-index: 2;
  padding-top: 42px;
}

#authModal .auth-form.hidden {
  display: none !important;
}

#authModal .auth-form h3 {
  margin: 0 0 8px;

  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

#authModal #loginForm h3::after {
  content: "Welcome back to Spklove.";
  display: block;
  margin-top: 9px;

  color: rgba(255, 216, 228, 0.68);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

#authModal #registerForm h3::after {
  content: "Create your Spklove account.";
  display: block;
  margin-top: 9px;

  color: rgba(255, 216, 228, 0.68);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

#authModal .auth-box {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

#authModal .auth-box input {
  width: 100%;
  height: 50px;
  padding: 0 16px;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.22);

  color: #ffffff;
  font-size: 14px;
  font-weight: 700;

  outline: none;
  box-sizing: border-box;

  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

#authModal .auth-box input::placeholder {
  color: rgba(226, 232, 240, 0.42);
  font-weight: 700;
}

#authModal .auth-box input:focus {
  border-color: rgba(255, 118, 162, 0.58);
  background: rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 0 3px rgba(255, 95, 143, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

#authModal .auth-box button {
  width: 100%;
  height: 50px;
  margin-top: 4px;

  border: 0;
  border-radius: 16px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 950;

  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow:
    0 14px 28px rgba(255, 95, 143, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);

  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

#authModal .auth-box button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 34px rgba(255, 95, 143, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

#authModal .auth-box button:active {
  transform: translateY(0);
}

#authModal .toggle-text {
  margin: 18px 0 0;
  padding: 14px 15px;

  border-radius: 16px;

  color: rgba(226, 232, 240, 0.66);
  font-size: 13px;
  font-weight: 750;
  text-align: center;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

#authModal .toggle-text a {
  color: #ff8bab;
  font-weight: 950;
  text-decoration: none;
  margin-left: 4px;
}

#authModal .toggle-text a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 작은 장식 라인 */
#authModal .auth-form::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 22px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 118, 162, 0.28),
    transparent
  );
}

/* 모바일 */
@media (max-width: 520px) {
  #authModal {
    padding: 14px;
  }

  #authModal .modal-content {
    width: calc(100vw - 28px);
    padding: 30px 22px 24px;
    border-radius: 24px;
  }

  #authModal .modal-content::before {
    left: 22px;
    top: 20px;
  }

  #authModal .close-btn {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }

  #authModal .auth-form h3 {
    font-size: 30px;
  }

  #authModal .auth-box {
    margin-top: 23px;
  }

  #authModal .auth-box input,
  #authModal .auth-box button {
    height: 48px;
    border-radius: 15px;
  }
}

/* =========================================
   SPKLOVE CLEAN TOP NAV - revised
========================================= */

.spk-navclean-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}

/* 공통 카드 */
.spk-navclean-card {
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

/* 각각 배경이 보이도록 개별 배경 지정 */
.spk-navclean-action-card {
  background: rgba(255, 255, 255, 0.035);
  padding: 0 4px;
  gap: 2px;
  flex-shrink: 0;
}

.spk-navclean-lang-card {
  background: rgba(255, 255, 255, 0.035);
  min-width: 82px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.spk-navclean-profile-card {
  background: rgba(255, 255, 255, 0.035);
  width: 42px;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.spk-navclean-card:hover {
  border-color: rgba(255, 255, 255, 0.075);
}

/* 아이콘 버튼 */
.spk-navclean-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: var(--spk-cursor-pointer);
  color: #d7dce5;
  position: relative;
  transition: background .18s ease, color .18s ease;
}

.spk-navclean-icon-btn i {
  font-size: 18px;
  line-height: 1;
}

.spk-navclean-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.spk-navclean-notice-btn {
  color: #d8d2d5;
}

.spk-navclean-notice-btn:hover {
  color: var(--spk-pink-2);
  background: rgba(255, 126, 166, 0.075);
}

.spk-navclean-chat-btn {
  color: #d8d2d5;
}

.spk-navclean-chat-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
}

/* 채팅 배지 */
.spk-navclean-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4f7d;
  color: #fff;
  border: 2px solid #141922;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

.spk-navclean-badge.is-visible {
  display: flex;
}

/* 언어 카드 */
.spk-navclean-lang-selected {
  height: 42px;
  width: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: var(--spk-cursor-pointer);
  border-radius: 14px;
}

.spk-navclean-lang-flag {
  width: 36px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;   /* 흰 배경 제거 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.spk-navclean-lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 꽉 채우기 */
  object-position: center;
  display: block;
  border-radius: 0;          /* 안쪽 흰 여백처럼 보이는 효과 제거 */
  opacity: .92;
}

.spk-navclean-lang-arrow {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8bec9;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.spk-navclean-lang-arrow i {
  font-size: 12px;
}

.spk-navclean-lang-card.active .spk-navclean-lang-arrow,
.spk-navclean-lang-card.open .spk-navclean-lang-arrow,
#langDropdown[aria-expanded="true"] .spk-navclean-lang-arrow {
  background: #1d1d1d;
  color: #edf1f7;
  transform: rotate(180deg);
}

/* 언어 드롭다운 - hover로 절대 열리지 않게 */
.spk-navclean-lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 14px;
  background: #272727;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 300;
}

.spk-navclean-lang-card.active .spk-navclean-lang-options,
.spk-navclean-lang-card.open .spk-navclean-lang-options,
.spk-navclean-lang-options.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.spk-navclean-lang-option {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 10px;
  color: #dfe4ec;
  font-size: 14px;
  font-weight: 600;
  cursor: var(--spk-cursor-pointer);
  transition: background .16s ease, color .16s ease;
}

.spk-navclean-lang-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.spk-navclean-lang-option img {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 프로필 버튼 */
.spk-navclean-profile-trigger {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfe4ec;
  cursor: var(--spk-cursor-pointer);
  transition: background .18s ease, color .18s ease;
  overflow: hidden;
  padding: 0;
}

.spk-navclean-profile-trigger:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* 비로그인 아이콘 */
.spk-navclean-profile-trigger--guest i,
.spk-navclean-profile-trigger i {
  font-size: 21px;
  line-height: 1;
}

/* 로그인한 경우 프로필 이미지가 영역에 딱 맞게 */
.spk-navclean-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;   /* 원형 X, 카드 모양에 맞춤 */
  display: block;
}

/* 프로필 드롭다운 - hover로 절대 열리지 않게 */
.spk-navclean-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #272727;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  z-index: 300;
}

.spk-navclean-profile-card.active .spk-navclean-profile-dropdown,
.spk-navclean-profile-card.open .spk-navclean-profile-dropdown,
.spk-navclean-profile-trigger[aria-expanded="true"] + .spk-navclean-profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.spk-navclean-profile-dropdown a {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 10px;
  color: #dfe4ec;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease;
}

.spk-navclean-profile-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.spk-navclean-profile-dropdown a i {
  width: 16px;
  text-align: center;
  color: #ff6b9a;
  flex-shrink: 0;
}

/* 기존 스타일 잔재 제거 */
.spk-navclean-wrap .spk-top-action-group,
.spk-navclean-wrap .lang-dropdown,
.spk-navclean-wrap .nav-profile-menu {
  margin: 0;
}

.spk-navclean-wrap .lang-selected,
.spk-navclean-wrap .nav-profile-trigger,
.spk-navclean-wrap .spk-top-icon-btn {
  box-shadow: none !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .spk-navclean-wrap {
    gap: 8px;
  }

  .spk-navclean-card {
    height: 42px;
    border-radius: 12px;
  }

  .spk-navclean-action-card {
    padding: 0 4px;
  }

  .spk-navclean-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .spk-navclean-icon-btn i {
    font-size: 17px;
  }

  .spk-navclean-lang-card {
    min-width: 78px;
  }

  .spk-navclean-lang-selected {
    height: 42px;
    padding: 0 7px;
    gap: 6px;
  }

  .spk-navclean-lang-flag {
    width: 34px;
    height: 24px;
  }

  .spk-navclean-profile-card {
    width: 42px;
  }

  .spk-navclean-profile-img {
    border-radius: 12px;
  }
}

/* 클릭으로 열렸을 때만 언어 메뉴 표시 */
#langDropdown.is-open .spk-navclean-lang-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 클릭으로 열렸을 때 화살표 회전 */
#langDropdown.is-open .spk-navclean-lang-arrow {
  background: rgba(255,255,255,0.06);
  color: #edf1f7;
  transform: rotate(180deg);
}

/* 혹시 기존 CSS가 display:none을 걸고 있으면 무시 */
#langDropdown .spk-navclean-lang-options {
  display: block !important;
}

/* ===== LEGACY SOURCE: dm.css ===== */
.dm-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.dm-header {
  margin-bottom: 20px;
}

.dm-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.dm-header p {
  margin: 0;
  color: #888;
}

.dm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.dm-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.dm-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.dm-thread-list,
.dm-request-list {
  display: flex;
  flex-direction: column;
}

.dm-thread-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-thread-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dm-thread-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.dm-thread-body {
  min-width: 0;
  flex: 1;
}

.dm-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.dm-thread-top span {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.dm-thread-body p {
  margin: 0;
  color: #aaa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dm-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-request-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
}

.dm-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: var(--spk-cursor-pointer);
  font-weight: 700;
}

.dm-btn-primary {
  background: #7c3aed;
  color: #fff;
}

.dm-empty {
  padding: 30px 18px;
  color: #aaa;
  text-align: center;
}

.dm-empty.small {
  padding: 20px 16px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .dm-layout {
    grid-template-columns: 1fr;
  }

  .dm-page {
    padding: 16px;
  }
}

.dm-chat-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.dm-chat-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.dm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.dm-chat-header h1 {
  margin: 0 0 5px;
  font-size: 25px;
}

.dm-chat-header p {
  margin: 0;
  color: #999;
  font-size: 14px;
}

.dm-chat-box {
  min-height: 420px;
  max-height: 620px;
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-msg {
  margin-bottom: 16px;
  max-width: 78%;
}

.dm-msg.is-me {
  margin-left: auto;
}

.dm-msg.is-other {
  margin-right: auto;
}

.dm-msg-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
  color: #999;
}

.dm-msg.is-me .dm-msg-meta {
  justify-content: flex-end;
}

.dm-msg-bubble {
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-msg.is-me .dm-msg-bubble {
  background: rgba(124, 58, 237, 0.7);
  color: #fff;
}

.dm-compose {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.dm-compose textarea {
  flex: 1;
  resize: vertical;
  border: 0;
  outline: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.dm-compose button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  cursor: var(--spk-cursor-pointer);
  font-weight: 800;
  background: #7c3aed;
  color: #fff;
}

@media (max-width: 700px) {
  .dm-chat-page {
    padding: 14px;
  }

  .dm-chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dm-msg {
    max-width: 92%;
  }

  .dm-compose {
    flex-direction: column;
  }

  .dm-compose button {
    padding: 12px 16px;
  }
}

.spk-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.spk-profile-actions form {
  margin: 0;
}

.spk-profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: var(--spk-cursor-pointer);
  white-space: nowrap;
}

.spk-profile-action-btn.primary {
  background: #7c3aed;
  color: #fff;
}

.spk-profile-action-btn.secondary {
  background: rgba(255, 255, 255, 0.09);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.spk-profile-action-btn.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #ff8a8a;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.spk-profile-action-btn.muted {
  background: rgba(255, 255, 255, 0.06);
  color: #999;
  cursor: var(--spk-cursor-not-allowed);
}

.spk-profile-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .spk-profile-actions {
    width: 100%;
  }

  .spk-profile-actions form,
  .spk-profile-action-btn {
    width: 100%;
  }
}

.dm-compose {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.dm-compose-main {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.dm-compose-main textarea {
  flex: 1;
}

.dm-file-label {
  position: relative;
  min-width: 82px;
  border-radius: 14px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: var(--spk-cursor-pointer);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-file-label:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dm-file-label input {
  display: none;
}

.dm-attachment {
  margin-top: 8px;
}

.dm-attachment-image {
  display: block;
  max-width: 280px;
  max-height: 320px;
  border-radius: 14px;
  object-fit: cover;
}

.dm-attachment-video {
  display: block;
  width: 320px;
  max-width: 100%;
  border-radius: 14px;
  background: #000;
}

.dm-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  padding: 11px 13px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  word-break: break-all;
}

.dm-attachment-file:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dm-attachment-file i {
  font-size: 20px;
}

@media (max-width: 700px) {
  .dm-compose {
    flex-direction: column;
  }

  .dm-compose-main {
    flex-direction: column;
  }

  .dm-file-label {
    min-height: 42px;
    width: 100%;
  }

  .dm-attachment-image {
    max-width: 100%;
  }
}

.dm-link-preview {
  display: block;
  margin-top: 9px;
  max-width: 360px;
  overflow: hidden;
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.dm-link-preview:hover {
  background: rgba(255, 255, 255, 0.11);
}

.dm-link-preview-image {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.dm-link-preview-image img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.dm-link-preview-body {
  padding: 12px 13px;
}

.dm-link-preview-site {
  margin-bottom: 5px;
  font-size: 12px;
  color: #aaa;
}

.dm-link-preview-body strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.dm-link-preview-body p {
  margin: 0 0 7px;
  font-size: 13px;
  color: #bbb;
  line-height: 1.4;
}

.dm-link-preview-body span {
  display: block;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-msg.is-me .dm-link-preview {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
}

.dm-msg.is-me .dm-link-preview-body p,
.dm-msg.is-me .dm-link-preview-body span,
.dm-msg.is-me .dm-link-preview-site {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
  .dm-link-preview {
    max-width: 100%;
  }
}

.dm-group-form {
  padding: 16px;
}

.dm-group-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.dm-group-field label {
  font-size: 13px;
  font-weight: 800;
  color: #aaa;
}

.dm-group-field input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.dm-group-help {
  margin-bottom: 10px;
  font-size: 12px;
  color: #999;
}

.dm-friend-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 230px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.dm-friend-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: var(--spk-cursor-pointer);
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.dm-friend-check:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dm-friend-check input {
  accent-color: #7c3aed;
}

.dm-friend-check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}

.dm-group-create-btn {
  width: 100%;
}

.dm-group-invite-panel {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-group-invite-head {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dm-group-invite-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dm-group-invite-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dm-group-invite-head span {
  color: #999;
  font-size: 13px;
}

.dm-group-invite-form {
  padding: 14px;
}

.dm-invite-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dm-invite-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: var(--spk-cursor-pointer);
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.dm-invite-check:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dm-invite-check input {
  accent-color: #7c3aed;
}

.dm-invite-check span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .dm-group-invite-head > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .dm-invite-check-list {
    flex-direction: column;
  }

  .dm-invite-check {
    width: 100%;
  }

  .dm-group-invite-form .dm-btn {
    width: 100%;
  }
}

.dm-online-list {
  display: flex;
  flex-direction: column;
}

.dm-online-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-online-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dm-online-item strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.dm-online-item form {
  margin: 0;
}

.dm-online-message-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: var(--spk-cursor-pointer);
  color: #fff;
  background: #7c3aed;
}

.dm-online-message-btn:hover {
  transform: translateY(-1px);
}

.spk-mini-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 340px;
  max-width: calc(100vw - 28px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20, 20, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.spk-mini-chat-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 14px;
  background: rgba(255, 255, 255, 0.06);
}

.spk-mini-title {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  text-align: left;
  cursor: var(--spk-cursor-pointer);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spk-mini-actions {
  display: inline-flex;
  gap: 6px;
}

.spk-mini-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  cursor: var(--spk-cursor-pointer);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.spk-mini-actions button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.spk-mini-chat-body {
  height: 330px;
  overflow-y: auto;
  padding: 12px;
}

.spk-mini-empty {
  padding: 30px 10px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.spk-mini-msg {
  margin-bottom: 12px;
  max-width: 88%;
}

.spk-mini-msg.is-me {
  margin-left: auto;
}

.spk-mini-msg.is-other {
  margin-right: auto;
}

.spk-mini-msg-meta {
  margin-bottom: 4px;
  font-size: 11px;
  color: #aaa;
}

.spk-mini-msg.is-me .spk-mini-msg-meta {
  text-align: right;
}

.spk-mini-msg-bubble {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.spk-mini-msg.is-me .spk-mini-msg-bubble {
  background: rgba(124, 58, 237, 0.78);
}

.spk-mini-file,
.spk-mini-link {
  display: block;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  word-break: break-word;
}

.spk-mini-link strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.spk-mini-link span {
  display: block;
  color: #bbb;
  font-size: 11px;
}

.spk-mini-compose {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spk-mini-compose input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.spk-mini-compose button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: var(--spk-cursor-pointer);
  color: #fff;
  background: #7c3aed;
}

.spk-mini-chat.is-collapsed .spk-mini-chat-body,
.spk-mini-chat.is-collapsed .spk-mini-compose {
  display: none;
}

@media (max-width: 640px) {
  .spk-mini-chat {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .spk-mini-chat-body {
    height: 300px;
  }
}

.dm-mini-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: var(--spk-cursor-pointer);
  font-weight: 800;
  color: #fff;
  background: rgba(124, 58, 237, 0.75);
}

.dm-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
}

[hidden] {
  display: none !important;
}

.vnav__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
}

.dm-msg-delete-form {
  display: inline-flex;
  margin: 0;
}

.dm-msg-delete-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: var(--spk-cursor-pointer);
  color: #aaa;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.dm-msg-delete-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.75);
}

.dm-msg.is-me .dm-msg-meta {
  justify-content: flex-end;
}

.dm-chat-header form {
  margin: 0;
}

.dm-leave-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: var(--spk-cursor-pointer);
  font-weight: 800;
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.dm-leave-group-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.75);
}

.dm-group-rename-panel {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-group-rename-form {
  display: flex;
  gap: 10px;
  padding: 14px;
}

.dm-group-rename-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  border-radius: 12px;
  padding: 11px 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.dm-group-rename-form button {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .dm-group-rename-form {
    flex-direction: column;
  }

  .dm-group-rename-form button {
    width: 100%;
  }
}

.dm-group-members-panel {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-group-member-list {
  display: flex;
  flex-direction: column;
}

.dm-group-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-group-member-item:last-child {
  border-bottom: 0;
}

.dm-group-member-item > div {
  min-width: 0;
}

.dm-group-member-item strong {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.dm-member-role {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  background: rgba(255, 255, 255, 0.07);
}

.dm-member-role.owner {
  color: #fff;
  background: rgba(124, 58, 237, 0.55);
}

.dm-group-member-item form {
  margin: 0;
}

.dm-kick-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: var(--spk-cursor-pointer);
  font-size: 12px;
  font-weight: 800;
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.26);
}

.dm-kick-member-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.75);
}

@media (max-width: 700px) {
  .dm-group-member-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .dm-kick-member-btn {
    width: 100%;
    justify-content: center;
  }

  .dm-group-member-item form {
    width: 100%;
  }
}

.dm-request-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dm-request-actions form {
  margin: 0;
}

.dm-btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #ffb4b4;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.dm-btn-danger:hover {
  background: rgba(239, 68, 68, 0.75);
  color: #fff;
}

.dm-btn-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}

.dm-btn-muted:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dm-friends-list {
  display: flex;
  flex-direction: column;
}

.dm-friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-friend-item:last-child {
  border-bottom: 0;
}

.dm-friend-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dm-friend-main strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-friend-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dm-friend-actions form {
  margin: 0;
}

.dm-friend-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: var(--spk-cursor-pointer);
  color: #fff;
  background: #7c3aed;
}

.dm-friend-icon-btn:hover {
  transform: translateY(-1px);
}

.dm-friend-icon-btn.danger {
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.dm-friend-icon-btn.danger:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.75);
}

@media (max-width: 700px) {
  .dm-friend-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .dm-friend-actions {
    width: 100%;
  }

  .dm-friend-actions form,
  .dm-friend-icon-btn {
    flex: 1;
  }
}

.dm-new-message-notice,
.spk-mini-new {
  width: 100%;
  border: 0;
  cursor: var(--spk-cursor-pointer);
  font-weight: 900;
  color: #fff;
  background: rgba(124, 58, 237, 0.9);
}

.dm-new-message-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 999px;
}

.spk-mini-new {
  padding: 8px 10px;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

/* ================================
   DM Theme Polish
================================ */

:root {
  --dm-bg: #111113;
  --dm-panel: #18181b;
  --dm-panel-2: #222226;
  --dm-line: rgba(255, 255, 255, 0.08);
  --dm-line-strong: rgba(255, 255, 255, 0.12);
  --dm-text: #f4f4f5;
  --dm-muted: #a1a1aa;
  --dm-muted-2: #71717a;

  --dm-primary: #ff6f9f;
  --dm-primary-2: #9b5cff;
  --dm-primary-soft: rgba(255, 111, 159, 0.16);
  --dm-purple-soft: rgba(155, 92, 255, 0.22);

  --dm-danger: #ef4444;
  --dm-danger-soft: rgba(239, 68, 68, 0.16);
  --dm-online: #22c55e;
}

/* 전체 패널 톤 정리 */
.dm-panel,
.dm-chat-box,
.dm-group-invite-panel,
.dm-group-rename-panel,
.dm-group-members-panel {
  background: var(--dm-panel);
  border: 1px solid var(--dm-line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.dm-panel {
  border-radius: 18px;
}

.dm-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--dm-line);
}

.dm-panel-header h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* 카드 내부 여백 완화 */
.dm-empty {
  padding: 22px 18px;
  color: var(--dm-muted);
}

.dm-empty.small {
  padding: 18px 16px;
}

/* 버튼 색감 통일 */
.dm-btn-primary,
.dm-compose button,
.dm-online-message-btn,
.dm-friend-icon-btn,
.dm-group-create-btn,
.dm-mini-open-btn {
  background: linear-gradient(135deg, var(--dm-primary), var(--dm-primary-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(155, 92, 255, 0.24);
}

.dm-btn-primary:hover,
.dm-compose button:hover,
.dm-online-message-btn:hover,
.dm-friend-icon-btn:hover,
.dm-group-create-btn:hover,
.dm-mini-open-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.dm-btn-danger,
.dm-friend-icon-btn.danger,
.dm-kick-member-btn,
.dm-leave-group-btn {
  background: var(--dm-danger-soft);
  color: #ffb4b4;
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: none;
}

.dm-btn-danger:hover,
.dm-friend-icon-btn.danger:hover,
.dm-kick-member-btn:hover,
.dm-leave-group-btn:hover {
  background: rgba(239, 68, 68, 0.72);
  color: #fff;
}

/* 스크롤바 커스텀 */
.dm-chat-box,
.dm-friend-check-list,
.dm-invite-check-list,
.dm-online-list,
.dm-thread-list,
.dm-request-list,
.dm-friends-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 111, 159, 0.45) transparent;
}

.dm-chat-box::-webkit-scrollbar,
.dm-friend-check-list::-webkit-scrollbar,
.dm-invite-check-list::-webkit-scrollbar,
.dm-online-list::-webkit-scrollbar,
.dm-thread-list::-webkit-scrollbar,
.dm-request-list::-webkit-scrollbar,
.dm-friends-list::-webkit-scrollbar {
  width: 8px;
}

.dm-chat-box::-webkit-scrollbar-track,
.dm-friend-check-list::-webkit-scrollbar-track,
.dm-invite-check-list::-webkit-scrollbar-track,
.dm-online-list::-webkit-scrollbar-track,
.dm-thread-list::-webkit-scrollbar-track,
.dm-request-list::-webkit-scrollbar-track,
.dm-friends-list::-webkit-scrollbar-track {
  background: transparent;
}

.dm-chat-box::-webkit-scrollbar-thumb,
.dm-friend-check-list::-webkit-scrollbar-thumb,
.dm-invite-check-list::-webkit-scrollbar-thumb,
.dm-online-list::-webkit-scrollbar-thumb,
.dm-thread-list::-webkit-scrollbar-thumb,
.dm-request-list::-webkit-scrollbar-thumb,
.dm-friends-list::-webkit-scrollbar-thumb {
  background: rgba(255, 111, 159, 0.38);
  border-radius: 999px;
}

/* 메시지 목록 레이아웃 정리 */
.dm-thread-item {
  padding: 15px 18px;
  gap: 15px;
}

.dm-thread-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  background: rgba(255, 255, 255, 0.07);
}

.dm-thread-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.dm-thread-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dm-thread-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.dm-thread-time {
  font-size: 12px;
  color: var(--dm-muted);
  white-space: nowrap;
}

.dm-unread-badge {
  min-width: 21px;
  height: 21px;
  padding: 0 7px;
  margin-left: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff3d6e);
  box-shadow: 0 8px 16px rgba(255, 61, 110, 0.22);
}

/* 일반 채팅창 정리 */
.dm-chat-page {
  max-width: 1120px;
}

.dm-chat-header {
  gap: 12px;
}

.dm-back-link,
.dm-mini-open-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
}

.dm-back-link {
  background: rgba(255, 255, 255, 0.07);
  color: var(--dm-text);
}

.dm-chat-header h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.dm-chat-header p {
  color: var(--dm-muted);
}

.dm-chat-box {
  padding: 18px 20px;
  border-radius: 20px;
  max-height: 620px;
}

/* 말풍선 폭/간격 정리 */
.dm-msg {
  max-width: 74%;
  margin-bottom: 18px;
}

.dm-msg-meta {
  gap: 8px;
  margin-bottom: 6px;
  color: var(--dm-muted);
}

.dm-msg-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 11px 15px;
  border-radius: 18px;
  background: var(--dm-panel-2);
  line-height: 1.55;
  color: var(--dm-text);
}

.dm-msg.is-me {
  text-align: right;
}

.dm-msg.is-me .dm-msg-bubble {
  text-align: left;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  color: #fff;
}

.dm-msg.is-other .dm-msg-bubble {
  background: #2a2a2f;
}

/* 첨부 이미지 크기 제한 */
.dm-attachment {
  margin-top: 9px;
}

.dm-attachment-image {
  max-width: 260px;
  max-height: 260px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

.dm-attachment-video {
  width: 320px;
  max-width: 100%;
  max-height: 260px;
  border-radius: 16px;
}

/* 링크 미리보기 카드 정리 */
.dm-link-preview {
  max-width: 360px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-msg.is-me .dm-link-preview {
  margin-left: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.09);
}

.dm-link-preview-image {
  max-height: 150px;
}

.dm-link-preview-image img {
  max-height: 150px;
}

/* 입력창 정리 */
.dm-compose {
  align-items: stretch;
  gap: 12px;
}

.dm-compose textarea {
  min-height: 56px;
  border-radius: 18px;
  background: #242428;
  color: var(--dm-text);
}

.dm-compose textarea::placeholder {
  color: var(--dm-muted-2);
}

.dm-file-label {
  min-width: 96px;
  border-radius: 18px;
  background: #242428;
}

.dm-compose button {
  min-width: 104px;
  border-radius: 18px;
}

/* 친구/온라인/그룹 UI 정리 */
.dm-request-item,
.dm-friend-item,
.dm-online-item,
.dm-group-member-item {
  padding: 12px 16px;
}

.dm-online-dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  background: var(--dm-online);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.dm-online-message-btn,
.dm-friend-icon-btn {
  width: 38px;
  height: 38px;
}

/* 그룹 체크박스 커스텀 */
.dm-friend-check,
.dm-invite-check {
  position: relative;
  background: #242428;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dm-friend-check:hover,
.dm-invite-check:hover {
  background: #2b2b30;
  border-color: rgba(255, 111, 159, 0.26);
}

.dm-friend-check input,
.dm-invite-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--dm-primary);
}

.dm-friend-check:has(input:checked),
.dm-invite-check:has(input:checked) {
  background: var(--dm-primary-soft);
  border-color: rgba(255, 111, 159, 0.55);
}

/* 새 메시지 알림 */
.dm-new-message-notice {
  margin: 10px auto 0;
  max-width: 360px;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  cursor: var(--spk-cursor-pointer);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  box-shadow: 0 10px 22px rgba(155, 92, 255, 0.22);
}

.dm-new-message-notice[hidden] {
  display: none !important;
}

/* 모바일 정리 */
@media (max-width: 700px) {
  .dm-layout {
    gap: 14px;
  }

  .dm-panel {
    border-radius: 16px;
  }

  .dm-panel-header {
    padding: 13px 15px;
  }

  .dm-thread-item {
    padding: 14px 15px;
  }

  .dm-thread-top {
    align-items: flex-start;
  }

  .dm-thread-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .dm-msg {
    max-width: 88%;
  }

  .dm-attachment-image {
    max-width: 210px;
    max-height: 220px;
  }

  .dm-compose button {
    width: 100%;
  }
}

/* ================================
   Mini Chat Polish
================================ */

.spk-mini-chat {
  width: 350px;
  background: rgba(18, 18, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.spk-mini-chat-head {
  background: rgba(255, 255, 255, 0.055);
}

.spk-mini-title {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.spk-mini-actions button {
  background: rgba(255, 255, 255, 0.1);
}

.spk-mini-actions button:hover {
  background: rgba(255, 111, 159, 0.22);
}

.spk-mini-chat-body {
  height: 325px;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 111, 159, 0.42) transparent;
}

.spk-mini-chat-body::-webkit-scrollbar {
  width: 7px;
}

.spk-mini-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.spk-mini-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 111, 159, 0.38);
  border-radius: 999px;
}

.spk-mini-msg {
  max-width: 86%;
  margin-bottom: 12px;
}

.spk-mini-msg-meta {
  margin-bottom: 5px;
  color: #a1a1aa;
}

.spk-mini-msg-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 15px;
  background: #2a2a2f;
  line-height: 1.45;
}

.spk-mini-msg.is-me {
  text-align: right;
}

.spk-mini-msg.is-me .spk-mini-msg-bubble {
  text-align: left;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
}

.spk-mini-file,
.spk-mini-link {
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.spk-mini-new {
  width: calc(100% - 20px);
  margin: 0 10px 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  cursor: var(--spk-cursor-pointer);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
}

.spk-mini-new[hidden] {
  display: none !important;
}

.spk-mini-compose {
  padding: 10px;
  gap: 8px;
}

.spk-mini-compose input {
  height: 42px;
  background: #242428;
}

.spk-mini-compose button {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
}

@media (max-width: 640px) {
  .spk-mini-chat {
    width: calc(100vw - 24px);
  }

  .spk-mini-chat-body {
    height: 300px;
  }
}

.vnav__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f, #ff3d6e);
  box-shadow: 0 6px 14px rgba(255, 61, 110, 0.28);
}

[hidden] {
  display: none !important;
}

.vnav.is-collapsed .vnav__badge,
body.nav-collapsed .vnav__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

.dm-friend-icon-btn,
.dm-online-message-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: var(--spk-cursor-pointer);
}

.dm-friend-icon-btn i,
.dm-online-message-btn i {
  display: block;
  line-height: 1;
  margin: 0;
}

/* ================================
   Mini Chat Button/Input Alignment Fix
================================ */

/* 상단 - / X 버튼 아이콘 중앙 정렬 */
.spk-mini-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spk-mini-actions button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.spk-mini-actions button i {
  display: block;
  line-height: 1;
  margin: 0;
}

/* 하단 입력창/전송 버튼 높이 통일 */
.spk-mini-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.spk-mini-compose input {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 16px !important;
  box-sizing: border-box;
  border-radius: 999px;
  line-height: 46px;
}

.spk-mini-compose button {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 46px;
}

.spk-mini-compose button i {
  display: block;
  line-height: 1;
  margin: 0;
}

/* 미니 채팅 상단 버튼: 배경 제거, 아이콘만 표시 */
.spk-mini-actions button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.spk-mini-actions button:hover {
  background: transparent !important;
  color: #fff;
}

.spk-mini-actions button i {
  display: block;
  line-height: 1;
  margin: 0;
}

.dm-thread-list .dm-unread-badge,
.dm-thread-item .dm-unread-badge,
span.dm-unread-badge {
  color: #fff !important;
}

/* ================================
   DM Attachment Alignment Fix
================================ */

/* 첨부파일 영역 기본 정렬 */
.dm-msg .dm-attachment {
  display: flex;
  width: 100%;
  margin-top: 9px;
}

/* 내가 보낸 첨부파일은 오른쪽 */
.dm-msg.is-me .dm-attachment {
  justify-content: flex-end;
  text-align: right;
}

/* 상대방 첨부파일은 왼쪽 */
.dm-msg.is-other .dm-attachment {
  justify-content: flex-start;
  text-align: left;
}

/* 이미지 링크 wrapper 정렬 */
.dm-msg .dm-attachment > a {
  display: inline-flex;
  max-width: 100%;
}

/* 내가 보낸 이미지 자체도 오른쪽으로 고정 */
.dm-msg.is-me .dm-attachment-image {
  margin-left: auto;
  margin-right: 0;
}

/* 상대방 이미지는 왼쪽 */
.dm-msg.is-other .dm-attachment-image {
  margin-left: 0;
  margin-right: auto;
}

/* 첨부 이미지 크기 안정화 */
.dm-attachment-image {
  display: block;
  max-width: 260px;
  max-height: 260px;
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
}

/* ================================
   DM Delete Button Shape Fix
================================ */

.dm-msg-delete-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex: 0 0 auto;
}

.dm-msg-delete-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50% !important;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: var(--spk-cursor-pointer);
  color: #aaa;
  background: rgba(255, 255, 255, 0.08);
}

.dm-msg-delete-btn i {
  display: block;
  line-height: 1;
  margin: 0;
  font-size: 13px;
}

.dm-msg-delete-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.75);
}

/* 내 메시지 meta 정렬 안정화 */
.dm-msg.is-me .dm-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* 상대 메시지 meta 정렬 */
.dm-msg.is-other .dm-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* 미니 채팅 첨부 이미지/비디오 표시 */
.spk-mini-image-link {
  display: inline-flex;
  margin-top: 6px;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.spk-mini-image {
  display: block;
  max-width: 190px;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.spk-mini-video {
  display: block;
  margin-top: 6px;
  width: 210px;
  max-width: 100%;
  max-height: 170px;
  border-radius: 14px;
  background: #000;
}

.spk-mini-msg.is-me .spk-mini-image-link,
.spk-mini-msg.is-me .spk-mini-video {
  margin-left: auto;
}

.spk-mini-msg.is-other .spk-mini-image-link,
.spk-mini-msg.is-other .spk-mini-video {
  margin-right: auto;
}


/* ================================
   Create Group Input Fix
================================ */

.dm-group-form {
  padding: 18px 20px 20px;
}

.dm-group-field {
  width: 100%;
  margin-bottom: 14px;
}

.dm-group-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #b7b7c2;
}

.dm-group-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  border-radius: 14px;
  padding: 0 16px;
  background: #242428;
  color: #f4f4f5;
  font-size: 15px;
  line-height: 46px;
}

.dm-group-field input::placeholder {
  color: #85858f;
}

.dm-group-field input:focus {
  border-color: rgba(255, 111, 159, 0.55);
  background: #28282d;
  box-shadow: 0 0 0 4px rgba(255, 111, 159, 0.12);
}

.dm-group-help {
  margin: 0 0 12px;
  font-size: 13px;
  color: #a1a1aa;
}

/* ================================
   DM Thread Header Layout Fix
================================ */

.dm-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dm-chat-header-info {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.dm-chat-header-info h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f4f4f5;
}

.dm-chat-header-info p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #a1a1aa;
  text-align: left;
  word-break: break-word;
}

.dm-chat-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.dm-chat-header-actions form {
  margin: 0;
  display: inline-flex;
}

/* 모든 상단 버튼 세로 높이 통일 */
.dm-head-btn {
  height: 46px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: var(--spk-cursor-pointer);
}

/* 돌아가기 버튼 */
.dm-back-link.dm-head-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-back-link.dm-head-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 간략화 버튼 */
.dm-mini-open-btn.dm-head-btn {
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.24);
}

.dm-mini-open-btn.dm-head-btn:hover {
  filter: brightness(1.06);
}

/* 나가기 버튼 */
.dm-leave-group-btn.dm-head-btn {
  background: rgba(239, 68, 68, 0.14);
  color: #ffb4b4;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.dm-leave-group-btn.dm-head-btn:hover {
  background: rgba(239, 68, 68, 0.75);
  color: #fff;
}

.dm-head-btn i {
  display: block;
  line-height: 1;
  margin: 0;
}

/* 모바일 대응 */
@media (max-width: 900px) {
  .dm-chat-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dm-chat-header-info {
    order: 1;
  }

  .dm-chat-header-actions {
    order: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dm-chat-header-actions {
    display: flex;
    width: 100%;
  }

  .dm-chat-header-actions form {
    flex: 1 1 auto;
  }

  .dm-head-btn,
  .dm-chat-header-actions .dm-head-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* 친구/온라인 아이콘 버튼: 둥근 정사각형 */
.dm-friend-icon-btn,
.dm-online-message-btn {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dm-friend-icon-btn i,
.dm-online-message-btn i {
  display: block;
  line-height: 1;
  margin: 0;
  font-size: 17px;
}

/* 삭제/친구 제거 버튼도 동일한 형태 유지 */
.dm-friend-icon-btn.danger {
  border-radius: 14px !important;
}

/* 버튼 사이 간격 정리 */
.dm-friend-actions {
  gap: 8px;
}

.dm-online-item form,
.dm-friend-actions form {
  margin: 0;
  display: inline-flex;
}

/* ================================
   DM Compose Bar Redesign
================================ */

.dm-compose {
  margin-top: 14px;
}

.dm-compose-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-compose-input-wrap textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  resize: vertical;
  border: 0;
  outline: none;
  box-sizing: border-box;
  padding: 15px 18px;
  border-radius: 18px;
  background: #24242a;
  color: #f4f4f5;
  font-size: 15px;
  line-height: 1.45;
}

.dm-compose-input-wrap textarea::placeholder {
  color: #8d8d99;
}

.dm-compose-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.dm-compose-icon-btn {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: var(--spk-cursor-pointer);
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.dm-compose-icon-btn i {
  display: block;
  margin: 0;
  line-height: 1;
  font-size: 20px;
}

/* 파일 버튼 */
.dm-file-label.dm-compose-icon-btn {
  position: relative;
  background: #24242a;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-file-label.dm-compose-icon-btn:hover {
  background: #2b2b31;
  transform: translateY(-1px);
}

.dm-file-label.dm-compose-icon-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: var(--spk-cursor-pointer);
}

/* 전송 버튼 */
.dm-send-btn {
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.26);
}

.dm-send-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* 예전 텍스트 스타일 제거 대응 */
.dm-file-label span {
  display: none !important;
}

/* 모바일 */
@media (max-width: 700px) {
  .dm-compose-shell {
    gap: 10px;
    padding: 10px;
  }

  .dm-compose-input-wrap textarea {
    min-height: 50px;
    padding: 13px 15px;
    border-radius: 16px;
  }

  .dm-compose-icon-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 16px;
  }

  .dm-compose-icon-btn i {
    font-size: 18px;
  }
}

/* ================================
   DM Compose Full Width Bar
================================ */

.dm-compose {
  width: 100%;
  margin-top: 14px;
}

.dm-compose-shell {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 22px;
  background: #1b1b20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dm-compose-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-compose-input-wrap textarea {
  display: block;
  width: 100%;
  height: 50px;
  min-height: 50px;
  max-height: 120px;
  resize: none;
  box-sizing: border-box;
  border: 0;
  outline: none;
  padding: 13px 15px;
  border-radius: 16px;
  background: #24242a;
  color: #f4f4f5;
  font-size: 15px;
  line-height: 1.45;
}

.dm-compose-input-wrap textarea::placeholder {
  color: #8d8d99;
}

.dm-compose-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.dm-compose-icon-btn {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: var(--spk-cursor-pointer);
  line-height: 1;
}

.dm-compose-icon-btn i {
  display: block;
  line-height: 1;
  margin: 0;
  font-size: 19px;
}

/* 파일 버튼 */
.dm-file-label.dm-compose-icon-btn {
  position: relative;
  background: #24242a;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-file-label.dm-compose-icon-btn:hover {
  background: #2b2b31;
}

/* 파일 input은 버튼 전체를 클릭 가능하게 */
.dm-file-label.dm-compose-icon-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: var(--spk-cursor-pointer);
}

/* 전송 버튼 */
.dm-send-btn {
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.24);
}

.dm-send-btn:hover {
  filter: brightness(1.06);
}

/* 예전 텍스트 제거 */
.dm-file-label span,
.dm-send-btn span {
  display: none !important;
}

/* 모바일에서도 하나의 바로 유지 */
@media (max-width: 700px) {
  .dm-compose-shell {
    gap: 7px;
    padding: 7px;
    border-radius: 20px;
  }

  .dm-compose-input-wrap textarea {
    height: 48px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 15px;
  }

  .dm-compose-icon-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 15px;
  }
}

/* 미니 채팅 전송 버튼: 둥근 정사각형 */
.spk-mini-compose button {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  flex: 0 0 46px;
  padding: 0 !important;
  border: 0;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.24);
}

.spk-mini-compose button i {
  display: block;
  line-height: 1;
  margin: 0;
  font-size: 18px;
}

.spk-mini-compose button:hover {
  filter: brightness(1.06);
}

.spk-mini-compose input {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 15px !important;
  box-sizing: border-box;
  border-radius: 14px !important;
  line-height: 46px;
}

/* ================================
   DM Profile Avatars
================================ */

.dm-thread-avatar {
  overflow: hidden;
}

.dm-thread-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.dm-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-msg.is-me .dm-msg-meta {
  justify-content: flex-end;
}

.dm-msg.is-other .dm-msg-meta {
  justify-content: flex-start;
}

.dm-msg-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-msg.is-me .dm-msg-avatar {
  order: 3;
}

.dm-msg.is-me .dm-msg-delete-form {
  order: 4;
}

.spk-mini-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spk-mini-msg.is-me .spk-mini-msg-meta {
  justify-content: flex-end;
}

.spk-mini-msg-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.spk-mini-msg.is-me .spk-mini-msg-avatar {
  order: 2;
}

/* ================================
   DM Message Meta Size Balance
================================ */

/* 메시지 상단 유저 정보 크기 조정 */
.dm-msg-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.2;
}

/* 프로필 이미지 확대 */
.dm-msg-avatar {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 닉네임 강조 */
.dm-msg-meta strong {
  font-size: 15px;
  font-weight: 900;
  color: #f4f4f5;
  letter-spacing: -0.02em;
}

/* 시간은 살짝 작고 흐리게 */
.dm-msg-meta span {
  font-size: 13px;
  color: #a1a1aa;
}

/* 내 메시지 쪽 정렬 유지 */
.dm-msg.is-me .dm-msg-meta {
  justify-content: flex-end;
}

/* 상대 메시지 쪽 정렬 유지 */
.dm-msg.is-other .dm-msg-meta {
  justify-content: flex-start;
}

/* 삭제 버튼도 메타 크기에 맞춰 균형 조정 */
.dm-msg-delete-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  flex: 0 0 32px !important;
}

.dm-msg-delete-btn i {
  font-size: 13px;
}

/* ================================
   Mini Chat Meta Size Balance
================================ */

.spk-mini-msg-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #a1a1aa;
}

.spk-mini-msg-avatar {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 50%;
  object-fit: cover;
}

.spk-mini-msg-meta span {
  font-size: 12px;
  color: #a1a1aa;
}

/* ================================
   New Message Notice Inside Chat Box
================================ */

.dm-chat-box-wrap {
  position: relative;
  width: 100%;
}

.dm-new-message-notice {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 56px));
  max-width: 760px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: var(--spk-cursor-pointer);
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  box-shadow:
    0 14px 30px rgba(139, 92, 246, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 5;
}

.dm-new-message-notice[hidden] {
  display: none !important;
}

/* ===== LEGACY SOURCE: index.css ===== */
/* 추천 동영상 박스 */
.recommend-box {
  background: linear-gradient(to bottom, #191919, #121212);
  border-radius: 12px;
  padding: 16px;
  width: 660px; /* 여유 있게 3x2 배치 가능 */
  min-height: 440px; /* 공지사항과 동일한 높이 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 추천 동영상 타이틀 */
.recommend-box h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.recommend-box h2::before {
  margin-right: 6px;
  font-size: 16px;
}

/* 동영상 카드 그리드 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 가로 3개 */
  gap: 12px;
}

.icon, h2 i {
  margin-right: 8px;
  color: #ff4d4d; /* 강조 색상 */
}


.index-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: nowrap;  /* 세로 쌓임 방지 */
}


.section-header {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 16px;
  padding-left: 4px;
}

.section-header i {
  color: #ff3366;
  margin-right: 10px;
}

/* 추천 동영상 박스 오른쪽 */
.video-column {
  width: 48%;
  min-width: 400px;
  background-color: #111;
  border-radius: 12px;
  padding: 20px;
}

.section-title2 {
  font-size: 1.2em;
  margin: 10px 30px;
  color: white;
}

.scroll-container {
  position: relative;
  overflow: hidden;
}

.media-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;

  scroll-behavior: smooth;
  padding: 24px 36px 16px 12px;

  scroll-padding-left: 12px;
  scrollbar-width: none;

  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.media-row::-webkit-scrollbar {
  display: none;
}

.video-card, .image-card, .mg-card {
  min-width: 200px;
  max-width: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumbnail, .image-thumbnail, .manga-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-container {
  position: relative;
}

.scroll-btn.side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: linear-gradient(
    180deg,
    #FF8FA3 0%,
    #FF7A93 45%,
    #FF6B88 100%
  );
  box-shadow:
    0 6px 16px rgba(255, 107, 136, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  color: #fff;
  font-size: 20px;
  font-weight: bold;

  cursor: var(--spk-cursor-pointer);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 15;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.scroll-btn.side.left {
  left: 12px;
}

.scroll-btn.side.right {
  right: 12px;
}

.scroll-btn.side:hover {
  transform: translateY(-50%) scale(1.1);
  background: #ff4f70;
}

.scroll-btn.side.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.scroll-btn.side.disabled{
  opacity: 0 !important;
  pointer-events: none;
  cursor: var(--spk-cursor-default);
}

/* =========================================================
   Home Page - Modern Media Layout
   ========================================================= */

.home-hero,
.home-section{
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-hero{
  padding: 18px 16px 10px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.hero-banner-card,
.hero-side-card,
.home-scroll-box{
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top left, rgba(255,107,136,0.10), transparent 34%),
    rgba(255,255,255,0.035);
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
}

.hero-banner-card{
  overflow: hidden;
  border-radius: 24px;
}

.hero-banner-inner{
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 6;
  min-height: 0;
  background: #050505;
  overflow: hidden;
}

.hero-banner-inner img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
}

.main-banner-bg{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.hero-banner-shade{
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(to top, rgba(0,0,0,0.38), transparent 48%),
    radial-gradient(circle at 18% 14%, rgba(255,107,136,0.16), transparent 38%);
}

.hero-side-card{
  border-radius: 24px;
  padding: 22px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 260px;
}

.hero-side-title{
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: rgba(255,255,255,0.96);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: nowrap;
}

.hero-side-title i{
  color: #ff6b88;
}

.hero-side-text{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.55;
}


/* =========================================================
   Section Header
   ========================================================= */

.home-section{
  padding: 22px 16px 0;
}

.home-section-head{
  margin-bottom: 12px;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.home-section-kicker{
  margin-bottom: 4px;

  color: #ff6b88;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section-title{
  margin: 0;

  color: rgba(255,255,255,0.96);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.02em;
}


/* =========================================================
   Scroll Box
   ========================================================= */

.home-scroll-box{
  position: relative;

  border-radius: 22px;
  padding: 14px;
  overflow: hidden;
}

.media-row{
  display: flex;
  gap: 14px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  padding: 2px 2px 8px;
}

.media-row::-webkit-scrollbar{
  height: 8px;
}

.media-row::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.045);
  border-radius: 999px;
}

.media-row::-webkit-scrollbar-thumb{
  background: rgba(255,107,136,0.48);
  border-radius: 999px;
}

.media-row::-webkit-scrollbar-thumb:hover{
  background: rgba(255,107,136,0.72);
}


/* =========================================================
   Scroll Buttons
   ========================================================= */

.scroll-btn.side{
  position: absolute;
  top: 50%;
  z-index: 10;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;

  background: rgba(0,0,0,0.54);
  color: #fff;

  cursor: var(--spk-cursor-pointer);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);

  opacity: 0;
  transition:
    opacity .16s ease,
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.home-scroll-box:hover .scroll-btn.side{
  opacity: 1;
}

.scroll-btn.side.left{
  left: 12px;
}

.scroll-btn.side.right{
  right: 12px;
}

.scroll-btn.side:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}

.scroll-btn.side:active{
  transform: translateY(-50%) scale(0.96);
}


/* =========================================================
   Video Cards
   ========================================================= */

.home-video-card{
  flex: 0 0 250px;
  scroll-snap-align: start;
  min-width: 0;
}

.home-video-card a,
.home-image-card a,
.home-manga-card a{
  color: inherit;
  text-decoration: none;
}

.home-video-thumb{
  position: relative;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  border-radius: 16px;
  background: #000;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.home-video-thumb img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition:
    transform .22s ease,
    filter .22s ease;
  
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-video-card:hover .home-video-thumb img{
  transform: scale(1.055);
  filter: brightness(1.08);
}

.home-video-duration{
  position: absolute;
  right: 8px;
  bottom: 8px;

  padding: 3px 7px;
  border-radius: 8px;

  background: rgba(0,0,0,0.76);
  color: #fff;

  font-size: 12px;
  font-weight: 800;
}

.home-video-info{
  padding: 10px 2px 0;
}

.home-video-title{
  margin: 0;

  color: rgba(255,255,255,0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-video-author{
  margin: 6px 0 0;

  color: rgba(255,255,255,0.58);
  font-size: 12px;
  line-height: 1.25;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-stats{
  margin-top: 8px;

  display: flex;
  align-items: center;
  gap: 7px;
}

.home-video-stats span{
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.70);

  font-size: 12px;
  font-weight: 800;
}

.home-video-stats i{
  color: #ff6b88;
}

/* =========================================================
   Video play overlay
   ========================================================= */

.home-video-play{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);

  background: rgba(0,0,0,0.48);
  color: #fff;

  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;

  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    background .18s ease;
}

.home-video-play i{
  margin-left: 3px;
  font-size: 17px;
}

.home-video-card:hover .home-video-play{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.home-video-card:hover .home-video-play{
  background: rgba(255,107,136,0.88);
}

/* =========================================================
   Image Cards
   ========================================================= */

.home-image-card{
  flex: 0 0 185px;
  scroll-snap-align: start;
}

.home-image-thumb{
  position: relative;
  aspect-ratio: 3 / 4;

  overflow: hidden;
  border-radius: 18px;
  background: #111;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.home-image-thumb img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition:
    transform .24s ease,
    filter .24s ease;
}

.home-image-card:hover .home-image-thumb img{
  transform: scale(1.06);
  filter: brightness(1.08);
}

.home-image-count{
  position: absolute;
  right: 9px;
  top: 9px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 8px;
  border-radius: 999px;

  background: rgba(0,0,0,0.68);
  color: #fff;

  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

/* =========================================================
   Image like button
   ========================================================= */

.home-image-link{
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-image-like{
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;

  min-width: 46px;
  height: 30px;
  padding: 0 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;

  background: rgba(0,0,0,0.58);
  color: #fff;

  font-size: 12px;
  font-weight: 900;

  cursor: var(--spk-cursor-pointer);
  backdrop-filter: blur(8px);

  opacity: 0.92;
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease,
    opacity .15s ease;
}

.home-image-like i{
  color: #ff6b88;
  font-size: 12px;
}

.home-image-like:hover{
  opacity: 1;
  background: rgba(255,107,136,0.86);
  border-color: rgba(255,255,255,0.28);
}

.home-image-like:hover i{
  color: #fff;
}

.home-image-like:active{
  transform: scale(0.96);
}

/* liked 상태일 때 하트 아이콘/숫자 흰색 고정 */
.home-image-like.image-like-btn.liked,
.home-image-like.liked{
  background: #ff6b88;
  border-color: #ff6b88;
  color: #fff;
}

.home-image-like.image-like-btn.liked i,
.home-image-like.image-like-btn.liked .like-count,
.home-image-like.liked i,
.home-image-like.liked .like-count{
  color: #fff !important;
}

/* hover 중에도 흰색 유지 */
.home-image-like.image-like-btn.liked:hover i,
.home-image-like.image-like-btn.liked:hover .like-count,
.home-image-like.liked:hover i,
.home-image-like.liked:hover .like-count{
  color: #fff !important;
}

/* =========================================================
   Manga Cards
   ========================================================= */

.home-manga-card{
  flex: 0 0 190px;
  scroll-snap-align: start;

  overflow: hidden;
  border-radius: 18px;

  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.home-manga-card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.14);
}

.home-manga-thumb{
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.home-manga-thumb img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition:
    transform .24s ease,
    filter .24s ease;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;  
}

.home-manga-card:hover .home-manga-thumb img{
  transform: scale(1.055);
  filter: brightness(1.06);
}

.home-manga-info{
  padding: 10px 10px 12px;
}

.home-manga-title{
  margin: 0;

  color: rgba(255,255,255,0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-manga-meta{
  margin-top: 9px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.home-manga-meta span{
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 800;
}

.home-manga-meta span:last-child{
  justify-content: flex-end;
}

.home-manga-meta i{
  color: #ff6b88;
}

.home-manga-flag{
  justify-content: center;
}

.home-manga-flag img{
  width: 22px;
  height: 22px;
  object-fit: cover;

  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

/* =========================================================
   Home card shape refinements
   ========================================================= */

.home-scroll-box{
  border-radius: 16px;
}

.home-video-thumb{
  border-radius: 11px;
}

.home-image-thumb{
  border-radius: 12px;
}

.home-manga-card{
  border-radius: 12px;
}

.home-manga-thumb{
  border-radius: 0;
}

.hero-banner-card,
.hero-side-card{
  border-radius: 18px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px){
  .home-hero{
    grid-template-columns: 1fr;
  }

  .hero-side-card{
    min-height: auto;
  }
}

@media (max-width: 700px){
  .home-hero,
  .home-section{
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-banner-card,
  .hero-side-card,
  .home-scroll-box{
    border-radius: 18px;
  }

  .hero-banner-inner{
    aspect-ratio: 16 / 8;
    min-height: 180px;
  }

  .hero-side-card{
    padding: 16px;
  }

  .hero-side-title{
    font-size: 19px;
  }

  .home-section-title{
    font-size: 20px;
  }

  .home-scroll-box{
    padding: 10px;
  }

  .media-row{
    gap: 11px;
  }

  .scroll-btn.side{
    display: none;
  }

  .home-video-card{
    flex-basis: 220px;
  }

  .home-image-card{
    flex-basis: 150px;
  }

  .home-manga-card{
    flex-basis: 158px;
  }
}

@media (max-width: 430px){
  .home-video-card{
    flex-basis: 205px;
  }

  .home-image-card{
    flex-basis: 138px;
  }

  .home-manga-card{
    flex-basis: 146px;
  }
}

/* ==============================
   SPKLOVE Main Mascot Banner
   잘리지 않는 반응형 배너
   ============================== */

.spk-mascot-hero {
  width: 100%;
  max-width: 100%;
  margin: 56px 0 44px;
  padding: 0;
  box-sizing: border-box;
}

/* 아래 추천 섹션과 같은 실제 콘텐츠 폭 */
.spk-mascot-banner {
  position: relative;
  width: calc(100% - 64px);
  max-width: 1720px;
  margin: 0 auto;

  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 24px;

  background:
    radial-gradient(circle at 78% 45%, rgba(255, 87, 165, 0.18), transparent 34%),
    radial-gradient(circle at 24% 35%, rgba(255, 56, 145, 0.12), transparent 36%),
    linear-gradient(135deg, #08080a 0%, #141014 48%, #09090b 100%);

  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(255, 64, 150, 0.12),
    inset 0 0 0 1px rgba(255, 120, 180, 0.12);
}

.spk-mascot-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

/* 이미지 주변 빈 공간이 생기더라도 자연스럽게 보이도록 */
.spk-mascot-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 38%, rgba(255, 70, 150, 0.08)),
    radial-gradient(circle at 50% 100%, rgba(255, 70, 160, 0.12), transparent 42%);
}

.spk-mascot-banner-img {
  position: relative;
  z-index: 1;
}

/* 큰 화면 */
@media (min-width: 1600px) {
  .spk-mascot-hero {
    max-width: 1820px;
    margin-top: 58px;
  }
}

@media (max-width: 1280px) {
  .spk-mascot-hero {
    margin-top: 38px;
    margin-bottom: 36px;
  }

  .spk-mascot-banner {
    width: calc(100% - 48px);
    border-radius: 22px;
  }
}

@media (max-width: 900px) {
  .spk-mascot-hero {
    margin-top: 24px;
    margin-bottom: 30px;
  }

  .spk-mascot-banner {
    width: calc(100% - 32px);
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .spk-mascot-hero {
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .spk-mascot-banner {
    width: calc(100% - 20px);
    border-radius: 14px;
  }
}

/* ===== LEGACY SOURCE: video.css ===== */
/* =========================================================
   Video Cards
   ========================================================= */

.home-video-card{
  flex: 0 0 250px;
  scroll-snap-align: start;
  min-width: 0;
}

.home-video-card a,
.home-image-card a,
.home-manga-card a{
  color: inherit;
  text-decoration: none;
}

.home-video-thumb{
  position: relative;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  border-radius: 16px;
  background: #000;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.home-video-thumb img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition:
    transform .22s ease,
    filter .22s ease;

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-video-card:hover .home-video-thumb img{
  transform: scale(1.055);
  filter: brightness(1.08);
}

.home-video-duration{
  position: absolute;
  right: 8px;
  bottom: 8px;

  padding: 3px 7px;
  border-radius: 8px;

  background: rgba(0,0,0,0.76);
  color: #fff;

  font-size: 12px;
  font-weight: 800;
}

.home-video-info{
  padding: 10px 2px 0;
}

.home-video-title{
  margin: 0;

  color: rgba(255,255,255,0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-video-author{
  margin: 6px 0 0;

  color: rgba(255,255,255,0.58);
  font-size: 12px;
  line-height: 1.25;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-stats{
  margin-top: 8px;

  display: flex;
  align-items: center;
  gap: 7px;
}

.home-video-stats span{
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.70);

  font-size: 12px;
  font-weight: 800;
}

.home-video-stats i{
  color: #ff6b88;
}

/* =========================================================
   Video play overlay
   ========================================================= */

.home-video-play{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;

  width: 46px;
  height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);

  background: rgba(0,0,0,0.48);
  color: #fff;

  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;

  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    background .18s ease;
}

.home-video-play i{
  margin-left: 3px;
  font-size: 17px;
}

.home-video-card:hover .home-video-play{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.home-video-card:hover .home-video-play{
  background: rgba(255,107,136,0.88);
}

.home-video-thumb{
  border-radius: 11px;
}

/* ===== LEGACY SOURCE: image.css ===== */
/* =========================================================
   Image Cards
   ========================================================= */

.home-image-card{
  flex: 0 0 185px;
  scroll-snap-align: start;
}

.home-image-thumb{
  position: relative;
  aspect-ratio: 3 / 4;

  overflow: hidden;
  border-radius: 18px;
  background: #111;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.home-image-thumb img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition:
    transform .24s ease,
    filter .24s ease;
}

.home-image-card:hover .home-image-thumb img{
  transform: scale(1.06);
  filter: brightness(1.08);
}

.home-image-count{
  position: absolute;
  right: 9px;
  top: 9px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 8px;
  border-radius: 999px;

  background: rgba(0,0,0,0.68);
  color: #fff;

  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

/* =========================================================
   Image like button
   ========================================================= */

.home-image-link{
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-image-like{
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;

  min-width: 46px;
  height: 30px;
  padding: 0 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;

  background: rgba(0,0,0,0.58);
  color: #fff;

  font-size: 12px;
  font-weight: 900;

  cursor: var(--spk-cursor-pointer);
  backdrop-filter: blur(8px);

  opacity: 0.92;
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease,
    opacity .15s ease;
}

.home-image-like i{
  color: #ff6b88;
  font-size: 12px;
}

.home-image-like:hover{
  opacity: 1;
  background: rgba(255,107,136,0.86);
  border-color: rgba(255,255,255,0.28);
}

.home-image-like:hover i{
  color: #fff;
}

.home-image-like:active{
  transform: scale(0.96);
}

.home-image-thumb{
  border-radius: 12px;
}


/* liked 상태일 때 하트 아이콘까지 흰색 유지 */
.home-image-like.image-like-btn.liked{
  background: #ff6b88;
  border-color: #ff6b88;
  color: #fff;
}

.home-image-like.image-like-btn.liked i,
.home-image-like.image-like-btn.liked .like-count{
  color: #fff;
}

/* liked 상태에서 hover해도 색상 유지 */
.home-image-like.image-like-btn.liked:hover{
  background: #ff6b88;
  border-color: #ff6b88;
  color: #fff;
}

.home-image-like.image-like-btn.liked:hover i,
.home-image-like.image-like-btn.liked:hover .like-count{
  color: #fff;
}

/* ===== LEGACY SOURCE: manga.css ===== */
:root {
  --manga-bg: #111;
  --manga-card: #191919;
  --manga-card-2: #202020;
  --manga-line: rgba(255, 255, 255, 0.08);
  --manga-text: #f6f6f6;
  --manga-muted: #a9b1bd;
  --manga-pink: #ff6f9d;
  --manga-pink-2: #ff8aad;
  --manga-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.mg-grid-container.manga-grid {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: none;
  margin: 18px 18px 0 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 24px;
  justify-content: stretch;
  align-items: start;
}

.home-manga-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--manga-line);
  border-radius: 12px;
  background: var(--manga-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-manga-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.home-manga-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0d0d0d;
}

.home-manga-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.home-manga-card:hover .home-manga-thumb img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.home-manga-info {
  padding: 13px 14px 15px;
}

.home-manga-title {
  margin: 0 0 10px;
  min-height: 40px;
  color: var(--manga-text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-manga-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--manga-muted);
  font-size: 12px;
  font-weight: 800;
}

.home-manga-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.home-manga-meta i {
  color: var(--manga-pink);
}

.home-manga-flag img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}

.manga-empty-state {
  max-width: 680px;
  margin: 40px auto;
  padding: 42px 24px;
  border: 1px solid var(--manga-line);
  border-radius: 20px;
  background: var(--manga-card);
  color: var(--manga-muted);
  text-align: center;
}

.manga-empty-state i {
  margin-bottom: 14px;
  color: var(--manga-pink);
  font-size: 36px;
}

.manga-empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.manga-view-page {
  padding-top: 60px;
  padding-bottom: 140px;
  box-sizing: border-box;
}

.manga-reader-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.manga-reader-head {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--manga-line);
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(255, 111, 157, 0.15), transparent 34%), linear-gradient(180deg, #1b1b1b, #151515);
  box-shadow: var(--manga-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.manga-reader-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--manga-pink);
  font-size: 13px;
  font-weight: 950;
}

.manga-reader-titlebox h1 {
  margin: 0;
  color: var(--manga-text);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.25;
}

.manga-reader-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manga-reader-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--manga-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--manga-muted);
  font-size: 13px;
  font-weight: 850;
}

.manga-reader-meta i {
  color: var(--manga-pink);
}

.manga-mode-switch {
  padding: 5px;
  border: 1px solid var(--manga-line);
  border-radius: 999px;
  background: #101010;
  display: flex;
  gap: 5px;
}

.reader-mode-btn {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--manga-muted);
  font-size: 13px;
  font-weight: 950;
  cursor: var(--spk-cursor-pointer);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reader-mode-btn.active {
  background: linear-gradient(135deg, var(--manga-pink), var(--manga-pink-2));
  color: #fff;
}

.manga-reader-card {
  position: relative;
  min-height: 400px;
  border: 1px solid var(--manga-line);
  border-radius: 20px;
  background: #202020;
  box-shadow: var(--manga-shadow);
}

.reader-mode-panel {
  display: none;
}

.reader-mode-panel.active {
  display: block;
}

.manga-scroll-pages {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.manga-page {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 14px;
  border-radius: 0;
  background: #0b0b0b;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.manga-page:last-child {
  margin-bottom: 0;
}

.manga-scroll-toolbar {
  position: fixed;
  right: 28px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  width: 84px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manga-scroll-toolbar.is-collapsed {
  display: none;
}

.manga-scroll-toolbar-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.manga-scroll-toolbar-close,
.manga-scroll-toolbar-toggle {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6f9d, #ff8aad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: var(--spk-cursor-pointer);
  box-shadow: 0 10px 24px rgba(255, 111, 157, 0.24);
}

.manga-scroll-toolbar-close i,
.manga-scroll-toolbar-toggle i {
  color: #fff;
  font-size: 13px;
}

.manga-scroll-toolbar-fab {
  position: fixed;
  right: 28px;
  top: 50%;
  z-index: 41;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.96);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: var(--spk-cursor-pointer);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.manga-scroll-toolbar-fab.is-visible {
  display: flex;
}

.manga-scroll-toolbar-fab:hover {
  background: linear-gradient(135deg, #ff6f9d, #ff8aad);
}

.manga-scroll-toolbar-fab i {
  color: #fff;
  font-size: 18px;
}

.manga-scroll-tool-btn {
  width: 100%;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(8, 8, 8, 0.82);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.manga-scroll-tool-btn:hover {
  border-color: rgba(255, 111, 157, 0.45);
  background: rgba(28, 28, 28, 0.95);
}

.manga-scroll-tool-btn i {
  color: #ff6f9d;
  font-size: 15px;
}

.manga-scroll-tool-btn.is-running {
  background: linear-gradient(135deg, #ff6f9d, #ff8aad);
  border-color: transparent;
  color: #fff;
}

.manga-scroll-tool-btn.is-running i {
  color: #fff;
}

.manga-speed-menu {
  position: relative;
  width: 100%;
}

.manga-speed-current {
  width: 100%;
  min-height: 58px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(8, 8, 8, 0.82);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: var(--spk-cursor-pointer);
}

.manga-speed-current span {
  color: #aeb7c4;
  font-size: 11px;
  font-weight: 900;
}

.manga-speed-current strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.manga-speed-current i {
  margin-top: 1px;
  color: #ff6f9d;
  font-size: 11px;
  transition: transform 0.16s ease;
}

.manga-speed-menu.open .manga-speed-current {
  border-color: rgba(255, 111, 157, 0.5);
  background: rgba(28, 28, 28, 0.96);
}

.manga-speed-menu.open .manga-speed-current i {
  transform: rotate(180deg);
}

.manga-speed-options {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.98);
  transform-origin: right center;
  width: 96px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.manga-speed-menu.open .manga-speed-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.manga-speed-options button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #d8dee8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.manga-speed-options button:hover,
.manga-speed-options button.active {
  background: rgba(255, 111, 157, 0.18);
  color: #fff;
}

.manga-page-controlbar {
  z-index: 20;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid var(--manga-line);
  border-radius: 20px 20px 0 0;
  background: rgba(34, 34, 34, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.manga-page-controlbar button,
.manga-page-controlbar select,
.manga-page-counter input {
  height: 40px;
  border: 1px solid var(--manga-line);
  border-radius: 12px;
  background: #111;
  color: var(--manga-text);
  font-size: 13px;
  font-weight: 900;
  outline: 0;
}

.manga-page-controlbar button {
  min-width: 42px;
  padding: 0 13px;
  cursor: var(--spk-cursor-pointer);
}

.manga-page-controlbar button:hover:not(:disabled) {
  border-color: rgba(255, 111, 157, 0.52);
  color: #fff;
}

.manga-page-controlbar button:disabled {
  opacity: 0.35;
  cursor: var(--spk-cursor-not-allowed);
}

.manga-page-counter {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--manga-line);
  border-radius: 12px;
  background: #111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.manga-page-counter input {
  width: 58px;
  height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  text-align: center;
}

.manga-page-counter span {
  color: var(--manga-muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.manga-auto-page-box {
  display: inline-flex;
  gap: 8px;
}

#mangaAutoBtn.is-running {
  background: linear-gradient(135deg, var(--manga-pink), var(--manga-pink-2));
  border-color: transparent;
  color: #fff;
}

.manga-page-controlbar select {
  padding: 0 10px;
}

.manga-single-stage {
  position: relative;
  min-height: 520px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.manga-single-image {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 0;
  background: #0b0b0b;
  cursor: var(--spk-cursor-pointer);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
}

.manga-reader-help {
  padding: 0 24px 24px;
  color: var(--manga-muted);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.manga-reader-help i {
  color: var(--manga-pink);
}

.manga-reader-shell.is-page-mode {
  max-width: none;
  width: 100%;
  margin: 0;
}

.manga-reader-shell.is-page-mode .manga-reader-card {
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

#pageReader.reader-mode-panel.active {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  padding: 0;
  margin: 0;
  background: #000;
}

#pageReader > .manga-page-controlbar {
  position: static;
  inset: auto;
  transform: none;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(12px);
  z-index: auto;
}

#pageReader > .manga-single-stage {
  grid-row: 2;
  position: relative;
  width: 100%;
  height: calc(100vh - 230px);
  min-height: 520px;
  padding: 0;
  margin: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pageReader > .manga-single-stage > .manga-single-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

#pageReader > .manga-reader-help {
  grid-row: 3;
  position: static;
  inset: auto;
  transform: none;
  margin: 0;
  min-height: 38px;
  padding: 9px 12px;
  background: rgba(28, 28, 28, 0.96);
  color: #cfd6df;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .manga-reader-head {
    flex-direction: column;
    align-items: stretch;
  }

  .manga-mode-switch {
    width: 100%;
    border-radius: 16px;
  }

  .reader-mode-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .mg-grid-container.manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 13px;
    margin: 24px 0 0;
  }

  .home-manga-info {
    padding: 11px;
  }

  .home-manga-title {
    min-height: 36px;
    font-size: 13px;
  }

  .home-manga-meta {
    font-size: 11px;
  }

  .home-manga-flag img {
    width: 22px;
    height: 15px;
  }

  .manga-reader-head {
    padding: 20px;
    border-radius: 16px;
  }

  .manga-reader-titlebox h1 {
    font-size: 23px;
  }

  .manga-scroll-pages {
    padding: 12px;
  }

  .manga-page {
    margin-bottom: 8px;
  }

  .manga-scroll-toolbar {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 9px;
  }

  .manga-scroll-toolbar-body {
    flex-direction: row;
    align-items: center;
  }

  .manga-scroll-tool-btn,
  .manga-speed-current {
    width: 58px;
    min-height: 50px;
  }

  .manga-scroll-toolbar-close,
  .manga-scroll-toolbar-toggle {
    top: -14px;
    right: -10px;
  }

  .manga-scroll-toolbar-fab {
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .manga-speed-options {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) scale(0.98);
    transform-origin: bottom center;
  }

  .manga-speed-menu.open .manga-speed-options {
    transform: translateX(-50%) scale(1);
  }

  .manga-page-controlbar {
    padding: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .manga-page-controlbar::-webkit-scrollbar {
    height: 0;
  }

  #pageReader > .manga-page-controlbar {
    padding: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #pageReader > .manga-single-stage {
    height: calc(100vh - 190px);
    min-height: 420px;
  }

  #pageReader > .manga-reader-help {
    min-height: 34px;
    padding: 7px 10px;
    gap: 10px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .mg-grid-container.manga-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-manga-info {
    padding: 10px;
  }

  .home-manga-title {
    font-size: 12px;
  }

  .home-manga-meta {
    gap: 5px;
    font-size: 10px;
  }
}

/* ===== LEGACY SOURCE: video_player.css ===== */
/* =========================================================
   video_player.css
   Clean version
   ========================================================= */

/* =========================================================
   Watch Layout
   ========================================================= */
.watch-page{
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.watch-main{
  min-width: 0;
  overflow: hidden;
}


/* =========================================================
   Sidebar Items
   ========================================================= */
.watch-sidebar-title{
  margin: 2px 6px 10px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}

.watch-sidebar-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-suggest{
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;

  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
}

.watch-suggest:hover{
  background: rgba(255,255,255,0.06);
}

.watch-suggest-thumb{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.watch-suggest-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-suggest-duration{
  position: absolute;
  right: 6px;
  bottom: 6px;

  padding: 2px 6px;
  border-radius: 8px;

  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
}

.watch-suggest-title{
  max-height: 2.5em;
  overflow: hidden;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.watch-suggest-meta{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}


/* =========================================================
   Video Info
   ========================================================= */
.video-wrapper{
  width: 100%;
  max-width: none;
  margin: 0;
}

.video-topbar{
  margin-top: 12px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.video-title{
  margin: 0;

  color: rgba(255,255,255,0.95);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.video-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.like-btn,
.download-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;

  background: #2e2e2e;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;

  cursor: var(--spk-cursor-pointer);
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.like-btn:hover,
.download-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.like-btn:active,
.download-btn:active{
  transform: scale(0.98);
}

.like-btn.active{
  background: rgba(255,0,51,0.15);
  border-color: rgba(255,0,51,0.35);
}

.like-btn:disabled,
.like-btn[disabled]{
  opacity: 0.55;
  cursor: var(--spk-cursor-not-allowed);
}

.video-meta-box{
  margin-top: 12px;
  padding: 12px 14px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  background: #2e2e2e;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   Video Player
   ========================================================= */
.video-player{
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background: #000;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,0,0,0.65);
}

.video-player > video{
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  background: #000;
}

.video-player > .controls{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82),
    rgba(0,0,0,0)
  );

  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);

  transition:
    opacity .22s ease,
    transform .22s ease;
}

.video-player.hide-controls > .controls{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0,8px,0);
}


/* =========================================================
   Player Buttons
   ========================================================= */
.video-player .controls .btn,
#playPause{
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;

  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;

  cursor: var(--spk-cursor-pointer);
  transition:
    background .15s ease,
    transform .15s ease;
}

.video-player .controls .btn:hover,
#playPause:hover{
  background: rgba(255,255,255,0.10);
}

.video-player .controls .btn:active,
#playPause:active{
  transform: scale(0.98);
}

#currentTime,
#duration{
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}


/* =========================================================
   Range Inputs
   ========================================================= */
.video-player .controls input[type="range"]{
  flex: 1;
  height: 4px;

  appearance: none;
  outline: none;

  background: rgba(255,255,255,0.25);
  border-radius: 999px;
}

.video-player .controls input[type="range"]::-webkit-slider-thumb{
  appearance: none;

  width: 14px;
  height: 14px;
  border-radius: 50%;

  background: #ff6b88;
  box-shadow: 0 0 0 3px rgba(255,0,51,0.18);
}

.video-player .controls input[type="range"]::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;

  background: #ff6b88;
}


/* =========================================================
   Volume
   ========================================================= */
.volume-control{
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-control input[type="range"]{
  width: 90px;
  flex: 0 0 auto;
}

.volume-icon{
  color: #fff;
  font-size: 18px;
  opacity: 0.95;
}


/* =========================================================
   Fullscreen
   ========================================================= */
.video-player:fullscreen,
.video-player:-webkit-full-screen{
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;

  max-width: none;
  max-height: none;
  aspect-ratio: auto;

  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;

  background: #000;
  box-shadow: none;
}

.video-player:fullscreen > video,
.video-player:-webkit-full-screen > video{
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;

  object-fit: contain;
  background: #000;
}

.video-player:fullscreen > .controls,
.video-player:-webkit-full-screen > .controls{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.65) 55%,
    rgba(0,0,0,0) 100%
  );

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);
}

/* fullscreen에서는 visibility:hidden을 쓰지 않는다.
   Chrome/Edge에서 controls layer가 다시 안 그려지는 문제를 줄이기 위함 */
.video-player:fullscreen.hide-controls > .controls,
.video-player:-webkit-full-screen.hide-controls > .controls{
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(0,8px,0);
}


/* =========================================================
   Fullscreen Sidebar Overlay
   ========================================================= */
.video-player .watch-sidebar{
  position: absolute;
  top: 0;
  right: 0;
  z-index: 60;

  width: 420px;
  height: 100%;
  box-sizing: border-box;
  padding: 12px;
  overflow: auto;

  background: rgba(20,20,20,0.92);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;

  opacity: 0;
  pointer-events: none;
  transform: translateX(102%);

  transition:
    opacity .22s ease,
    transform .22s ease;
}

.video-player.show-sidebar .watch-sidebar,
.video-player .watch-sidebar:hover{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

@media (max-width: 600px){
  .video-player .watch-sidebar{
    width: min(86vw, 420px);
  }
}


/* =========================================================
   Comment Section
   ========================================================= */
.comment-section{
  margin-top: 18px;
  padding: 14px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);
}

.comment-section h3{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 900;
}

.comment-input-box{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-avatar{
  width: 40px;
  height: 40px;
  object-fit: cover;

  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;

  background: rgba(255,255,255,0.08);
}

.comment-input-box textarea,
.comment-edit-area textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;

  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);

  outline: none;
}

.comment-input-box textarea{
  flex: 1;
  min-height: 42px;
  resize: vertical;
}

.comment-input-box textarea:focus,
.comment-edit-area textarea:focus{
  border-color: rgba(255,0,51,0.35);
}

.comment-submit-box{
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.comment-button,
.edit-btn,
.delete-btn2,
.comment-edit-save,
.comment-edit-cancel{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;

  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);

  cursor: var(--spk-cursor-pointer);
  text-decoration: none;
  transition:
    background .15s ease,
    transform .15s ease;
}

.comment-button{
  padding: 9px 14px;
  border-radius: 12px;
}

.edit-btn,
.delete-btn2{
  padding: 5px 10px;
  font-size: 12px;
}

.comment-edit-save,
.comment-edit-cancel{
  padding: 7px 10px;
}

.comment-button:hover,
.edit-btn:hover,
.delete-btn2:hover,
.comment-edit-save:hover,
.comment-edit-cancel:hover{
  background: rgba(255,255,255,0.10);
}

.comment-button:active,
.edit-btn:active,
.delete-btn2:active,
.comment-edit-save:active,
.comment-edit-cancel:active{
  transform: scale(0.98);
}

.comment-list{
  margin-top: 14px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment{
  display: flex;
  gap: 10px;
}

.comment-body{
  flex: 1;
  min-width: 0;
}

.comment-header{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 4px;
}

.comment-time{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.comment-content{
  margin: 0;

  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  word-break: break-word;
}

.comment-edit-area textarea{
  margin-top: 8px;
}

.comment-edit-actions{
  margin-top: 8px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-edit-msg{
  color: rgba(255,255,255,0.70);
  font-size: 12px;
}


/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 600px){
  .watch-page{
    padding: 12px;
  }

  .video-topbar{
    flex-direction: column;
  }

  .video-actions{
    width: 100%;
    justify-content: flex-start;
  }

  .volume-control input[type="range"]{
    width: 70px;
  }
}

/* 영상 시청페이지 */
/* =========================================================
   Watch Page Modern Skin + VX Recommended Sidebar
   기존 watch-page grid 구조 유지 / 중복 spk layout 제거
   ========================================================= */

/* watch layout 강제 정리 */
.watch-page{
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 18px 16px 56px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.watch-main{
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
}

/* 왼쪽 메인 카드 */
.video-wrapper{
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: #1B1B1B;
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.video-player{
  border-radius: 14px 14px 0 0;
  box-shadow: none;
}

.spk-video-info-panel{
  padding: 14px 14px 16px;
  background: #1B1B1B;
}

/* 제목/버튼 */
.video-topbar{
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.spk-video-heading{
  min-width: 0;
}

.spk-watch-label{
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;

  background: #2a2a2a;
  color: rgba(255,255,255,0.86);

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.spk-watch-label i{
  color: #ff6b88;
  font-size: 12px;
}

.video-title{
  margin: 0;

  color: #f4f4f4;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.video-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.like-btn,
.download-btn,
.spk-watch-action-btn{
  min-height: 40px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  background: #2a2a2a;
  color: #f3f3f3;

  font-size: 14px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: none;
  cursor: var(--spk-cursor-pointer);

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.like-btn:hover,
.download-btn:hover,
.spk-watch-action-btn:hover{
  background: #272727;
  border-color: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateY(-1px);
}

.like-btn:active,
.download-btn:active,
.spk-watch-action-btn:active{
  transform: translateY(0);
}

.like-btn i,
.download-btn i,
.spk-watch-action-btn i{
  color: #ff6b88 !important;
  font-size: 14px;
}

.like-btn.active,
.spk-watch-like-btn.active{
  background: #2a1b20;
  border-color: rgba(255,107,136,0.45);
  color: #fff;
}

.like-btn:disabled,
.like-btn[disabled],
.spk-watch-action-btn.is-disabled,
.spk-watch-action-btn:disabled{
  opacity: .45;
  cursor: var(--spk-cursor-not-allowed);
  pointer-events: none;
}

/* 메타 박스 */
.video-meta-box,
.spk-video-meta-box{
  margin-top: 14px;
  padding: 12px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;

  background: #161616;
  color: inherit;
  font-size: inherit;
  line-height: normal;
}

.spk-meta-item{
  min-width: 0;
  padding: 8px 11px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;

  background: #202020;
}

.spk-meta-label{
  display: inline;
  margin: 0;

  color: rgba(255,255,255,0.48);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.spk-meta-label::after{
  content: ":";
}

.spk-meta-value{
  display: inline;

  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 800;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spk-meta-keywords{
  flex: 1 1 100%;
  align-items: flex-start;
}

.spk-meta-keywords .spk-meta-value{
  white-space: normal;
  line-height: 1.45;
}

/* =========================================================
   VX Recommended Sidebar
   다른 CSS와 충돌하지 않는 독립 클래스
   ========================================================= */

.vx-rec-panel{
  grid-column: 2;
  grid-row: 1;

  position: sticky;
  top: 16px;
  align-self: start;

  width: 100%;
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;
  padding: 16px;

  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: #1B1B1B;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);

  scrollbar-width: thin;
  scrollbar-color: rgba(255,107,136,0.55) rgba(255,255,255,0.04);
}

.vx-rec-panel::-webkit-scrollbar{
  width: 8px;
}

.vx-rec-panel::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.vx-rec-panel::-webkit-scrollbar-thumb{
  background: rgba(255,107,136,0.58);
  border-radius: 999px;
}

.vx-rec-panel::-webkit-scrollbar-thumb:hover{
  background: rgba(255,107,136,0.78);
}

.vx-rec-head{
  padding: 0 4px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.vx-rec-kicker{
  margin-bottom: 6px;
  color: #ff6b88;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vx-rec-title{
  color: rgba(255,255,255,0.96);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vx-rec-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vx-rec-item{
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;

  padding: 9px;
  border-radius: 12px;

  color: inherit;
  text-decoration: none;

  background: transparent;

  transition:
    background .16s ease,
    transform .16s ease;
}

.vx-rec-item:hover{
  background: #202020;
  transform: translateY(-1px);
}

.vx-rec-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #050505;
}

.vx-rec-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-rec-duration{
  position: absolute;
  right: 6px;
  bottom: 6px;

  padding: 3px 7px;
  border-radius: 8px;

  background: rgba(0,0,0,0.76);
  color: #fff;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.vx-rec-info{
  min-width: 0;
  padding-top: 1px;
}

.vx-rec-video-title{
  color: rgba(255,255,255,0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

.vx-rec-meta{
  margin-top: 6px;

  color: rgba(255,255,255,0.56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 댓글 디자인 유지 */
.spk-comment-panel{
  margin-top: 16px;
  padding: 16px;

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;

  background: #1B1B1B;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.spk-comment-head{
  margin-bottom: 14px;
}

.spk-comment-head h3{
  margin: 0;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 900;
}

.spk-comment-head i{
  color: #ff6b88;
}

.spk-comment-input-box textarea{
  min-height: 48px;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;

  background: #242424;
  color: rgba(255,255,255,0.92);
}

.spk-comment-input-box textarea:focus{
  border-color: rgba(255,107,136,0.35);
}

.spk-comment-submit{
  min-height: 38px;
  padding: 0 16px;

  border: 1px solid rgba(255,107,136,0.48);
  border-radius: 12px;

  background: #ff6b88;
  color: #fff;

  font-weight: 900;
}

.spk-comment-submit:hover{
  background: #ff7994;
}

.spk-comment{
  padding: 12px;

  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;

  background: #161616;
}

.spk-comment-user{
  color: #fff;
  text-decoration: none;
}

.spk-comment-user:hover{
  color: #ff6b88;
}

/* 반응형 */
@media (max-width: 900px){
  .watch-page{
    grid-template-columns: 1fr;
    padding: 12px 12px 42px;
  }

  .watch-main{
    grid-column: 1;
  }

  .vx-rec-panel{
    grid-column: 1;
    grid-row: auto;

    position: static;
    max-height: none;
    overflow: visible;

    margin-top: 16px;
  }
}

@media (max-width: 760px){
  .video-topbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .video-actions{
    width: 100%;
  }

  .like-btn,
  .download-btn,
  .spk-watch-action-btn{
    min-height: 38px;
  }

  .video-title,
  .spk-watch-title{
    font-size: 19px;
  }

  .video-meta-box,
  .spk-video-meta-box{
    display: grid;
    grid-template-columns: 1fr;
  }

  .spk-meta-item{
    width: 100%;
    box-sizing: border-box;
  }

  .vx-rec-item{
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

@media (max-width: 480px){
  .like-btn,
  .download-btn,
  .spk-watch-action-btn{
    flex: 1;
  }

  .vx-rec-item{
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* =========================================================
   Watch layout + recommended sidebar
   원하는 동작:
   - 스크롤 시 오른쪽 탭 고정
   - 브라우저 폭이 줄면, 동영상이 너무 작아지기 전에 아래로 이동
   ========================================================= */

.watch-page{
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 18px 16px 56px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.watch-main{
  min-width: 0;
  overflow: hidden;
}

/* -------------------------
   Recommended sidebar
   ------------------------- */
.vx-rec-panel{
  grid-column: 2;
  grid-row: 1;

  position: sticky;
  align-self: start;

  top: 12px;
  height: calc(110dvh + 80px); /* 움직이는 문제 해결 부분 아래까지*/
  max-height: calc(120dvh + 80px);
  min-height: calc(100dvh + 20px);

  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;
  padding: 16px;

  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: #1B1B1B;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);

  scrollbar-width: thin;
  scrollbar-color: rgba(255,107,136,0.55) rgba(255,255,255,0.04);
}

.vx-rec-panel::-webkit-scrollbar{
  width: 8px;
}

.vx-rec-panel::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.vx-rec-panel::-webkit-scrollbar-thumb{
  background: rgba(255,107,136,0.58);
  border-radius: 999px;
}

.vx-rec-panel::-webkit-scrollbar-thumb:hover{
  background: rgba(255,107,136,0.78);
}

.vx-rec-head{
  padding: 0 4px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.vx-rec-kicker{
  margin-bottom: 6px;
  color: #ff6b88;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vx-rec-title{
  color: rgba(255,255,255,0.96);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vx-rec-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vx-rec-item{
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;

  padding: 9px;
  border-radius: 12px;

  color: inherit;
  text-decoration: none;
  background: transparent;

  transition: background .16s ease, transform .16s ease;
}

.vx-rec-item:hover{
  background: #202020;
  transform: translateY(-1px);
}

.vx-rec-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #050505;
}

.vx-rec-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-rec-duration{
  position: absolute;
  right: 6px;
  bottom: 6px;

  padding: 3px 7px;
  border-radius: 8px;

  background: rgba(0,0,0,0.76);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.vx-rec-info{
  min-width: 0;
  padding-top: 1px;
}

.vx-rec-video-title{
  color: rgba(255,255,255,0.94);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vx-rec-meta{
  margin-top: 6px;

  color: rgba(255,255,255,0.56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   핵심
   브라우저가 이 정도 이하로 줄면
   메인 동영상이 작아지기 전에 sidebar를 아래로 내린다.
   1500px은 네 스크린샷 기준으로 꽤 적절한 시작값.
   필요하면 1450 / 1550으로 조절 가능.
   ========================================================= */
@media (max-width: 1400px){
  .watch-page{
    grid-template-columns: 1fr;
  }

  .watch-main{
    grid-column: 1;
  }

  .vx-rec-panel{
    grid-column: 1;
    grid-row: auto;

    position: static;
    top: auto;

    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;

    overflow: visible;
    overflow-y: visible;
    overflow-x: hidden;

    margin-top: 16px;
    align-self: stretch;
  }

  .vx-rec-list{
    height: auto;
    min-height: 0;
    max-height: none;

    overflow: visible;

    display: flex;
    flex-direction: column;
  }

  .vx-rec-item{
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 760px){
  .vx-rec-item{
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

@media (max-width: 480px){
  .vx-rec-item{
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* =========================
   Video Like Toggle State
========================= */

.spk-watch-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.spk-watch-like-btn {
  border: 0;
  cursor: var(--spk-cursor-pointer);
}

.spk-watch-like-btn:disabled {
  opacity: 0.55;
  cursor: var(--spk-cursor-not-allowed);
}

.spk-watch-like-btn.active {
  background: rgba(255, 111, 156, 0.14);
  color: #ff6f9c;
  border-color: rgba(255, 111, 156, 0.24);
}

.spk-watch-like-btn.active i {
  color: #ff6f9c;
}

.spk-watch-like-btn.active:hover {
  background: rgba(255, 111, 156, 0.19);
}

/* ===== LEGACY SOURCE: arca_board.css ===== */
#suneditor-portal .se-dialog       { z-index: 2147483647 !important; }
#suneditor-portal .se-dialog-back  { z-index: 2147483646 !important; }
/* ===================================
    자체 커뮤니티 스타일 made by spklove
   =================================== */
.arc-board{
  --board-page-max: 1480px;
  --board-pad-x: 20px;
  --board-pad-y: 20px;
  --board-bg-app:#0f0f10;
  --board-bg-1:#161616;
  --board-bg-2:#1b1c1f;
  --board-line:#26272b;
  --board-text:#e9eaec;
  --board-text-dim:#a9acb3;
  --board-brand:#ff6b88;
  --board-radius-lg:14px;
  --board-radius-md:10px;
  --board-shadow:0 10px 24px rgba(0,0,0,.35);
}

.board-wrap{
  max-width: var(--board-page-max);
  margin: 0 auto;
  padding: var(--board-pad-y) var(--board-pad-x);
  box-sizing:border-box;
  font-size: 15px;
  line-height: 1.55;
  color: var(--board-text);
}

.board-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.board-header h2{
  font-size:22px;
  font-weight:800;
  letter-spacing:.2px;
}
.board-controls .write-btn{
  background: var(--board-brand);
  color:#e9eaec;
  padding:10px 14px;
  font-weight:800;
  border-radius:12px;
  text-decoration:none;
  border:1px solid transparent;
  transition:.15s ease;
}
.board-controls .write-btn:hover{ filter:brightness(1.05); }

.board-tabs{
  display:flex;
  gap:8px;
  padding:10px;
  margin-bottom:14px;
  background:var(--board-bg-1);
  border:1px solid var(--board-line);
  border-radius: var(--board-radius-lg);
  box-shadow: var(--board-shadow);
}
.board-tabs a{
  color:var(--board-text-dim);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  transition:.15s ease;
  white-space:nowrap;
}
.board-tabs a:hover{
  color:var(--board-text);
  background:var(--board-bg-2);
  border-color:var(--board-line);
}
.board-tabs a.active{
  background:var(--board-brand);
  color:#e9eaec;
  border-color:transparent;
}

.board-table{
  background:var(--board-bg-1);
  border:1px solid var(--board-line);
  border-radius: var(--board-radius-lg);
  box-shadow: var(--board-shadow);
  overflow:hidden;
}

.arc-board{ --end-gutter: 12px; }

.board-table-header,
.board-table-row{
  display: grid !important;
  /* px 고정 대신 clamp로 유연하게 줄어들도록 설정 */
  grid-template-columns:
    clamp(56px,  6vw, 70px)   /* 번호 */
    clamp(68px,  7vw, 98px)   /* 카테고리 */
    minmax(160px, 1fr)        /* 제목(가변) */
    clamp(90px, 10vw,140px)   /* 작성자 — 축소 */
    clamp(96px, 12vw,130px)   /* 작성일 — 촘촘 */
    clamp(58px,  8vw, 80px)   /* 조회   — 촘촘 */
    clamp(52px,  7vw, 64px);   /* 추천   — 촘촘 */
  column-gap: 12px !important;            /* 번호·카테고리가 붙지 않도록 */
  align-items: center;
  box-sizing: border-box;
}

.board-table-header > div,
.board-table-row    > div{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 12px 14px;
}

.board-table-header .col-cat,
.board-table-row    .col-cat{
  text-align: center;
  justify-self: center;
}

.board-table-header .col-title,
.board-table-row    .col-title{ padding-left: 16px; }

.col-title a, .col-user a{
  display:block; min-width:0; overflow:hidden;
  white-space:nowrap; text-overflow:ellipsis;
  text-decoration:none; color:#e8e8e8;
}

.board-table-header .col-user,
.board-table-row    .col-user,
.board-table-header .col-date,
.board-table-row    .col-date{
  text-align:center;
  justify-self:center;
}

.board-table-header .col-num,
.board-table-row    .col-num{ text-align:center; justify-self:center; padding-right: 10px; }

.board-table-header .col-views,
.board-table-row    .col-views,
.board-table-header .col-likes,
.board-table-row    .col-likes{
  text-align:center; justify-self:center;
}

.col-cat{ justify-self:start; text-align:left; }

.board-table-header{
  background:var(--board-bg-2);
  color:var(--text-dim);
  font-weight:800;
  border-bottom:1px solid var(--board-line);
}
.board-table-row{
  border-bottom:1px solid var(--board-line);
  min-height:48px;
}


@media (max-width: 1024px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(54px,6vw,68px)
      clamp(66px,7.5vw,88px)
      minmax(140px,1fr)
      clamp(96px,9vw,140px)
      clamp(96px,11vw,120px)
      clamp(56px,8vw,84px)
      clamp(52px,7vw,68px);
  }
}

@media (max-width: 980px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(50px,5.5vw,64px)
      clamp(63px,7vw,84px)
      minmax(120px,1fr)
      clamp(84px,8vw,120px)
      clamp(92px,10vw,118px)
      clamp(52px,7.5vw,76px)
      clamp(48px,7vw,60px);
  }
  .board-table-header > div,
  .board-table-row    > div{ padding:10px 12px; }
}

@media (max-width: 720px){
  .board-table-header,
  .board-table-row{
    grid-template-columns:
      clamp(48px,5vw,60px)
      clamp(60px,6vw,80px)
      minmax(100px,1fr)
      clamp(78px,9.5vw,108px)
      clamp(86px,9vw,112px)
      clamp(48px,7vw,70px)
      clamp(44px,6.5vw,58px);
  }
  .board-table-header > div,
  .board-table-row    > div{ padding:8px 10px; }
}

.board-table-row:hover{ background:rgba(255,126,166,.055); }
.board-table-row.pinned{ background:rgba(255,95,143,.055); }

.col-title a:hover{ color:#ff82a8; text-decoration:none; }

.cat-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  background:#22252b;
  color:var(--text-dim);
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--board-line);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  margin:0 auto;
}

.board-table-header .col-likes,
.board-table-row .col-likes{
  padding-right: 16px; /* 16 → 24 */
}

.board-table-header .col-views,
.board-table-row .col-views{
  padding-right: 16px;
}

.arc-board{ --author-left-offset: 12px; } 


.board-bottom-controls{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

.search-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.search-form input[type="text"],
.search-form select{
  height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--board-line);
  background:var(--board-bg-1);
  color:var(--board-text);
  outline:none;
}
.search-form button{
  height:40px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid transparent;
  background:var(--board-brand);
  color:#e9eaec;
  font-weight:800;
  cursor:var(--spk-cursor-pointer);
}


.clickable-row{ cursor:var(--spk-cursor-pointer); transition:background-color .15s; }
.clickable-row:hover{ background:rgba(255,255,255,.03); }

/* 
@media (max-width: 860px){
  .board-wrap{ padding: 16px; font-size:14px; }
  .board-table-header{ display:none; }
  .board-table-row{ display:block; padding:10px 12px; }
  .board-table .col-num,
  .board-table .col-cat,
  .board-table .col-user,
  .board-table .col-date,
  .board-table .col-views,
  .board-table .col-likes{
    width:auto; text-align:left; display:inline-block; margin-right:10px;
  }
  .board-table .col-title{ display:block; padding:8px 0 6px; }
}
===== 반응형 ===== */

.write-wrap {
    max-width: 800px;
    margin: auto;
    font-size: 13px;
}
.write-wrap h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.arc-board .write-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-weight: bold;
    color: #ccc;
}
.arc-board .write-form input[type="text"],
.arc-board .write-form select,
.arc-board .write-form textarea,
.arc-board .write-form input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
}
.arc-board .write-form textarea {
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.btn-save {
    background-color: #ff6b88;
    color: white;
    border: none;
    padding: 8px 14px;
}
.btn-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
}

/* ====================================================
   Post Edit (글 수정) — scoped to .write-container only
   ==================================================== */
.arc-board .write-container{
  --w-max: var(--board-page-max, 1180px);
  --w-pad-x: 20px;
  --w-pad-y: 20px;
  --w-bg-1:  var(--post-bg-1, #151517);
  --w-bg-2:  var(--post-bg-2, #1b1c1f);
  --w-line:  var(--post-line,  #26272b);
  --w-text:  var(--post-text,  #e9eaec);
  --w-dim:   var(--post-text-dim, #a9acb3);
  --w-brand: var(--post-brand, #ff6b88);
  --w-r-lg:  12px;
  --w-r-md:  8px;

  max-width: var(--w-max);
  margin: 0 auto;
  padding: var(--w-pad-y) var(--w-pad-x);
  box-sizing: border-box;
  color: var(--w-text);
}

.arc-board .write-container .write-title{
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: .2px;
}

.arc-board .write-container form{
  /*background: var(--w-bg-1);*/
  border: 1px solid var(--w-line);
  border-radius: var(--w-r-lg);
  padding: 16px;
  box-sizing: border-box;
}

.arc-board .write-container .write-field{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
}
.arc-board .write-container .write-field:last-child{ margin-bottom: 0; }

.arc-board .write-container .write-field > label{
  color: var(--w-dim);
  font-weight: 700;
}

.arc-board .write-container input[type="text"],
.arc-board .write-container textarea,
.arc-board .write-container input[type="file"]{
  width: 100%;
  min-width: 0;
  background: var(--w-bg-2);
  border: 1px solid var(--w-line);
  color: var(--w-text);
  border-radius: var(--w-r-md);
  box-sizing: border-box;
}

.arc-board .write-container input[type="text"]{
  height: 44px;
  padding: 0 12px;
}
.arc-board .write-container textarea{
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
  min-height: 260px;
}

.arc-board .write-container input[type="text"]:focus,
.arc-board .write-container textarea:focus{
  border-color: var(--w-brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57,73,171,.25);
}


.arc-board .write-container .write-note{
  grid-column: 2 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--w-dim);
}

.arc-board .write-container .write-buttons{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.arc-board .write-container .btn-arc-submit{
  height: 42px;
  padding: 0 16px;
  border-radius: var(--w-r-md);
  border: 1px solid transparent;
  background: var(--w-brand);
  color: #fff;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}
.arc-board .write-container .btn-arc-submit:hover{ filter: brightness(1.06); }

.arc-board .write-container .btn-arc-cancel{
  display: inline-flex;
  height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--w-r-md);
  border: 1px solid var(--w-line);
  background: var(--w-bg-2);
  color: var(--w-text);
  text-decoration: none;
  font-weight: 700;
}
.arc-board .write-container .btn-arc-cancel:hover{
  background: var(--w-bg-1);
}

@media (max-width: 820px){
  .arc-board .write-container .write-field{
    grid-template-columns: 1fr;
  }
  .arc-board .write-container .write-note{ grid-column: 1 / -1; }
  .arc-board .write-container .write-buttons{
    flex-direction: column-reverse;
  }
  .arc-board .write-container .btn-arc-submit,
  .arc-board .write-container .btn-arc-cancel{
    width: 100%;
    justify-content: center;
  }
}

.arc-board .write-container select{
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r-md);
  background-color: var(--w-bg-2);
  color: var(--w-text);
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path d='M6 9l6 6 6-6' fill='none' stroke='%23a9acb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

.arc-board .write-container select:hover{
  background-color: var(--w-bg-1);
  border-color: var(--w-line);
}
.arc-board .write-container select:focus{
  outline: 0;
  border-color: var(--w-brand);
  box-shadow: 0 0 0 3px rgba(57,73,171,.25);
}

.arc-board .write-container select option{
  background: var(--w-bg-2);
  color: var(--w-text);
}

.arc-board .write-container select::-ms-expand{ display: none; }

/* ====================================================
   END 끝부분. (글수정, 글작성 CSS)
   ==================================================== */

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 6px;
}
.form-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.form-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-size: 14px;
    color: #ccc;
}
.form-row input[type="text"],
.form-row select,
.form-row textarea,
.form-row input[type="file"] {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    font-size: 13px;
}
.form-row textarea {
    resize: vertical;
}
.file-info {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.btn-arc-submit {
    background-color: #ff6b88;
    color: white;
    border: none;
    padding: 8px 16px;
}
.btn-arc-cancel {
    background-color: #616161;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
}

/* 추가사항 */

/* =======================================================
   Post View (게시글 보기) — scoped to .post-wrapper only
   ======================================================= */
.post-wrapper{
  /* board 리스트와 톤을 맞춘 토큰 (스코프 한정) */
  --post-max: 1180px;
  --post-pad-x: 20px;
  --post-pad-y: 20px;
  --post-bg-1: #161616;      /* 카드 배경 */
  --post-bg-2: #1b1c1f;      /* 강조/헤더 */
  --post-line: #26272b;      /* 경계선 */
  --post-text: #e9eaec;
  --post-text-dim: #a9acb3;
  --post-brand: #ff6b88;     /* ArcA 블루 */
  --post-radius-lg: 12px;
  --post-radius-md: 8px;
  --post-shadow: 0 10px 24px rgba(0,0,0,.35);

  position: relative;

  max-width: var(--post-max);
  margin: 0 auto;
  padding: var(--post-pad-y) var(--post-pad-x);
  box-sizing: border-box;
  color: var(--post-text);
}

/* 제목 */
.post-wrapper .post-title{
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 10px;
}

/* 메타 정보(배지 + 라이트 칩) */
.post-wrapper .post-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--post-text-dim);
  background: var(--post-bg-1);
  border: 1px solid var(--post-line);
  border-radius: var(--post-radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.post-wrapper .post-category{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--post-line);
  background: #22252b;
  color: var(--post-text-dim);
  font-weight: 700;
}

.post-wrapper .post-actions{
  position: absolute;
  top: calc(var(--post-pad-y) + 2px);   /* 제목 라인과 수평 */
  right: var(--post-pad-x);
  display: inline-flex;
  gap: 8px;
  margin: 0;                            /* 절대배치라 여백 제거 */
  z-index: 2;
}

.post-wrapper .btn-arc-small{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--post-line);
  background:#22252b;
  color:var(--post-text);
  text-decoration:none;
  font-weight:700;
  transition:.15s ease;
}


@media (max-width: 860px){
  .post-wrapper .post-actions{
    position: static;
    margin-top: 8px;
  }
}

.post-wrapper .post-content,
.post-wrapper .post-meta,
.post-wrapper .post-file,
.post-wrapper .btn-arc-reaction,
.post-wrapper .btn-arc-small,
.post-wrapper .comment-form textarea,
.post-wrapper .comment-section .comment,
.post-wrapper .comment-section .comment [id^="reply-form-"] textarea,
.post-wrapper .comment-section .comment [id^="reply-form-"] input[type="text"]{
  border-radius: 4px !important;
}

.post-wrapper .btn-arc-small:hover{ background:var(--post-bg-2); }

/* 줄바꿈(\n)을 화면에서 그대로 보이게 */
.post-wrapper .post-content { white-space: pre-wrap; }
/* 본문 안 다른 태그가 들어와도 부모 설정을 따르게 */
.post-wrapper .post-content * { white-space: inherit; }

/* 본문(삽입 콘텐츠 포함) */
.post-wrapper .post-content{
  background: var(--post-bg-1);
  border: 1px solid var(--post-line);
  border-radius: var(--post-radius-lg);
  padding: 18px;
  line-height: 1.75;
  font-size: 16px;
  word-break: break-word;
}
.post-wrapper .post-content p{ margin:0 0 1.05em; }
.post-wrapper .post-content a{ color:#b7c3ff; text-decoration:underline; }
.post-wrapper .post-content img,
.post-wrapper .post-content video{
  display:block;
  max-width:100%;
  height:auto;
  margin:10px 0;
}
.post-wrapper .post-content blockquote{
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--post-brand);
  background: rgba(255,255,255,.03);
  border-radius: 8px;
}
.post-wrapper .post-content pre{
  background:#0f0f11;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--post-line);
  overflow:auto;
}
.post-wrapper .post-content table{
  width:100%;
  border-collapse:collapse;
  margin:10px 0;
}
.post-wrapper .post-content th,
.post-wrapper .post-content td{
  padding:10px 12px;
  border:1px solid var(--post-line);
}

/* 첨부 파일 블록 */
.post-wrapper .post-file{
  margin-top:14px;
  background:var(--post-bg-1);
  border:1px solid var(--post-line);
  border-radius: var(--post-radius-md);
  padding:12px;
}
.post-wrapper .post-file img,
.post-wrapper .post-file video{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:12px;
}

/* 추천/비추천 */
.post-wrapper .post-reactions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.post-wrapper .btn-arc-reaction{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--post-line);
  background:#22252b;
  color:var(--post-text);
  font-weight:800;
  text-decoration:none;
  transition:.15s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.post-wrapper .btn-arc-reaction:hover{
  background:var(--post-bg-2);
  border-color:transparent;
  color:#e9eaec;
}

/* 구분선 */
.post-wrapper .divider{
  height:1px;
  border:0;
  background:var(--post-line);
  margin:20px 0;
}


/* 댓글 섹션 */
.post-wrapper .comment-section {
  margin-top: 18px;
}

.post-wrapper .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

/* 로그인 여부와 관계없이 댓글 목록의 시작 위치를 동일하게 유지 */
.post-wrapper .community-comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* 전역 .comment 레이아웃과 완전히 분리된 커뮤니티 댓글 카드 */
.post-wrapper .comment-section .community-comment {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--post-line);
  border-radius: 12px;
  background: var(--post-bg-1);
  box-sizing: border-box;
}

.post-wrapper .comment-section .community-comment-reply {
  width: calc(100% - 32px);
  margin: 12px 0 0 32px;
  background: color-mix(in srgb, var(--post-bg-1) 88%, white 2%);
}

.post-wrapper .comment-section .community-comment-reply::before {
  content: none;
}

/* 작성자, 날짜, 관리 버튼 */
.post-wrapper .community-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--post-text-dim);
  font-size: 14px;
  line-height: 1.35;
}

.post-wrapper .community-comment-meta .comment-meta-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.post-wrapper .community-comment-meta .comment-user,
.post-wrapper .community-comment-meta .comment-date {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.post-wrapper .community-comment-meta .comment-user {
  font-weight: 800;
}

.post-wrapper .community-comment-meta .comment-user a,
.post-wrapper .community-comment-meta .comment-edit,
.post-wrapper .community-comment-meta .comment-delete {
  color: #ff6b88;
  text-decoration: none;
}

.post-wrapper .community-comment-meta .comment-edit {
  margin-left: auto;
}

.post-wrapper .community-comment-meta .comment-edit,
.post-wrapper .community-comment-meta .comment-delete {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.post-wrapper .community-comment-meta a:hover {
  color: #ff8eaa;
  text-decoration: none;
}

/* 댓글 본문은 메타 행과 분리된 독립 행 */
.post-wrapper .community-comment-content {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  color: var(--post-text);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 댓글 작성 영역 */
.post-wrapper .comment-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.post-wrapper .comment-form textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid var(--post-line);
  border-radius: 10px;
  background: var(--post-bg-1);
  color: var(--post-text);
  line-height: 1.55;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.post-wrapper .comment-form textarea:focus,
.post-wrapper .community-reply-form textarea:focus,
.post-wrapper .community-comment-edit-form textarea:focus {
  border-color: rgba(255, 107, 136, .62);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, .08);
}

.post-wrapper .comment-login-required {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--post-line);
  border-radius: 10px;
  background: var(--post-bg-1);
  color: var(--post-text-dim);
  line-height: 1.5;
  box-sizing: border-box;
}

.post-wrapper .btn-arc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--post-brand);
  color: #fff;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}

/* 답글 작성 영역은 항상 본문 아래의 별도 행 */
.post-wrapper .community-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 14px 0 0;
  box-sizing: border-box;
}

.post-wrapper .community-reply-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--post-line);
  border-radius: 10px;
  background: var(--post-bg-2);
  color: var(--post-text);
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.post-wrapper .community-reply-form .reply-btn {
  min-width: 112px;
  height: 48px;
  align-self: stretch;
}

/* 댓글 수정 폼 */
.post-wrapper .community-comment-edit-form {
  width: 100%;
  margin-top: 12px;
}

.post-wrapper .community-comment-edit-form textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--post-line);
  border-radius: 10px;
  background: var(--post-bg-2);
  color: var(--post-text);
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
}

.post-wrapper .comment-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.post-wrapper .hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .post-wrapper .comment-section .community-comment {
    padding: 14px;
  }

  .post-wrapper .comment-section .community-comment-reply {
    width: calc(100% - 14px);
    margin-left: 14px;
  }

  .post-wrapper .community-comment-meta {
    gap: 7px 10px;
  }

  .post-wrapper .community-comment-meta .comment-edit {
    margin-left: 0;
  }

  .post-wrapper .community-comment-content {
    margin-top: 10px;
  }

  .post-wrapper .community-reply-form {
    grid-template-columns: 1fr;
  }

  .post-wrapper .community-reply-form .reply-btn,
  .post-wrapper .comment-form .btn-arc-submit {
    width: 100%;
  }

  .post-wrapper .comment-form textarea {
    min-height: 96px;
  }
}




.custom-editor {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 10px;
  min-height: 300px;
  overflow-y: auto;
}
.custom-editor img,
.custom-editor video {
  max-width: 100%;
  margin: 10px 0;
}

.comment-edit-form {
  margin-top: 10px;
  background-color: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.comment-edit-textarea {
  width: 100%;
  box-sizing: border-box;  
  min-height: 60px;
  background: #101010;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
}


.comment-edit-buttons {
  margin-top: 8px;
  text-align: right;
}

.comment-edit-submit {
  background-color: #ff6b88;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 6px;
  cursor: var(--spk-cursor-pointer);
}

.comment-edit-cancel {
  background-color: #666;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: var(--spk-cursor-pointer);
}

.clickable-row {
  cursor: var(--spk-cursor-pointer);
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #1c1c1c;
}

/* 유저 프로필 페이지 */
.user-section-box {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #444;
  background: #111;
  border-radius: 10px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #333;
}

.user-link {
  color: #ddd;
  text-decoration: none;
}

.user-link:hover {
  text-decoration: underline;
}

.no-content {
  color: #888;
  padding: 5px 0;
}




/* =========================================================
   SPKLOVE User Profile Redesign
========================================================= */

.profile-page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 44px auto 34px;
  color: #f8fafc;
}

/* ===================== Profile Hero ===================== */

.spk-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  padding: 26px;
  margin-bottom: 22px;
  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at 18% 18%, rgba(255, 95, 143, 0.32), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(255, 137, 177, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(28, 12, 20, 0.98), rgba(12, 12, 15, 0.98));

  border: 2px solid rgba(255, 118, 162, 0.32);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.spk-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.16), transparent 45%);
}

.spk-profile-left,
.spk-badge-card {
  position: relative;
  z-index: 1;
}

.spk-profile-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.spk-profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.spk-profile-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff5f8f, #ff8bb0, #ffc1d4);
  opacity: 0.75;
  z-index: -1;
  filter: blur(0.2px);
}

.spk-profile-avatar {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.spk-profile-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spk-profile-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: break-word;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.spk-profile-bio {
  margin: 0;
  color: #ffd8e4;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.spk-profile-bio.muted {
  color: rgba(255, 216, 228, 0.55);
}

/* ===================== Badge Card ===================== */

.spk-badge-card {
  border-radius: 22px;
  padding: 16px;
  min-height: 126px;
  background:
    linear-gradient(180deg, rgba(255, 95, 143, 0.12), rgba(10, 10, 14, 0.72)),
    rgba(8, 8, 12, 0.72);
  border: 2px solid rgba(255, 118, 162, 0.28);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.spk-badge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spk-badge-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.spk-badge-head strong i {
  color: #ff75a2;
  text-shadow: 0 0 12px rgba(255, 95, 143, 0.55);
}

.spk-badge-head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 216, 228, 0.64);
  font-size: 12px;
  font-weight: 600;
}

.spk-badge-head em {
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f8f, #ff8bab);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.24);
}

.spk-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 10px;
}

.spk-badge-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-badge-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 95, 143, 0.12);
  border-color: rgba(255, 118, 162, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.spk-badge-item.featured {
  border-color: rgba(255, 206, 92, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 206, 92, 0.12), rgba(255, 95, 143, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.spk-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.spk-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-badge-name {
  width: 100%;
  color: rgba(255, 238, 244, 0.86);
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spk-no-badges {
  min-height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(255, 216, 228, 0.58);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.spk-no-badges i {
  font-size: 18px;
  color: rgba(255, 95, 143, 0.65);
}

/* ===================== Profile Sections ===================== */

.spk-profile-section {
  position: relative;
  margin: 18px 0;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.spk-profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.08), transparent 30%);
}

.spk-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.spk-section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.spk-section-head h2 i {
  color: #ff6f9d;
  text-shadow: 0 0 14px rgba(255, 95, 143, 0.42);
}

.spk-section-head p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.58);
  font-size: 13px;
  font-weight: 600;
}

/* ===================== Like Tabs ===================== */

.spk-like-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 22px;
}

.spk-like-tabs .like-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;
  font-weight: 900;
  font-size: 13px;
  cursor: var(--spk-cursor-pointer);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.spk-like-tabs .like-tab i {
  margin-right: 6px;
}

.spk-like-tabs .like-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 118, 162, 0.25);
  background: rgba(255, 95, 143, 0.11);
  color: #fff;
}

.spk-like-tabs .like-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255, 118, 162, 0.65);
  box-shadow: 0 10px 22px rgba(255, 95, 143, 0.24);
}

/* ===================== Media Cards ===================== */

.spk-like-content {
  position: relative;
  z-index: 1;
}

.spk-profile-video-grid,
.spk-profile-image-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  align-items: start;
  align-content: start;
}

.spk-profile-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px 18px;
}

.spk-profile-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.spk-profile-video-card,
.spk-profile-image-card {
  width: 100%;
  min-width: 0;
}

.spk-profile-video-card .home-video-thumb,
.spk-profile-image-card .home-image-thumb {
  width: 100%;
}

.spk-profile-video-card .home-video-info {
  padding-inline: 2px;
}

.spk-profile-video-card .home-video-title {
  font-size: 14px;
}

.spk-profile-video-card .home-video-author {
  margin-top: 5px;
}

.spk-profile-video-card .home-video-stats {
  margin-top: 7px;
}

.spk-profile-video-card .home-video-stats span {
  padding: 4px 8px;
}

.spk-liked-section .spk-like-content {
  min-height: 0;
}

/* ===================== Loaded Lists ===================== */

.spk-profile-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.spk-profile-list > *:not(.pagination) {
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.spk-profile-list > *:not(.pagination):hover {
  transform: translateY(-1px);
  background: rgba(255, 95, 143, 0.07) !important;
  border-color: rgba(255, 118, 162, 0.18) !important;
}

/* ===================== Empty / Pagination ===================== */

.spk-empty-content {
  grid-column: 1 / -1;
  min-height: 170px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 7px;
  text-align: center;
  color: rgba(226, 232, 240, 0.58);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.spk-empty-content i {
  font-size: 28px;
  color: rgba(255, 95, 143, 0.72);
}

.spk-empty-content strong {
  color: #fff;
  font-size: 15px;
}

.spk-empty-content span {
  font-size: 13px;
}

.spk-pagination {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.spk-pagination button,
.spk-pagination .arrow-v2 {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;
  font-weight: 900;
}

.spk-pagination button:hover,
.spk-pagination .arrow-v2:hover {
  color: #fff;
  background: rgba(255, 95, 143, 0.14);
  border-color: rgba(255, 118, 162, 0.26);
}

.spk-pagination .active-v2 {
  color: #fff !important;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6) !important;
  border-color: rgba(255, 118, 162, 0.7) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 143, 0.22);
}

/* ===================== Responsive ===================== */

@media (max-width: 980px) {
  .spk-profile-hero {
    grid-template-columns: 1fr;
  }

  .spk-badge-card {
    min-height: auto;
  }

  .spk-badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-page-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 24px;
  }

  .spk-profile-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .spk-profile-left {
    gap: 15px;
    align-items: center;
  }

  .spk-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }

  .spk-profile-avatar-wrap::after {
    border-radius: 21px;
  }

  .spk-profile-info h1 {
    font-size: 25px;
  }

  .spk-profile-bio {
    font-size: 13px;
  }

  .spk-profile-section {
    padding: 17px;
    border-radius: 20px;
  }

  .spk-section-head h2 {
    font-size: 18px;
  }

  .spk-section-head p {
    font-size: 12px;
  }

  .spk-like-tabs .like-tab {
    min-height: 35px;
    padding: 0 13px;
    font-size: 12px;
  }

  .spk-profile-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px 14px;
  }

  .spk-profile-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}


/* 배지 아이콘만 표시 */
.profile-page-shell .spk-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-page-shell .spk-badge-item.icon-only {
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.profile-page-shell .spk-badge-item.icon-only .spk-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.profile-page-shell .spk-badge-name {
  display: none !important;
}

/* =========================================================
   프로필 AJAX 리스트 페이지네이션 통일
   video-comments / post-comments / post_comment-comments
========================================================= */

.profile-page-shell .spk-profile-list .pagination,
.profile-page-shell .user-list .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  width: fit-content;
  max-width: 100%;
  margin: 26px auto 4px;
  padding: 8px 12px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.profile-page-shell .spk-profile-list .pagination a,
.profile-page-shell .user-list .pagination a,
.profile-page-shell .spk-profile-list .pagination span,
.profile-page-shell .user-list .pagination span,
.profile-page-shell .spk-profile-list .pagination button,
.profile-page-shell .user-list .pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  color: #d1d5db;

  font-size: 13px;
  font-weight: 900;
  text-decoration: none;

  cursor: var(--spk-cursor-pointer);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.profile-page-shell .spk-profile-list .pagination a:hover,
.profile-page-shell .user-list .pagination a:hover,
.profile-page-shell .spk-profile-list .pagination button:hover,
.profile-page-shell .user-list .pagination button:hover {
  color: #fff;
  background: rgba(255, 95, 143, 0.14);
  border-color: rgba(255, 118, 162, 0.26);
  transform: translateY(-1px);
}

.profile-page-shell .spk-profile-list .pagination .active,
.profile-page-shell .user-list .pagination .active,
.profile-page-shell .spk-profile-list .pagination .active-v2,
.profile-page-shell .user-list .pagination .active-v2,
.profile-page-shell .spk-profile-list .pagination span.current,
.profile-page-shell .user-list .pagination span.current,
.profile-page-shell .spk-profile-list .pagination a.current,
.profile-page-shell .user-list .pagination a.current {
  color: #fff !important;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6) !important;
  border-color: rgba(255, 118, 162, 0.7) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 143, 0.22);
}

/* 프로필 페이지 댓글/게시글 페이지네이션 바깥 박스 숨기기 */
.profile-page-shell .user-list .pagination,
.profile-page-shell .spk-profile-list .pagination {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =========================================================
   Badge Custom Tooltip
========================================================= */

.spk-badge-tooltip {
  position: fixed;
  z-index: 99999;
  width: max-content;
  max-width: 260px;
  padding: 12px 13px;
  border-radius: 15px;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(34, 16, 25, 0.98), rgba(12, 12, 15, 0.98));

  border: 1px solid rgba(255, 118, 162, 0.34);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;

  color: #fff;
  pointer-events: none;

  opacity: 0;
  transform: scale(0.96);
  transform-origin: bottom center;
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.spk-badge-tooltip.show {
  opacity: 1;
  transform: scale(1);
}

.spk-badge-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);

  background: rgba(12, 12, 15, 0.98);
  border-right: 1px solid rgba(255, 118, 162, 0.28);
  border-bottom: 1px solid rgba(255, 118, 162, 0.28);
}

.spk-badge-tooltip-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;

  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.spk-badge-tooltip-title i {
  color: #ff6f9d;
  text-shadow: 0 0 12px rgba(255, 95, 143, 0.5);
}

.spk-badge-tooltip-desc {
  color: rgba(255, 226, 235, 0.78);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
}

.spk-badge-tooltip-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 10.5px;
  font-weight: 900;

  background: rgba(255, 95, 143, 0.14);
  border: 1px solid rgba(255, 118, 162, 0.22);
}

.spk-badge-tooltip.bottom {
  transform-origin: top center;
}

.spk-badge-tooltip.bottom::after {
  top: -7px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 118, 162, 0.28);
  border-top: 1px solid rgba(255, 118, 162, 0.28);
}

/* ===== LEGACY SOURCE: my_profile.css ===== */
/* =========================================================
   Account / My Profile Page
========================================================= */

.account-page {
  min-height: calc(100vh - 160px);
  padding: 42px 18px 70px;
  color: #f8fafc;
}

.account-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;

  margin-bottom: 22px;
  padding: 24px;

  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)),
    rgba(14, 14, 18, 0.92);

  border: 1px solid rgba(255,255,255,0.075);
}

.account-hero-profile {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.account-hero-avatar {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111;
}

.account-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;

  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.account-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.account-hero p {
  margin: 8px 0 0;
  color: rgba(226,232,240,0.62);
  font-size: 14px;
  font-weight: 650;
}

.account-email-status {
  flex: 0 0 auto;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.075);
}

.account-email-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
}

.account-email-status span.verified {
  color: #86efac;
}

.account-email-status span.unverified {
  color: #ff9fbd;
}

.account-email-status strong {
  display: block;
  color: rgba(248,250,252,0.9);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.account-card {
  padding: 22px;
  border-radius: 24px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.043), rgba(255,255,255,0.022)),
    rgba(13, 13, 17, 0.94);

  border: 1px solid rgba(255,255,255,0.075);
}

.account-card:first-child {
  grid-row: span 2;
}

.account-card-head {
  margin-bottom: 18px;
}

.account-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;

  border-radius: 14px;
  color: #fff;
  background: rgba(255, 95, 143, 0.15);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.account-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.account-card-head p {
  margin: 9px 0 0;
  color: rgba(226,232,240,0.56);
  font-size: 13px;
  line-height: 1.5;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-field {
  display: grid;
  gap: 7px;
}

.account-field label {
  color: rgba(248,250,252,0.86);
  font-size: 13px;
  font-weight: 900;
}

.account-field input,
.account-field textarea {
  width: 100%;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.085);
  background: rgba(0,0,0,0.22);
  color: #fff;

  padding: 12px 13px;
  box-sizing: border-box;
  outline: none;

  font-size: 14px;
  font-weight: 700;
}

.account-field input {
  height: 46px;
}

.account-field textarea {
  resize: none;
  min-height: 132px;
  line-height: 1.55;
}

.account-field input:focus,
.account-field textarea:focus {
  border-color: rgba(255, 118, 162, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, 0.1);
}

.account-file-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.account-preview-img {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111;
}

.account-file-box {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.account-file-box small {
  color: rgba(226,232,240,0.46);
  font-size: 12px;
}

.account-inline-row {
  display: flex;
  gap: 8px;
}

.account-inline-row input {
  flex: 1;
  min-width: 0;
}

.account-sub-btn,
.account-primary-btn {
  border: 0;
  border-radius: 14px;

  color: #fff;
  font-weight: 950;

  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease;
}

.account-sub-btn {
  flex: 0 0 auto;
  min-width: 92px;
  height: 46px;
  padding: 0 13px;
  background: rgba(255, 95, 143, 0.18);
  border: 1px solid rgba(255, 118, 162, 0.24);
}

.account-primary-btn {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 10px 22px rgba(255, 95, 143, 0.18);
}

.account-sub-btn:hover,
.account-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.account-sub-btn:disabled,
.account-primary-btn:disabled {
  opacity: 0.6;
  cursor: var(--spk-cursor-not-allowed);
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.account-help-box {
  padding: 12px 13px;
  border-radius: 15px;

  color: rgba(226,232,240,0.62);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;

  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);
}

.account-help-box.success {
  color: #bbf7d0;
  background: rgba(34,197,94,0.09);
  border-color: rgba(34,197,94,0.22);
}

.account-help-box.error {
  color: #fecaca;
  background: rgba(239,68,68,0.09);
  border-color: rgba(239,68,68,0.22);
}

.account-help-box.info {
  color: rgba(226,232,240,0.62);
}

@media (max-width: 900px) {
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-email-status {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .account-page {
    padding: 26px 12px 54px;
  }

  .account-hero,
  .account-card {
    border-radius: 20px;
    padding: 18px;
  }

  .account-hero-profile {
    align-items: flex-start;
  }

  .account-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .account-inline-row {
    flex-direction: column;
  }

  .account-sub-btn {
    width: 100%;
  }

  .account-file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-preview-img {
    width: 84px;
    height: 84px;
  }
}

/* ================================
   Account DM Settings 다이렉트 메시지 설정
================================ */

.account-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  cursor: var(--spk-cursor-pointer);
}

.account-toggle-row + .account-toggle-row {
  margin-top: 12px;
}

.account-toggle-row > div {
  min-width: 0;
}

.account-toggle-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 900;
  color: #f4f4f5;
}

.account-toggle-row span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #a1a1aa;
}

.account-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-toggle-ui {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.account-toggle-ui::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.account-toggle-input:checked + .account-toggle-ui {
  background: linear-gradient(135deg, #ff6f9f, #8b5cf6);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.24);
}

.account-toggle-input:checked + .account-toggle-ui::before {
  transform: translateX(24px);
}

/* ================================
   Blocked Users 차단 목록
================================ */

.account-block-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.account-block-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.account-block-user img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.account-block-user strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #f4f4f5;
}

.account-block-user span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #a1a1aa;
}

.account-danger-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 13px;
  background: rgba(239, 68, 68, 0.14);
  color: #ffb4b4;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.account-danger-btn:hover {
  background: rgba(239, 68, 68, 0.72);
  color: #fff;
}

.account-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 28px 18px;
  border-radius: 18px;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.account-empty-box i {
  font-size: 24px;
  color: #ff6f9f;
}

.account-empty-box strong {
  color: #f4f4f5;
  font-size: 15px;
}

.account-empty-box span {
  font-size: 13px;
}

@media (max-width: 700px) {
  .account-toggle-row {
    align-items: flex-start;
  }

  .account-block-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-block-item form,
  .account-danger-btn {
    width: 100%;
  }
}

/* ===== LEGACY SOURCE: admin.css ===== */
.admin-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 36px 60px;
    color: #e5e7eb;
}

.admin-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #392e33;
    border-radius: 22px;
    padding: 32px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.15), transparent 34%),
        #191517;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.admin-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.admin-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
    color: #f9fafb;
}

.admin-hero p {
    margin: 0;
    color: #9ca3af;
    font-size: 15px;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid #392e33;
    border-radius: 18px;
    background: #191517;
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-quick-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    background: #162033;
}

.admin-quick-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    font-size: 18px;
    flex: 0 0 auto;
}

.admin-quick-card strong {
    display: block;
    margin-bottom: 5px;
    color: #f9fafb;
    font-size: 15px;
}

.admin-quick-card span {
    display: block;
    color: #9ca3af;
    font-size: 13px;
}

.admin-section-card {
    margin-top: 18px;
    border: 1px solid #392e33;
    border-radius: 20px;
    background: #191517;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.admin-section-head {
    padding: 20px 22px;
    border-bottom: 1px solid #392e33;
    background: #100d0f;
}

.admin-section-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-head h2 {
    margin: 0;
    color: #f9fafb;
    font-size: 21px;
}

.admin-section-head p {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

.admin-section-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 17px;
}

.admin-form {
    padding: 22px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    border: 1px solid #392e33;
    background: #100d0f;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 12px 13px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-field textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.admin-field input[type="file"] {
    padding: 10px;
    cursor: var(--spk-cursor-pointer);
}

.admin-field small {
    color: #76666d;
    font-size: 12px;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.admin-form-actions-full {
    grid-column: 1 / -1;
    margin-top: 0;
}

.admin-form-actions button,
.keyword-form button {
    border: 0;
    border-radius: 11px;
    background: #2563eb;
    color: #fff;
    padding: 11px 18px;
    font-weight: 900;
    cursor: var(--spk-cursor-pointer);
    transition: filter 0.16s ease, transform 0.16s ease;
}

.admin-form-actions button:hover,
.keyword-form button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.admin-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 880px;
    border-collapse: separate;
    border-spacing: 0;
    color: #e5e7eb;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    background: #100d0f;
    border-bottom: 1px solid #392e33;
    color: #9ca3af;
    text-align: left;
    font-size: 13px;
    font-weight: 900;
}

.admin-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #392e33;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.admin-thumb {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #392e33;
    background: #100d0f;
}

.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.13);
    color: #60a5fa;
    font-weight: 900;
    font-size: 13px;
}

.keyword-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.keyword-form input {
    width: 100%;
    min-width: 260px;
    border: 1px solid #392e33;
    background: #100d0f;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 10px 11px;
    outline: none;
}

.keyword-form input:focus {
    border-color: #3b82f6;
}

.delete-btn {
    border: 0;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    padding: 10px 13px;
    font-weight: 900;
    cursor: var(--spk-cursor-pointer);
}

.delete-btn:hover {
    filter: brightness(1.08);
}

.admin-empty {
    padding: 34px !important;
    text-align: center;
    color: #9ca3af !important;
}


@media (max-width: 1100px) {
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-page {
        padding: 20px 14px 42px;
    }

    .admin-hero {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .admin-hero h1 {
        font-size: 28px;
    }

    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .admin-quick-card {
        min-height: 82px;
    }

    .keyword-form {
        flex-direction: column;
        align-items: stretch;
    }

    .keyword-form input {
        min-width: 0;
    }
}

/* =========================
   Admin page spacing fixes
========================= */

/* 카드 내부 폼이 오른쪽 벽에 붙는 문제 방지 */
.admin-section-card {
    box-sizing: border-box;
}

.admin-section-card *,
.admin-section-card *::before,
.admin-section-card *::after {
    box-sizing: border-box;
}

/* 공지사항 input/textarea 오른쪽 끝 여백 문제 */
.admin-form {
    width: 100%;
    padding: 24px 28px 28px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 공지사항 textarea가 카드 끝에 붙지 않게 */
.admin-form:not(.admin-form-grid) .admin-field {
    width: 100%;
}

/* 만화 업로드 / 이미지 업로드 좌우 박스 중앙 간격 */
.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 22px;
}

.admin-form-grid .admin-field {
    min-width: 0;
}

/* 파일 input이 너무 길게 붙어 보이는 것 완화 */
.admin-field input[type="file"] {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* =========================
   Image group table fixes
========================= */

/* 키워드 수정 영역 정렬 */
.keyword-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.keyword-form input {
    min-width: 0;
    width: 100%;
}

/* 저장 버튼 세로로 찌그러지는 문제 */
.keyword-form button {
    width: 78px;
    min-width: 78px;
    height: 44px;
    padding: 0 14px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    word-break: keep-all;
    line-height: 1;
}

/* 그룹 삭제 버튼 밑줄 제거 + 모양 정리 */
.delete-btn,
.delete-btn:link,
.delete-btn:visited,
.delete-btn:hover,
.delete-btn:active {
    text-decoration: none !important;
}

.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 44px;
    padding: 0 16px;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1;
}

/* 테이블 셀 안 버튼들이 세로로 눌리지 않게 */
.admin-table td {
    vertical-align: middle;
}

.admin-table td form {
    margin: 0;
}

/* 삭제 컬럼 버튼 위치 안정화 */
.admin-table td:last-child {
    white-space: nowrap;
}

/* 모바일에서는 1열로 변경 */
@media (max-width: 900px) {
    .admin-form {
        padding: 20px 18px 24px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .keyword-form {
        grid-template-columns: 1fr;
    }

    .keyword-form button {
        width: 100%;
        min-width: 0;
    }

    .delete-btn {
        width: 100%;
    }
}

.admin-page {
    box-sizing: border-box;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
    box-sizing: border-box;
}

/* =========================
   Video admin manager
========================= */

.admin-video-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    gap: 12px;
    align-items: center;
}

.admin-video-search input {
    border: 1px solid #392e33;
    background: #100d0f;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 12px 13px;
}

.admin-video-search button,
.admin-video-search a {
    height: 44px;
    border: 0;
    border-radius: 11px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    cursor: var(--spk-cursor-pointer);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-video-search a {
    background: #463a3f;
}

.admin-video-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.admin-video-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid #392e33;
    border-radius: 18px;
    background: #100d0f;
}

.admin-video-thumb-box {
    min-width: 0;
}

.admin-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #392e33;
    background: #191517;
}

.admin-video-no-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px dashed #463a3f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #76666d;
    background: #191517;
    font-weight: 900;
}

.admin-video-meta-small {
    display: flex;
    justify-content: space-between;
    margin-top: 9px;
    color: #9ca3af;
    font-size: 12px;
}

.admin-video-main {
    min-width: 0;
}

.admin-video-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.admin-video-wide {
    grid-column: 1 / -1;
}

.admin-video-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.admin-video-actions button,
.admin-video-actions a,
.admin-replace-form button,
.admin-regenerate-row button,
.admin-toggle-thumb,
.admin-thumb-form button {
    border: 0;
    border-radius: 11px;
    background: #2563eb;
    color: #fff;
    padding: 10px 14px;
    font-weight: 900;
    cursor: var(--spk-cursor-pointer);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.admin-video-actions a {
    background: #463a3f;
}

.admin-codec-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.admin-codec-row span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-codec-row .ok {
    background: rgba(34, 197, 94, 0.13);
    color: #4ade80;
}

.admin-codec-row .missing {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.admin-video-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.admin-replace-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #392e33;
    border-radius: 14px;
    background: #191517;
}

.admin-replace-form label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
}

.admin-replace-form input[type="file"] {
    width: 100%;
    border: 1px solid #392e33;
    background: #100d0f;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 9px;
    font-size: 12px;
}

.admin-regenerate-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-regenerate-row button {
    background: #7c3aed;
}

.admin-toggle-thumb {
    margin-top: 14px;
    background: #0891b2;
}

.admin-thumb-panel {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #392e33;
    border-radius: 16px;
    background: #191517;
}

.admin-thumb-panel.open {
    display: block;
}

.admin-thumb-video {
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    background: #000;
}

.admin-thumb-form {
    margin-top: 12px;
}

.admin-thumb-slider {
    width: 100%;
}

.admin-thumb-time {
    margin: 8px 0 12px;
    color: #cbd5e1;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .admin-video-card {
        grid-template-columns: 1fr;
    }

    .admin-video-tools {
        grid-template-columns: 1fr;
    }

    .admin-video-edit-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-video-search {
        grid-template-columns: 1fr;
    }

    .admin-video-list {
        padding: 14px;
    }

    .admin-video-card {
        padding: 14px;
    }

    .admin-video-actions {
        flex-direction: column;
    }

    .admin-video-actions button,
    .admin-video-actions a,
    .admin-regenerate-row button,
    .admin-toggle-thumb,
    .admin-thumb-form button {
        width: 100%;
    }
}

.admin-users-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 36px;
    color: #e5e7eb;
}

.admin-users-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-users-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.admin-users-header p {
    margin: 0;
    color: #9ca3af;
}

.user-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    background: #191517;
    border: 1px solid #392e33;
    border-radius: 14px;
    padding: 12px;
}

.user-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #100d0f;
    border: 1px solid #392e33;
    border-radius: 10px;
    padding: 0 12px;
}

.user-search-box i {
    color: #9ca3af;
    font-size: 14px;
}

.user-search-box input {
    width: 100%;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 14px;
}

.user-search-form button,
.search-reset-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: var(--spk-cursor-pointer);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.search-reset-btn {
    background: #463a3f;
}

.admin-users-table-wrap {
    height: calc(100vh - 230px);
    min-height: 520px;
    max-height: 760px;
    overflow: auto;
    background: #191517;
    border: 1px solid #392e33;
    border-radius: 16px;
    padding: 0;
}

.admin-users-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.admin-users-table-wrap::-webkit-scrollbar-track {
    background: #100d0f;
}

.admin-users-table-wrap::-webkit-scrollbar-thumb {
    background: #4a3d42;
    border-radius: 999px;
}

.admin-users-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #57484f;
}

.admin-users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1450px;
    font-size: 13px;
}

.admin-users-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #100d0f;
    color: #9ca3af;
    font-weight: 800;
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #392e33;
}

.admin-users-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #392e33;
    vertical-align: top;
    color: #e5e7eb;
}

.col-user {
    width: 220px;
}

.col-status {
    width: 160px;
}

.col-account {
    width: 260px;
}

.col-ban {
    width: 330px;
}

.col-restrict {
    width: 150px;
}

.col-ip {
    width: 280px;
}

.user-card-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: #100d0f;
    border: 1px solid #392e33;
    flex: 0 0 auto;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    min-width: 0;
}

.user-info strong {
    display: block;
    color: #f9fafb;
    font-size: 14px;
    margin-bottom: 3px;
}

.user-info span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.status-stack small {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.35;
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.badge.ok {
    background: rgba(34,197,94,.12);
    color: #22c55e;
}

.badge.warn {
    background: rgba(245,158,11,.14);
    color: #f59e0b;
}

.badge.danger {
    background: rgba(239,68,68,.14);
    color: #ef4444;
}

.compact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.compact-form input,
.compact-form select {
    width: 100%;
    height: 32px;
    border: 1px solid #392e33;
    background: #100d0f;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 0 9px;
    font-size: 12px;
    outline: none;
}

.compact-form input:focus,
.compact-form select:focus {
    border-color: #3b82f6;
}

.primary-btn,
.danger-btn,
.muted-btn {
    height: 32px;
    border: 0;
    border-radius: 8px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: var(--spk-cursor-pointer);
}

.primary-btn {
    background: #2563eb;
}

.danger-btn {
    background: #dc2626;
}

.muted-btn {
    background: #463a3f;
}

.primary-btn:hover,
.danger-btn:hover,
.muted-btn:hover {
    filter: brightness(1.08);
}

.single-action-form {
    margin-top: 6px;
}

.restriction-checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    background: #100d0f;
    border: 1px solid #392e33;
    border-radius: 8px;
    padding: 7px 8px;
}

.restriction-checks label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.25;
}

.restriction-checks input {
    width: 13px;
    height: 13px;
}

.restriction-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.restriction-summary span {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245,158,11,.14);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 800;
}

.restriction-summary em {
    color: #9ca3af;
    font-style: normal;
}

.empty-cell {
    text-align: center !important;
    color: #9ca3af !important;
    padding: 38px !important;
}

@media (max-width: 900px) {
    .admin-users-wrap {
        padding: 20px 14px;
    }

    .user-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .user-search-form button,
    .search-reset-btn {
        justify-content: center;
    }

    .admin-users-table-wrap {
        height: calc(100vh - 260px);
        min-height: 460px;
    }
}
.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #463a3f;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-panel-btn:hover {
    filter: brightness(1.08);
}

.admin-badge-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  color: #e5e7eb;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.admin-page-head p {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #211b1e;
  color: #d1d5db;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-back-btn:hover {
  background: #463a3f;
  color: #fff;
}

.admin-flash-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-flash {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #dbeafe;
}

.badge-admin-card {
  background: #191517;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.badge-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.badge-section-title h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.badge-section-title span {
  color: #9ca3af;
  font-size: 13px;
}

.badge-form-grid,
.badge-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group-wide {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #100d0f;
  color: #e5e7eb;
  padding: 10px 12px;
  outline: none;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 78px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.16);
}

.form-group input[type="color"] {
  padding: 4px;
  cursor: var(--spk-cursor-pointer);
}

.badge-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.badge-primary-btn,
.badge-save-btn,
.badge-toggle-btn,
.badge-delete-btn {
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}

.badge-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
}

.badge-primary-btn:hover {
  background: #4752c4;
}

.badge-list {
  display: grid;
  gap: 16px;
}

.badge-list-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #100d0f;
  border: 1px solid rgba(255,255,255,0.08);
}

.badge-edit-form {
  min-width: 0;
}

.badge-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.badge-icon-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.badge-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.badge-preview-info strong {
  color: #fff;
  font-size: 17px;
}

.badge-preview-info span {
  color: #9ca3af;
  font-size: 13px;
  word-break: break-all;
}

.badge-status {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.badge-status.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.badge-status.inactive {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.badge-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.badge-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #2563eb;
  color: #fff;
}

.badge-save-btn:hover {
  background: #1d4ed8;
}

.badge-side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-side-actions form {
  margin: 0;
}

.badge-side-actions button {
  width: 100%;
}

.badge-toggle-btn {
  background: #463a3f;
  color: #e5e7eb;
}

.badge-toggle-btn:hover {
  background: #5a4c52;
}

.badge-delete-btn {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

.empty-badge-box {
  padding: 34px;
  text-align: center;
  color: #9ca3af;
  background: #100d0f;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.15);
}

@media (max-width: 1100px) {
  .badge-form-grid,
  .badge-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-list-item {
    grid-template-columns: 1fr;
  }

  .badge-side-actions {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .admin-badge-page {
    padding: 14px;
  }

  .admin-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .badge-section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-form-grid,
  .badge-edit-grid {
    grid-template-columns: 1fr;
  }

  .form-group-wide {
    grid-column: span 1;
  }

  .badge-side-actions {
    flex-direction: column;
  }
}

.col-badges {
  min-width: 260px;
}

.user-badge-manage-cell {
  min-width: 280px;
  vertical-align: top;
}

.user-badge-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.owned-badge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.owned-badge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.owned-badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.owned-badge-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.owned-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owned-badge-left strong {
  display: block;
  color: #f9fafb;
  font-size: 13px;
  line-height: 1.2;
}

.owned-badge-left small {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  word-break: break-all;
}

.badge-revoke-btn {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.13);
  color: #fecaca;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
  white-space: nowrap;
}

.badge-revoke-btn:hover {
  background: rgba(239, 68, 68, 0.24);
}

.no-owned-badge {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: #9ca3af;
  font-size: 13px;
  font-style: normal;
  text-align: center;
}

.grant-badge-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grant-badge-form select,
.grant-badge-form input {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #100d0f;
  color: #e5e7eb;
  padding: 7px 9px;
  box-sizing: border-box;
  outline: none;
}

.grant-badge-form select:focus,
.grant-badge-form input:focus {
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.14);
}

/* ===============================
   Admin Notice Manage
================================ */

.admin-notice-manage-section {
  margin-top: 24px;
}

.admin-notice-list {
  display: grid;
  gap: 18px;
}

.admin-notice-item {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(12, 12, 16, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-notice-item-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-notice-item-top strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-notice-item-top span {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 12px;
}

.admin-notice-state {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.notice-state {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.notice-state.pinned {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
}

.notice-state.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.notice-state.inactive {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.admin-notice-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.notice-save-btn,
.notice-delete-btn {
  border: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: var(--spk-cursor-pointer);
}

.notice-save-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  box-shadow: 0 10px 22px rgba(255, 95, 143, 0.18);
}

.notice-delete-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.notice-delete-btn:hover {
  background: rgba(239, 68, 68, 0.24);
}

.admin-empty-box {
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  color: #9ca3af;
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.12);
}

/* ===============================
   Admin Notice Pagination
================================ */

.admin-notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin-top: 22px;
  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-notice-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.055);
  color: #d1d5db;

  font-size: 13px;
  font-weight: 900;

  cursor: var(--spk-cursor-pointer);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-notice-page-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 118, 162, 0.28);
}

.admin-notice-page-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
  border-color: rgba(255, 118, 162, 0.58);
  box-shadow: 0 8px 18px rgba(255, 95, 143, 0.18);
}

@media (max-width: 640px) {
  .admin-notice-pagination {
    flex-wrap: wrap;
  }

  .admin-notice-page-btn {
    min-width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 12px;
  }
}
.admin-notice-delete-form {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 0;
}

.notice-delete-btn {
  position: static !important;
}

.admin-notice-actions {
  margin-top: 14px;
}

.admin-upload-page {
  width: 100%;
  min-height: calc(100vh - 90px);
  padding: 36px 18px 60px;
  color: #f8fafc;
}

.admin-upload-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-upload-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(15, 23, 42, .76);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
}

.admin-upload-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .28);
}

.admin-upload-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.admin-upload-hero p {
  margin: 8px 0 0;
  color: rgba(248, 250, 252, .68);
  font-size: 14px;
}

.admin-upload-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.admin-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
}

.admin-upload-main,
.admin-upload-side {
  min-width: 0;
}

.admin-field {
  margin-bottom: 18px;
}

.admin-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: rgba(248, 250, 252, .86);
  font-size: 14px;
  font-weight: 700;
}

.admin-field label i {
  color: #8b5cf6;
}

.admin-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, .42);
  color: #f8fafc;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-field input::placeholder {
  color: rgba(248, 250, 252, .34);
}

.admin-field input:focus {
  border-color: rgba(124, 58, 237, .75);
  background: rgba(2, 6, 23, .64);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .14);
}

.admin-encode-box {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.admin-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  cursor: var(--spk-cursor-pointer);
}

.admin-check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #7c3aed;
}

.admin-check-row span {
  display: grid;
  gap: 4px;
}

.admin-check-row strong {
  color: #fff;
  font-size: 14px;
}

.admin-check-row small {
  color: rgba(248, 250, 252, .55);
  font-size: 12px;
}

.admin-file-box {
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, .38);
  border-radius: 22px;
  background: rgba(2, 6, 23, .34);
  text-align: center;
  cursor: var(--spk-cursor-pointer);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.admin-file-box:hover {
  border-color: rgba(6, 182, 212, .72);
  background: rgba(6, 182, 212, .08);
  transform: translateY(-1px);
}

.admin-file-box input {
  display: none;
}

.admin-file-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(124, 58, 237, .16);
  color: #a78bfa;
  font-size: 24px;
}

.admin-file-box strong {
  color: #fff;
  font-size: 16px;
}

.admin-file-box span {
  max-width: 100%;
  color: rgba(248, 250, 252, .55);
  font-size: 13px;
  word-break: break-all;
}

.admin-preview-box {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 6, 23, .6);
  border: 1px solid rgba(255,255,255,.08);
  aspect-ratio: 16 / 9;
}

.admin-preview-box video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  background: #000;
}

.admin-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: rgba(248, 250, 252, .48);
  text-align: center;
  font-size: 13px;
}

.admin-preview-empty i {
  font-size: 32px;
  color: rgba(248, 250, 252, .32);
}

.admin-thumb-controls {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.admin-thumb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(248, 250, 252, .78);
  font-size: 13px;
}

.admin-thumb-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.admin-thumb-head label i {
  color: #22d3ee;
}

.admin-thumb-head strong {
  color: #fff;
}

.admin-thumb-controls input[type="range"] {
  width: 100%;
  accent-color: #06b6d4;
}

.admin-upload-progress-wrap {
  display: none;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.admin-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  color: rgba(248, 250, 252, .72);
  font-size: 14px;
}

.admin-upload-progress-head strong {
  color: #fff;
}

.admin-upload-progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.admin-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  transition: width .18s ease;
}

.admin-upload-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(59, 130, 246, .09);
  border: 1px solid rgba(59, 130, 246, .18);
  color: rgba(219, 234, 254, .86);
  font-size: 13px;
  line-height: 1.6;
}

.admin-upload-notice i {
  margin-top: 3px;
  color: #60a5fa;
}

.admin-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.admin-upload-btn {
  min-width: 116px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: var(--spk-cursor-pointer);
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.admin-upload-btn:hover {
  transform: translateY(-1px);
}

.admin-upload-btn:disabled {
  opacity: .62;
  cursor: var(--spk-cursor-not-allowed);
  transform: none;
}

.admin-upload-btn-cancel {
  background: rgba(255,255,255,.08);
  color: rgba(248, 250, 252, .78);
}

.admin-upload-btn-submit {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  box-shadow: 0 14px 32px rgba(124, 58, 237, .24);
}

@media (max-width: 980px) {
  .admin-upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-upload-side {
    order: -1;
  }
}

@media (max-width: 640px) {
  .admin-upload-page {
    padding: 20px 12px 42px;
  }

  .admin-upload-hero {
    align-items: flex-start;
    padding: 18px;
    border-radius: 20px;
  }

  .admin-upload-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 21px;
  }

  .admin-upload-hero h1 {
    font-size: 22px;
  }

  .admin-upload-card {
    padding: 16px;
    border-radius: 22px;
  }

  .admin-upload-actions {
    flex-direction: column-reverse;
  }

  .admin-upload-btn {
    width: 100%;
  }
}

.admin-users-count-bar {
  margin: 14px 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.admin-users-count-bar strong {
  color: #ff7fa8;
  font-weight: 800;
}

.admin-users-pagination {
  margin: 22px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-users-page-btn,
.admin-users-page-dots {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.admin-users-page-btn {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.admin-users-page-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.admin-users-page-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff8cab);
  border-color: rgba(255,255,255,0.18);
}

.admin-users-page-btn.disabled {
  opacity: .38;
  cursor: var(--spk-cursor-not-allowed);
  pointer-events: none;
}

.admin-users-page-dots {
  color: rgba(255,255,255,0.35);
  padding: 0 4px;
}

/* ===== LEGACY SOURCE: content_limit.css ===== */
/* =========================================================
   Content View Limit Page
========================================================= */

.content-limit-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 18px;
  color: #f8fafc;
}

.content-limit-card {
  width: min(520px, 100%);
  padding: 34px 30px;
  border-radius: 26px;
  text-align: center;

  background:
    radial-gradient(circle at top left, rgba(255, 95, 143, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)),
    rgba(14, 14, 18, 0.94);

  border: 1px solid rgba(255,255,255,0.08);
}

.content-limit-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;

  display: grid;
  place-items: center;

  border-radius: 22px;
  color: #ff7ca6;
  font-size: 30px;

  background: rgba(255, 95, 143, 0.13);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.content-limit-card h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.content-limit-card p {
  margin: 14px 0 0;
  color: rgba(226,232,240,0.66);
  font-size: 14px;
  line-height: 1.7;
}

.content-limit-status {
  margin: 22px auto 0;
  padding: 13px 15px;
  width: fit-content;
  min-width: 150px;
  border-radius: 16px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.content-limit-status span {
  display: block;
  color: rgba(226,232,240,0.52);
  font-size: 12px;
  font-weight: 800;
}

.content-limit-status strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.content-limit-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.content-limit-actions a {
  min-height: 42px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.content-limit-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7ca6);
}

.content-limit-secondary {
  color: #d1d5db;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.content-limit-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;

  color: #ffd6e3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;

  background: rgba(255, 95, 143, 0.12);
  border: 1px solid rgba(255, 118, 162, 0.18);
}

.content-limit-status small {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.content-limit-note {
  margin: 16px auto 0;
  padding: 12px 14px;
  max-width: 390px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;

  border-radius: 15px;
  color: rgba(226, 232, 240, 0.62);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.065);

  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
}

.content-limit-note i {
  margin-top: 2px;
  color: #ff8bab;
}

.content-limit-primary i {
  margin-right: 7px;
}

/* ===== LEGACY SOURCE: community.css (scoped) ===== */
:where(.community-legacy-page,.edit-comment-page) {
  color:#e0e0e0;
}

:where(.community-legacy-page,.edit-comment-page) a {
  color:#ff82a8;
  text-decoration:none;
}

:where(.community-legacy-page,.edit-comment-page) a:hover {
  color:#ffb06f;
  text-decoration:none;
}

.community-legacy-page .table thead th {
  background-color:#1b1719;
}

.community-legacy-page .table tbody tr:hover {
  background-color:rgba(255,126,166,.055);
}

.community-legacy-page .btn-primary {
  background-color:#ff5f8f;
  border:none;
}

.community-legacy-page .btn-success {
  background-color:#48b982;
  border:none;
}

.community-legacy-page .btn-secondary {
  background-color:#62575c;
  border:none;
}

.community-legacy-page :where(.form-control,.form-select),
.edit-comment-page textarea {
  background-color:#211b1e;
  color:#fff;
  border:1px solid rgba(255,240,244,.12);
}

.community-legacy-page :where(.form-control,.form-select):focus,
.edit-comment-page textarea:focus {
  background-color:#2a2326;
  color:#fff;
  border-color:rgba(255,126,166,.48);
}

.community-legacy-page .badge.bg-secondary {
  background-color:#62575c;
}

.community-legacy-page .page-item.active .page-link {
  background-color:#ff5f8f;
  border-color:#ff5f8f;
}

/* User video list styles are maintained in the main component sections above. */

.uv-upload-progress-wrap {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.uv-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

.uv-upload-progress-head strong {
  color: #fff;
  font-weight: 700;
}

.uv-upload-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
}

.uv-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  transition: width .18s ease;
}

/* ===== MOVED FROM INLINE <style>: templates/admin_visitor_live.html ===== */
.live-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 36px;
    color: #e5e7eb;
}

.live-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.live-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.live-header p {
    margin: 0;
    color: #9ca3af;
    word-break: break-all;
}

.live-actions {
    display: flex;
    gap: 8px;
}

.live-btn,
.live-toolbar button {
    border: 1px solid #392e33;
    background: #191517;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 9px 13px;
    text-decoration: none;
    cursor: var(--spk-cursor-pointer);
    font-weight: 700;
}

.live-btn:hover,
.live-toolbar button:hover {
    background: #241d20;
}

.live-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.live-info-card {
    background: #191517;
    border: 1px solid #392e33;
    border-radius: 14px;
    padding: 14px 16px;
}

.live-info-card span {
    display: block;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 13px;
}

.live-info-card strong {
    color: #f9fafb;
    font-size: 15px;
}

.live-stage-wrap {
    background: #191517;
    border: 1px solid #392e33;
    border-radius: 18px;
    overflow: hidden;
}

.live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #100d0f;
    border-bottom: 1px solid #392e33;
}

.live-toolbar strong {
    margin-right: 10px;
}

.live-toolbar span {
    color: #9ca3af;
    font-size: 13px;
    word-break: break-all;
}

.live-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.live-stage {
    position: relative;
    width: 100%;
    height: 760px;
    background: #050914;
    overflow: hidden;
}

.live-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.live-cursor {
    position: absolute;
    z-index: 20;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transform: translate(-2px, -2px);
    transition: left 0.08s linear, top 0.08s linear;
}

.live-cursor::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: 13px solid #60a5fa;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    transform: rotate(-35deg);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
}

.live-click-layer {
    position: absolute;
    inset: 0;
    z-index: 19;
    pointer-events: none;
}

.live-click-dot {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 3px solid #60a5fa;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    animation: liveClick .55s ease-out forwards;
    box-shadow: 0 0 18px rgba(96, 165, 250, .5);
}

@keyframes liveClick {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.45);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.7);
    }
}

@media (max-width: 900px) {
    .live-wrap {
        padding: 20px 14px;
    }

    .live-header {
        flex-direction: column;
    }

    .live-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-stage {
        height: 620px;
    }
}

.live-stage.remote-fullscreen-mode {
    background: #000;
}

.live-stage.remote-fullscreen-mode .live-frame {
    background: #000;
}

.live-stage.remote-fullscreen-mode::before {
    content: "사용자가 전체화면으로 시청 중";
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 30;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ===== MOVED FROM INLINE <style>: templates/admin_visitor_sessions.html ===== */
.visitor-admin-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    color: #e5e7eb;
}

.visitor-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.visitor-admin-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.visitor-admin-header p {
    margin: 0;
    color: #9ca3af;
    word-break: break-all;
}

.visitor-section {
    margin-bottom: 32px;
    background: #191517;
    border: 1px solid #392e33;
    border-radius: 14px;
    padding: 18px;
}

.visitor-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.visitor-table-wrap {
    overflow-x: auto;
}

.visitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1100px;
}

.visitor-table th,
.visitor-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #392e33;
    vertical-align: middle;
    white-space: nowrap;
}

.visitor-table th {
    color: #9ca3af;
    font-weight: 600;
    text-align: left;
    background: #100d0f;
}

.visitor-table td {
    color: #e5e7eb;
}

.status-online {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.url-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ua-cell {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-cell {
    text-align: center;
    color: #9ca3af !important;
    padding: 28px !important;
}
.visitor-link {
    color: #dbeafe;
    font-weight: 700;
    text-decoration: none;
}

.visitor-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}
.visitor-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
    color: #60a5fa;
    font-size: 13px;
    font-weight: 800;
}
.live-actions {
    display: flex;
    gap: 8px;
}
.live-btn {
    border: 1px solid #392e33;
    background: #191517;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 9px 13px;
    text-decoration: none;
    cursor: var(--spk-cursor-pointer);
    font-weight: 700;
}

.live-btn:hover {
    background: #241d20;
}

/* ===== MOVED FROM INLINE <style>: templates/edit_post.html ===== */
.editor-wrapper{
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    overflow:hidden;
    background:rgba(255,255,255,0.03);
}

.editor-toolbar{
    display:flex;
    gap:8px;
    padding:10px;
    border-bottom:1px solid rgba(255,255,255,0.06);
    background:rgba(255,255,255,0.04);
}

.editor-toolbar button{
    background:none;
    border:1px solid rgba(255,255,255,0.1);
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    cursor:var(--spk-cursor-pointer);
    font-size:14px;
}

.editor-toolbar button:hover{
    background:#ff6b88;
    border-color:#ff6b88;
}

.editor-area{
    min-height:420px;
    padding:16px;
    outline:none;
    color:#fff;
}

.editor-area img,
.editor-area video{
    max-width:100%;
    border-radius:8px;
    margin:10px 0;
}

/* ===== MOVED FROM INLINE <style>: templates/user_video_edit.html ===== */
.uv-edit-page {
  padding: 34px 28px 52px;
}

.uv-edit-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.uv-edit-head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 0;
  margin-bottom: 18px;
}

.uv-edit-head-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6f9c 0%, #7c5cff 100%);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 14px 34px rgba(85, 92, 255, 0.14);
}

.uv-edit-head-text {
  min-width: 0;
}

.uv-edit-head-text h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.uv-edit-head-text p {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
  color: rgba(255,255,255,0.66);
  word-break: keep-all;
}

.uv-edit-card {
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,111,156,0.05), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.018)),
    rgba(16,16,20,0.97);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.uv-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.uv-field {
  margin-bottom: 22px;
}

.uv-field label,
.uv-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.uv-field label i,
.uv-box-title i,
.uv-edit-notice i {
  color: #ff6f9c;
}

.uv-field input[type="text"],
.uv-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.uv-field input[type="text"]::placeholder,
.uv-field textarea::placeholder {
  color: rgba(255,255,255,0.30);
}

.uv-field textarea {
  min-height: 240px;
  resize: vertical;
}

.uv-field input[type="text"]:focus,
.uv-field textarea:focus {
  outline: none;
  border-color: rgba(255,111,156,0.22);
  box-shadow: 0 0 0 4px rgba(255,111,156,0.05);
}

.uv-current-thumb-box,
.uv-video-select-box,
.uv-thumb-preview-box {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}

.uv-current-thumb-preview,
.uv-generated-preview {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.28);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uv-current-thumb-preview img {
  width: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.uv-thumb-empty-state,
.uv-thumb-preview-placeholder {
  display: flex;
  min-height: 210px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.uv-thumb-empty-state i,
.uv-thumb-preview-placeholder i {
  font-size: 36px;
}

.uv-video-preview-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
}

.uv-thumb-video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
}

.uv-video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.uv-mini-btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  cursor: var(--spk-cursor-pointer);
}

.uv-mini-btn:hover {
  background: rgba(255,255,255,0.12);
}

.uv-time-badge {
  margin-left: auto;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.88);
  font-weight: 900;
}

.uv-range-wrap {
  margin-bottom: 12px;
}

.uv-range-wrap input[type="range"] {
  width: 100%;
  accent-color: #ff6f9c;
}

#thumbPreviewCanvas {
  display: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #000;
}

.uv-generated-preview.has-frame #thumbPreviewCanvas {
  display: block;
}

.uv-generated-preview.has-frame .uv-thumb-preview-placeholder {
  display: none;
}

.uv-help-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.56);
}

.uv-thumb-preview-box {
  margin-top: 18px;
}

.uv-edit-notice {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.62);
  font-size: 17px;
  font-weight: 700;
}

.uv-edit-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.uv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: var(--spk-cursor-pointer);
  box-sizing: border-box;
}

.uv-btn-cancel {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.uv-btn-cancel:hover {
  background: rgba(255,255,255,0.12);
}

.uv-btn-save {
  background: linear-gradient(135deg, #ff6f9c 0%, #8b5cf6 48%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(70, 92, 255, 0.16);
}

.uv-delete-form {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.uv-btn-delete {
  background: rgba(146, 46, 61, 0.28);
  color: #ff8a95;
  border: 1px solid rgba(255, 114, 132, 0.16);
}

.uv-btn-delete:hover {
  background: rgba(146, 46, 61, 0.42);
}

@media (max-width: 1100px) {
  .uv-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .uv-edit-page {
    padding: 18px 14px 34px;
  }

  .uv-edit-head {
    align-items: flex-start;
  }

  .uv-edit-head-text h1 {
    font-size: 38px;
  }

  .uv-edit-head-text p {
    font-size: 17px;
  }

  .uv-edit-card {
    padding: 18px;
    border-radius: 22px;
  }

  .uv-field label,
  .uv-box-title {
    font-size: 20px;
  }

  .uv-field input[type="text"],
  .uv-field textarea {
    font-size: 17px;
  }

  .uv-edit-actions,
  .uv-delete-form {
    justify-content: stretch;
    flex-direction: column;
  }

  .uv-btn {
    width: 100%;
  }

  .uv-time-badge {
    margin-left: 0;
  }
}
/* =========================================================
   User Video Edit Page - Compact Size Fix
========================================================= */

.uv-edit-page {
  padding: 24px 24px 44px !important;
}

.uv-edit-shell {
  max-width: 1040px !important;
}

/* 상단 제목 영역 축소 */
.uv-edit-head {
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.uv-edit-head-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 17px !important;
  font-size: 22px !important;
}

.uv-edit-head-text h1 {
  margin-bottom: 5px !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
}

.uv-edit-head-text p {
  max-width: 760px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* 메인 카드 축소 */
.uv-edit-card {
  padding: 22px !important;
  border-radius: 24px !important;
}

/* 좌우 비율 조정 */
.uv-edit-grid {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 20px !important;
}

/* 라벨 크기 축소 */
.uv-field {
  margin-bottom: 18px !important;
}

.uv-field label,
.uv-box-title {
  gap: 8px !important;
  margin-bottom: 10px !important;
  font-size: 16px !important;
}

/* 입력칸 축소 */
.uv-field input[type="text"],
.uv-field textarea {
  border-radius: 16px !important;
  padding: 13px 15px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.uv-field input[type="text"] {
  height: 48px !important;
}

.uv-field textarea {
  min-height: 190px !important;
  line-height: 1.55 !important;
}

/* 현재 썸네일 영역 축소 */
.uv-current-thumb-box,
.uv-video-select-box,
.uv-thumb-preview-box {
  padding: 16px !important;
  border-radius: 20px !important;
}

.uv-current-thumb-preview {
  width: 100% !important;
  max-width: 360px !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 16px !important;
}

.uv-current-thumb-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 오른쪽 영상 선택 영역 축소 */
.uv-video-preview-wrap {
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

.uv-thumb-video {
  aspect-ratio: 16 / 9 !important;
}

.uv-video-controls {
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.uv-mini-btn {
  padding: 8px 11px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

.uv-time-badge {
  padding: 8px 11px !important;
  font-size: 12px !important;
}

.uv-help-text {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* 새 썸네일 미리보기 축소 */
.uv-thumb-preview-box {
  margin-top: 14px !important;
}

.uv-generated-preview {
  min-height: 170px !important;
  border-radius: 16px !important;
}

.uv-thumb-empty-state,
.uv-thumb-preview-placeholder {
  min-height: 170px !important;
  padding: 16px !important;
  font-size: 13px !important;
}

/* 안내문/버튼 축소 */
.uv-edit-notice {
  margin-top: 18px !important;
  padding: 12px 14px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.uv-edit-actions {
  margin-top: 20px !important;
  gap: 10px !important;
}

.uv-btn {
  min-width: 104px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
}

.uv-delete-form {
  margin-top: 14px !important;
}

/* 반응형 */
@media (max-width: 1100px) {
  .uv-edit-shell {
    max-width: 920px !important;
  }

  .uv-edit-grid {
    grid-template-columns: 1fr !important;
  }

  .uv-edit-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .uv-thumb-preview-box {
    margin-top: 0 !important;
  }
}

@media (max-width: 760px) {
  .uv-edit-page {
    padding: 18px 14px 36px !important;
  }

  .uv-edit-head-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    font-size: 19px !important;
  }

  .uv-edit-head-text h1 {
    font-size: 28px !important;
  }

  .uv-edit-head-text p {
    font-size: 13px !important;
  }

  .uv-edit-card {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .uv-edit-right {
    display: block !important;
  }

  .uv-thumb-preview-box {
    margin-top: 14px !important;
  }

  .uv-field textarea {
    min-height: 150px !important;
  }

  .uv-edit-actions,
  .uv-delete-form {
    flex-direction: column !important;
  }

  .uv-btn {
    width: 100% !important;
  }
}
.uv-edit-head {
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  margin-bottom: 16px;
}

.uv-edit-head-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  font-size: 22px;
}

.uv-edit-head-text h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.uv-edit-head-text p {
  font-size: 13px;
  line-height: 1.5;
  max-width: none;
}
/* =========================================================
   User Video Edit Header - Compact Natural Alignment
========================================================= */

.uv-edit-head {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.uv-edit-head-icon {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 18px !important;
  background: linear-gradient(135deg, #ff6f9c 0%, #7c5cff 100%) !important;
  color: #fff !important;

  font-size: 24px !important;

  box-shadow:
    0 14px 32px rgba(85, 92, 255, 0.14),
    0 8px 22px rgba(255, 111, 156, 0.10) !important;
}

.uv-edit-head-text {
  min-width: 0 !important;
  height: 58px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.uv-edit-head-text h1 {
  margin: 0 !important;
  padding: 0 !important;

  color: #fff !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}

.uv-edit-head-text p {
  margin: 5px 0 0 !important;
  padding: 0 !important;

  max-width: 780px !important;

  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;

  white-space: normal !important;
  word-break: keep-all !important;
}

/* ========================================================================== 
   SPKLOVE UNIFIED DESIGN LAYER
   Dark interface with pink + orange accents
   ========================================================================== */

:root {
  color-scheme: dark;
  --spk-bg:#0c0a0b;
  --spk-bg-soft:#131012;
  --spk-surface:#191517;
  --spk-surface-2:#211b1e;
  --spk-surface-3:#2a2326;
  --spk-line:rgba(255,240,244,.085);
  --spk-line-strong:rgba(255,240,244,.145);
  --spk-text: #f7f7fa;
  --spk-text-soft:#ded8db;
  --spk-muted:#a39a9f;
  --spk-muted-2:#7f747a;
  --spk-pink: #ff5f8f;
  --spk-pink-2: #ff82a8;
  --spk-orange: #ff9b52;
  --spk-orange-2: #ffb06f;
  --spk-danger: #ff6677;
  --spk-success: #48d597;
  --spk-info: #72a7ff;
  --spk-accent-gradient: linear-gradient(135deg, var(--spk-pink), var(--spk-orange));
  --spk-accent-soft: linear-gradient(135deg, rgba(255,95,143,.17), rgba(255,155,82,.12));
  --spk-shadow-sm: 0 8px 24px rgba(0, 0, 0, .22);
  --spk-shadow-md: 0 18px 52px rgba(0, 0, 0, .32);
  --spk-shadow-accent: 0 12px 30px rgba(255, 95, 143, .18);
  --spk-radius-xs: 8px;
  --spk-radius-sm: 12px;
  --spk-radius-md: 16px;
  --spk-radius-lg: 22px;
  --spk-radius-xl: 28px;
  --spk-content-max: 1540px;
  --spk-transition: 160ms ease;

  /* Peach cursor theme */
  --spk-cursor-default: url("../cursors/peach-default.png") 2 2, auto;
  --spk-cursor-pointer: url("../cursors/peach-pointer.png") 2 2, pointer;
  --spk-cursor-text: url("../cursors/peach-text.png") 18 16, text;
  --spk-cursor-wait: url("../cursors/peach-wait.png") 16 16, wait;
  --spk-cursor-progress: url("../cursors/peach-progress.png") 2 2, progress;
  --spk-cursor-not-allowed: url("../cursors/peach-not-allowed.png") 16 16, not-allowed;
  --spk-cursor-help: url("../cursors/peach-help.png") 2 2, help;
  --spk-cursor-crosshair: url("../cursors/peach-crosshair.png") 16 16, crosshair;

  /* Legacy variable bridge */
  --bg: var(--spk-bg);
  --panel: var(--spk-surface);
  --panel-2: var(--spk-surface-2);
  --text: var(--spk-text);
  --muted: var(--spk-muted);
  --brand: var(--spk-pink);
  --accent: var(--spk-orange);
  --border: var(--spk-line);
  --header-bg:rgba(12,10,11,.88);
  --sidebar-bg:#141113;
}

*, *::before, *::after { box-sizing: border-box; }

/* Custom cursor states are enabled only on precise pointing devices. */
@media (pointer: fine) {
  html,
  body {
    cursor: var(--spk-cursor-default);
  }

  :where(
    a[href],
    button:not(:disabled),
    summary,
    select:not(:disabled),
    label[for],
    input[type="button"]:not(:disabled),
    input[type="submit"]:not(:disabled),
    input[type="reset"]:not(:disabled),
    input[type="checkbox"]:not(:disabled),
    input[type="radio"]:not(:disabled),
    input[type="range"]:not(:disabled),
    input[type="file"]:not(:disabled),
    [role="button"]:not([aria-disabled="true"]),
    [data-cursor="pointer"]
  ) {
    cursor: var(--spk-cursor-pointer);
  }

  :where(
    input:not([type]),
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="tel"],
    input[type="number"],
    textarea,
    [contenteditable="true"],
    [data-cursor="text"]
  ):not(:disabled) {
    cursor: var(--spk-cursor-text);
  }

  :where(
    :disabled,
    [aria-disabled="true"],
    .is-disabled,
    [data-cursor="not-allowed"]
  ) {
    cursor: var(--spk-cursor-not-allowed) !important;
  }

  :where(
    [aria-busy="true"],
    .is-loading,
    .spk-cursor-wait,
    [data-cursor="wait"]
  ) {
    cursor: var(--spk-cursor-wait) !important;
  }

  :where(
    .spk-cursor-progress,
    [data-cursor="progress"]
  ) {
    cursor: var(--spk-cursor-progress) !important;
  }

  :where(
    .spk-cursor-help,
    [data-cursor="help"]
  ) {
    cursor: var(--spk-cursor-help);
  }

  :where(
    .spk-cursor-crosshair,
    [data-cursor="crosshair"]
  ) {
    cursor: var(--spk-cursor-crosshair);
  }

  html[data-cursor-state="wait"],
  html[data-cursor-state="wait"] * {
    cursor: var(--spk-cursor-wait) !important;
  }

  html[data-cursor-state="progress"],
  html[data-cursor-state="progress"] * {
    cursor: var(--spk-cursor-progress) !important;
  }

  /* Precision manipulation keeps familiar native system cursors. */
  :where([draggable="true"], .spk-draggable) { cursor: grab; }
  :where([draggable="true"]:active, .spk-draggable:active, .is-dragging) { cursor: grabbing; }
  :where(.spk-resize-x) { cursor: ew-resize; }
  :where(.spk-resize-y) { cursor: ns-resize; }
  :where(.spk-resize-xy) { cursor: nwse-resize; }
}

html {
  background: var(--spk-bg);
  scrollbar-color: rgba(255, 126, 166, .42) rgba(255,255,255,.035);
  scrollbar-width: thin;
}

body.spk-app,
body:not(.embed-page):not(.blocked-page) {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% -10%, rgba(255,95,143,.075), transparent 30rem),
    radial-gradient(circle at 10% 15%, rgba(255,155,82,.05), transparent 28rem),
    var(--spk-bg);
  color: var(--spk-text-soft);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255,95,143,.34); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
::-webkit-scrollbar-thumb {
  background: rgba(255,126,166,.30);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,126,166,.48); }

img, video { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, [role="button"], a { -webkit-tap-highlight-color: transparent; }

:where(a) {
  color:var(--spk-pink-2);
  text-decoration:none;
  text-underline-offset:3px;
}

:where(a:hover) { color: #ff9aba; }

:where(button, a, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid rgba(255, 126, 166, .92);
  outline-offset: 3px;
}

.hidden, [hidden] { display: none !important; }
.spk-display-none { display: none; }
.spk-inline-link { color: var(--spk-text) !important; text-decoration: none !important; }
.spk-inline-link:hover { color: var(--spk-pink-2) !important; }
.spk-media-icon { margin-right: 4px; color: var(--spk-orange); }
.spk-comment-count, .spk-meta-muted { color: var(--spk-muted) !important; }
.spk-link-plain { text-decoration: none !important; }

/* App shell */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background:rgba(12,10,11,.84);
  border-bottom: 1px solid var(--spk-line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.navbar {
  min-height: var(--header-h, 64px);
  padding-inline: clamp(14px, 2vw, 28px);
}

.nav-collapse-btn {
  color: var(--spk-text-soft);
}

.nav-collapse-btn:hover {
  color: #fff;
  transform: translateY(-50%);
}

.spk-top-icon-btn,
.spk-navclean-icon-btn {
  border: 0;
  background: transparent;
  color: var(--spk-text-soft);
  box-shadow: none;
}

.spk-top-icon-btn:hover,
.spk-navclean-icon-btn:hover {
  border-color: transparent;
  background: rgba(255,255,255,.055);
  color: #fff;
  transform: none;
}

.vnav {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 18rem),
    #141113;
  border-right-color: var(--spk-line);
  box-shadow: 16px 0 42px rgba(0,0,0,.16);
}

.brand-link { color: #fff; }
.brand-logo { border: 0; box-shadow: none; background: transparent; }
.brand-name { letter-spacing: -.02em; }

.vnav__section-title,
.vnav__section-text { color: var(--spk-muted-2); }

.vnav__item {
  border-radius: var(--spk-radius-sm);
  color: var(--spk-muted);
}
.vnav__item:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  border-color: var(--spk-line);
}
.vnav__item.is-active {
  background: var(--spk-accent-gradient);
  box-shadow: var(--spk-shadow-accent);
  color: #fff;
}

.vnav__badge,
.spk-navclean-badge,
.spk-chat-unread-badge {
  background: var(--spk-accent-gradient);
  color: #fff;
  border:2px solid #141113;
}

.content {
  width: auto;
  min-height: calc(100dvh - var(--header-h, 64px));
  color: var(--spk-text-soft);
}

.content > :where(.admin-page,.admin-badge-page,.admin-users-wrap,.admin-upload-page,.arc-board,.post-wrapper,.write-container,.account-page,.profile-page-shell,.dm-page,.dm-chat-page,.video-page,.user-video-page,.image-page,.manga-page,.view-image-page,.watch-page,.game-list-container,.game-view-container,.content-limit-page,.live-wrap,.visitor-admin-wrap,.notice-detail-page) {
  animation: spk-page-enter .24s ease both;
}

/* Fixed scroll controls inside the manga reader must remain viewport-bound. */
.content > .manga-view-page {
  animation: spk-page-fade .24s ease both;
}

@keyframes spk-page-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spk-page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Typography */
:where(h1,h2,h3,h4) {
  color: var(--spk-text);
  text-wrap: balance;
}

:where(h1,h2,h3,h4,p) { overflow-wrap: anywhere; }

:where(.admin-hero,.account-hero,.uv-upload-hero,.uv-edit-head,.spk-profile-hero,.content-limit-card,.notice-detail-head) h1,
:where(.video-page,.user-video-page,.image-page,.manga-page) h1 {
  letter-spacing: -.035em;
}

/* Shared surfaces */
:where(
  .admin-hero,.admin-section-card,.admin-quick-card,.admin-panel,.admin-table-wrap,
  .dm-panel,.dm-chat-page,.dm-chat-header,.dm-messages,.dm-compose,
  .board-tabs,.board-table,.post-wrapper,.write-container,.edit-comment-page,
  .account-shell,.account-card,.account-panel,.spk-profile-hero,.profile-panel,
  .video-toolbar,.image-search-bar,.custom-select .select-selected,.select-options,
  .video-card,.image-card,.mg-card,.home-video-thumb,.home-image-thumb,.home-manga-thumb,
  .watch-sidebar,.spk-watch-card,.comments-box,.comment-section,
  .manga-reader-shell,.manga-reader-head,.manga-reader-toolbar,
  .game-card,.game-view-container,.content-limit-card,.notice-detail-card,
  .live-header,.live-card,.visitor-admin-card,.spk-live-chat-card,
  .notice-list-panel,.spk-notice-dialog,.auth-modal-content,.notification
) {
  border-color: var(--spk-line);
}

:where(
  .admin-section-card,.admin-quick-card,.dm-panel,.board-tabs,.board-table,
  .account-shell,.account-card,.profile-panel,.video-toolbar,.image-search-bar,
  .watch-sidebar,.spk-watch-card,.comments-box,.comment-section,
  .manga-reader-shell,.game-card,.notice-detail-card,.live-card,.visitor-admin-card
) {
  background-color: var(--spk-surface);
  box-shadow: var(--spk-shadow-sm);
}

:where(.admin-hero,.account-hero,.uv-upload-hero,.spk-profile-hero,.content-limit-card) {
  background:
    radial-gradient(circle at 88% 0%, rgba(255,95,143,.14), transparent 35%),
    radial-gradient(circle at 8% 100%, rgba(255,155,82,.09), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    var(--spk-surface);
  border: 1px solid var(--spk-line);
  box-shadow: var(--spk-shadow-md);
}

/* Buttons */
:where(
  .btn,.write-btn,.search-btn,.toolbar-upload-btn,.upload-btn,.submit-btn,.save-btn,
  .primary-btn,.account-primary-btn,.admin-primary-btn,.comment-button,
  .comment-submit-box button,.spk-notice-comment-form button,.uv-submit-btn,
  .dm-send-btn,.manga-control-btn,.reader-mode-btn
) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--spk-radius-sm);
  background: var(--spk-accent-gradient);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(255,95,143,.17);
  cursor: var(--spk-cursor-pointer);
  transition: transform var(--spk-transition), filter var(--spk-transition), box-shadow var(--spk-transition), border-color var(--spk-transition);
}

:where(
  .btn,.write-btn,.search-btn,.toolbar-upload-btn,.upload-btn,.submit-btn,.save-btn,
  .primary-btn,.account-primary-btn,.admin-primary-btn,.comment-button,
  .comment-submit-box button,.spk-notice-comment-form button,.uv-submit-btn,
  .dm-send-btn,.manga-control-btn,.reader-mode-btn
):hover {
  color: #fff;
  filter: brightness(1.07) saturate(1.04);
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(255,95,143,.23);
}

:where(.btn-secondary,.secondary-btn,.cancel-btn,.back-btn,.dm-secondary-btn,.admin-secondary-btn) {
  background: rgba(255,255,255,.055);
  color: var(--spk-text-soft);
  border-color: var(--spk-line);
  box-shadow: none;
}

:where(.btn-secondary,.secondary-btn,.cancel-btn,.back-btn,.dm-secondary-btn,.admin-secondary-btn):hover {
  background: rgba(255,255,255,.09);
  border-color: var(--spk-line-strong);
  color: #fff;
}

:where(.delete-btn,.danger-btn,.btn-danger) {
  background: rgba(255,102,119,.11);
  color: #ff8996;
  border-color: rgba(255,102,119,.22);
  box-shadow: none;
}

:where(button,[role="button"],.btn):disabled,
:where(button,[role="button"],.btn)[aria-disabled="true"] {
  opacity: .48;
  cursor: var(--spk-cursor-not-allowed);
  transform: none;
  filter: none;
}

/* Form controls */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .select-selected, .search-input-wrapper) {
  border-color: var(--spk-line);
  background-color: rgba(255,255,255,.045);
  color: var(--spk-text);
  border-radius: var(--spk-radius-sm);
  transition: border-color var(--spk-transition), background-color var(--spk-transition), box-shadow var(--spk-transition);
}

:where(input,textarea)::placeholder { color: #747784; opacity: 1; }

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .select-selected):focus {
  border-color: rgba(255,126,166,.58);
  background-color: rgba(255,255,255,.062);
  box-shadow: 0 0 0 4px rgba(255,95,143,.105);
  outline: none;
}

:where(textarea) { resize: vertical; }

:where(.form-group label,.field-label,.uv-field-label,.account-label) {
  color: var(--spk-text-soft);
  font-weight: 750;
}

/* Search and filters */
:where(.video-toolbar,.image-search-bar,.user-video-toolbar) {
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.search-input-wrapper:focus-within {
  border-color: rgba(255,126,166,.52);
  box-shadow: 0 0 0 4px rgba(255,95,143,.09);
}

.select-options {
  background:#211b1e;
  border: 1px solid var(--spk-line-strong);
  box-shadow: var(--spk-shadow-md);
  overflow: hidden;
}

.select-option:hover,
.select-option.active,
.select-items div:hover,
.same-as-selected {
  background: var(--spk-accent-soft);
  color: #fff;
}

/* Cards and media */
:where(.video-card,.image-card,.mg-card,.home-video-card,.home-image-card,.home-manga-card,.game-card,.watch-suggest) {
  transition: transform var(--spk-transition), border-color var(--spk-transition), box-shadow var(--spk-transition), background-color var(--spk-transition);
}

:where(.video-card,.image-card,.mg-card,.game-card) {
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.018)), var(--spk-surface);
  border: 1px solid var(--spk-line);
  border-radius: var(--spk-radius-md);
  overflow: hidden;
  box-shadow: var(--spk-shadow-sm);
}

:where(.video-card,.image-card,.mg-card,.home-video-card,.home-image-card,.home-manga-card,.game-card,.watch-suggest):hover {
  transform: translateY(-3px);
}

:where(.video-card,.image-card,.mg-card,.game-card):hover {
  border-color: rgba(255,126,166,.28);
  box-shadow: var(--spk-shadow-md);
}

:where(.video-thumbnail,.image-thumb,.manga-thumb,.home-video-thumb,.home-image-thumb,.home-manga-thumb,.game-thumb-wrap,.watch-suggest-thumb) {
  background: #08080b;
}

:where(.video-thumbnail,.image-thumb,.manga-thumb,.home-video-thumb,.home-image-thumb,.home-manga-thumb) img {
  transition: transform .24s ease, filter .24s ease;
}

:where(.video-card,.image-card,.mg-card,.home-video-card,.home-image-card,.home-manga-card):hover :where(.video-thumbnail,.image-thumb,.manga-thumb,.home-video-thumb,.home-image-thumb,.home-manga-thumb) img {
  transform: scale(1.035);
  filter: brightness(1.06);
}

:where(.video-title,.image-title,.manga-title,.home-video-title,.home-manga-title,.watch-suggest-title,.game-card-title) {
  color: var(--spk-text);
  font-weight: 800;
}

:where(.video-meta,.image-meta,.manga-meta,.home-video-author,.home-video-stats,.home-manga-meta,.watch-suggest-meta) {
  color: var(--spk-muted);
}

:where(.duration,.home-video-duration,.watch-suggest-duration,.video-duration) {
  background: rgba(7,7,10,.82);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}

/* Tables and lists */
:where(table,.board-table,.admin-table-wrap) {
  border-color: var(--spk-line);
}

:where(table thead th,.board-table-header) {
  background: rgba(255,255,255,.035);
  color: var(--spk-muted);
}

:where(table tbody tr,.board-table-row,.dm-thread-item,.dm-request-item) {
  border-color: rgba(255,255,255,.055);
}

:where(table tbody tr:hover,.board-table-row:hover,.dm-thread-item:hover,.dm-request-item:hover) {
  background:rgba(255,126,166,.05);
}

/* Pagination */
.pagination,
.pagination-v2,
.user-video-pagination,
.board-pagination,
.notice-list-pagination {
  width: fit-content;
  max-width: 100%;
  margin: clamp(26px, 4vw, 42px) auto 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  border: 1px solid rgba(255, 240, 244, .065);
  border-radius: 16px;
  background: rgba(255, 255, 255, .022);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.pagination li {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination button,
.pagination span,
.pagination-v2 a,
.pagination-v2 button,
.pagination-v2 span,
.user-video-pagination a,
.user-video-pagination button,
.user-video-pagination span,
.board-pagination a,
.board-pagination button,
.board-pagination span,
.notice-list-pagination a,
.notice-list-pagination button,
.notice-list-pagination span {
  min-width: 38px;
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--spk-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: var(--spk-cursor-pointer);
  transition: background var(--spk-transition), border-color var(--spk-transition), color var(--spk-transition);
}

.pagination a:hover,
.pagination button:hover,
.pagination-v2 a:hover,
.pagination-v2 button:hover,
.user-video-pagination a:hover,
.user-video-pagination button:hover,
.board-pagination a:hover,
.board-pagination button:hover,
.notice-list-pagination a:hover,
.notice-list-pagination button:hover {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 240, 244, .075);
  color: var(--spk-text);
  transform: none;
}

.pagination li.active > a,
.pagination a.active,
.pagination .active,
.pagination-v2 .active-v2,
.pagination-v2 .active,
.user-video-pagination .active,
.board-pagination .active,
.notice-list-pagination .active,
.pagination [aria-current="page"],
.pagination-v2 [aria-current="page"] {
  background: var(--spk-accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 95, 143, .17);
  cursor: var(--spk-cursor-default);
}

.pagination-v2 .arrow-v2,
.pagination-v2 button:has(i),
.user-video-pagination .arrow,
.board-pagination .arrow {
  color: var(--spk-text-soft);
}

.pagination-v2 input {
  width: 58px;
  min-width: 58px;
  height: 38px;
  margin: 0 2px;
  padding: 0 8px;
  border: 1px solid rgba(255, 240, 244, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--spk-text);
  text-align: center;
  outline: none;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}

.pagination-v2 input:focus {
  border-color: rgba(255, 126, 166, .55);
  box-shadow: 0 0 0 3px rgba(255, 95, 143, .10);
}

.pagination .disabled,
.pagination [aria-disabled="true"],
.pagination-v2 .disabled,
.pagination-v2 [disabled] {
  opacity: .4;
  cursor: var(--spk-cursor-default);
  pointer-events: none;
}

/* Comments */
:where(.comment-section,.comments-box,.spk-notice-comments) {
  border-radius: var(--spk-radius-lg);
}

:where(.comment-item,.comment,.spk-notice-comment-item) {
  border-color: rgba(255,255,255,.06);
}

:where(.comment-avatar,.comment-profile-img,.spk-live-chat-avatar) {
  border: 1px solid rgba(255,255,255,.12);
  background: var(--spk-surface-2);
}

:where(.comment-content,.comment-text,.spk-notice-comment-text) {
  color: var(--spk-text-soft);
}

/* Modals, dropdowns, toast */
:where(.notice-list-modal,.spk-notice-modal,.auth-modal,.spk-live-chat-layer) {
  backdrop-filter: blur(4px);
}

:where(.notice-list-overlay,.spk-notice-backdrop,.auth-modal-overlay,.spk-live-chat-backdrop,.nav-overlay,.mobile-overlay) {
  background: rgba(3,3,6,.68);
}

:where(.notice-list-panel,.spk-notice-dialog,.auth-modal-content,.spk-live-chat-card,.nav-profile-dropdown,.lang-options) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    #191517;
  border: 1px solid var(--spk-line-strong);
  box-shadow: var(--spk-shadow-md);
}

:where(.notice-list-close,.spk-notice-close,.auth-modal-close,.spk-mini-close,.spk-mini-collapse) {
  background: rgba(255,255,255,.05);
  color: var(--spk-muted);
  border: 1px solid var(--spk-line);
}

:where(.notice-list-close,.spk-notice-close,.auth-modal-close,.spk-mini-close,.spk-mini-collapse):hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.notification-container { z-index: 3000; }
.notification {
  background:rgba(25,21,23,.95);
  border: 1px solid var(--spk-line-strong);
  border-left: 3px solid var(--spk-info);
  color: var(--spk-text);
  backdrop-filter: blur(16px);
}
.notification.success { border-left-color: var(--spk-success); }
.notification.error { border-left-color: var(--spk-danger); }
.notification.warning { border-left-color: var(--spk-orange); }
.notification .progress { background: var(--spk-accent-gradient); }

/* Admin */
.admin-page,
.admin-badge-page,
.admin-users-wrap,
.admin-upload-page,
.live-wrap,
.visitor-admin-wrap {
  width: min(var(--spk-content-max), 100%);
  margin-inline: auto;
}

.admin-eyebrow,
.admin-page-head-badge,
.account-eyebrow,
.uv-upload-eyebrow,
.spk-profile-kicker,
.notice-detail-badge {
  background: var(--spk-accent-soft);
  color: var(--spk-pink-2);
  border: 1px solid rgba(255,126,166,.16);
}

.admin-quick-card i,
.admin-stat-icon {
  background: var(--spk-accent-soft);
  color: var(--spk-pink-2);
}

/* Community */
.arc-board,
.post-wrapper,
.write-container {
  --board-bg-app: var(--spk-bg);
  --board-bg-1: var(--spk-surface);
  --board-bg-2: var(--spk-surface-2);
  --board-line: var(--spk-line);
  --board-text: var(--spk-text-soft);
  --board-text-dim: var(--spk-muted);
  --board-brand: var(--spk-pink);
  --w-bg-1: var(--spk-surface);
  --w-bg-2: var(--spk-surface-2);
  --w-line: var(--spk-line);
  --w-text: var(--spk-text-soft);
  --w-dim: var(--spk-muted);
  --w-brand: var(--spk-pink);
  --post-bg-1: var(--spk-surface);
  --post-bg-2: var(--spk-surface-2);
  --post-line: var(--spk-line);
  --post-text: var(--spk-text-soft);
  --post-text-dim: var(--spk-muted);
  --post-brand: var(--spk-pink);
}

.board-tabs a.active { background: var(--spk-accent-gradient); }

/* DM */
:root {
  --dm-bg: var(--spk-bg);
  --dm-panel: var(--spk-surface);
  --dm-panel-2: var(--spk-surface-2);
  --dm-line: var(--spk-line);
  --dm-line-strong: var(--spk-line-strong);
  --dm-text: var(--spk-text);
  --dm-muted: var(--spk-muted);
  --dm-muted-2: var(--spk-muted-2);
  --dm-primary: var(--spk-pink);
  --dm-primary-2: var(--spk-orange);
  --dm-primary-soft: rgba(255,95,143,.13);
}

.dm-thread-item.is-active,
.dm-user-result:hover { background: var(--spk-accent-soft); }
.dm-message.mine .dm-message-bubble { background: var(--spk-accent-gradient); color: #fff; }

/* Manga */
:root {
  --manga-bg: var(--spk-bg);
  --manga-card: var(--spk-surface);
  --manga-card-2: var(--spk-surface-2);
  --manga-line: var(--spk-line);
  --manga-text: var(--spk-text);
  --manga-muted: var(--spk-muted);
  --manga-pink: var(--spk-pink);
  --manga-pink-2: var(--spk-orange);
  --manga-shadow: var(--spk-shadow-md);
}

.manga-reader-toolbar,
.manga-scroll-toolbar {
  background: rgba(21,22,29,.90);
  border-color: var(--spk-line-strong);
  backdrop-filter: blur(16px);
}

/* Profile */
.account-page,
.profile-page-shell { color: var(--spk-text-soft); }

.profile-tabs a.active,
.account-tabs button.active,
.account-nav a.active { color: #fff; background: var(--spk-accent-gradient); }

/* Watch pages */
.watch-page { width: min(1780px, 100%); }
.spk-watch-card { overflow: hidden; }
.video-title { letter-spacing: -.025em; }

/* Footer */
.spk-endcap {
  border-top: 1px solid var(--spk-line);
  background:
    radial-gradient(circle at 16% 0%, rgba(255,95,143,.08), transparent 24rem),
    #100d0f;
}
.spk-endcap__logo-mark { background: var(--spk-accent-gradient); box-shadow: var(--spk-shadow-accent); }
.spk-endcap__nav a { color: var(--spk-muted); }
.spk-endcap__nav a:hover { color: #fff; }

/* Notice detail page (missing legacy notice.css replacement) */
.notice-detail-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}
.notice-detail-card {
  overflow: hidden;
  border: 1px solid var(--spk-line);
  border-radius: var(--spk-radius-xl);
  background: var(--spk-surface);
  box-shadow: var(--spk-shadow-md);
}
.notice-detail-head {
  padding: clamp(24px, 4vw, 42px);
  background: var(--spk-accent-soft);
  border-bottom: 1px solid var(--spk-line);
}
.notice-detail-head h1 { margin: 10px 0 8px; font-size: clamp(25px, 4vw, 38px); }
.notice-detail-meta { color: var(--spk-muted); }
.notice-detail-body { padding: clamp(24px, 4vw, 42px); color: var(--spk-text-soft); line-height: 1.8; }
.notice-detail-actions { padding: 0 clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px); }

/* Legacy comment edit route */
.community-legacy-page {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
}
.community-legacy-page .form-control,
.community-legacy-page .form-select { width: 100%; }

/* Chat fragment */
.chat-container { display: flex; justify-content: center; margin: 3rem 0; }
.chat-box { width: min(720px, 100%); padding: 20px; border: 1px solid var(--spk-line); border-radius: var(--spk-radius-lg); background: var(--spk-surface); }
.chat-form { display: flex; gap: 10px; margin-top: 1rem; }
.chat-input { flex: 1; min-width: 0; padding: 10px 14px; }
.chat-submit { padding: 10px 16px; }
.chat-login-hint { color: var(--spk-muted); }

/* Standalone embed and block pages */
html.embed-page,
body.embed-page { margin: 0; width: 100%; height: 100%; background: #000; overflow: hidden; }
.embed-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; accent-color: var(--spk-pink); }

body.blocked-page {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255,95,143,.10), transparent 30rem),
    var(--spk-bg);
}
.blocked-card {
  width: min(620px, 100%);
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid var(--spk-line-strong);
  border-radius: var(--spk-radius-xl);
  background: var(--spk-surface);
  box-shadow: var(--spk-shadow-md);
}
.blocked-badge { display: inline-flex; margin-bottom: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(255,102,119,.12); color: #ff8996; font-size: 13px; font-weight: 850; }
.blocked-card h1 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 36px); }
.blocked-card p { color: var(--spk-text-soft); }
.blocked-info { margin-top: 20px; padding: 16px; border: 1px solid var(--spk-line); border-radius: var(--spk-radius-md); background: var(--spk-bg-soft); }

/* Responsive */
@media (max-width: 992px) {
  header { position: sticky; }
  .content { padding: 14px; }
  .navbar { padding-inline: 12px; }
  .vnav { box-shadow: 20px 0 52px rgba(0,0,0,.36); }
}

@media (max-width: 760px) {
  body.spk-app, body:not(.embed-page):not(.blocked-page) { font-size: 14px; }
  .content { padding: 10px; }
  :where(.admin-page,.admin-badge-page,.admin-users-wrap,.admin-upload-page,.dm-page,.account-page,.profile-page-shell,.notice-detail-page) { padding-left: 8px; padding-right: 8px; }
  :where(.admin-hero,.account-hero,.uv-upload-hero,.spk-profile-hero,.content-limit-card) { border-radius: var(--spk-radius-lg); }
  :where(.video-toolbar,.image-search-bar,.user-video-toolbar) { border-radius: var(--spk-radius-md); }
  .pagination :where(a,button,span),
  .pagination-v2 :where(a,button,span),
  .user-video-pagination :where(a,button,span),
  .board-pagination :where(a,button,span),
  .notice-list-pagination :where(a,button,span) { min-width: 36px; min-height: 36px; }
  .chat-form { flex-direction: column; }
  .chat-submit { width: 100%; }
}

@media (max-width: 520px) {
  .content { padding-inline: 8px; }
  :where(.video-card,.image-card,.mg-card,.game-card) { border-radius: 14px; }
  .notice-detail-page { padding: 8px; }
  .notice-detail-card { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* ===== TEMPLATE CLEANUP UTILITIES ===== */
.comment-meta-row { display: flex; align-items: center; }
.comment-meta-avatar { border-radius: 50%; margin-right: 8px; }
.comment-date-offset { margin-left: 10px; }
.manga-view-page-spaced { padding-top: 40px; padding-bottom: 40px; box-sizing: border-box; }
.login-banned-card {
  width: min(700px, calc(100% - 24px));
  margin: clamp(34px, 10vh, 80px) auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--spk-line-strong);
  border-radius: var(--spk-radius-lg);
  background: var(--spk-surface);
  color: var(--spk-text-soft);
  box-shadow: var(--spk-shadow-md);
}

/* ===== STANDALONE PAGE RESET SAFETY ===== */
body.embed-page {
  display: block;
  min-height: 0;
  flex-direction: initial;
}
body.blocked-page {
  color: var(--spk-text-soft);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
