@charset "utf-8";

/*
 * 신설리 : 애니, 영화 리뷰
 * 처음부터 새로 만든 커스텀 스킨
 * 화이트 배경 + 오렌지(#ff6e41) 포인트 / 포스터 그리드
 */

:root {
  --orange: #ff6e41;
  --orange-deep: #e8552a;
  --orange-soft: #fff1ec;
  --text: #232323;
  --text-dim: #8a8a8a;
  --line: #ececec;
  --bg: #ffffff;
  --radius: 14px;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%;
  background: var(--bg); color: var(--text);
  font-family: "Pretendard-Regular", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, form, fieldset, legend, input, textarea, figure { margin: 0; padding: 0; }
header, footer, section, article, aside, nav, figure { display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; vertical-align: top; max-width: 100%; }
button { border: 0; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; border-radius: 0; }
hr { display: none; }
.screen_out { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

#acc-nav { position: absolute; top: 0; left: 0; width: 100%; height: 0; overflow: hidden; z-index: 999; }
#acc-nav a { position: absolute; top: -50px; left: 0; padding: 12px 20px; background: var(--orange); color: #fff; font-size: 13px; }
#acc-nav a:focus, #acc-nav a:active { top: 0; }

/* ---------- Header ---------- */
#header { border-bottom: 1px solid var(--line); background: #fff; }

/* 로고 풀와이드 배너 (메이플 블로그 참고 사이즈: 1020 x 44.69 비율) */
#header .logo-row {
  width: 100%;
  padding: 14px 24px 10px;
  text-align: center;
  background: var(--orange-soft);
}
#header h1.logo { line-height: 0; }
#header h1.logo a { display: inline-block; width: 100%; max-width: 960px; }
#header h1.logo a img { display: block; width: 100%; height: auto; }
#header h1.logo a:not(:has(img)) {
  display: block; padding: 8px 0; font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.01em;
}

#header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
}

#header .search { position: relative; }
#header .search input {
  width: 220px; height: 38px; padding: 0 42px 0 16px;
  border: 1.5px solid var(--line); border-radius: 20px;
  font-size: 12.5px; background: #faf9f7; outline: none;
  transition: border-color .2s ease;
}
#header .search input:focus { border-color: var(--orange); background: #fff; }
#header .search button {
  position: absolute; right: 4px; top: 4px; width: 30px; height: 30px;
  border-radius: 50%; font-size: 0;
}
#header .search button:before { content: "🔍"; font-size: 13px; }

#header .menu-toggle { display: none; width: 34px; height: 34px; flex: 0 0 34px; }
#header .menu-toggle span { display: block; position: relative; width: 20px; height: 2px; margin: 0 auto; background: var(--text); }
#header .menu-toggle span:before, #header .menu-toggle span:after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text);
}
#header .menu-toggle span:before { top: -6px; }
#header .menu-toggle span:after { top: 6px; }

#gnb { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 16px; }
#gnb ul { display: flex; flex-wrap: wrap; gap: 4px; }
#gnb ul li a {
  display: inline-block; padding: 7px 14px; border-radius: 18px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
#gnb ul li a:hover { background: var(--orange-soft); color: var(--orange-deep); }
#gnb ul li { position: relative; }
#gnb ul li ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 160px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
#gnb ul li:hover > ul { display: block; }
#gnb ul li ul li a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; }
#gnb ul li ul li a:hover { background: var(--orange-soft); color: var(--orange-deep); }

/* ---------- 메가메뉴 (장르별 / 분기별 / 평점별) ---------- */
.mega-nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 14px;
  border-top: 1px solid var(--line);
}
.mega-tabs { display: flex; gap: 6px; padding-top: 10px; }
.mega-tabs > li { position: relative; }
.mega-tab-btn {
  padding: 8px 18px; border-radius: 18px; font-size: 13px; font-weight: 800;
  color: var(--text); background: transparent;
}
.mega-tab-btn:hover { background: var(--orange-soft); color: var(--orange-deep); }
.mega-tabs > li.open .mega-tab-btn { background: var(--orange); color: #fff; }

.mega-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 220px; max-width: 320px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.mega-tabs > li.open .mega-panel { display: block; }
.mega-panel ul { display: flex; flex-wrap: wrap; gap: 4px; }
.mega-panel ul li { flex: 0 0 100%; }
.mega-panel ul li a {
  display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text);
}
.mega-panel ul li a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.mega-panel .year-list li { flex: 0 0 auto; }
.mega-panel .year-list { flex-direction: row; }
.mega-panel .year-list li a { padding: 6px 10px; }

/* ---------- Layout ---------- */
#container { width: 100%; }
.content-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 60px;
  display: flex; align-items: flex-start; gap: 40px;
}
#content { flex: 1; min-width: 0; }
#aside { flex: 0 0 260px; }

/* ---------- Notice ---------- */
.notice-banner {
  margin-bottom: 20px; padding: 12px 16px; border-radius: 10px;
  background: var(--orange-soft); font-size: 13px; font-weight: 700; color: var(--orange-deep);
}
.notice-banner a { display: flex; gap: 8px; align-items: center; }

/* ---------- List header ---------- */
.list-header {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--text);
}
.list-header h2 { display: flex; align-items: baseline; gap: 6px; font-size: 19px; font-weight: 900; }
.list-header h2 em { font-style: normal; color: var(--orange); }

.empty-box { padding: 70px 0; text-align: center; color: var(--text-dim); }
.empty-box p { font-size: 14px; margin-bottom: 6px; }
.empty-box .sub { font-size: 12.5px; color: #b6b6b6; }

/* ---------- 페이지(고정 페이지) ---------- */
.page-header { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--text); }
.page-header h1 { font-size: 22px; font-weight: 900; }

/* ---------- 포스터 그리드 (post-grid) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.post-card { border-radius: var(--radius); transition: transform .2s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card a { display: block; }

.post-card .thum {
  display: block; aspect-ratio: 230 / 300; width: 100%;
  border-radius: 12px; overflow: hidden; background: var(--orange-soft);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08); margin-bottom: 10px;
}
.post-card .thum img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card a:hover .thum img { transform: scale(1.06); }
.post-card .thum .lock {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px;
}

.post-card .category {
  display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; color: var(--orange-deep);
}
.post-card .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 6px;
}
.post-card a:hover .title { color: var(--orange); }
.post-card .excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-bottom: 6px;
}
.post-card .date { display: block; font-size: 11px; color: #b6b6b6; }
.post-card.protected .excerpt { color: #b6b6b6; }

/* ---------- 글 상세 (post-detail) ---------- */
.post-detail { grid-column: 1 / -1; }

.post-hero {
  position: relative; min-height: 280px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; background-color: var(--orange-soft);
  display: flex; align-items: flex-end; margin-bottom: 28px;
}
.post-hero:before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%);
}
.post-hero .inner { position: relative; z-index: 2; padding: 28px; max-width: none; }
.post-hero .category {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 14px;
  background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700;
}
.post-hero h1 { font-size: 26px; font-weight: 900; color: #fff; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.post-hero .meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: #f0e9e6; }

/* ---------- 방문자 평점 위젯 ---------- */
.rating-box {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--orange-soft);
}
.rating-col { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating-label { font-size: 12.5px; font-weight: 800; color: var(--orange-deep); }
.stars { display: flex; gap: 2px; }
.stars .star {
  font-size: 22px; line-height: 1; color: #e3d3cb; transition: color .12s ease, transform .12s ease;
}
.stars .star:hover, .stars .star.hover { color: var(--orange); transform: scale(1.12); }
.stars.voted .star { cursor: default; }
.stars .star.active { color: var(--orange-deep); }
.rating-summary { font-size: 13px; color: var(--text); }
.rating-summary strong { font-size: 17px; color: var(--orange-deep); }
.rating-summary em { font-style: normal; color: var(--text-dim); margin-left: 4px; }
.rating-voted { display: none; font-size: 11.5px; color: var(--text-dim); }
.rating-voted.show { display: inline-block; }
.rating-voted b { color: var(--orange-deep); }

.entry-content { padding: 8px 0 30px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.entry-content a { color: var(--orange-deep); text-decoration: underline; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { border-left: 3px solid var(--orange); padding-left: 16px; color: var(--text-dim); margin: 16px 0; }

.tag-box { padding: 20px 0; border-top: 1px solid var(--line); }
.tag-box h3 { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text-dim); }
.tag-box a {
  display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px; border-radius: 16px;
  border: 1px solid var(--line); font-size: 12px; color: var(--text);
}
.tag-box a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.related-box { padding: 24px 0; border-top: 1px solid var(--line); }
.related-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.related-box ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-box ul li figure { aspect-ratio: 176/230; border-radius: 10px; overflow: hidden; background: var(--orange-soft); margin-bottom: 8px; }
.related-box ul li figure img { width: 100%; height: 100%; object-fit: cover; }
.related-box ul li .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.related-box ul li a:hover .title { color: var(--orange); }

.comments, .tt-comments-wrap { padding: 24px 0; }
.comments .btn, .comment-form .submit button, .comments button[type="submit"] {
  padding: 8px 18px; border-radius: 18px; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700;
}
.comment-form .submit button:hover, .comments button[type="submit"]:hover { background-color: var(--orange-deep); }

.protected-form { text-align: center; padding: 60px 0; grid-column: 1 / -1; }
.protected-form h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.protected-form p { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.protected-form input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; margin-right: 8px; }
.protected-form button { padding: 10px 18px; border-radius: 18px; background: var(--orange); color: #fff; font-weight: 700; }

/* ---------- 페이지네이션 ---------- */
.pagination { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 10px; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 12.5px; color: var(--text-dim);
}
.pagination a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.pagination a.selected, .pagination a.on { background: var(--orange); color: #fff; }
.pagination .prev, .pagination .next { width: auto; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); }
.pagination .no-more-prev, .pagination .no-more-next { opacity: 0.3; pointer-events: none; }

/* ---------- 사이드바 ---------- */
.side-box { margin-bottom: 32px; }
.side-box h3 {
  font-size: 13px; font-weight: 800; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--text);
}
.category ul li a { display: block; padding: 8px 4px; font-size: 13px; border-bottom: 1px dashed var(--line); }
.category ul li a:hover { color: var(--orange); }
.category ul li ul li a { padding-left: 16px; font-size: 12px; color: var(--text-dim); }

#aside .tag-box { padding: 0; border: none; }
#aside .tag-box a {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border-radius: 14px;
  border: 1px solid var(--line); font-size: 11.5px; color: var(--text);
}
#aside .tag-box a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.count-box { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--orange-soft); }
.count-box h3 { border: none; padding: 0; margin-bottom: 8px; }
.count-box .total { font-size: 22px; font-weight: 900; color: var(--orange-deep); margin-bottom: 4px; }
.count-box .sub { font-size: 11px; color: var(--text-dim); }

/* ---------- 푸터 ---------- */
#footer { border-top: 1px solid var(--line); background: #faf9f7; }
#footer .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; position: relative; text-align: center;
}
#footer .blog-name { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
#footer .copyright { font-size: 11px; color: #b6b6b6; }
#footer .page-top {
  position: absolute; right: 24px; top: 24px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 16px; font-size: 11px; color: var(--text-dim);
}
#footer .page-top:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- 반응형 ---------- */
@media screen and (max-width: 1023px) {
  .content-wrap { flex-direction: column; }
  #aside { flex: 0 0 auto; width: 100%; display: flex; flex-wrap: wrap; gap: 0 24px; }
  #aside .side-box { flex: 1 1 220px; }
  .related-box ul { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 767px) {
  #header .logo-row { padding: 12px 16px 8px; }
  #header .inner { padding: 10px 16px; }
  #header .search input { width: 160px; }

  #gnb { padding: 0 16px 12px; overflow-x: auto; }
  #gnb ul { flex-wrap: nowrap; }
  #gnb ul li a { white-space: nowrap; }

  .mega-nav { padding: 0 16px 12px; overflow-x: auto; }
  .mega-tabs { flex-wrap: nowrap; }
  .mega-panel { left: 0; right: auto; max-width: 260px; }

  .content-wrap { padding: 20px 16px 40px; gap: 24px; }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .related-box ul { grid-template-columns: repeat(2, 1fr); }

  #aside { display: block; }

  .post-hero h1 { font-size: 20px; }
  .post-hero .inner { padding: 20px; }
}
