.f-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.detail-more svg {
    width: 20px;
    height: 20px;
    stroke: var(--muted);
}

.detail-stat svg {
    width: 20px;
    height: 20px;
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-left {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-images {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.slider-images img {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.is-active {
    background: #fff;
    width: 24px;
}

.modal-right {
    width: 480px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.detail-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-username {
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.detail-date {
    font-size: 12px;
    color: var(--muted);
}

.detail-more {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.detail-more:hover {
    background: #f9fafb;
}

.detail-body {
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.detail-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.5;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.detail-stats {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.detail-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.detail-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    transition: color 0.15s;
}

.detail-like-btn.is-liked {
    color: #ff6b00;
}

.detail-comments {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-content {
    line-height: 1.5;
    word-break: break-word;
}

.comment-username {
    font-weight: 600;
    font-size: 13px;
    color: #111;
    margin-right: 6px;
}

.comment-text {
    font-size: 13px;
    color: #374151;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.comment-date {
    font-size: 12px;
    color: var(--muted);
}

.comment-reply {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.comment-reply:hover {
    color: #111;
}

.comment-delete {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.comment-delete:hover {
    color: #b91c1c;
}

.comment-replies {
    margin-top: 16px;
    padding-left: 14px;
}

.reply-item {
    margin-bottom: 16px;
}

.detail-comment-form {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px 20px;
    border-top: 1px solid var(--line);
    align-items: center;
}

.detail-comment-form label {
    flex: 1;
    display: flex;
}

.detail-comment-form input[type="text"] {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    outline: none;
}

.detail-comment-form input[type="text"]:focus {
    border-color: var(--brand);
}

.detail-comment-form button[type="button"]:not(.reply-cancel) {
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.detail-comment-form button[type="button"]:not(.reply-cancel):hover {
    background: var(--brand-700);
}

.detail-comment-form.is-replying {
    background: #f9fafb;
    padding: 8px 16px 16px 16px;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.reply-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.detail-comment-form .reply-cancel {
    border: none;
    background: none;
    padding: 0;
    color: #9ca3af;
    cursor: pointer;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.detail-comment-form .reply-cancel:hover {
    color: #374151;
}

.reply-cancel svg {
    display: block;
    width: 16px;
    height: 16px;
}

.detail-more-wrapper {
    position: relative;
}

.more-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px;
    display: none;
    z-index: 100;
}

.more-dropdown.is-active {
    display: block;
}

.more-item {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.more-item:hover {
    background: #f3f4f6;
}

.more-item-danger {
    color: #ef4444;
}

.more-item-danger:hover {
    background: #fef2f2;
}

.f-like-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.f-like-count-btn {
    background: none;
    border: none;
    padding: 0 4px 0 0;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s;
}

.f-like-count-btn:hover .like-count {
    text-decoration: underline;
}

.detail-like-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.detail-like-count-btn {
    background: none;
    border: none;
    padding: 0 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.15s;
}

.detail-like-count-btn:hover span {
    text-decoration: underline;
}

/* Like List Modal */
#feedLikeListModal {
    z-index: 1100;
}

.like-list-container {
    position: relative;
    width: 360px;
    max-height: 60vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.like-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.like-list-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background 0.15s;
}

.like-list-close:hover {
    background: #f3f4f6;
}

.like-list-close svg {
    width: 18px;
    height: 18px;
}

.like-list-body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
}

.like-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background 0.1s;
}

.like-user-item:hover {
    background: #f9fafb;
}

.like-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.like-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.like-list-empty,
.like-list-loading {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .modal-left {
        flex: 0 0 50%;
    }

    .modal-right {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .modal-left {
        flex: 0 0 42%;
    }

    .like-list-container {
        width: 92vw;
    }
}

.edit-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#feedEditModal #editSliderImages {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feedEditModal #editSliderImages img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.edit-image-notice {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.edit-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edit-form-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    justify-content: flex-end;
}

.edit-form-footer .btn {
    min-width: 100px;
}

.edit-select-row {
    display: flex;
    gap: 12px;
}

.edit-select-row .u-label {
    flex: 1;
}