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: 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: 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;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}

.pagination button {
  background: #333;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
}

.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 {
  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;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  color: white;
  background: #333;
  padding: 6px 10px;
  margin: 0 2px;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a.active {
  background: #f00;
}

.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: 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: 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: 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: pointer;
}

.video-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 10px 20px 20px;
  flex-wrap: wrap;
}

.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, #212734);
  --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: 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: 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 {
    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: 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: 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: 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: 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: 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: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 v2 (Pink Minimal)
   =============================== */

.pagination-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 40px 0;
}

/* 기본 버튼 */
.pagination-v2 button {
  min-width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #1c1c1c;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

/* 숫자 hover */
.pagination-v2 button:hover {
  background: #2a2a2a;
}

/* 활성 페이지 */
.pagination-v2 .active-v2 {
  background: #ff6b88;
  color: #fff;
  font-weight: 600;
}

/* 화살표 버튼 */
.pagination-v2 .arrow-v2 {
  background: transparent;
  color: #aaa;
}

.pagination-v2 .arrow-v2:hover {
  background: transparent;
  color: #ff6b88;
}

/* 입력 박스 */
.pagination-v2 input {
  width: 60px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #151515;
  color: #fff;
  text-align: center;
  outline: none;
  font-size: 14px;
  margin: 0 8px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* input focus */
.pagination-v2 input:focus {
  border-color: #ff6b88;
  box-shadow: 0 0 0 2px rgba(255, 107, 136, 0.25);
}

/* 모바일 대응 */
@media (max-width: 600px) {
  .pagination-v2 {
    gap: 4px;
  }

  .pagination-v2 button {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .pagination-v2 input {
    width: 52px;
    height: 32px;
    font-size: 13px;
  }
}

.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: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: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:pointer;
}

.select-options{
    display:none;
    position:absolute;
    top:60px;
    width:100%;

    background:#111;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);

    overflow:hidden;
    z-index:100;
}

.select-options div{
    padding:12px 16px;
    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: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: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:pointer;
}

.autocomplete-box div:hover{
    background:#ff6b88;
    border-radius:12px;
}

.image-search-wrapper{
    margin: 22px 0 12px var(--section-title-left);
}

.image-search-bar{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    max-width:900px;
}

.image-search-wrapper,
.image-search-bar{
    border-bottom:none !important;
}

.search-input-wrapper{
    flex:1;
    position:relative;
}

/* ===== 메인 박스 ===== */
.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: 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: 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: 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: 44px 52px 70px;
  color: #fff;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 제목 영역: 기존 동영상 페이지처럼 왼쪽 시작점 맞춤 */
.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 44px;
  padding: 0;
  box-sizing: border-box;
}

/* 기존 동영상 페이지처럼 한 줄 정렬 */
.user-video-page .image-search-bar {
  display: grid;
  grid-template-columns: minmax(420px, 690px) 150px 80px 130px;
  align-items: center;
  justify-content: start;
  gap: 14px;

  width: 100%;
  max-width: 1084px;
  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 {
  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: 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;
}

/* 화면이 좁아질 때 */
@media (max-width: 1280px) {
  .user-video-page {
    padding: 40px 42px 64px;
  }

  .user-video-page .image-search-bar {
    grid-template-columns: minmax(300px, 1fr) 145px 78px 124px;
    max-width: 100%;
    gap: 12px;
  }

  .user-video-page .custom-select {
    width: 145px;
  }

  .user-video-page .search-btn {
    width: 78px;
  }

  .user-video-page .toolbar-upload-btn {
    width: 124px;
  }
}

@media (max-width: 900px) {
  .user-video-title {
    font-size: 28px;
  }

  .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%;
  }

  .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;
    margin: 0;
  }

  .user-video-page .custom-select {
    flex: none;
  }

  .user-video-page .search-btn {
    flex: none;
  }

  .user-video-page .toolbar-upload-btn {
    flex: none;
  }

  .user-video-empty {
    min-height: 300px;
  }
}


/* =========================
   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: 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: 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: 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: 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: pointer;
}

.uv-thumb-controls input[type="range"]:disabled {
  opacity: 0.45;
  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: 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: 42px;
    padding-right: 42px;
  }

  .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 !important;
    margin-bottom: 0 !important;
    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,
  .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;
  }
}


/* =========================
   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;
  }
}

