@charset "UTF-8";
:root {
            --shadow-md: 0 8px 32px rgba(76,128,241,0.12);
            --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.22);
        }

        .record-detail-wrap {
            background: var(--bg);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Hero Section */
        .fr-hero {
            padding: 72px 56px 56px;
            background: linear-gradient(160deg, #F8FAFD 0%, rgba(76,128,241,0.04) 100%);
            border-bottom: 1px solid rgba(76,128,241,0.08);
            text-align: center;
            position: relative;
        }

        .fr-hero-inner {
            max-width: 760px;
            margin: 0 auto;
        }

        .fr-badge {
            display: inline-block;
            padding: 5px 14px;
            border-radius: var(--r-full);
            font-size: 0.74rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--blue);
            background: var(--blue-dim);
            border: 1px solid rgba(76,128,241,0.2);
        }

        .fr-title {
            font-size: clamp(1.7rem, 4vw, 2.5rem);
            font-weight: 900;
            color: var(--text);
            letter-spacing: -0.025em;
            line-height: 1.35;
            margin-bottom: 28px;
            word-break: keep-all;
        }

        /* Author Bar & Kebab Menu */
        .fr-author-bar {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 12px 12px 12px 18px;
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: var(--r-full);
            box-shadow: var(--shadow-sm);
        }

        .fr-author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--bg);
        }

        .fr-author-info {
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: center;
            line-height: 1.25;
        }

        .fr-author-name {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--text);
            display: block;
            margin-bottom: 4px;
            line-height: 1.2;
        }

        .fr-author-meta {
            font-size: 0.76rem;
            color: var(--muted);
            line-height: 1.2;
        }

        .fr-more-wrap {
            position: relative;
            margin-left: 4px;
        }

        .btn-author-more {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--muted);
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .btn-author-more:hover, .fr-more-wrap.open .btn-author-more {
            background: var(--blue-dim);
            color: var(--blue);
        }

        .fr-more-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            z-index: 100;
            min-width: 124px;
            padding: 6px;
            background: #FFFFFF;
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
            transform-origin: top right;
            animation: dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .fr-more-wrap.open .fr-more-dropdown {
            display: block;
        }

        @keyframes dropdown-in {
            from { opacity: 0; transform: scale(0.92) translateY(-4px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .fr-dropdown-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            border: none;
            background: transparent;
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-sub);
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: left;
        }

        .fr-dropdown-item i {
            font-size: 0.85rem;
        }

        .fr-dropdown-item:hover {
            background: var(--blue-dim);
            color: var(--blue);
        }

        .fr-dropdown-item.item-danger {
            color: var(--danger);
        }

        .fr-dropdown-item.item-danger:hover {
            background: rgba(239, 68, 68, 0.08);
            color: var(--danger);
        }

        /* Content Area */
        .fr-main-content {
            flex: 1;
            max-width: 760px;
            width: 100%;
            margin: 0 auto;
            padding: 44px 24px 72px;
        }

        .fr-content-container {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        /* Image Slider */
        .fr-slider-wrap {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .fr-slider-box {
            border-radius: 16px;
            overflow: hidden;
            background: #EEF2F8;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .fr-slider-stage {
            position: relative;
            aspect-ratio: 16 / 10;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fr-slide-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.4s ease;
            display: block;
            margin: auto;
            cursor: zoom-in;
        }

        .fr-slide-img.active {
            opacity: 1;
        }

        .fr-slider-caption {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--text);
            font-size: 0.78rem;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(76, 128, 241, 0.15);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
            padding: 4px 14px;
            border-radius: var(--r-full);
            white-space: nowrap;
            margin: 0;
            z-index: 2;
        }

        .fr-slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid rgba(76, 128, 241, 0.18);
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: var(--text-sub);
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
            transition: all 0.18s;
            z-index: 3;
        }

        .fr-slider-btn:hover {
            background: #FFFFFF;
            color: var(--blue);
            border-color: var(--blue);
            transform: translateY(-50%) scale(1.05);
        }

        .fr-slider-btn.prev { left: 14px; }
        .fr-slider-btn.next { right: 14px; }

        .fr-slider-count {
            position: absolute;
            top: 13px;
            right: 13px;
            background: rgba(28, 35, 49, 0.65);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #FFFFFF;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: var(--r-full);
            z-index: 2;
        }

        /* 🌟 전체보기(확대) 힌트 뱃지 - 원본 recordDetail 기능 이식 */
        .fr-zoom-hint {
            position: absolute;
            top: 13px;
            left: 13px;
            background: rgba(28, 35, 49, 0.65);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #FFFFFF;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: var(--r-full);
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 2;
            pointer-events: none;
        }

        .fr-slider-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
        }

        .fr-slider-dot {
            width: 6px;
            height: 6px;
            border-radius: var(--r-full);
            border: none;
            background: rgba(76,128,241,0.2);
            cursor: pointer;
            padding: 0;
            transition: all 0.25s;
        }

        .fr-slider-dot.active {
            width: 20px;
            background: var(--blue);
        }

        /* Article Typography */
        .fr-article-body {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .fr-paragraph {
            font-size: 1.02rem;
            color: var(--text-sub);
            line-height: 1.88;
            margin: 0;
            word-break: keep-all;
            white-space: pre-line;
        }

        .fr-divider {
            margin: 32px 0;
            height: 1px;
            background: linear-gradient(to right, var(--border), transparent);
        }

        .fr-tag-wrap {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .fr-tag-item {
            padding: 5px 13px;
            border-radius: var(--r-full);
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--muted);
            background: transparent;
            border: 1px solid var(--border);
            text-decoration: none;
            transition: all 0.18s;
        }

        .fr-tag-item:hover {
            color: var(--blue);
            border-color: rgba(76,128,241,0.3);
            background: var(--blue-dim);
        }

        /* Navigation Buttons (3열 그리드 고정) */
        .fr-post-nav {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            padding-top: 8px;
        }

        .fr-nav-slot {
            display: flex;
            align-items: center;
        }
        .fr-nav-slot.left {
            justify-content: flex-start;
        }
        .fr-nav-slot.center {
            justify-content: center;
        }
        .fr-nav-slot.right {
            justify-content: flex-end;
        }

        .btn-nav-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 4px;
            color: var(--text-sub);
            font-size: 0.84rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.18s;
        }
        .btn-nav-item:hover {
            color: var(--blue);
        }

        .btn-nav-center {
            padding: 9px 20px;
            border-radius: var(--r-full);
            border: 1.5px solid rgba(76, 128, 241, 0.18);
            background: var(--bg-white);
        }
        .btn-nav-center:hover {
            border-color: rgba(76, 128, 241, 0.35);
            background: var(--blue-dim);
        }

        /* Password Modal */
        .rec-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(28,35,49,0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.22s ease;
        }
        .rec-modal-overlay.show {
            display: flex;
            opacity: 1;
        }
        @keyframes modal-in {
            from { opacity: 0; transform: scale(0.94) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .pw-modal {
            background: var(--bg-white);
            border-radius: var(--r-xl);
            padding: 44px 40px 36px;
            width: 100%;
            max-width: 420px;
            box-shadow: var(--shadow-xl);
            position: relative;
            animation: modal-in 0.22s cubic-bezier(0.22,1,0.36,1);
        }

        .pw-modal-close {
            position: absolute;
            top: 14px;
            right: 16px;
            background: none;
            border: none;
            width: 34px;
            height: 34px;
            border-radius: var(--r-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted);
            font-size: 1rem;
            cursor: pointer;
            transition: background var(--ease), color var(--ease);
        }
        .pw-modal-close:hover {
            background: var(--bg);
            color: var(--text);
        }

        .pw-modal-icon {
            width: 52px;
            height: 52px;
            border-radius: var(--r-lg);
            margin-bottom: 20px;
            background: var(--blue-dim);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--blue);
            font-size: 1.4rem;
            transition: all 0.2s ease;
        }
        .pw-modal-icon.del {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .pw-modal h2 {
            font-size: 1.18rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
        }

        .pw-modal-desc {
            font-size: 0.88rem;
            color: var(--text-sub);
            line-height: 1.72;
            margin-bottom: 24px;
        }

        .pw-field {
            width: 100%;
            padding: 13px 16px;
            margin-bottom: 6px;
            border: 1.5px solid var(--border);
            border-radius: var(--r-md);
            font-family: inherit;
            font-size: 0.95rem;
            color: var(--text);
            outline: none;
            background: var(--bg-white);
            transition: border-color var(--ease), box-shadow var(--ease);
            box-sizing: border-box;
        }
        .pw-field:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(76,128,241,0.12);
        }
        .pw-field.err {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
        }

        .pw-err-msg {
            font-size: var(--fs-xs);
            color: var(--danger);
            margin-bottom: 18px;
            min-height: 18px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .pw-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .btn-pw-cancel {
            flex: 1;
            height: 48px;
            padding: 0 16px;
            border-radius: var(--r-full);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 700;
            background: var(--bg);
            border: 1.5px solid var(--border);
            color: var(--text-sub);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all var(--ease);
            box-sizing: border-box;
        }
        .btn-pw-cancel:hover {
            background: var(--surface);
            border-color: var(--border-hov);
            color: var(--text);
        }

        .btn-pw-confirm {
            flex: 1.5;
            height: 48px;
            padding: 0 16px;
            border-radius: var(--r-full);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 700;
            background: var(--blue);
            color: #fff;
            border: none;
            box-shadow: 0 4px 14px rgba(76,128,241,0.30);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all var(--ease);
            box-sizing: border-box;
        }
        .btn-pw-confirm:hover {
            background: var(--blue-acc);
        }
        .btn-pw-confirm.btn-del {
            background: var(--danger);
            box-shadow: 0 4px 14px rgba(239,68,68,0.30);
        }
        .btn-pw-confirm.btn-del:hover {
            background: #dc2626;
        }

        .shake-anim {
            animation: shake 0.4s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }

        /* ─── 🌟 이미지 전체보기(라이트박스) - 원본 recordDetail 기능 이식 ─── */
        .image-lightbox-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(15, 20, 30, 0.92);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            transition: opacity 0.24s ease;
            user-select: none;
        }
        .image-lightbox-overlay.show { display: flex; opacity: 1; }

        .lightbox-container {
            position: relative;
            max-width: 88vw;
            max-height: 86vh;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 86vh;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
            display: block;
        }

        .lightbox-close-btn {
            position: absolute;
            top: 24px;
            right: 28px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #FFFFFF;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--ease);
            z-index: 2010;
        }
        .lightbox-close-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.08); }

        .lightbox-counter {
            position: absolute;
            top: 28px;
            left: 28px;
            color: #FFFFFF;
            font-size: 0.88rem;
            font-weight: 700;
            padding: 6px 16px;
            border-radius: var(--r-full);
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            z-index: 2010;
        }

        .lightbox-nav-zone {
            position: absolute;
            top: 0; bottom: 0; width: 18%;
            z-index: 2005;
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        .lightbox-nav-zone.left { left: 0; justify-content: flex-start; padding-left: 28px; }
        .lightbox-nav-zone.right { right: 0; justify-content: flex-end; padding-right: 28px; }

        .lightbox-nav-btn {
            width: 52px; height: 52px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #FFFFFF;
            font-size: 1.35rem;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.85);
            transition: all 0.22s ease;
            pointer-events: none;
        }

        .lightbox-nav-zone:hover:not(.disabled) .lightbox-nav-btn {
            opacity: 1;
            transform: scale(1);
            background: rgba(255, 255, 255, 0.28);
        }
        .lightbox-nav-zone.disabled {
            cursor: default;
            pointer-events: none;
        }

        @media (max-width: 700px) {
            .fr-hero { padding: 56px 20px 44px; }
            .pw-modal { padding: 36px 24px 28px; }
            .fr-slider-stage { aspect-ratio: 4 / 3; }
        }

        @media (max-width: 640px) {
            .lightbox-close-btn { top: 16px; right: 16px; width: 38px; height: 38px; font-size: 1.1rem; }
            .lightbox-counter { top: 18px; left: 16px; font-size: 0.8rem; padding: 4px 12px; }
            .lightbox-nav-zone { width: 25%; }
            .lightbox-nav-zone.left { padding-left: 12px; }
            .lightbox-nav-zone.right { padding-right: 12px; }
            .lightbox-nav-btn { width: 42px; height: 42px; font-size: 1.1rem; }
        }