@charset "utf-8";

:root{
    --rev-text:var(--text);
    --rev-base:var(--base);
    --rev-point:var(--point);
    --rev-border:var(--theme-box-border);
}

/* ── 공통 ── */
.review-wrap { font-family: inherit; color: inherit; margin-top:30px;}


/* ── 검색창 ── */
.search_box{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;padding:10px;border-radius:var(--radius);}
.search_box .search_name{flex-grow: 1;}
.search_box div span{
color:var(--text);
opacity:.6;
}

.search_box .search_rate, .search_box .search_cate{display:flex;flex-direction:column;gap:4px;flex:0 0 100px}

/* 목록 그리드 */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 2rem; margin-top:20px; }
.cat-block { min-width: 0; }
.cat-heading { display: flex; align-items: center; gap: 8px; margin-bottom: .6rem; }
.cat-heading-name {font-family:var(--fontS);font-weight: 500; }
.cat-heading-line { flex: 1; height: 1px; background: var(--rev-point); }
.cat-heading-count { font-size: 11px; color: var(--rev-point);}

/* 타임라인 */
.tl { position: relative; padding-left: 20px; }
.tl-spine { position: absolute; left: 8px; top: 5px; bottom: 4px; width: 1px; background:var(--rev-point); }
.tl-year { font-size: .9em; color: var(--rev-text); font-weight: 500; margin-bottom: 5px; position: relative; }
.tl-year::before {
    content: ''; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background:var(--rev-base); border: 1.5px solid var(--rev-point);
}

/* 타임라인 아이템 */
.tl-item { margin-bottom: 5px; border-radius: var(--radius); border: 1px solid var(--rev-base); overflow: hidden; background: var(--base); cursor: pointer; transition: border-color .12s; width: calc(50% - 4px); display: inline-block; vertical-align: top;}
.tl-item:hover { border-color: var(--rev-point); }
.tl-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.tl-emoji { font-size: 16px; flex-shrink: 0; line-height: 1.3; }
.tl-thumb { width: 36px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tl-info { flex: 1; min-width: 0; }
.tl-title { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 1px; color: var(--rev-text); font-size: 1.2em;}
.tl-sub { font-size: 0.9em; color: var(--rev-text); opacity:.8; }
.tl-stars { color: var(--rev-point); font-size: 10px; letter-spacing: .3px; flex-shrink: 0; }
.tl-chevron { font-size: 11px; color: #bbb; transition: transform .2s; margin-left: 3px; flex-shrink: 0; }
.tl-item:hover .tl-chevron { transform: rotate(180deg); }

/* 호버 패널 */
.tl-panel { max-height: 0; overflow: hidden; transition: max-height .26s ease; }
.tl-item:hover .tl-panel { max-height: 200px; }
.panel-inner {padding: 8px 10px; }
.panel-score-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.panel-score-big { font-size: 15px; font-weight: 500; }
.panel-score-max { font-size: 10px; color: #bbb; }
.panel-score-stars { color: var(--rev-point); font-size: 10px; letter-spacing: .5px; }
.panel-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }
.panel-tag { font-size: 0.9em; padding: 1px 6px; border-radius: 999px; background:var(--rev-point); border: 1px solid var(--rev-point); color: var(--rev-base); }
.panel-quote { color: var(--rev-text); font-style: italic; border-left: 2px solid var(--rev-point); padding-left: 7px; line-height: 1.5; }

/* 더 보기 버튼 */
.more-btn {
    display: block; width: 100%; text-align: center;
    font-size: 11px; color: var(--rev-base); padding: 6px;
    border: 1px solid var(--rev-point); border-radius: 8px;
    background: var(--rev-point); cursor: pointer; margin-top: 4px;
    transition: background .12s; text-decoration: none;
}
.more-btn:hover { background: var(--def); border-color:var(--def); }
.more-items { display: none; }
.more-items.open { display: block; }

/* ── 본문 ── */
.view-back { display: inline-flex; align-items: center; gap: 5px; color: var(--rev-text); opacity:.6; margin-bottom: 1rem; text-decoration: none; }
.view-back:hover { opacity:1; }

/* 메인 카드 */
.main-card {overflow: hidden; margin-bottom: 1.25rem;}

/* 포스터 배너 */
.hero-top { height: 80px; display: flex; align-items: flex-end; padding: 0 16px; gap: 14px; }
.hero-poster {
    width: 64px; height: 90px; border-radius: 8px;
    background: rgba(255,255,255,.12); display: flex; align-items: center;
    justify-content: center; font-size: 34px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.15);
    margin-bottom: -30px; position: relative; z-index: 1;
    overflow: hidden;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster-emoji { font-size: 34px; }
.hero-title-wrap { padding-bottom: 10px; }
.hero-title { font-size: 1.6em; font-weight: 500; font-family:var(--fontS);}
.hero-subtitle { color: var(--rev-point); font-size: .9em; margin-top: 2px; }

/* 정보 영역 */
.info-section { padding: 1rem 1rem 1rem 94px; }
.score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.score-big { font-size: 26px; font-weight: 500; }
.score-max { font-size: 13px; opacity:.6; }
.score-stars { color: var(--rev-point); font-size: 15px; letter-spacing: 1.5px; }
.info-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.info-tag { font-size: .9em; padding: 3px 10px; border-radius: 999px; background: var(--rev-point); border: 1px solid var(--rev-point); color: var(--base); }
.info-quote { font-size: 12px; color: var(--rev-text); font-style: italic; border-left: 2px solid var(--rev-point); padding-left: 9px; line-height: 1.55; margin-bottom: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; }
.meta-label { font-size: 10px; color: var(--rev-point); opacity:.6; margin-bottom: 2px; }
.meta-val { font-size: 12px; font-weight: 500; }

/* 굵은 구분선 */
.card-sep { height: 1px; background: var(--rev-point); }

/* 본문 섹션 */
.body-section { padding: 1.25rem; }
.body-text { font-size: 14px; line-height: 1.7; color: var(--rev-text); }
.body-text p { margin-bottom: .7rem; }
.body-text p:last-child { margin-bottom: 0; }

/* 감상평 */
.review-sep { height: 1px; background: #e8e8e8; margin: 0 1.25rem; }
.review-section { padding: 1rem 1.25rem 1.25rem; }
.review-label { font-size: 11px; color: #bbb; font-weight: 500; letter-spacing: .04em; margin-bottom: .5rem; }
.review-text { font-size: 14px; line-height: 1.7; color: #333; }

/* 이전/다음 */
.view-nav { display: flex; justify-content: space-between; font-size: 12px; margin-top: 1rem; }
.view-nav a { color: #888; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.view-nav a:hover { color: #333; }

/* 글쓰기 버튼 */
.write-btn-wrap { text-align: right; margin-bottom: 1rem; }

/* ── 작성 폼 ── */
.write-form-table { width: 100%; border-collapse: collapse; }
.write-form-table th {
    width: 120px; padding: 12px 16px; text-align: left;
    font-size: 13px; font-weight: 500; color: var(--rev-text); opacity:.6;
    background: #fafafa; border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.write-form-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.write-form-table tr:last-child th,
.write-form-table tr:last-child td { border-bottom: none; }
.frm_input { width: 100%; padding: 7px 10px; border: 1px solid var(--rev-border) !important; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.star-input { display: flex; gap: 4px; align-items: center; }
.star-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #ddd; padding: 0; line-height: 1; transition: color .1s; }
.star-btn.on { color: var(--rev-point); }
.score-label { font-size: 13px; color: #aaa; margin-left: 6px; }
.form-submit-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1rem; }
.btn-submit { padding: 8px 24px; background: #222; color: #fff; border: none; border-radius: 999px; font-size: 13px; cursor: pointer; }
.btn-cancel { padding: 8px 24px; background: #fff; color: #666; border: 1px solid #ddd; border-radius: 999px; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-block; }

.rv-drag-handle { color: var(--rev-point); font-size: 1.2em; margin-right: 6px; user-select: none; }
.cat-block.rv-dragging { opacity: .4; }
.cat-block.rv-over { outline: 2px dashed #aaa; border-radius: 8px; }

.video-wrapper-normal {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: auto;
}

.video-wrapper-normal iframe {
    width: 100%;
    height: 100%;
}

@media all and (max-width:799px) {
.tl-item{
width:unset;
display:block;
}
}