/* ============================================================
   JAVFREE STYLE CLONE (SAFE DESIGN REPLICA)
   ============================================================ */

/* -------------------------------------
   BASE
-------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background: #e5e5e5;
    color: #222;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 20px;
}
/* Reset bullets for navigation lists */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


a {
    color: #e63737;
    text-decoration: none;
}
a:hover {
    color: #ff4a4a;
}

/* -------------------------------------
   LAYOUT — HEADER + SIDEBAR
-------------------------------------- */
.header {
    width: 100%;
    height: 60px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid #222;
}
.header-title {
    font-size: 21px;
    font-weight: bold;
    color: #e63737;
}

.sidebar {
    width: 220px;
    background: #0d0d0d;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 60px;
    border-right: 1px solid #222;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}
.sidebar a:hover {
    background: #181818;
    color: #fff;
}

.main {
    margin-left: 220px;
    padding: 90px 30px 40px;
}

/* -------------------------------------
   CARDS (javfree style)
-------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.card {
    background: #f0f0f0;
    border: 1px solid #222;
    border-radius: 3px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255,0,0,0.3);
}

.card img {
    width: 100%;
    display: block;
}

.card-body {
    padding: 10px;
}
.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* 제목은 최대 2줄까지만 노출 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;     /* 넘치는 부분은 ... 처리 */
}
.card-sub {
    font-size: 13px;
    color: #555;
}

/* -------------------------------------
   BUTTONS
-------------------------------------- */
.btn {
    display: inline-block;
    padding: 7px 12px;
    background: #555;
    color: #fff;
    border-radius: 3px;
    margin: 3px 0;
    cursor: pointer;
    border: 1px solid #444;
}

.btn:hover {
    background: #444;
}


.btn-primary {
    background: #e63737;
    border-color: #bb2929;
    color: #fff;
}
.btn-primary:hover {
    background: #ff4a4a;
}

/* -------------------------------------
   INPUTS
-------------------------------------- */
input, textarea, select {
    background: #ffffff;
    border: 1px solid #444;
    padding: 7px;
    color: #222222;
    width: 100%;
    border-radius: 3px;
    margin: 5px 0 12px;
}
textarea {
    min-height: 150px;
}

textarea {
    min-height: 150px;
}

/* -------------------------------------
   TABLE
-------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table th, table td {
    border: 1px solid #222;
    padding: 8px;
    text-align: left;
}
table th {
    background: #1c1c1c;
    color: #e63737;
}

/* -------------------------------------
   TAGS
-------------------------------------- */
.tag {
    display: inline-block;
    padding: 3px 7px;
    background: #272727;
    border: 1px solid #444;
    border-radius: 3px;
    margin: 2px 3px;
    font-size: 12px;
    color: #ccc;
}
.tag:hover {
    background: #333;
    color: #fff;
}

/* -------------------------------------
   WORK DETAIL PAGE
-------------------------------------- */
.work-detail {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}
.work-cover img {
    width: 280px;
    border: 1px solid #333;
}
.work-info {
    flex: 1;
    color: #222;
}
.work-info h2 {
    margin: 0 0 10px;
    color: #ff4a4a;
}

/* screenshot gallery */
.ss-gallery {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 12px;
}
.ss-gallery img {
    width: 100%;
    border: 1px solid #333;
    transition: transform .2s;
}
.ss-gallery img:hover {
    transform: scale(1.05);
    border-color: #ff4a4a;
}

/* -------------------------------------
   ACTOR PAGE
-------------------------------------- */
.actor-info-box {
    background: #f0f0f0;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #222;
}
.actor-name {
    font-size: 22px;
    color: #ff4a4a;
    font-weight: bold;
}

/* -------------------------------------
   PUBLIC SITE
-------------------------------------- */
.public-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}


/* -------------------------------------
   PUBLIC GLOBAL HEADER
-------------------------------------- */
.g-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #e5e5e5;
    border-bottom: 1px solid #222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.g-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
}
.g-logo a {
    font-size: 22px;
    font-weight: bold;
    color: #ff4a4a;
    text-decoration: none;
}
.g-logo a span {
    color: #fff;
}
.g-search {
    flex: 1;
    max-width: 260px;
    margin: 0 18px;
    display: flex;
}
.g-search input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #444;
    background: #fff;
    color: #222;
    font-size: 14px;
    height: 34px;
    box-sizing: border-box;
}
.g-search button {
    padding: 7px 14px;
    border-radius: 0 4px 4px 0;
    border: 1px solid #ff4a4a;
    background: #ff4a4a;
    color: #fff;
    font-size: 14px;
    height: 34px;
    box-sizing: border-box;
    cursor: pointer;
    height: 34px;
}
.g-search input[type="text"],
.g-search button {
    height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
    box-sizing: border-box;
}

.g-search button:hover {
    background: #ff6a6a;
}
.g-user {
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}
.g-user .g-username {
    color: #eee;
}
.g-user a {
    color: #ffb84d;
    text-decoration: none;
}
.g-user a:hover {
    text-decoration: underline;
}
.g-header-nav {
    display: flex;
    align-items: center;
    padding: 6px 18px 8px 18px;
    border-top: 1px solid #222;
    background: #101010;
    gap: 14px;
    font-size: 14px;
}
.g-nav-item {
    color: #222;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 3px;
}
.g-nav-item:hover {
    background: #222;
    color: #fff;
}
.g-nav-item-active {
    background: #ff4a4a;
    color: #fff;
}
.g-page {
    padding-top: 92px; /* header height compensation */
}



/* Community sub navigation (boards bar) */
.g-sub-nav {
    display: flex;
    align-items: center;
    padding: 4px 18px 6px 18px;
    border-top: 1px solid #222;
    background: #181818;
    gap: 10px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
}

.g-sub-nav-item {
    color: #ccc;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #333;
}

.g-sub-nav-item:hover {
    background: #222;
    color: #fff;
}

.g-sub-nav-empty {
    color: #777;
    font-size: 12px;
}

body {
  padding-bottom: 60px;
}

/* === Search frame & tabs (minnano-av style inspired) === */
.g-search {
    flex: 1;
    max-width: 260px;
    margin: 0 18px;
    display: flex;
    flex-direction: column;
}

.g-search-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.g-search-tab {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #e5e5e5;
    color: #bbb;
    cursor: pointer;
}

.g-search-tab.active {
    border-color: #ff4a4a;
    background: #ff4a4a;
    color: #fff;
}

.g-search-form {
    display: flex;
}

.g-search-form input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #444;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
    height: 34px;
}

.g-search-form button {
    padding: 7px 14px;
    border-radius: 0 4px 4px 0;
    border: 1px solid #ff4a4a;
    background: #ff4a4a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    height: 34px;
}

.g-search-form button:hover {
    background: #ff6a6a;
}



/* === Search bar frame / visual style (no tabs) === */
.g-header-top {
    background: #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.g-search {
    flex: 1;
    max-width: 260px;
    margin: 6px 18px;
    display: flex;
    align-items: center;
}

.g-search-frame {
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    background: #e5e5e5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06),
                0 0 10px rgba(0,0,0,0.7);
}

.g-search-form {
    display: flex;
}

.g-search-form input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #444;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
    height: 34px;
}

.g-search-form button {
    padding: 7px 14px;
    border-radius: 0 4px 4px 0;
    border: 1px solid #ff4a4a;
    background: #ff4a4a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.g-search-form button:hover {
    background: #ff6a6a;
}



/* ===== Global public theme: grey panels + top bar ===== */

.g-topbar {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #e5e5e5;
    border-bottom: 1px solid #d0d0d0;
    font-size: 16px;
    color: #222;
}

.g-topbar-left,
.g-topbar-center,
.g-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g-topbar-center {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.g-topbar-mode {
    padding: 2px 8px;
    border-radius: 999px;
    background: #333;
    color: #fff;
    font-size: 11px;
}

.g-topbar-link {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    padding: 4px 6px;
}

.g-topbar-link:hover {
    text-decoration: underline;
}

.g-topbar-badge {
    display: inline-block;
    margin-left: 2px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ff4d4d;
    color: #fff;
    font-size: 10px;
}

.g-topbar-hello {
    font-size: 12px;
    color: #333;
}

/* Header main row adjust to match theme */
.g-header-top {
    background: #f2f2f2;
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Generic light content panels site-wide */
.g-content-panel,
.board-list,
.board-view,
.work-layout,
.actor-layout,
.search-result-section {
    border: 1px solid #cccccc;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Board list rows */
.board-card,
.board-view {
    background: #ffffff;
}

/* Basic text colors inside panels */
.g-content-panel,
.board-list,
.board-view,
.work-layout,
.actor-layout,
.search-result-section {
    color: #222;
}



/* -------------------------------------
   SITE FOOTER (공통)
-------------------------------------- */
.site-footer {
    clear: both;
    margin-top: 40px;
    padding: 20px 0 30px 0;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    line-height: 1.6;
}

.site-footer-inner p {
    margin: 4px 0;
}

.site-footer-inner a {
    color: #666;
    text-decoration: underline;
    font-size: 12px;
}

/* =========================================
   Mobile adjustments for better readability
   ========================================= */
@media (max-width: 768px) {
  html, body {
    font-size: 18px;
    line-height: 1.7;
  }

  .public-wrapper {
    max-width: 100%;
    padding: 12px 8px;
  }

  .g-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .g-header-nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
  }

  .g-nav-item {
    font-size: 14px;
    padding: 6px 8px;
  }

  .card-title,
  .work-info h2,
  .board-list .subject,
  .board-view h1 {
    font-size: 16px;
  }
}


/* Home/global header styles extracted from public_index */
.home-header {
  background: #f2f2f2;
  border-bottom: 1px solid #d0d0d0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.home-top-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.home-header-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 18px;
  background: #e5e5e5;
  border-bottom: 1px solid #d0d0d0;
  font-size: 18px;
  color: #222;
}

.home-top-link {
  color: #222;
  text-decoration: none;
  font-size: 15px;
  padding: 0 2px;
}


.home-top-user {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}

.home-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px 18px;
}

.home-logo a {
  font-size: 32px;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.home-logo span {
  color: #e63737;
}

.home-search {
  flex: 1;
  max-width: 260px;
  margin: 0 18px;
  display: flex;
  align-items: stretch;
}


.home-search input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #444;
  background: #fff;
  color: #222;
  font-size: 14px;
  box-sizing: border-box;
  height: 34px;
}

.home-search button {
  padding: 7px 14px;
  border-radius: 0 4px 4px 0;
  border: 1px solid #007bff;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  height: 34px;
}
.home-top-user a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.home-top-user a:hover {
  background: #0056d6;
}



/* 공통 메인 섹션 타이틀 (추천 콘텐츠, AV 여배우 목록, JAV 작품, VR 작품, 출시정보 등) */
.page-main-title {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  background: #f0f0f0;
  border-bottom: 1px solid #dddddd;
}
.page-main-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  margin-right: 8px;
  border-radius: 3px;
  background: #3399ff;
}


/* 홈: 최근 데뷔한 신인 AV 여배우 카드 스타일 */
.home-actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.home-actor-item {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #333333;
}
.home-actor-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000000;
  overflow: hidden;
}
.home-actor-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.home-actor-meta {
  padding: 6px 8px 8px 8px;
}
.home-actor-name-main {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-actor-debut {
  font-size: 11px;
  color: #cccccc;
}


/* 최근 데뷔한 신인 AV 여배우 - 이미지 + 이름 그리드 (Minnano 스타일 비슷하게) */
.rookie-actor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.rookie-actor-item {
  display: block;
  width: calc(20% - 10px); /* PC에서 5열 정도 */
  max-width: 160px;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1024px) {
  .rookie-actor-item {
    width: calc(25% - 10px); /* 태블릿 4열 */
  }
}

@media (max-width: 768px) {
  .rookie-actor-item {
    width: calc(33.333% - 8px); /* 작은 태블릿 3열 */
  }
}

@media (max-width: 480px) {
  .rookie-actor-item {
    width: calc(50% - 8px); /* 모바일 2열 */
  }
}

.rookie-actor-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}

.rookie-actor-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rookie-no-image {
  width: 100%;
  height: 100%;
  font-size: 11px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rookie-actor-name {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
